Christoph Höger | 12 May 2009 22:02
Picon

license issue

Hi all (especially John),
I've just read that:
http://blog.pierlux.com/2009/05/12/pythons-hidden-poissoned-apple-for-gpl-applications/en/

and it seems

a) to be valid
b) to apply to offlineimap as well

any comments?

I'll propably need to get fedora-legal on that.

regards

christoph

-- Attached file included as plaintext by Ecartis --
-- File: signature.asc
-- Desc: Dies ist ein digital signierter Nachrichtenteil

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

iEYEABECAAYFAkoJ1b8ACgkQhMBO4cVSGS8yfQCbB/rWlsZ2HrtI3WZ39oAeNkyT
hJIAoJciBGSnUG1vRQW99aZxKN2HKAnE
=ppt2
-----END PGP SIGNATURE-----

(Continue reading)

John Goerzen | 12 May 2009 22:19
Favicon

Re: license issue

Christoph Höger wrote:
> Hi all (especially John),
> I've just read that:
> http://blog.pierlux.com/2009/05/12/pythons-hidden-poissoned-apple-for-gpl-applications/en/
> 
> and it seems
> 
> a) to be valid
> b) to apply to offlineimap as well
> 
> any comments?

I have not made an extensive analysis, BUT...

the GPL is mainly concerned with linking.  OfflineIMAP is written in
100% Python, and as such does not link to OpenSSL.  My belief is that it
is Python that links to OpenSSL, and thus Python that is bound by that
restriction, not OfflineIMAP.

OfflineIMAP uses a fairly simplistic Python API.  IIRC, it is not even
documented whether that API is guaranteed to correspond to OpenSSL.

Further, the blog post seems fairly non-credible.  The cited license
snippet appears to apply to people the distribute OpenSSL itself, not
link to it.  Again, OfflineIMAP doesn't link to it.

-- John

Christoph Höger | 14 May 2009 19:33
Picon

[PATCH] fix ssl deprecation warning

honestly I do not know, If that works with python < 2.6 but I guess it should.
Signed-off-by: Christoph Höger <choeger <at> cs.tu-berlin.de>
---
 offlineimap/imaplibutil.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/offlineimap/imaplibutil.py b/offlineimap/imaplibutil.py
index 27ed1fa..e7f5a24 100644
--- a/offlineimap/imaplibutil.py
+++ b/offlineimap/imaplibutil.py
 <at>  <at>  -19,6 +19,7  <at>  <at> 
 import re, string, types, binascii, socket, time, random, subprocess, sys, os
 from offlineimap.ui import UIBase
 from imaplib import *
+import ssl

 # Import the symbols we need that aren't exported by default
 from imaplib import IMAP4_PORT, IMAP4_SSL_PORT, InternalDate, Mon2num
 <at>  <at>  -166,8 +167,8  <at>  <at>  def new_open_ssl(self, host = '', port = IMAP4_SSL_PORT):
         if last_error != 0:
             # FIXME
             raise socket.error(last_error)
-        self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile)
-        self.sslobj = sslwrapper(self.sslobj)
+        self.sslobj = sslwrapper(ssl.wrap_socket(self.sock, self.keyfile,
+        self.certfile))

 mustquote = re.compile(r"[^\w!#$%&'+,.:;<=>?^`|~-]")

--

-- 
(Continue reading)

Shankar Gopalakrishnan | 15 May 2009 07:39

does offlineimap do a one way sync or a full download?

Dear all,

I've been a fan of offlineimap for almost two years, but am facing a bit
of a dilemma.  My system synchronises between two external IMAP servers
and a local Dovecot IMAP server that holds the mails.  Due to filesystem
corruption, my .offlineimap directory was damaged and I've had to delete
it.  The mailstore and Dovecot were on a different partition so there
was no damage to them.  The two stores are essentially identical except
for a difference of some 100 odd emails that have arrived in the interim
(the store as a whole contains around 7000).  My question is this: if I
run offlineimap now between the mailstores, will it sync them and only
download the new messages, or will it download the entire external store
and duplicate the messages?

Many thanks,

Shankar Gopalakrishnan

John Goerzen | 15 May 2009 15:09
Favicon

Re: does offlineimap do a one way sync or a full download?

Shankar Gopalakrishnan wrote:
> Dear all,
> 
> I've been a fan of offlineimap for almost two years, but am facing a bit
> of a dilemma.  My system synchronises between two external IMAP servers
> and a local Dovecot IMAP server that holds the mails.  Due to filesystem
> corruption, my .offlineimap directory was damaged and I've had to delete
> it.  The mailstore and Dovecot were on a different partition so there
> was no damage to them.  The two stores are essentially identical except
> for a difference of some 100 odd emails that have arrived in the interim
> (the store as a whole contains around 7000).  My question is this: if I
> run offlineimap now between the mailstores, will it sync them and only
> download the new messages, or will it download the entire external store
> and duplicate the messages?

I would expect you to see duplicate messages in that scenario, but I'm
not completely positive.

-- John

> 
> Many thanks,
> 
> Shankar Gopalakrishnan
> 
> 
> 

Christoph Höger | 18 May 2009 09:36
Picon

Re: [PATCH] fix ssl deprecation warning

That patch was
a) wrong direction
b) wrong branch

I'll fix that

-- Attached file included as plaintext by Ecartis --
-- File: signature.asc
-- Desc: Dies ist ein digital signierter Nachrichtenteil

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

iEYEABECAAYFAkoRD+0ACgkQhMBO4cVSGS+0tQCggDB+LvpCoe5yHiuLSOzp1kSW
raUAoIN1LIIeMKmbV5KTtzNIv0Y8jwUa
=qP2l
-----END PGP SIGNATURE-----

John Goerzen | 21 May 2009 23:26
Favicon

Re: Bug #143: SMTP addresses in headers get corrupted

Adam Spiers wrote:
> I am seeing the trailing '>' of SMTP addresses in my headers get lost
> by offlineimap, resulting in headers like:
> 
>   From: "Joe Bloggs" <joe <at> bloggs.com
> 
> A while ago I submitted a bug for it here:
> 
>   http://software.complete.org/software/issues/show/143
> 
> I appreciate it may be the case that noone has time to look into this,
> but if someone could suggest some starting points for investigation, I
> could try to start debugging myself.  What are the likely causes for
> this strange behaviour?

I haven't heard of this before, but I would suggest you start with
running offlineimap -d imap -1

This will log the raw SMTP conversation.  If you see the trailing ">"
missing, then you will know you have a problem with either the server or
some low-level local networking libraries (outside OfflineIMAP).

Otherwise, the debugging output may still be useful.  I'd start there.

-- John

> 
> Thanks very much,
> Adam
> 
(Continue reading)

Marc MERLIN | 28 May 2009 22:38

Re: problems with offlineimap/git

On Thu, May 28, 2009 at 01:33:51PM -0700, Marc MERLIN wrote:
> I checked out the latest version for IDLE support.
> 
> I've been having issues with it. For now I disabled the IDLE code and I
> still get things like this:

I forgot to give my config:

grep -Ev '^(#|$)' ~/.offlineimaprc
[general]
pythonfile=~/.offlineimap.py
foldersort=mycmp
metadata = ~/.offlineimap
accounts = google.com
maxsyncaccounts = 1
ui = TTY.TTYUI, Tk.Blinkenlights, Tk.VerboseUI, Noninteractive.Basic,
     Noninteractive.Quiet
ignore-readonly = no

[mbnames]
enabled = yes
filename = ~/.mutt_mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"
[ui.Tk.Blinkenlights]
loglines = 5
bufferlines = 500
showlog = true
(Continue reading)

Marc MERLIN | 28 May 2009 23:43

problems with offlineimap/git

[my first mail didn't make it, it seems. Resending]

I checked out the latest version for IDLE support.

I've been having issues with it. For now I disabled the IDLE code and I
still get things like this:
   Next refresh in 106 seconds
Account sync google.com:
   Next refresh in 105 seconds
Exception in thread Thread-90:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/threading.py", line 446, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/var/lib/python-support/python2.5/offlineimap/imapserver.py", line 408, in noop
    imapobj.noop()
  File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 748, in noop
    return self._simple_command('NOOP', **kw)
  File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 1305, in _simple_command
    return self._command_complete(self._command(name, *args), kw)
  File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 1097, in _command_complete
    typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
  File "/var/lib/python-support/python2.5/offlineimap/imaplib2.py", line 150, in get_response
    raise typ(exc_fmt % str(val))
abort: command: NOOP => socket error: <class 'socket.sslerror'> - (8, 'EOF occurred in violation of protocol')

Exception in thread Thread-91:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
(Continue reading)


Gmane