
mark at markfalk
May 13, 2009, 12:15 PM
Post #3 of 4
(1199 views)
Permalink
|
Thanks for the reply. I may end up biting the bullet and moving to maildir. I'm actually using procmail as my LDA, and not sure I want to convert my recipes to sieve. Mark -----Original Message----- From: Kyle Wheeler [mailto:kyle-qmail [at] memoryhole] Sent: Tuesday, May 12, 2009 4:30 PM To: qmail [at] list Subject: Re: mbox file rfc 4155 iPhone fail -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Tuesday, May 12 at 04:10 PM, quoth Mark Falk: > I'm using qmail with Dovecot for IMAP. Are you using qmail to deliver to the mbox, or are you using Dovecot's LDA? > The problem I'm having is that the timestamps on my iPhone are all 7 > hours ahead. In outlook they are fine. They're reporting different timestamps - Outlook is parsing the header, while the iPhone is displaying the server's INTERNALDATE. > http://homepages.tesco.net./~J.deBoynePollard/FGA/mail-mbox-formats.html I've never run into this specific issue, but this is one (of many) of the reasons I tend to avoid using mbox unless there's an overwhelming benefit to using it (e.g. archival storage). Unfortunately, aside from the RFC you cite (which is relatively recent), as you can tell there's very little in the way of a "standardized" mbox format. Jonathan's webpage even says "For best results, and for the same reasons that filesystem formats store file timestamps in UTC, the delivery date should be treated as the UTC time of delivery." But that's advice, not a requirement of the format. Since there are so many mutually incompatable mbox formats, generally speaking the best way to handle mbox is to use as few different pieces of software to operate on them as you can. In other words, I think the solution to your problem is to use the Dovecot LDA to deliver messages to the mbox instead of qmail or whatever other tool you're using. That way the date is stored in whatever format Dovecot prefers it to be in (e.g. if Dovecot deviates from whatever published mbox "standard" (an amusing concept) we can find, it won't matter, because the mbox is only ever touched by Dovecot). Generally speaking, using Dovecot's LDA is accomplished by adding something like this to your .qmail file: |deliver -m INBOX # That is equivalent to: # ./Mailbox You may need additional arguments to `deliver` depending on your Dovecot setup. ~Kyle - -- If you make people think they're thinking, they'll love you; but if you really make them think, they'll hate you. -- Don Marquis -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iQIcBAEBCAAGBQJKCgZaAAoJECuveozR/AWe9mcP/2SZ4Onppic9WAPs9yeJ+GGq BQYPRxHvUg6d0OkxEVcmt9MGsWQP13/L0s8QZMxFrbCRN1ohTkzcrb0orhrj71jM Ns1FK24sEsvS9V8Q+SgjSI9pjwFjPH/JJNfZV427kDpSTuw0Bq/9TTgusIIqQpCc 2EyE29iN8HprGb1xn/kC5DkMabOIcPOiAF6A6pVV2dVDSmfxyJdxoIQttEA0mGxi OoAUae85sLNK57e4vSxgei5W73KConogt6GwtCTMBJemEnKt5hHpIExXgxOuCCL7 V+sehQ3VEyzI0TZ8m+hQ0e02GqOA6k9guBjhIjoLlPPM7/QEFGFF4muGPlfNuKN8 gvqA77PUxO29E4veSb487oggqYIzxLUzzbaJUohx4NCOqQL15uHpaXI8Ubogc2if HD56x83/paP/ZbTv0YStvbcZawbdqVCMz7Kzp4OjJVQgFbOXXDXpRsCvpTKCCMwd sgxZlq2bn87ZEp1khs7E6GfV7AwPGJ3nQaUXTG8aI4va4ffOb4Js9SI0Dt1qYb2n I7vUl0DBLgr3/tp8WhZ8YXMCzG33wYXTwf1h6QOzQ2SSxhh4VOeYei/ssT09dfhZ lGayoC9HUGZDgi48oKP7+9AbhiZQLntuiry+XdM6qtxnEe6ArmgpPekSxaLewUQq nY+zmswZcby2Tm2O/HGQ =sK5Y -----END PGP SIGNATURE-----
|