On Sun, 18 Feb 2007, Mark Crispin wrote:

On Sun, 18 Feb 2007, Per Foreby wrote:
        mailutil prune INBOX "before 1-jan-2004"
But IMAP2 (and IMAP3) specifies date as "dd-mmm-yy", it is not until 4r1 that date_year is four digits.

IMAP2 did no such thing, although I see how you could be confused by the ambiguous syntax rules in RFC 1176. The syntax rule for BEFORE was "string", not "date"; and the only occurance of dd-mmm-yy syntax is in "date". IMAP2 (like all other IMAP versions) only takes a date specification in SEARCH and not a date-time.

Sorry for the mistake, but as you say, it's easy to be confused. Finding "BEFORE <date>" in 2060, I did of course look for "date" in the 1176 grammar.

(remember Postel's robustness principle!)

Sure do, I try to live by it in my everyday programming. The best example of the importance of this principle is probably rfc822. An MTA that follow the RFC by the word, wouldn't get many messages through. Learned that the hard way in the early 90' when I tried to maintain a local MTA written (in perl) by a former colleague. Ended up throwing it out, and installed the newly revived sendmail.

mailutil uses IMAP2 search programs. It does not support IMAP4rev1 search programs, and it won't.

IMAP2 syntax will do just fine for my needs. Just wanted to be absolutely sure about the sytax since pruning is serious business.

/Per
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to