sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 86709abacd87f392f813d72a9a3e3a08553649b5
parent fb407eba9f8f9cd04f2bcf7c8429b794efd951c5
Author: Ruthard Baudach <rthrd@web.de>
Date:   Wed,  1 Oct 2014 22:21:24 +0200

geändert: lib/sup/modes/edit_message_mode.rb pass message_id to signature hook

Diffstat:
M lib/sup/modes/edit_message_mode.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/modes/edit_message_mode.rb b/lib/sup/modes/edit_message_mode.rb
@@ -20,6 +20,7 @@ Variables:
               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.
@@ -688,7 +689,7 @@ private
     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