diff options
author | francis <francis> | 2009-09-08 04:12:08 +0000 |
---|---|---|
committer | francis <francis> | 2009-09-08 04:12:08 +0000 |
commit | 4af47938d4eba377ca4d8aca9b7842f1b3d3260b (patch) | |
tree | c7281b0d78c54798d154f38acde5de651eb05c28 /lib/tmail_extensions.rb | |
parent | e9297b5ed98bee58e926b534ca1daf787e22c40b (diff) |
Check address to when working out holding pen address
Diffstat (limited to 'lib/tmail_extensions.rb')
-rw-r--r-- | lib/tmail_extensions.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/tmail_extensions.rb b/lib/tmail_extensions.rb index e49e74859..ef882e850 100644 --- a/lib/tmail_extensions.rb +++ b/lib/tmail_extensions.rb @@ -4,7 +4,7 @@ # Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: tmail_extensions.rb,v 1.5 2009-07-01 11:07:20 francis Exp $ +# $Id: tmail_extensions.rb,v 1.6 2009-09-08 04:12:09 francis Exp $ # Monkeypatch! @@ -29,6 +29,12 @@ module TMail end end + # Generalisation of To:, Cc: + def envelope_to(default = nil) + # XXX assumes only one envelope-to, and no parsing needed + val = self.header_string('envelope-to') + return val ? [val,] : [] + end end class Address |