This is the v1 version, had the v2 before.
This commit is contained in:
19
backend/move.go
Normal file
19
backend/move.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package backend
|
||||
|
||||
import (
|
||||
"github.com/emersion/go-imap"
|
||||
)
|
||||
|
||||
// MoveMailbox is a mailbox that supports moving messages.
|
||||
type MoveMailbox interface {
|
||||
Mailbox
|
||||
|
||||
// Move the specified message(s) to the end of the specified destination
|
||||
// mailbox. This means that a new message is created in the target mailbox
|
||||
// with a new UID, the original message is removed from the source mailbox,
|
||||
// and it appears to the client as a single action.
|
||||
//
|
||||
// If the destination mailbox does not exist, a server SHOULD return an error.
|
||||
// It SHOULD NOT automatically create the mailbox.
|
||||
MoveMessages(uid bool, seqset *imap.SeqSet, dest string) error
|
||||
}
|
||||
Reference in New Issue
Block a user