Project

General

Profile

« Previous | Next » 

Revision 4a2747e1

Added by Marc Dequènes over 14 years ago

  • ID 4a2747e1cb3f45a6168e877038b33b42b84bdb37

[debug] simplify debug with debug flags, added one to allow not removing mails in the mailbox (to replay them later)

View differences:

lib/cyborghood/imap.rb
@imap = imap
@message_id = message_id
@config = Config.instance
@content = nil
end
......
end
def delete
@imap.store(@message_id, "+FLAGS", [:Deleted])
if @config.debug.nil? or @config.debug.flags.nil? or not @config.debug.flags.include?(:debug_nomaildeletion)
@imap.store(@message_id, "+FLAGS", [:Deleted])
end
end
end

Also available in: Unified diff