bitozoid | 12 Mar 2012 12:15
Picon

Rewrite From in header

Hi,

I'd love msmtp to be used to send mails from my system. In particular,
Anacron writes the header of the mail as:
From: Anacron <root>

The envelope is well rewritten, but not the header. Can msmtp do that?

Thanks in advance,
-Eduardo

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Martin Lambers | 12 Mar 2012 16:05
Picon

Re: Rewrite From in header

Hi!

On Mon, 12 Mar 2012 11:15:45 +0000, bitozoid wrote:
> I'd love msmtp to be used to send mails from my system. In particular,
> Anacron writes the header of the mail as:
> From: Anacron <root>
> 
> The envelope is well rewritten, but not the header. Can msmtp do that?

No; one of the principles of msmtp is to never touch the mail content.
But you could use a small wrapper around msmtp that uses e.g. formail
(from the procmail package) to rewrite your headers.

Martin

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Keith Bowes | 12 Mar 2012 22:11
Picon
Gravatar

Re: Rewrite From in header

Je 2012-03-12 je 16:05:32 (+0100) Martin Lambers skribis:
> 
> No; one of the principles of msmtp is to never touch the mail content.
> But you could use a small wrapper around msmtp that uses e.g. formail
> (from the procmail package) to rewrite your headers.
> 

Unfortunate.  It would be really nice to add msmtp/version to the
User-Agent header.

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure

Gmane