module Mail

GPGME methods for encryption/decryption/signing

decryption of the so called ‘PGP-Inline’ message types this is not a standard, so the implementation is based on the notes here binblog.info/2008/03/12/know-your-pgp-implementation/ and on test messages generated with the Mozilla Enigmail OpenPGP plugin www.enigmail.net

Public Class Methods

create_message_to_list(msg, recipient, list) click to toggle source

creates a Mail::Message likes schleuder

# File lib/schleuder/mail/message.rb, line 6
def self.create_message_to_list(msg, recipient, list)
  mail = Mail.new(msg)
  mail.list = list
  mail.recipient = recipient
  # don't freeze here, as the mail might not be fully
  # parsed as body is lazy evaluated and might still
  # be changed later.
  mail.original_message = mail.dup #.freeze
  mail
end