Just my $.02 (I'm not authoritative here):

I like this feature, but I think it should be a configuration option that 
should be disabled by default.  By queuing mail on errors, msmtp is acting 
similar to how a real mail server would, and real mail servers do not modify 
the message date on retransmissions, so I don't think msmtp should do that by 
default either.

As an example of why I would want to send emails with an old date (other than 
the fact that it is more consistent with what real mail servers do): I have 
some systems that generate security-related notifications that do not contain 
any timestamp other than the message date.  It is important for me to know when 
the notification was generated.  I don't really care when the message was 
actually sent (and I can check the 'Received' message headers if I really need 
to know).  And I don't generally have problems with message sorting like you 
mention here.  So I'd really like these messages to keep the old date on them.

Thanks,
-Paul

On Wed, Jul 02, 2014 at 05:29:49PM +0200, Kasimir Knallkopf wrote:
> Hi,
> 
> msmtpqueue is great to collect a couple of mails and send them out in one 
> batch. The only problem is that the mail files will contain the date when the 
> email was constructed and not when they are sent. This causes problems with 
> people receiving emails that are 24hrs or older and consequently don't show 
> up at the top of their pile.
> 
> The fix is to add this to the msmtp-runqueue.sh file:
> 
> # update all mail files
> for MAILFILE in *.mail; do
>     TMPFILE=$(mktemp)
>     echo "*** Updating date in $MAILFILE via $TMPFILE..."
>     sed -e "0,/Date:.*$/s//Date: $(date)/" $MAILFILE > $TMPFILE  && mv 
> $TMPFILE $MAILFILE
> done
> 
> 
> I was thinking to enable this through a passed parameter but then on the 
> other hand, why would you want to send emails with an old date.
> 
>  K.
> 
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> msmtp-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msmtp-users
> 

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
msmtp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msmtp-users

Reply via email to