[imapfilter-devel] move() loses email when target dir does not exist
Gautam Gopalakrishnan
gautam.gopalakrishnan at its.monash.edu.au
Wed Apr 7 00:20:25 EEST 2004
Hey,
I hope I am not missing anything obvious, but I am losing email when the
target folder does not exist. The imapfilter_config page says nothing
about creating mailboxes. Won't move() create the target mailboxes if
needed? I'm attaching the log and config.lua.
Gautam
-------------- next part --------------
options.timeout = 120
options.subscribe = true
acc1 = {
server = 'mail1.monash.edu.au',
username = 'ggop',
ssl = 'ssl3',
}
prompt = string.format('Enter password for %s@%s: ', acc1.username, acc1.server)
io.write(prompt)
os.execute('stty -echo')
acc1.password = io.read()
os.execute('stty echo')
f_twiki = {
'subject "TWiki.Enabling - Automated notification of topic changes"',
}
f_heat = {
'subject "Your group has been allocated HEAT Call"',
}
f_imapfilter = {
'header "sender" "imapfilter-devel-bounces at lists.hellug.gr"',
}
----------------
-- Commands --
----------------
check(acc1, 'INBOX')
results = match(acc1, 'INBOX', f_imapfilter)
move(acc1, 'INBOX', acc1, 'imapfilter-devel', results)
results = match(acc1, 'INBOX', f_heat)
move(acc1, 'INBOX', acc1, 'HEAT', results)
results = match(acc1, 'INBOX', f_twiki)
move(acc1, 'INBOX', acc1, 'Twiki', results)
-------------- next part --------------
Enter password for ggop at mail1.monash.edu.au: S: 3: * OK Messaging Multiplexor (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003))
C: 3: 1000 CAPABILITY
S: 3: 1000 OK CAPABILITY completed
C: 3: 1001 LOGIN "ggop" *
S: 3: 1001 OK User logged in
C: 3: 1002 NAMESPACE
S: 3: 1002 OK Completed
C: 3: 1003 STATUS "INBOX" (MESSAGES RECENT UNSEEN)
S: 3: 1003 OK Completed
6 messages, 6 recent, 6 unseen, in ggop at mail1.monash.edu.au/INBOX.
C: 3: 1004 SELECT "INBOX"
S: 3: 1004 OK [READ-WRITE] Completed
C: 3: 1005 SEARCH ALL (header "sender" "imapfilter-devel-bounces at lists.hellug.gr")
S: 3: 1005 OK Completed
C: 3: 1006 SEARCH ALL (subject "Your group has been allocated HEAT Call")
S: 3: 1006 OK Completed
C: 3: 1007 COPY 1,2,3,4,5,6 "imapfilter-devel"
S: 3: 1007 NO Mailbox does not exist
C: 3: 1008 STORE 1,2,3,4,5,6 +FLAGS.SILENT (\Deleted)
S: 3: 1008 OK Completed
C: 3: 1009 EXPUNGE
S: 3: 1009 OK Completed
6 messages moved from ggop at mail1.monash.edu.au/INBOX to ggop at mail1.monash.edu.au/imapfilter-devel.
C: 3: 100A SEARCH ALL (subject "TWiki.Enabling - Automated notification of topic changes")
S: 3: 100A OK Completed
C: 3: 100B LOGOUT
S: 3: 100B OK Completed
More information about the Imapfilter-devel
mailing list