Re: [Dovecot] Maildir files with mtime in the future

2009-04-03 Thread Holger Weiss
* Timo Sirainen [2009-04-03 12:44]: > On Thu, 2009-04-02 at 19:36 +0200, Holger Weiss wrote: > > However, if the client does so, Dovecot will set the mtime of the > > Maildir file in question to the date specified by the client even if > > it's in the future. Since files with an mtime in the futu

Re: [Dovecot] Maildir files with mtime in the future

2009-04-03 Thread Timo Sirainen
On Thu, 2009-04-02 at 19:36 +0200, Holger Weiss wrote: > However, if the client does so, Dovecot will set the mtime of the > Maildir file in question to the date specified by the client even if > it's in the future. Since files with an mtime in the future can cause > all sorts of trouble (e.g., th

Re: [Dovecot] Maildir files with mtime in the future

2009-04-03 Thread Holger Weiss
* Ben Winslow [2009-04-03 10:59]: > On Fri, 3 Apr 2009 01:14:47 +0200 > Holger Weiss wrote: > > I'd guess most backup software will include files with an mtime newer > > than the time of the previous backup in incremental backups. At > > least, Bacula[*] and Veritas NetBackup do it that way. >

Re: [Dovecot] Maildir files with mtime in the future

2009-04-03 Thread Ben Winslow
On Fri, 3 Apr 2009 01:14:47 +0200 Holger Weiss wrote: > I'd guess most backup software will include files with an mtime newer > than the time of the previous backup in incremental backups. At > least, Bacula[*] and Veritas NetBackup do it that way. Aren't IMAP messages supposed to be immutable?

Re: [Dovecot] Maildir files with mtime in the future

2009-04-02 Thread Holger Weiss
* Timo Sirainen [2009-04-02 19:35]: > On Fri, 2009-04-03 at 01:14 +0200, Holger Weiss wrote: > > > This is a problem only with Maildir, so if the code is added it should > > > go to maildir-save.c. > > > > The mtime-problem is Maildir-specific, but an INTERNALDATE in the future > > is obviously i

Re: [Dovecot] Maildir files with mtime in the future

2009-04-02 Thread Timo Sirainen
On Fri, 2009-04-03 at 01:14 +0200, Holger Weiss wrote: > > This is a problem only with Maildir, so if the code is added it should > > go to maildir-save.c. > > The mtime-problem is Maildir-specific, but an INTERNALDATE in the future > is obviously incorrect in any case. Not necessarily. Although

Re: [Dovecot] Maildir files with mtime in the future

2009-04-02 Thread Holger Weiss
* Timo Sirainen [2009-04-02 18:44]: > On Thu, 2009-04-02 at 19:36 +0200, Holger Weiss wrote: > > | If a date-time is specified, the internal date SHOULD be set in the > > | resulting message; otherwise, the internal date of the resulting > > | message is set to the current date and time by default

Re: [Dovecot] Maildir files with mtime in the future

2009-04-02 Thread Timo Sirainen
On Thu, 2009-04-02 at 19:36 +0200, Holger Weiss wrote: > | If a date-time is specified, the internal date SHOULD be set in the > | resulting message; otherwise, the internal date of the resulting > | message is set to the current date and time by default. > > [ ftp://ftp.fu-berlin.de/doc/rfc/rfc35

[Dovecot] Maildir files with mtime in the future

2009-04-02 Thread Holger Weiss
If Maildir storage is used, the mtime of a given Maildir file is set to the message's INTERNALDATE. Now, when a client APPENDs a message to an IMAP mailbox, the client may optionally specify the INTERNALDATE: | If a date-time is specified, the internal date SHOULD be set in the | resulting messag