Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] before-edit hook
@ 2007-11-13 22:44 Pierre Baillet
  2007-11-14  0:07 ` Christopher Warrington
  2007-11-14 16:44 ` William Morgan
  0 siblings, 2 replies; 3+ messages in thread
From: Pierre Baillet @ 2007-11-13 22:44 UTC (permalink / raw)


Hi,

Please find here the patch for the before-edit hook. It enables you to alter
the headers and the body before editing an email. I'm using it to
automically Bcc me.

Sample hook : before-edit.rb
--->8-----8<------
header["Bcc"] = "pierre at baillet.name"
--->8-----8<------


Not sure sending the body to the hook is useful though.

HTH !
-- 
Pierre Baillet <pierre at baillet.name>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/sup-talk/attachments/20071113/976d943b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: before_edit_hook_sup.patch
Type: application/octet-stream
Size: 802 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071113/976d943b/attachment.obj 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-14 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-13 22:44 [sup-talk] [PATCH] before-edit hook Pierre Baillet
2007-11-14  0:07 ` Christopher Warrington
2007-11-14 16:44 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox