Subject: [sup-talk] [PATCH] before-edit hook

From: [email-masked] (Pierre Baillet)
Date: Tue, 13 Nov 2007 23:44:01 +0100

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

---

From: [email-masked] (Christopher Warrington)
Date: Tue, 13 Nov 2007 18:07:44 -0600

> 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>

---

From: [email-masked] (William Morgan)
Date: Wed, 14 Nov 2007 08:44:55 -0800

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>