delete message

This commit is contained in:
Eugene Korbut 2009-02-08 06:27:36 +10:00
parent f5edf91670
commit de5fc1c44f
2 changed files with 2 additions and 1 deletions

View file

@ -287,6 +287,7 @@ class IMAPFolder
# Just delete message without interaction with Trash folder
def delete(message)
activate
uid = (message.kind_of?(Integer) ? message : message.uid)
@mailbox.imap.uid_store(uid, "+FLAGS", :Deleted)
@mailbox.imap.expunge