Problem with copying message to the server
Jiri Cerny
ji.cerny at gmail.com
Wed Jan 26 20:40:33 GMT 2011
I have the following problem when syncing maildir with IMAP server (MS
Exchange). The steps how the problem arrives are as follows:
1. offlineimap --- syncing is done OK
2. in mutt move or copy a message from one copy of IMAP folder to
another copy of IMAP folder
3. offlineimap again. When offlineimap copies the message to the
server I get a python exception as in the log below.
I tried with the current git version and I get the same error.
Thanks for your help,
Jiri
This is OfflineIMAP 6.2.0
Python: 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)]
Platform: linux2
Args: ['/usr/bin/offlineimap', '-l', '/tmp/bla', '-d', 'imap,maildir']
MainThread: OfflineIMAP 6.2.0
Copyright (C) 2002 - 2009 John Goerzen <jgoerzen at complete.org>
This software comes with ABSOLUTELY NO WARRANTY; see the file
COPYING for details. This is free software, and you are welcome
to distribute it under the conditions laid out in COPYING.
MainThread: Now debugging for imap: IMAP protocol debugging
MainThread: Now debugging for maildir: Maildir repository debugging
Account sync UNIV: ***** Processing account UNIV
Account sync UNIV: DEBUG[maildir]: MaildirRepository initialized, sep is '.'
Account sync UNIV: Copying folder structure from IMAP to Maildir
Account sync UNIV: Establishing connection to mail.foo.bar:993.
Account sync UNIV: DEBUG[imap]: 11:11.01 imaplib version 2.58
Account sync UNIV: DEBUG[imap]: 11:11.01 new IMAP4 connection, tag=GEDG
Account sync UNIV: DEBUG[imap]: 11:11.05 < * OK The Microsoft
Exchange IMAP4 service is ready.
Account sync UNIV: DEBUG[imap]: 11:11.05 matched r'\*
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' The Microsoft Exchange
IMAP4 service is ready.', 'The Microsoft Exchange IMAP4 service is
ready.')
Account sync UNIV: DEBUG[imap]: 11:11.05 untagged_responses[OK] 0 +=
["The Microsoft Exchange IMAP4 service is ready."]
Account sync UNIV: DEBUG[imap]: 11:11.05 > GEDG0 CAPABILITY
Account sync UNIV: DEBUG[imap]: 11:11.06 < * CAPABILITY IMAP4
IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN CHILDREN IDLE NAMESPACE
LITERAL+
Account sync UNIV: DEBUG[imap]: 11:11.06 matched r'\*
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('CAPABILITY', ' IMAP4 IMAP4rev1
AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN CHILDREN IDLE NAMESPACE LITERAL+',
'IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN CHILDREN IDLE
NAMESPACE LITERAL+')
Account sync UNIV: DEBUG[imap]: 11:11.06
untagged_responses[CAPABILITY] 0 += ["IMAP4 IMAP4rev1 AUTH=NTLM
AUTH=GSSAPI AUTH=PLAIN CHILDREN IDLE NAMESPACE LITERAL+"]
Account sync UNIV: DEBUG[imap]: 11:11.06 < GEDG0 OK CAPABILITY completed.
Account sync UNIV: DEBUG[imap]: 11:11.06 matched r'(?P<tag>GEDG\d+)
(?P<type>[A-Z]+) (?P<data>.*)' => ('GEDG0', 'OK', 'CAPABILITY
completed.')
Account sync UNIV: DEBUG[imap]: 11:11.06
untagged_responses[CAPABILITY] => ['IMAP4 IMAP4rev1 AUTH=NTLM
AUTH=GSSAPI AUTH=PLAIN CHILDREN IDLE NAMESPACE LITERAL+']
Account sync UNIV: DEBUG[imap]: 11:11.06 CAPABILITIES: ('IMAP4',
'IMAP4REV1', 'AUTH=NTLM', 'AUTH=GSSAPI', 'AUTH=PLAIN', 'CHILDREN',
'IDLE', 'NAMESPACE', 'LITERAL+')
Account sync UNIV: DEBUG[imap]: Attempting plain authentication
.....
MainThread: Thread 'New msg sync from TODO' terminated with exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/offlineimap/threadutil.py",
line 149, in run
Thread.run(self)
File "/usr/lib64/python2.7/threading.py", line 483, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py",
line 213, in syncmessagesto_neguid_msg
successuid = tryappend.savemessage(uid, message, flags, rtime)
File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py",
line 341, in savemessage
date, content)[0] == 'OK')
File "/usr/lib64/python2.7/imaplib.py", line 317, in append
return self._simple_command(name, mailbox, flags, date_time)
File "/usr/lib64/python2.7/imaplib.py", line 1060, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/usr/lib64/python2.7/imaplib.py", line 895, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
error: APPEND command error: BAD ['Command Argument Error. 11']
Last 50 debug messages logged for New msg sync from TODO prior to exception:
imap: 11:11.45 < * 155 EXISTS
imap: 11:11.45 matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)(
(?P<data2>.*))?' => ('155', 'EXISTS', None, None)
imap: 11:11.45 untagged_responses[EXISTS] 0 += ["155"]
imap: 11:11.45 < * 0 RECENT
imap: 11:11.45 matched r'\* (?P<data>\d+) (?P<type>[A-Z-]+)(
(?P<data2>.*))?' => ('0', 'RECENT', None, None)
imap: 11:11.45 untagged_responses[RECENT] 0 += ["0"]
imap: 11:11.45 < * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
imap: 11:11.45 matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' =>
('FLAGS', ' (\\Seen \\Answered \\Flagged \\Deleted \\Draft $MDNSent)',
'(\\Seen \\Answered \\Flagged \\Deleted \\Draft $MDNSent)')
imap: 11:11.45 untagged_responses[FLAGS] 0 += ["(\Seen \Answered
\Flagged \Deleted \Draft $MDNSent)"]
imap: 11:11.45 < * OK [PERMANENTFLAGS (\Seen \Answered \Flagged
\Deleted \Draft $MDNSent)] Permanent flags
imap: 11:11.45 matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' =>
('OK', ' [PERMANENTFLAGS (\\Seen \\Answered \\Flagged \\Deleted
\\Draft $MDNSent)] Permanent flags', '[PERMANENTFLAGS (\\Seen
\\Answered \\Flagged \\Deleted \\Draft $MDNSent)] Permanent flags')
imap: 11:11.45 untagged_responses[OK] 0 += ["[PERMANENTFLAGS (\Seen
\Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags"]
imap: 11:11.45 matched r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]'
=> ('PERMANENTFLAGS', ' (\\Seen \\Answered \\Flagged \\Deleted \\Draft
$MDNSent)', '(\\Seen \\Answered \\Flagged \\Deleted \\Draft
$MDNSent)')
imap: 11:11.45 untagged_responses[PERMANENTFLAGS] 0 += ["(\Seen
\Answered \Flagged \Deleted \Draft $MDNSent)"]
imap: 11:11.45 < * OK [UNSEEN 1] Is the first unseen message
imap: 11:11.45 matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' =>
('OK', ' [UNSEEN 1] Is the first unseen message', '[UNSEEN 1] Is the
first unseen message')
imap: 11:11.45 untagged_responses[OK] 1 += ["[UNSEEN 1] Is the first
unseen message"]
imap: 11:11.45 matched r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]'
=> ('UNSEEN', ' 1', '1')
imap: 11:11.45 untagged_responses[UNSEEN] 0 += ["1"]
imap: 11:11.45 < * OK [UIDVALIDITY 77717] UIDVALIDITY value
imap: 11:11.45 matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' =>
('OK', ' [UIDVALIDITY 77717] UIDVALIDITY value', '[UIDVALIDITY 77717]
UIDVALIDITY value')
imap: 11:11.45 untagged_responses[OK] 2 += ["[UIDVALIDITY 77717]
UIDVALIDITY value"]
imap: 11:11.45 matched r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]'
=> ('UIDVALIDITY', ' 77717', '77717')
imap: 11:11.45 untagged_responses[UIDVALIDITY] 0 += ["77717"]
imap: 11:11.45 < * OK [UIDNEXT 175] The next unique identifier value
imap: 11:11.45 matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' =>
('OK', ' [UIDNEXT 175] The next unique identifier value', '[UIDNEXT
175] The next unique identifier value')
imap: 11:11.45 untagged_responses[OK] 3 += ["[UIDNEXT 175] The next
unique identifier value"]
imap: 11:11.45 matched r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]'
=> ('UIDNEXT', ' 175', '175')
imap: 11:11.45 untagged_responses[UIDNEXT] 0 += ["175"]
imap: 11:11.45 < GEDG12 OK [READ-WRITE] SELECT completed.
imap: 11:11.45 matched r'(?P<tag>GEDG\d+) (?P<type>[A-Z]+)
(?P<data>.*)' => ('GEDG12', 'OK', '[READ-WRITE] SELECT completed.')
imap: 11:11.45 matched r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]'
=> ('READ-WRITE', None, None)
imap: 11:11.45 untagged_responses[READ-WRITE] 0 += [""]
imap: savemessage: using date "26-led-2011 18:23:44 +0100"
imap: savemessage: initial content is: ... something ...
imap: savemessage: new headers are:
X-OfflineIMAP-x204791012-4554485a2d72656d6f7465-544f444f:
1296072671-0277019185223-v6.2.0
imap: savemessage_addheader: called to add
X-OfflineIMAP-x204791012-4554485a2d72656d6f7465-544f444f:
1296072671-0277019185223-v6.2.0
imap: savemessage_addheader: insertionpoint = 77
imap: savemessage_addheader: leader = ... something ...
imap: savemessage_addheader: newline = ... something ...
imap: savemessage_addheader: trailer = ... something ...
imap: savemessage: new content is: ... something ...
imap: savemessage: new content length is 3294
imap: 11:11.45 > GEDG13 APPEND TODO (\Seen) "26-led-2011 18:23:44
+0100" {3294}
imap: 11:11.46 < + Ready for additional command text.
imap: 11:11.46 matched r'\+( (?P<data>.*))?' => (' Ready for
additional command text.', 'Ready for additional command text.')
imap: 11:11.46 write literal size 3294
imap: 11:11.73 < GEDG13 BAD Command Argument Error. 11
imap: 11:11.73 matched r'(?P<tag>GEDG\d+) (?P<type>[A-Z]+)
(?P<data>.*)' => ('GEDG13', 'BAD', 'Command Argument Error. 11')
imap: 11:11.73 BAD response: Command Argument Error. 11
More information about the OfflineIMAP-project
mailing list