resent-to and 'to' headers

View: New views
2 Messages — Rating Filter:   Alert me  

resent-to and 'to' headers

by Duane Toler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

MailRedirect is a great thing.  I do like it a lot.  However, I desperately need to have the 'To' address to be altered to whatever I choose for 'Resent-To'.  I understand the previous debate and justifiable reasons for not doing this.  However, I am in a small company and having the current behaviour is rather annoying.  The 'To' is retained as the original, but when the recipient of the Resent-To gets the mail, it looks invalid and that recipient doesn't like it.  It does look strange.

I have reviewed the source code and see where the 'Resent'  headers are being added.  Where would be a suitable place I can change the 'To' header as well?  We control our own mail server, of course, so the potential for abuse-by-spammers wouldn't be a problem (in our environment).  I understand this is not what you would want in the official version, so I am willing to let this be my own local change.

Can you help me with this?

Thanks!

--
Duane Toler
detoler@...

_______________________________________________
Mailredirect mailing list
Mailredirect@...
http://mozdev.org/mailman/listinfo/mailredirect

Parent Message unknown Re: resent-to and 'to' headers

by Pawel Krzesniak-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Duane Toler on [2006-09-26 22:49]:
> Hi.

hi,

> MailRedirect is a great thing.  I do like it a lot.  However, I desperately
> need to have the 'To' address to be altered to whatever I choose for
> 'Resent-To'.  I understand the previous debate and justifiable reasons for
> not doing this.  However, I am in a small company and having the current
> behaviour is rather annoying.  The 'To' is retained as the original, but
> when the recipient of the Resent-To gets the mail, it looks invalid and
> that
> recipient doesn't like it.  It does look strange.

have you seen Mnenhy extension? you could customize it to show resent-*
headers for every message. won't it help your users??
if mail *looks* strange make it to *look* better. do not try to change
the behavior of extension.

> I have reviewed the source code and see where the 'Resent'  headers are
> being added.  Where would be a suitable place I can change the 'To' header
> as well?

there are more that one such place. first of all you should modify
label: "resent-to" -> "to" (easy) and replace headers (not only add
them) with command similar to /^To: .*$/.replace(/To: abcdefghi/);

>  We control our own mail server, of course, so the potential for
> abuse-by-spammers wouldn't be a problem (in our environment).  I understand
> this is not what you would want in the official version, so I am willing to
> let this be my own local change.

you generate work for yourself. you will need to merge your changes with
next releases which (hopefully) fix some bugs.

cheers,
--
Pawel
_______________________________________________
Mailredirect mailing list
Mailredirect@...
http://mozdev.org/mailman/listinfo/mailredirect