Update readme, create outbox, log remote in IMAP/SMTP auth

This commit is contained in:
Neil Alexander
2021-07-09 19:38:05 +01:00
parent 2565129191
commit ea11f4cf6c
7 changed files with 30 additions and 14 deletions

View File

@@ -273,6 +273,10 @@ func (mbox *Mailbox) UpdateMessagesFlags(uid bool, seqSet *imap.SeqSet, op imap.
}
func (mbox *Mailbox) CopyMessages(uid bool, seqSet *imap.SeqSet, destName string) error {
if destName == "Outbox" {
return fmt.Errorf("can't copy into Outbox as it is a protected folder")
}
ids, err := mbox.getIDsFromSeqSet(uid, seqSet)
if err != nil {
return fmt.Errorf("mbox.getIDsFromSeqSet: %w", err)