]> git.cworth.org Git - sup/commitdiff
apply before-edit hook to all possible headers in reply-mode
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 4 Feb 2008 17:31:24 +0000 (09:31 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 4 Feb 2008 17:31:24 +0000 (09:31 -0800)
lib/sup/modes/reply-mode.rb

index 3b8c920142fe00c57fc4f7369a14da620949ff25..e7b2929861064e6e039280d4e9cdb5e13c61eca9 100644 (file)
@@ -101,6 +101,10 @@ EOS
         :recipient
       end)
 
+    @headers.each do |k, v|
+      HookManager.run "before-edit", :header => v, :body => body
+    end
+
     super :header => @headers[@type_selector.val], :body => body, :twiddles => false
     add_selector @type_selector
   end