ERROR in syncfolder for (username) folder INBOX : null byte in argument for long()

chris coleman christocoleman at yahoo.com
Thu Apr 28 09:42:12 BST 2011



Here's an excerpt of crashlog2, before and after the ERROR :


........
MainThread: DEBUG[imap]: imapsplit() called with input: (\HasNoChildren) "/" 
"INBOX/Sent"
MainThread: DEBUG[imap]: imapsplit() returning: ['(\\HasNoChildren)', '"/"', 
'"INBOX/Sent"']
MainThread: DEBUG[imap]: imapsplit() called with input: \HasNoChildren
MainThread: DEBUG[imap]: imapsplit() returning: ['\\HasNoChildren']
MainThread: DEBUG[imap]: dequote() called with input: "INBOX/Sent"
MainThread: DEBUG[imap]: dequote() returning: INBOX/Sent
MainThread: DEBUG[imap]: dequote() called with input: INBOX/Sent
MainThread: DEBUG[imap]: imapsplit() called with input: (\HasNoChildren) "/" 
"INBOX/Trash"
MainThread: DEBUG[imap]: imapsplit() returning: ['(\\HasNoChildren)', '"/"', 
'"INBOX/Trash"']
MainThread: DEBUG[imap]: imapsplit() called with input: \HasNoChildren
MainThread: DEBUG[imap]: imapsplit() returning: ['\\HasNoChildren']
MainThread: DEBUG[imap]: dequote() called with input: "INBOX/Trash"
MainThread: DEBUG[imap]: dequote() returning: INBOX/Trash
MainThread: DEBUG[imap]: dequote() called with input: INBOX/Trash
Folder sync username[INBOX]: DEBUG[imap]: dequote() called with input: INBOX
Folder sync username[INBOX]: DEBUG[imap]:   58:38.34 > JIHF4 SELECT INBOX
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * FLAGS (\Answered 
\Flagged \Draft \Deleted \Seen NonJunk Junk $Forwarded $MDNSent)
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('FLAGS', ' (\\Answered \\Flagged \\Draft 
\\Deleted \\Seen NonJunk Junk $Forwarded $MDNSent)', '(\\Answered \\Flagged 
\\Draft \\Deleted \\Seen NonJunk Junk $Forwarded $MDNSent)')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[FLAGS] 0 
+= ["(\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk $Forwarded 
$MDNSent)"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * OK [PERMANENTFLAGS 
(\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk $Forwarded $MDNSent \*)]  

Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [PERMANENTFLAGS (\\Answered 
\\Flagged \\Draft \\Deleted \\Seen NonJunk Junk $Forwarded $MDNSent \\*)]  ', 
'[PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen NonJunk Junk 
$Forwarded $MDNSent \\*)]  ')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[OK] 0 += 
["[PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk 
$Forwarded $MDNSent \*)]  "]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('PERMANENTFLAGS', ' (\\Answered 
\\Flagged \\Draft \\Deleted \\Seen NonJunk Junk $Forwarded $MDNSent \\*)', 
'(\\Answered \\Flagged \\Draft \\Deleted \\Seen NonJunk Junk $Forwarded $MDNSent 
\\*)')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 
untagged_responses[PERMANENTFLAGS] 0 += ["(\Answered \Flagged \Draft \Deleted 
\Seen NonJunk Junk $Forwarded $MDNSent \*)"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * 11943 EXISTS
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<data>\d+) (?P<type>[A-Z-]+)( (?P<data2>.*))?' => ('11943', 'EXISTS', None, 
None)
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[EXISTS] 
0 += ["11943"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * 0 RECENT
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<data>\d+) (?P<type>[A-Z-]+)( (?P<data2>.*))?' => ('0', 'RECENT', None, None)
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[RECENT] 
0 += ["0"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * OK [UNSEEN 2]  
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [UNSEEN 2]  ', '[UNSEEN 2]  ')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[OK] 1 += 
["[UNSEEN 2]  "]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('UNSEEN', ' 2', '2')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[UNSEEN] 
0 += ["2"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * OK [UIDVALIDITY 
1287904595]  

Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [UIDVALIDITY 1287904595]  ', 
'[UIDVALIDITY 1287904595]  ')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[OK] 2 += 
["[UIDVALIDITY 1287904595]  "]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('UIDVALIDITY', ' 1287904595', 
'1287904595')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 
untagged_responses[UIDVALIDITY] 0 += ["1287904595"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * OK [UIDNEXT 46024]  
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [UIDNEXT 46024]  ', '[UIDNEXT 
46024]  ')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[OK] 3 += 
["[UIDNEXT 46024]  "]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('UIDNEXT', ' 46024', '46024')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[UIDNEXT] 
0 += ["46024"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * OK [NOMODSEQ] Sorry, 
modsequences have not been enabled on this mailbox
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [NOMODSEQ] Sorry, modsequences 
have not been enabled on this mailbox', '[NOMODSEQ] Sorry, modsequences have not 
been enabled on this mailbox')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[OK] 4 += 
["[NOMODSEQ] Sorry, modsequences have not been enabled on this mailbox"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('NOMODSEQ', None, None)
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 
untagged_responses[NOMODSEQ] 0 += [""]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < * OK [URLMECH INTERNAL]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [URLMECH INTERNAL]', '[URLMECH 
INTERNAL]')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[OK] 5 += 
["[URLMECH INTERNAL]"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('URLMECH', ' INTERNAL', 
'INTERNAL')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 untagged_responses[URLMECH] 
0 += ["INTERNAL"]
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 < JIHF4 OK [READ-WRITE] 
Completed
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched 
r'(?P<tag>JIHF\d+) (?P<type>[A-Z]+) (?P<data>.*)' => ('JIHF4', 'OK', 
'[READ-WRITE] Completed')
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('READ-WRITE', None, None)
Folder sync username[INBOX]: DEBUG[imap]:   58:38.38 
untagged_responses[READ-WRITE] 0 += [""]
WARNING: ERROR in syncfolder for username folder INBOX: null byte in argument 
for long()
Folder sync username[INBOX.Drafts]: DEBUG[imap]: dequote() called with input: 
INBOX/Drafts
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 > JIHF5 SELECT 
"INBOX/Drafts"
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 < * FLAGS (\Answered 
\Flagged \Draft \Deleted \Seen $Forwarded Junk NonJunk)
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('FLAGS', ' (\\Answered \\Flagged \\Draft 
\\Deleted \\Seen $Forwarded Junk NonJunk)', '(\\Answered \\Flagged \\Draft 
\\Deleted \\Seen $Forwarded Junk NonJunk)')
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[FLAGS] 0 += ["(\Answered \Flagged \Draft \Deleted \Seen 
$Forwarded Junk NonJunk)"]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 < * OK 
[PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded Junk 
NonJunk \*)]  

Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [PERMANENTFLAGS (\\Answered 
\\Flagged \\Draft \\Deleted \\Seen $Forwarded Junk NonJunk \\*)]  ', 
'[PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen $Forwarded Junk 
NonJunk \\*)]  ')
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[OK] 0 += ["[PERMANENTFLAGS (\Answered \Flagged \Draft 
\Deleted \Seen $Forwarded Junk NonJunk \*)]  "]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('PERMANENTFLAGS', ' (\\Answered 
\\Flagged \\Draft \\Deleted \\Seen $Forwarded Junk NonJunk \\*)', '(\\Answered 
\\Flagged \\Draft \\Deleted \\Seen $Forwarded Junk NonJunk \\*)')
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[PERMANENTFLAGS] 0 += ["(\Answered \Flagged \Draft \Deleted 
\Seen $Forwarded Junk NonJunk \*)"]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 < * 213 EXISTS
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched r'\* 
(?P<data>\d+) (?P<type>[A-Z-]+)( (?P<data2>.*))?' => ('213', 'EXISTS', None, 
None)
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[EXISTS] 0 += ["213"]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 < * 0 RECENT
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched r'\* 
(?P<data>\d+) (?P<type>[A-Z-]+)( (?P<data2>.*))?' => ('0', 'RECENT', None, None)
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[RECENT] 0 += ["0"]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 < * OK [UIDVALIDITY 
1287904596]  

Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [UIDVALIDITY 1287904596]  ', 
'[UIDVALIDITY 1287904596]  ')
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[OK] 1 += ["[UIDVALIDITY 1287904596]  "]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('UIDVALIDITY', ' 1287904596', 
'1287904596')
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[UIDVALIDITY] 0 += ["1287904596"]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 < * OK [UIDNEXT 
786]  

Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [UIDNEXT 786]  ', '[UIDNEXT 786]  
')
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[OK] 2 += ["[UIDNEXT 786]  "]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('UIDNEXT', ' 786', '786')
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[UIDNEXT] 0 += ["786"]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 < * OK [NOMODSEQ] 
Sorry, modsequences have not been enabled on this mailbox
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched r'\* 
(?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [NOMODSEQ] Sorry, modsequences 
have not been enabled on this mailbox', '[NOMODSEQ] Sorry, modsequences have not 
been enabled on this mailbox')
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44 
untagged_responses[OK] 3 += ["[NOMODSEQ] Sorry, modsequences have not been 
enabled on this mailbox"]
Folder sync username[INBOX.Drafts]: DEBUG[imap]:   58:38.44     matched 
r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('NOMODSEQ', None, None)







________________________________


Crashlog 2



When invoked from the command line this is the error message: "WARNING: ERROR in 
syncfolder for (username) folder INBOX : null byte in argument for long()"

The log is the same at the beginning.. (the log file gets to 58 MB in size 
before crashing).  This is the end of the log file.


Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() called with input: 
FLAGS (\Seen) UID 3573
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() returning: ['FLAGS', 
'(\\Seen)', 'UID', '3573']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash called with input: 
['FLAGS', '(\\Seen)', 'UID', '3573']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash returning: 
{'FLAGS': '(\\Seen)', 'UID': '3573'}
Folder sync  username[INBOX.Trash]: DEBUG[imap]: imapsplit() called with input: 
FLAGS (\Seen) UID 3574
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() returning: ['FLAGS', 
'(\\Seen)', 'UID', '3574']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash called with input: 
['FLAGS', '(\\Seen)', 'UID', '3574']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash returning: 
{'FLAGS': '(\\Seen)', 'UID': '3574'}
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() called with input: 
FLAGS (\Seen) UID 3575
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() returning: ['FLAGS', 
'(\\Seen)', 'UID', '3575']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash called with input: 
['FLAGS', '(\\Seen)', 'UID', '3575']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash returning: 
{'FLAGS': '(\\Seen)', 'UID': '3575'}
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() called with input:  
FLAGS (\Seen) UID 3576
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() returning: ['FLAGS', 
'(\\Seen)', 'UID', '3576']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash called with input: 
['FLAGS', '(\\Seen)', 'UID', '3576']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash returning: 
{'FLAGS': '(\\Seen)', 'UID': '3576'}
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() called with input: 
FLAGS (\Seen) UID 3577
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() returning: ['FLAGS', 
'(\\Seen)', 'UID', '3577']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash called with input: 
['FLAGS', '(\\Seen)', 'UID', '3577']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash returning: 
{'FLAGS': '(\\Seen)', 'UID': '3577'}
Folder sync username[INBOX.Trash]: DEBUG[imap]: imapsplit() called with input: 
FLAGS (\Seen) UID 3578
Folder sync username[INBOX.Trash]:  DEBUG[imap]: imapsplit() returning: 
['FLAGS', '(\\Seen)', 'UID', '3578']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash called with input: 
['FLAGS', '(\\Seen)', 'UID', '3578']
Folder sync username[INBOX.Trash]: DEBUG[imap]: options2hash returning: 
{'FLAGS': '(\\Seen)', 'UID': '3578'}
MainThread: DEBUG[imap]:   58:57.05 > JIHF28 LOGOUT
MainThread: DEBUG[imap]:   58:57.05 < * BYE LOGOUT received
MainThread: DEBUG[imap]:   58:57.05     matched r'\* (?P<type>[A-Z-]+)( 
(?P<data>.*))?' => ('BYE', ' LOGOUT received', 'LOGOUT received')
MainThread: DEBUG[imap]:   58:57.05 untagged_responses[BYE] 0 += ["LOGOUT 
received"]
MainThread: DEBUG[imap]:   58:57.05 BYE response: LOGOUT received
MainThread: DEBUG[imap]:   58:57.05 < JIHF28 OK Completed
MainThread: DEBUG[imap]:   58:57.05     matched  r'(?P<tag>JIHF\d+) 
(?P<type>[A-Z]+) (?P<data>.*)' => ('JIHF28', 'OK', 'Completed')
MainThread: DEBUG[imap]:   58:57.05 > LGPO19 LOGOUT
MainThread: DEBUG[imap]:   58:57.13 < * BYE Logging out
MainThread: DEBUG[imap]:   58:57.13     matched r'\* (?P<type>[A-Z-]+)( 
(?P<data>.*))?' => ('BYE', ' Logging out', 'Logging out')
MainThread: DEBUG[imap]:   58:57.13 untagged_responses[BYE] 0 += ["Logging out"]
MainThread: DEBUG[imap]:   58:57.13 BYE response: Logging out
MainThread: DEBUG[imap]:   58:57.13 < LGPO19 OK Logout completed.
MainThread: DEBUG[imap]:   58:57.13     matched r'(?P<tag>LGPO\d+) 
(?P<type>[A-Z]+) (?P<data>.*)' => ('LGPO19', 'OK', 'Logout completed.')









________________________________
From: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
To: chris coleman <christocoleman at yahoo.com>
Cc: offlineimap mailing list <offlineimap-project at lists.alioth.debian.org>; 
Sebastian Spaeth <Sebastian at SSpaeth.de>; Nicolas Sebrecht 
<nicolas.s-dev at laposte.net>
Sent: Wed, April 27, 2011 4:43:40 PM
Subject: Re: ERROR in syncfolder for (username) folder INBOX : null byte in 
argument for long()

On Wed, Apr 27, 2011 at 08:15:04AM -0700, chris coleman wrote:
>    Hello Sebastian and all,
> 
>    Now I am getting the following 2 errors, which involve now 2 user
>    accounts, not just 1 anymore.
> 
>    Any suggestion what to do to fix this??  ( BTW this output is using the
>    6.2.0.2 version. )

Could you try with a more recent version (v6.3.3)? Actually, we start
support from 6.3.2.

-- 
Nicolas Sebrecht

_______________________________________________
OfflineIMAP-project mailing list
OfflineIMAP-project at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project

OfflineIMAP homepage: http://software.complete.org/offlineimap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110428/0628605c/attachment-0001.html>


More information about the OfflineIMAP-project mailing list