On Wed, Mar 12, 2008 at 02:22:34PM -0500, John Goerzen wrote: > I'm running archivemail from a script that gets run nightly. I want > it to archive all mails in certain mailboxes. > > I initially tried -d 0 or -d 1, but that didn't quite do it. > > So then I tried --date `date -d tomorrow +%F`, but that also didn't > quite do it. > > So now I've been using archivemail --date 2037-01-01 for some time. > > This does what I want most of the time.
Erm, this doesn't exactly look like the expected user experience. :-) > Except, for some unknown > reason, there are certain messages that it never moves out of the > mailbox. One has been sitting there since October. So, there may be two problems, right? 1) you need to fiddle with bogus cutoff dates, 2) this still doesn't do it. > I've looked at > the headers and don't see anything awry, and paid cloase attention to > the date header as well. I could sent you these messages, or their > headers, in private if needed. I don't know about flaws in archivemail's date header logic. So yes, it would be nice if you could send me messages which trigger this. > So this request is twofold: > > 1) There seems to be a bug in the message selection logic > > 2) It would be convenient to have a flag to tell it to just process > all mail, regardless of date Regarding 2), this is sf.net tracker #1764846[1], which was filed as a (insufficient) patch. I agree that such an option looks natural. But to my knowledge, "-d 0" really should do it, at least with local mail folders; it won't catch all messages in IMAP folders because the IMAP server-side search is too inaccurate, by definition of the IMAP protocol. Regards, Nikolaus (archivemail maintainer) [1] http://sourceforge.net/tracker/index.php?func=detail&aid=1764846&group_id=49630&atid=456912 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]