Hello, there is a way with a sieve rule to add a Date: header when it is missing? Adding one with the time of reception of the message or using the date from the the first Received: header would be good options. Unfortunately I'm receiving some useful automated messages that lack a Date header and this screws up the sorting in my imap clients. I have a script to fix those acting on the Maildir storage, but I would prefer to have the thing solved more radically. Thanks. Cheers, Daniele
Am 17.07.2014 16:13, schrieb Daniele Nicolodi:> there is a way with a sieve rule to add a Date: header when it is > missing? Adding one with the time of reception of the message or using > the date from the the first Received: header would be good options. > > Unfortunately I'm receiving some useful automated messages that lack a > Date header and this screws up the sorting in my imap clients. I have a > script to fix those acting on the Maildir storage, but I would prefer to > have the thing solved more radicallyin no case that's dovecot related if at all the MTA has to deal with metadata as it does with missing message-id's - LDA/LMTP should never change anything inside a message and just store "as it is" BTW: i guess smokeping Fedora has fixed that after a bugreport from me months ago -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 246 bytes Desc: OpenPGP digital signature URL: <dovecot.org/pipermail/dovecot/attachments/20140717/58c3468e/attachment.sig>
On -10.01.-28163 20:59, Daniele Nicolodi wrote:> Unfortunately I'm receiving some useful automated messages that lack a > Date header and this screws up the sorting in my imap clients. I have a > script to fix those acting on the Maildir storage, but I would prefer to > have the thing solved more radically.RFC 5322 3.6. (and AFAIK *all* its predecessors) marks the Date: header as mandatory. sendmail used to forcibly add one if missing, I'm not sure about other MTAs (and MSAs). I'ld recommend to try fixing the problem as early and globally as possible, rather than on the last yard into *one specific* mailbox. Regards, J. Bern -- *NEU* - NEC IT-Infrastruktur-Produkte im <linworks-shop.de>: Server--Storage--Virtualisierung--Management SW--Passion for Performance Jochen Bern, Systemingenieur --- LINworks GmbH <LINworks.de> Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27 Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202 Unternehmenssitz Weiterstadt, Gesch?ftsf?hrer Metin Dogan, Oliver Michel
Am 17.07.2014 16:13, schrieb Daniele Nicolodi:> Hello, > > there is a way with a sieve rule to add a Date: header when it is > missing? Adding one with the time of reception of the message or using > the date from the the first Received: header would be good options. > > Unfortunately I'm receiving some useful automated messages that lack a > Date header and this screws up the sorting in my imap clients. I have a > script to fix those acting on the Maildir storage, but I would prefer to > have the thing solved more radically. > > Thanks. Cheers, > Daniele >tools.ietf.org/html/rfc5260#section-5.1 Finally, currentdate can be used in conjunction with the editheader extension to insert a header-field containing date/time information: require ["variables", "date", "editheader"]; if currentdate :matches "std11" "*" {addheader "Processing-date" "${0}";} -- Alex JOST