Complete.Org: Mailing Lists: Archives: offlineimap: April 2007:
almost empty files put in Sent when syncing
Home

almost empty files put in Sent when syncing

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: almost empty files put in Sent when syncing
From: Hans Ekbrand <hans.ekbrand@xxxxxxxxx>
Date: Tue, 10 Apr 2007 11:31:42 +0200
Reply-to: hans.ekbrand@xxxxxxxxx

Hello list!
When syncing Maildir/Sent, offlineimap leaves a file at the server, a
new additional file every time. The file only contains one line: E.g.

X-OfflineIMAP-x817185232-52656d6f74654578616d706c65-53656e74: 
1176196230-0224649044387-v4.0.11

I removed all such files from the server and then synced. Here is what happened:

Here is the content on the server before syncing:

[11:03:44]hans@debian:~>ls -lSs Maildir/.Sent/cur/ | tail 
   4 -rw-r--r--  1 hans hans     312 2003-11-25 10:33 1174896257.001268.mbox:2,S
   4 -rw-r--r--  1 hans hans     312 2003-12-01 13:17 1174896257.001284.mbox:2,S
   4 -rw-r--r--  1 hans hans     311 2003-11-04 11:05 1174896257.001230.mbox:2,S
   4 -rw-r--r--  1 hans hans     307 2004-02-02 13:03 1174896257.001345.mbox:2,S
   4 -rw-r--r--  1 hans hans     306 2003-06-19 03:14 1174896257.001152.mbox:2,S
   4 -rw-r--r--  1 hans hans     304 2004-03-04 00:19 1174896257.001399.mbox:2,S
   4 -rw-r--r--  1 hans hans     302 2004-03-01 13:08 1174896257.001389.mbox:2,S
   4 -rw-r--r--  1 hans hans     293 2004-03-04 00:23 1174896257.001401.mbox:2,S
   4 -rw-r--r--  1 hans hans     289 2003-11-04 11:07 1174896257.001231.mbox:2,S

And after the sync.

[11:11:11]hans@debian:~>ls -lSs Maildir/.Sent/cur/ | tail
   4 -rw-r--r--  1 hans hans     312 2003-12-01 13:17 1174896257.001284.mbox:2,S
   4 -rw-r--r--  1 hans hans     311 2003-11-04 11:05 1174896257.001230.mbox:2,S
   4 -rw-r--r--  1 hans hans     307 2004-02-02 13:03 1174896257.001345.mbox:2,S
   4 -rw-r--r--  1 hans hans     306 2003-06-19 03:14 1174896257.001152.mbox:2,S
   4 -rw-r--r--  1 hans hans     304 2004-03-04 00:19 1174896257.001399.mbox:2,S
   4 -rw-r--r--  1 hans hans     302 2004-03-01 13:08 1174896257.001389.mbox:2,S
   4 -rw-r--r--  1 hans hans     293 2004-03-04 00:23 1174896257.001401.mbox:2,S
   4 -rw-r--r--  1 hans hans     289 2003-11-04 11:07 1174896257.001231.mbox:2,S
   4 -rw-------  1 hans hans     101 2007-04-10 11:10 
1176196311.P7885Q0M297053.debian:2,

content of this new file is the following line:

X-OfflineIMAP-x817185232-52656d6f74654578616d706c65-53656e74: 
1176196230-0224649044387-v4.0.11

Here is what offlineimap says:

[11:10:02]hans@sqlserver:~>offlineimap
OfflineIMAP 4.0.11 (Rev 592)
Copyright (C) 2002 - 2005 John Goerzen <jgoerzen@xxxxxxxxxxxx>
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.
Account sync Test:
   ***** Processing account Test
Account sync Test:
   Copying folder structure from IMAP to Maildir
Account sync Test:
   Establishing connection to tunnel:ssh -q code.cjb.net 'export 
MAIL=maildir:$HOME/Maildir; /usr/lib/dovecot/imap --exec-mail imap'.
Folder sync Test[INBOX]:
   Syncing INBOX: IMAP -> Maildir
Copy message 1553 from INBOX:
   Copy message 1553 IMAP[INBOX] -> Maildir[INBOX], LocalStatus[INBOX]
Folder sync Test[Sent]:
   Syncing Sent: IMAP -> Maildir
New msg sync from Sent:
   Copy message -1 Maildir[Sent] -> IMAP[Sent], LocalStatus[Sent]
New msg sync from Sent:
   Copy message -15 Maildir[Sent] -> IMAP[Sent], LocalStatus[Sent]
Thread 'New msg sync from Sent' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/offlineimap/threadutil.py", line 153, 
in run
    Thread.run(self)
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.4/site-packages/offlineimap/folder/Base.py", line 207, 
in syncmessagesto_neguid_msg
    successuid = tryappend.savemessage(uid, message, flags)
  File "/usr/lib/python2.4/site-packages/offlineimap/folder/IMAP.py", line 238, 
in savemessage
    headervalue)
  File "/usr/lib/python2.4/site-packages/offlineimap/folder/IMAP.py", line 174, 
in savemessage_searchforheader
    return long(matchinguids[0])
ValueError: invalid literal for long():


Last 19 debug messages logged for New msg sync from Sent prior to exception:
imap: savemessage: called
imap: savemessage: using date "10-Apr-2007 11:10:30 +0200"
imap: savemessage: initial content is: '\x00\x00\x00\x02'
imap: savemessage: new headers are: 
X-OfflineIMAP-x817185232-52656d6f74654578616d706c65-53656e74: 
1176196230-0224649044387-v4.0.11
imap: savemessage_addheader: called to add 
X-OfflineIMAP-x817185232-52656d6f74654578616d706c65-53656e74: 
1176196230-0224649044387-v4.0.11
imap: savemessage_addheader: insertionpoint = -1
imap: savemessage_addheader: leader = '\x00\x00\x00'
imap: savemessage_addheader: newline = 
'X-OfflineIMAP-x817185232-52656d6f74654578616d706c65-53656e74: 
1176196230-0224649044387-v4.0.11'
imap: savemessage_addheader: trailer = '\x00\x00\x00\x02'
imap: savemessage: new content is: 
'\x00\x00\x00X-OfflineIMAP-x817185232-52656d6f74654578616d706c65-53656e74: 
1176196230-0224649044387-v4.0.11\x00\x00\x00\x02'
imap: savemessage: new content length is 101
imap: savemessage: first attempt to get new UID
imap: savemessage_searchforheader called for 
X-OfflineIMAP-x817185232-52656d6f74654578616d706c65-53656e74: 
1176196230-0224649044387-v4.0.11
imap: savemessage_searchforheader got initial matchinguids: ''
imap: savemessage_searchforheader: matchinguids now ['']
imap: savemessage: first attempt to get new UID failed.  Going to run a NOOP 
and try again.
imap: savemessage_searchforheader called for 
X-OfflineIMAP-x817185232-52656d6f74654578616d706c65-53656e74: 
1176196230-0224649044387-v4.0.11
imap: savemessage_searchforheader got initial matchinguids: ''
imap: savemessage_searchforheader: matchinguids now ['']
[11:11:44]hans@sqlserver:~>

After running offlineimap again: a new file showed up at the server:

[11:25:30]hans@debian:~>ls -lSs Maildir/.Sent/cur/ | tail 
   4 -rw-r--r--  1 hans hans     311 2003-11-04 11:05 1174896257.001230.mbox:2,S
   4 -rw-r--r--  1 hans hans     307 2004-02-02 13:03 1174896257.001345.mbox:2,S
   4 -rw-r--r--  1 hans hans     306 2003-06-19 03:14 1174896257.001152.mbox:2,S
   4 -rw-r--r--  1 hans hans     304 2004-03-04 00:19 1174896257.001399.mbox:2,S
   4 -rw-r--r--  1 hans hans     302 2004-03-01 13:08 1174896257.001389.mbox:2,S
   4 -rw-r--r--  1 hans hans     293 2004-03-04 00:23 1174896257.001401.mbox:2,S
   4 -rw-r--r--  1 hans hans     289 2003-11-04 11:07 1174896257.001231.mbox:2,S
   4 -rw-------  1 hans hans     101 2007-04-10 11:10 
1176196311.P7885Q0M297053.debian:2,
   4 -rw-------  1 hans hans     101 2007-04-10 11:22 
1176197052.P7956Q0M564690.debian:2,

Why does offline imap put files there?

-- 
Hans Ekbrand (http://sociologi.cjb.net) <hans@xxxxxxxxxxxxxxxxx>
GPG Fingerprint: 1408 C8D5 1E7D 4C9C C27E 014F 7C2C 872A 7050 614E

-- Attached file included as plaintext by Ecartis --
-- File: signature.asc
-- Desc: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFGG1l+fCyHKnBQYU4RAh/uAJ0ZlvSttsnUD2dOTOk13Cj5Ft0E/gCeK0MV
9APMMRHVzyYOGS84MamJULU=
=DlJY
-----END PGP SIGNATURE-----




[Prev in Thread] Current Thread [Next in Thread]
  • almost empty files put in Sent when syncing, Hans Ekbrand <=