lib/fde/mail_crawler.rb in fde-mail_crawler-0.1.0 vs lib/fde/mail_crawler.rb in fde-mail_crawler-0.2.0
- old
+ new
@@ -51,10 +51,10 @@
end
def self.delete(message_to_delete)
account = FDE::MailCrawler.imap_account
account.find_and_delete do |message|
- if message.subject == message_to_delete.subject
+ unless message.subject == message_to_delete.subject
message.skip_deletion
end
end
end
end