[imapfilter-devel] Moving mail between accounts failing

John Webster jwebster at es.net
Wed Jun 1 23:31:14 EEST 2005


I'm trying to copy message between accounts on different servers,
unfortunately the copying is failing with the following error
message.  Am I doing something wrong?

imapfilter: /usr/local/share/imapfilter/interface.lua:251: bad argument #5 to `append' (string expected, got nil)


===============
I'm using the following code with imapfilter-1.0.1:
===============
---------------
--  Filters  --
---------------

umail = {
        'undeleted',
}

----------------
-- Commands  --
----------------

-- Get status (messages, recent, unseen) of the mailbox.
check(myaccount, 'to_me_misc')
check(myaccount2, 'to_me_misc')

-- Copy mail from imapato imapb
results = match(myaccount, 'to_me_misc', umail)
copy(myaccount, 'to_me_misc', myaccount2, 'to_me_misc', results)



===============
Verbose output:
===============
S (4): * OK IMAP3 (internal) IMAP4rev1 Wed, 01 Jun 2005 13:19:36 -0700
C (4): 1000 CAPABILITY
S (4): 1000 OK CAPABILITY Completed
C (4): 1001 AUTHENTICATE CRAM-MD5
S (4): 1001 OK AUTHENTICATE Completed
C (4): 1002 NAMESPACE
S (4): 1002 OK NAMESPACE Completed
C (4): 1003 STATUS "to_me_misc" (MESSAGES RECENT UNSEEN)
S (4): 1003 OK STATUS Completed
4 messages, 0 recent, 4 unseen, in webster at imapa/to_me_misc.
S (5): * OK imapb Cyrus IMAP4 v2.2.12-Invoca-RPM-2.2.12-1.1.fc3 server ready
C (5): 1004 CAPABILITY
S (5): 1004 OK Completed
C (5): 1005 AUTHENTICATE CRAM-MD5
S (5): 1005 OK Success (tls protection)
C (5): 1006 NAMESPACE
S (5): 1006 OK Completed
C (5): 1007 STATUS "to_me_misc" (MESSAGES RECENT UNSEEN)
S (5): 1007 OK Completed
0 messages, 0 recent, 0 unseen, in webster at imapb/to_me_misc.
C (4): 1008 SELECT "to_me_misc"
S (4): 1008 OK [READ-WRITE] SELECT Completed
C (4): 1009 UID SEARCH ALL (undeleted)
S (4): 1009 OK UID SEARCH Completed
C (4): 100A SELECT "to_me_misc"
S (4): 100A OK [READ-WRITE] SELECT Completed
C (4): 100B UID FETCH 1 FAST
S (4): 100B OK UID FETCH Completed
C (4): 100C UID FETCH 2 FAST
S (4): 100C OK UID FETCH Completed
C (4): 100D UID FETCH 3 FAST
S (4): 100D OK UID FETCH Completed
C (4): 100E UID FETCH 4 FAST
S (4): 100E OK UID FETCH Completed
C (4): 100F SELECT "to_me_misc"
S (4): 100F OK [READ-WRITE] SELECT Completed
C (4): 1010 UID FETCH 1 BODY.PEEK[HEADER]
S (4): 1010 OK UID FETCH Completed
C (4): 1011 UID FETCH 1 BODY.PEEK[TEXT]
S (4): 1011 OK UID FETCH Completed
C (4): 1012 UID FETCH 2 BODY.PEEK[HEADER]
S (4): 1012 OK UID FETCH Completed
C (4): 1013 UID FETCH 2 BODY.PEEK[TEXT]
S (4): 1013 OK UID FETCH Completed
C (4): 1014 UID FETCH 3 BODY.PEEK[HEADER]
S (4): 1014 OK UID FETCH Completed
C (4): 1015 UID FETCH 3 BODY.PEEK[TEXT]
S (4): 1015 OK UID FETCH Completed
C (4): 1016 UID FETCH 4 BODY.PEEK[HEADER]
S (4): 1016 OK UID FETCH Completed
C (4): 1017 UID FETCH 4 BODY.PEEK[TEXT]
S (4): 1017 OK UID FETCH Completed
imapfilter: /usr/local/share/imapfilter/interface.lua:251: bad argument #5 to `append' (string expected, got nil)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20050601/700f62b2/attachment.pgp>


More information about the Imapfilter-devel mailing list