* [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
* [sup-talk] [PATCH] before-edit hook
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
1 sibling, 0 replies; 3+ messages in thread
From: Christopher Warrington @ 2007-11-14 0:07 UTC (permalink / raw)
Excerpts from Pierre Baillet's message of Tue Nov 13 16:44:01 -0600 2007:
> Not sure sending the body to the hook is useful though.
If body text can somehow be returned, we could start implementing
templates.
--
Christopher Warrington <chrisw at rice.edu>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [sup-talk] [PATCH] before-edit hook
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
1 sibling, 0 replies; 3+ messages in thread
From: William Morgan @ 2007-11-14 16:44 UTC (permalink / raw)
Excerpts from Pierre Baillet's message of Tue Nov 13 14:44:01 -0800 2007:
> 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.
Applied. Note that body is an array, not a string.
--
William <wmorgan-sup at masanjin.net>
^ 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