Hi, I created a hook which modified the body of each new message to look like my usual skeleton for mails (greeting, content, signature). I did not use the signature function for that because I wanted to put in the greeting with the correct recipient. Now I wanted to make this even more comfortable for me by checking if the recipient of my mail is speaking english and thus using the english signature instead of the german one. This was possible to a certain degree, but failed when I wanted to see if any of the CC'ed addresses matched a certain pattern. Attached to this mail you can find a patch which will copy the body object for each type of headers (sender, recipient, all, list) and use the right version of it in each case (like for the headers). I am not completely suure if the patch is 100% correct, so please review it thoroughly. It works for me, though. Best regards, Michael
Attachment:
0001-Use-multiple-body-arrays-when-calling-before-edit-fo.patch
Description: Binary data
_______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel