[pve-devel] [PATCH 1/2] GUI: add new email_from option to datacenter.cfg

Stanislav German-Evtushenko ginermail at gmail.com
Thu Sep 4 11:02:35 CEST 2014


On Thu, Sep 4, 2014 at 12:51 PM, Dietmar Maurer <dietmar at proxmox.com> wrote:

> > So would it be possible to add the '-f $mailfrom' flag inside pve-
> > magager/bin/pvemailforward.pl instead?
> >
> > You are right. However -f $mailfrom is not enough, we would need to
> change
> > email body too.
> > This can be done by procmail or you know something better for perl?
>
> Just adopt your patch and set '-f $mailfrom' inside pvemailforward.pl.
> The mail from header is not really relevant for mail delivery, so I am not
> sure if we need/want to change it at all?
>

This just won't look beautiful :) Also it would matter for those who filter
emails in their email clients by the From field.
What about this? I've checked with manual substitution for $mailfrom and
this seems to work as expected.
open(CMD, "|procmail -f $mailfrom | sendmail -bm -N never -f $mailfrom
$mailto") ||
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20140904/549d1fde/attachment.htm>


More information about the pve-devel mailing list