Project

General

Profile

« Previous | Next » 

Revision 1879aa76

Added by Marc Dequènes over 10 years ago

[evol] switched from (abandonned upstream) TMail to Mail

View differences:

bin/postman
def process_message(msg)
mail = Mail.new(msg.content)
logger.info "Received mail with ID '#{mail.message_id}': #{mail.from_pretty} -> #{mail.to_pretty} (#{mail.subject_pretty})"
logger.info "Received mail with ID '#{mail.message_id}': #{mail[:from].decoded} -> #{mail[:to].decoded} (#{mail.subject})"
# ignore mails not signed or encrypted
unless mail.is_pgp_signed? or mail.is_pgp_encrypted?
......
if reply_attachments.empty?
transcript_part = mail_reply
else
mail_reply.to_multipart!
mail_reply.parts.clear
p = CyborgHood::Mail.blank
transcript_part = p

Also available in: Unified diff