Complete.Org: Mailing Lists: Archives: offlineimap: November 2004:
Bug in offlineimap + courier + mutt?
Home

Bug in offlineimap + courier + mutt?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: Bug in offlineimap + courier + mutt?
From: Eric Jonas <jonas@xxxxxxx>
Date: Fri, 5 Nov 2004 17:00:00 -0500 (EST)

Hello!
  I'm excited to use offlineimap + courier + mutt, but it keeps crashing
with :

   Copy message 22678 IMAP[INBOX] -> Maildir[INBOX], LocalStatus[INBOX]
Thread 'Copy message 22678 from INBOX' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py", line
153, in run
    Thread.run(self)
  File "/usr/lib/python2.3/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.3/site-packages/offlineimap/folder/Base.py", line
272, in copymessageto
    message = self.getmessage(uid)
  File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py", line
114, in getmessage
    return initialresult[1][0][1].replace("\r\n", "\n")
TypeError: unsubscriptable object


Last 1 debug messages logged for Copy message 22678 from INBOX prior to
exception:
imap: Returned object from fetching 22678: ('OK', [None])
Exception in thread Folder sync telencephalon[INBOX] (most likely raised
during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.3/threading.py", line 442, in __bootstrap
  File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py", line
238, in run
exceptions.TypeError: unsubscriptable object
ERR: DISCONNECTED, user=jonas, ip=[127.0.0.1], headers=0, body=0, time=4


A few notes about my setup: Currently I have two accounts forwarding mail
to telencephalon, where a postfix mta delivers to ~/Maildir via procmail.

On that same machine, I have the following offlineimap config:
---------------------------------------------------------------
[general]
accounts = telencephalon
ui = TTY.TTYUI

[mbnames]
enabled = yes
filename = ~/.mutt/mailboxes.list
header = "mailboxes "
peritem = "=%(foldername)s"
sep = " "
footer = "\n"


[Account telencephalon]
localrepository = Local
remoterepository = Remote
autorefresh = 1
sep = ='/'

[Repository Local]
type = Maildir
localfolders = ~/Mail

[Repository Remote]
type = IMAP
#preauthtunnel = ssh -q -i ~/.ssh/imap telencephalon.mit.edu
preauthtunnel = imapd ~/Maildir
nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername)
-----------------------------------------------------------------


At the moment I just have mail being downloaded from ~/Maildir to ~/Mail
via courier-imapd (as can be seen in the non-commented preauthtunnel) and
do some minor rewriting of the mailbox folders as suggested in the config
file. The machine is a debian "testing" install running offlineimap 4.0.7.

This is not the first message I've gotten this error on; previous I've
had:

Copy message 2241 from lists:
   Copy message 2241 IMAP[INBOX.lists] -> Maildir[lists],
LocalStatus[lists]
Thread 'Copy message 2233 from lists' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py", line
153, in run
    Thread.run(self)
  File "/usr/lib/python2.3/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.3/site-packages/offlineimap/folder/Base.py", line
272, in copymessageto
    message = self.getmessage(uid)
  File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py", line
114, in getmessage
    return initialresult[1][0][1].replace("\r\n", "\n")
TypeError: unsubscriptable object


Last 1 debug messages logged for Copy message 2233 from lists prior to
exception:
imap: Returned object from fetching 2233: ('OK', [None])
Exception in thread Folder sync telencephalon[lists] (most likely raised
during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.3/threading.py", line 442, in __bootstrap
  File "/usr/lib/python2.3/site-packages/offlineimap/threadutil.py", line
238, in run
exceptions.TypeError: unsubscriptable object
ERR: DISCONNECTED, user=jonas, ip=[127.0.0.1], headers=0, body=3260,
time=1874


(sorry for the really long stack traces).  Is there a known cause of this
problem, or is there someway I can turn on additional debugging to get
more info?


Thanks,
                ...Eric Jonas


[Prev in Thread] Current Thread [Next in Thread]