Mathias Bertelsen | 1 Apr 2005 09:50
Picon

Re: offlineimap IMAP<->IMAP crash

On Thursday 31 March 2005 16:18, John Goerzen wrote:
> On Thu, Mar 31, 2005 at 12:09:05PM +0200, Mathias Bertelsen wrote:
> >     newluid = self._mb.savemessage(self, -1, content, flags)
> >   File "/usr/lib/python2.3/site-packages/offlineimap/folder/IMAP.py",
> > line 224, in savemessage
> >     date, content)[0] == 'OK')
> > AssertionError
>
> This means that the IMAP server returned an error from the APPEND
> command that stores a new message into a folder.  Unfortunately, your
> debug trace didn't include the exact response from the IMAP server, so
> we don't know exactly what happened.  Try re-running with -d imap -u
> TTY.TTYUI -1 and I bet you'll see it.
>
> -- John

Here's the message:

imap:   47:28.74 < + go ahead
imap:   47:28.74        matched r'\+( (?P<data>.*))?' => (' go ahead', 'go 
ahead')
imap:   47:28.74 write literal size 6674
imap:   47:29.17 < FDLJ35 NO Message contains invalid header
imap:   47:29.17        matched r'(?P<tag>FDLJ\d+) (?P<type>[A-Z]+) 
(?P<data>.*)'=> ('FDLJ35', 'NO', 'Message contains invalid header')
imap:   47:29.17 NO response: Message contains invalid header

I could solve it by just deleting the email, but as it seems to happen with a 
few emails, i would like to hear what this means is wrong with them?

(Continue reading)

John Goerzen | 1 Apr 2005 16:15
Favicon

Re: offlineimap IMAP<->IMAP crash

On Fri, Apr 01, 2005 at 09:50:31AM +0200, Mathias Bertelsen wrote:
> Here's the message:
> 
> imap:   47:28.74 < + go ahead
> imap:   47:28.74        matched r'\+( (?P<data>.*))?' => (' go ahead', 'go 
> ahead')
> imap:   47:28.74 write literal size 6674
> imap:   47:29.17 < FDLJ35 NO Message contains invalid header
> imap:   47:29.17        matched r'(?P<tag>FDLJ\d+) (?P<type>[A-Z]+) 
> (?P<data>.*)'=> ('FDLJ35', 'NO', 'Message contains invalid header')
> imap:   47:29.17 NO response: Message contains invalid header
> 
> I could solve it by just deleting the email, but as it seems to happen with a 
> few emails, i would like to hear what this means is wrong with them?

That's a good question.  Would you mind sending me the full headers from
one of the messages in question?  (Might not hurt to gzip the file
first, in case any mail system wants to do some transformation on them.)

Mathias Bertelsen | 2 Apr 2005 14:49
Picon

Re: offlineimap IMAP<->IMAP crash

On Friday 01 April 2005 16:15, John Goerzen wrote:
> On Fri, Apr 01, 2005 at 09:50:31AM +0200, Mathias Bertelsen wrote:
> > Here's the message:
> >
> > imap:   47:28.74 < + go ahead
> > imap:   47:28.74        matched r'\+( (?P<data>.*))?' =3D> (' go ahead',
> > 'go ahead')
> > imap:   47:28.74 write literal size 6674
> > imap:   47:29.17 < FDLJ35 NO Message contains invalid header
> > imap:   47:29.17        matched r'(?P<tag>FDLJ\d+) (?P<type>[A-Z]+)
> > (?P<data>.*)'=3D> ('FDLJ35', 'NO', 'Message contains invalid header')
> > imap:   47:29.17 NO response: Message contains invalid header
> >
> > I could solve it by just deleting the email, but as it seems to happen
> > with a few emails, i would like to hear what this means is wrong with
> > them?
>
> That's a good question.  Would you mind sending me the full headers from
> one of the messages in question?  (Might not hurt to gzip the file
> first, in case any mail system wants to do some transformation on them.)

I found out what the problem was. The erroneus mails looked something like=
=20
this in the top of their header (emails anonymized):

=46rom from_email <at> domain.com  Fri Dec  3 20:19:54 2004
Return-Path: <from_email <at> domain.com>
X-Original-To: my_email <at> localhost
Delivered-To: my_email <at> localhost.localhost

(Continue reading)

Simon Liu | 27 Apr 2005 00:32
Picon

Changing Account profile

Is it safe to change the location where mail is stored, in the config
file, if offlineimap has already been run?  e.g. currently mail is
stored at ~/MyMail, but I want to change this to ~/Some/Where/Else

From the docs it seems to be that if I moved my mail from the original
location, because the message cache exists in .offlineimap, if I run
offlineimap again, it will think that my mail has been deleted
intentionally, and try to delete mail from the server.  Obviously this
is not the desired effect...

I suppose I could delete .offlineimap, and ~/MyMail, and start again,
but it took about 20 minutes for the first sync (about 60mb mail) and
I'm curious as to whether it's possible.

Thanks,
Simon


Gmane