[rt-users] Get the From: header of currently sent mail

Kevin Falcone falcone at bestpractical.com
Tue Jan 15 12:34:42 EST 2013


On Thu, Jan 10, 2013 at 03:11:59PM +0100, Martin Drasar wrote:
> in my setup I have patched lib/RT/Action/Notify.pm in such way that it
> adds some attachments to a mail. In some cases we send mails that have
> no-reply address in From: and Reply-To: and I would like to send these
> mails without those attachments. However, I have not found a way to
> query either From: or Reply-To:.
> 
> Could you please tell me how to check these headers inside Notify.pm?
> And if it is not possible, could you please give me a hint on how to do
> it some other way?

If you're modifying Notify.pm, you've already seen how it gets the
RT-Send-Cc and RT-Send-Bcc headers.  Try using similar code and if it
doesn't work, provide code that doesn't work and how it fails.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130115/3a0e3f76/attachment.sig>


More information about the rt-users mailing list