lib/sup/modes/edit_message_mode.rb in sup-0.19.0 vs lib/sup/modes/edit_message_mode.rb in sup-0.20.0
- old
+ new
@@ -18,10 +18,11 @@
Variables:
header: an object that supports string-to-string hashtable-style access
to the raw headers for the message. E.g., header["From"],
header["To"], etc.
from_email: the email part of the From: line, or nil if empty
+ message_id: the unique message id of the message
Return value:
A string (multi-line ok) containing the text of the signature, or nil to
use the default signature, or :none for no signature.
EOS
@@ -686,10 +687,10 @@
def sig_lines
p = Person.from_address(@header["From"])
from_email = p && p.email
## first run the hook
- hook_sig = HookManager.run "signature", :header => @header, :from_email => from_email
+ hook_sig = HookManager.run "signature", :header => @header, :from_email => from_email, :message_id => @message_id
return [] if hook_sig == :none
return ["", "-- "] + hook_sig.split("\n") if hook_sig
## no hook, do default signature generation based on config.yaml