[imapfilter-devel] Messages sometimes saved to listname-%Y-%m
Greg Gilbert
greg at treke.net
Thu Feb 5 23:02:41 EET 2004
I have imapfilter set up to filter mailing list mail over 30 days
old into an archives folder. In many cases, instead of being tagged
with the date of the messages, the folder name will end in %Y-%m.
The server is running uw-imapd and I'm using imapfilter 0.9.5.
I'm using the following imapfilterrc:
logfile = /home/ggilbert/.imapfilter.log
set timeout = 120
expunge = no
subscribe = yes
namespace = yes
account treke ggilbert:PASSWORD_REMOVED at localhost:143
folder lists lists/foo
filter archive-recent
older 30
action move archive/$_/$_- at Y-@m
job archive-recent lists
I ran imapfilter with debug support enabled and got the following
log:
debug: configuration file: '/home/ggilbert/.imapfilterrc'
debug: ACCOUNT: 'treke'
debug: USERNAME: 'ggilbert'
debug: PASSWORD: 'PASSWORD_REMOVED'
debug: SERVER: 'localhost'
debug: PORT: 143
debug: FOLDER: 'lists'
debug: MBOX: 'lists/foo'
debug: FILTER: 'archive-recent' AND
debug: MASK: 'OLDER 30'
debug: ACTION: 3 '' 'archive/$_- at Y-@m' 0 ''
debug: JOB: 'archive-recent' 'lists'
debug: deleting FOLDER: 'lists'
debug: options: 0x000004c2 ''
debug: logfile: '/home/ggilbert/.imapfilter.log'
debug: getting response (primary):
* OK [CAPABILITY IMAP4REV1 X-NETSCAPE LOGIN-REFERRALS AUTH=LOGIN] tinman IMAP4rev1 2001.315 at Thu, 5 Feb 2004 12:57:51 -0800 (PST)
debug: sending command (primary):
1000 NOOP
debug: getting response (primary):
1000 OK NOOP completed
debug: sending command (primary):
1001 CAPABILITY
debug: getting response (primary):
* CAPABILITY IMAP4REV1 X-NETSCAPE NAMESPACE MAILBOX-REFERRALS SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND LOGIN-REFERRALS AUTH=LOGIN
1001 OK CAPABILITY completed
debug: sending command (primary):
1002 LOGIN "ggilbert" "PASSWORD_REMOVED"
debug: getting response (primary):
1002 OK [CAPABILITY IMAP4REV1 X-NETSCAPE NAMESPACE MAILBOX-REFERRALS SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User ggilbert authenticated
debug: sending command (primary):
1003 NAMESPACE
debug: getting response (primary):
* NAMESPACE (("" "/")("#mhinbox" NIL)("#mh/" "/")) (("~" "/")) (("#shared/" "/")("#ftp/" "/")("#news." ".")("#public/" "/"))
1003 OK NAMESPACE completed
debug: namespace (primary): 'mail/' '/'
debug: MAILBOX: 'mail/lists/foo'
debug: sending command (primary):
1004 STATUS "mail/lists/foo" (MESSAGES RECENT UNSEEN)
debug: getting response (primary):
* STATUS mail/lists/foo (MESSAGES 1 RECENT 0 UNSEEN 1)
1004 OK STATUS completed
debug: MAILBOX: 'mail/lists/foo'
debug: sending command (primary):
1005 SELECT "mail/lists/foo"
debug: getting response (primary):
* 1 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1076014596] UID validity status
* OK [UIDNEXT 2] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags
* OK [UNSEEN 1] first unseen message in /home/ggilbert/mail/lists/foo
1005 OK [READ-WRITE] SELECT completed
debug: sending command (primary):
1006 SEARCH BEFORE 06-Jan-2004
debug: getting response (primary):
* SEARCH 1
1006 OK SEARCH completed
debug: MAILBOX: 'mail/archive/$_- at Y-@m'
debug: sending command (primary):
1007 FETCH 1 BODY.PEEK[HEADER.FIELDS (DATE)]
debug: getting response (primary):
* 1 FETCH (BODY[HEADER.FIELDS ("DATE")] {36}
Date: 30 Oct 2002 09:21:07 +0100
)
1007 OK FETCH completed
debug: sending command (primary):
1008 COPY 1 "mail/archive/lists/foo-%Y-%m"
debug: getting response (primary):
* OK [TRYCREATE] Must create mailbox before copy
1008 NO [TRYCREATE] COPY failed: No such destination mailbox
debug: sending command (primary):
1009 CREATE "mail/archive/lists/foo-%Y-%m"
debug: getting response (primary):
1009 OK CREATE completed
debug: sending command (primary):
100A SUBSCRIBE "mail/archive/lists/foo-%Y-%m"
debug: getting response (primary):
100A NO SUBSCRIBE failed: Already subscribed to mailbox mail/archive/lists/foo-%Y-%m
debug: sending command (primary):
100B COPY 1 "mail/archive/lists/foo-%Y-%m"
debug: getting response (primary):
100B OK COPY completed
debug: sending command (primary):
100C STORE 1 +FLAGS.SILENT (\Deleted)
debug: getting response (primary):
100C OK STORE completed
debug: sending command (primary):
100D CLOSE
debug: getting response (primary):
100D OK CLOSE completed
debug: sending command (primary):
100E LOGOUT
debug: getting response (primary):
* BYE tinman IMAP4rev1 server terminating connection
100E OK LOGOUT completed
Connected to tinman.
1 message, 0 recent, 1 unseen, in mailbox "lists/foo".
1 message moved from "lists/foo" to mailbox "archive/$_- at Y-@m".
mail/archive/lists/foo-%Y-No such file or directory
Greg
More information about the Imapfilter-devel
mailing list