Commit Graph

581 Commits

Author SHA1 Message Date
David Favro
82c215023c Removed copyright notice; assigning copyright to John Goerzen 2007-03-16 03:44:54 +01:00
David Favro
b06845fc70 UID validity diagnostics improvement
* Reduced the number of parameters passed to ui.validityproblem() because they were all just method-calls to the folder object, which is already passed as the first parameter (reduction of unnecessary complexity).

* Improved the diagnostic message for an 'UID validity problem' by including the name of the repository in which the folder resides; previously it was not possible to determine from the diagnostic alone on which side the problem was.
2007-03-15 05:41:43 +01:00
David Favro
657b470d74 UID validity diagnostics improvement
* Reduced the number of parameters passed to ui.validityproblem() because they were all just method-calls to the folder object, which is already passed as the first parameter (reduction of unnecessary complexity).
2007-03-15 05:39:15 +01:00
John Goerzen
79a596be7b Don't leave preauthtunnel zombies with autorefresh
From: Peter Colberg

Hello,

using offlineimap with the preauthtunnel option to start a remote
IMAP daemon via ssh, a zombie process is left behind during the
autorefresh sleep period if not holding the connection open.

Above behaviour is a result of using os.popen2 to spawn the tunnel
process, which makes it impossible waiting for the child process
to terminate when shutting down the tunnel.

The patch included below fixes the issue by employing the Popen
class from the subprocess module, which seems to be the preferred
way to spawn processes and connect to their pipes in any case (at
least since python version 2.4.4, which fixes a memory leak in the
subprocess module).

Regards,
Peter

fixes deb#410730
2007-03-14 02:54:19 +01:00
John Goerzen
82d5d5e675 Check all resolved addresses [deb #413030]
From: Mark Brown <broonie@sirena.org.uk>
Currently offlineimap will attempt to connect to the first address
returned by addrinfo() for the remote system and will fail if that fails
even if another result would have worked.  This is particularly common
when the remote system supports both IPv4 and IPv6 - a laptop may in
some environments have no routable IPv6 connectivity so if the IPv6
address is returned first the connect will fail even though IPv4 would
have worked.

This is actually a bug in imaplib, a copy of which is included in
offlineimap.  This patch fixes the problem by looping over all the
results returned by getaddrinfo().  Unfortunately it mangles the error
reporting slightly since I couldn't work out how to raise an appropriate
exception, though given that that that was a Python backtrace there was
work to do there anyway.

Note that I have only tested the SSL case.
2007-03-08 02:59:32 +01:00
John Goerzen
ca3a306ecc --help shows available UIs now
Thanks to Daniel Rall for the patch.
fixes #5
2007-01-11 10:15:06 +01:00
John Goerzen
71b82fb385 Removed todo directory from tree
Moving todo items to BTS

Refs #6.  Fixes #4.
2007-01-04 23:52:10 +01:00
John Goerzen
fc26b0ceb5 Removed TODO file
Now tracking with tickets on software.complete.org

Fixes #4
2007-01-04 23:44:27 +01:00
John Goerzen
19de4ee59d Removed generated docs from source tree 2006-12-06 04:25:53 +01:00
John Goerzen
d3184a97cb Remove docs from source tree 2006-12-06 04:24:27 +01:00
John Goerzen
05716dc977 No longer include docs in source tarball 2006-12-06 04:24:11 +01:00
John Goerzen
d6e88e4307 TAG RELEASE_offlineimap_4.0.16 2006-12-02 22:13:39 +01:00
John Goerzen
438dd70226 TAG RELEASE_offlineimap_4.0.16 2006-12-02 22:11:21 +01:00
John Goerzen
03eb51b6e7 TAG DEBIAN_offlineimap_4.0.16 2006-12-02 22:11:21 +01:00
John Goerzen
5339f36513 include FAQ.html in Debian 2006-12-02 22:08:51 +01:00
John Goerzen
34e97a6054 Update changelog for 4.0.16 2006-12-02 22:08:41 +01:00
John Goerzen
83dfc24c7d Add the FAQ 2006-12-02 22:03:05 +01:00
John Goerzen
14e13c9719 Now download FAQ from trac 2006-12-02 22:02:56 +01:00
John Goerzen
2d9c1ed9b8 Updating version number to 4.0.16 2006-12-02 21:59:02 +01:00
John Goerzen
aa019172cb Handle rtime being Null when writing to Maildir
fixes #2
debian #401290
2006-12-02 21:54:26 +01:00
John Goerzen
c31f60f8df Update copyright date in Maildir.py 2006-12-02 21:54:15 +01:00
John Goerzen
8466d625f0 Regen docs 2006-12-02 12:41:20 +01:00
John Goerzen
98e2e37061 Updated info on bug reporting, etc. 2006-12-02 12:40:52 +01:00
John Goerzen
612e89964f Removed more FAQ stuff from the manual 2006-12-02 12:39:49 +01:00
John Goerzen
8dbfbb7ed9 Update copyright date in manual 2006-12-02 06:03:14 +01:00
John Goerzen
be7af813f6 Start moving FAQ to wiki 2006-12-02 06:03:00 +01:00
John Goerzen
7145e10538 Update changelog 2006-12-01 22:36:10 +01:00
Daniel Burrows
1844cefd17 Remove a redundant (and mostly harmless) output of the error string from the Curses UI.
It looks like I accidentally recorded the wrong version of Curses.py --
originally this code was there, but I moved it over to UIBase so it would
cover the TTY UI also.
2006-12-01 12:27:12 +01:00
Daniel Burrows
dc8f3c944d Add a try: block to catch exceptions that occur before the main loop and to call ui.mainException().
I'm not sure if this is the "right" way to handle exceptions, but it does
correctly print the error message AFTER shutting down curses for me.
2006-12-01 11:59:22 +01:00
Daniel Burrows
c7894a01f0 Instead of blowing up when the account name is missing, display a useful error message that gives the correct account names. 2006-12-01 11:54:25 +01:00
Daniel Burrows
0ee7dfd435 Add parameters to terminate() that specify an (optional) error message to display on termination. 2006-12-01 11:54:12 +01:00
John Goerzen
0483beb3b8 TAG RELEASE_${PACKAGE}_${VERSION} 2006-11-30 23:17:16 +01:00
John Goerzen
49eb9c5a66 TAG DEBIAN_offlineimap_4.0.15 2006-11-30 12:29:06 +01:00
John Goerzen
2fa36e9356 No longer build manual.ps 2006-11-30 12:28:57 +01:00
John Goerzen
2977f53244 Fix lack of revstr in version.py 2006-11-30 12:23:18 +01:00
John Goerzen
fa0b7fee04 Regen docs. Fixes #1. 2006-11-30 10:55:38 +01:00
John Goerzen
3c7d3a94d6 Updated debian changelog 2006-11-30 10:53:34 +01:00
John Goerzen
f2515a0b02 Updated copyright and version info for 4.0.15 2006-11-30 10:51:14 +01:00
John Goerzen
3f87854493 Change python2.3 to python 2006-11-30 10:50:48 +01:00
John Goerzen
9eb102019b Added debian/pyversions 2006-11-30 10:48:27 +01:00
John Goerzen
fc4e31e0db Updated homepage, refs #1 2006-11-30 10:46:51 +01:00
John Goerzen
e825687026 Removed old ChangeLog files 2006-11-30 04:28:19 +01:00
John Goerzen
365aff78d2 No longer generate/distribute PostScript manual 2006-11-30 04:26:14 +01:00
John Goerzen
d598eeabeb Added TODO file 2006-10-27 19:25:11 +01:00
John Goerzen
f75a89d954 Updated copyright and version info 2006-10-19 02:04:28 +01:00
John Goerzen
381f71b180 Tiny bit of make cleaning 2006-10-18 01:18:27 +01:00
John Goerzen
a6db99a21e Add remote{host,user,pass}eval config options (need documentation yet)
From Ben Kibbey

hello,

Attached is a patch to enable evaluation of account credentials with the
remotehosteval, remoteusereval and remotepasseval configuration options.
I needed this because rather than change all my other programs
configuration settings when I change, say a password, I store them in a
file. So I call a function in pythonfile which parses the credential
file and returns the wanted info. Not really very well tested, but not
complex either. Offlineimap is great, thanks.
2006-10-17 20:55:03 +01:00
John Goerzen
d04e899368 Re-documented restoreatime in offlineimap.conf 2006-09-06 02:35:43 +01:00
John Goerzen
89e530ff6e New restoreatime patch from Ben Kibbey
From: Ben Kibbey
Subject: Re: Removed restoratime from OfflineIMAP

On Wed, May 03, 2006 at 10:08:35PM -0500, John Goerzen wrote:
> Hi Ben,
> 
> Thanks for your restoreatime patch.
> 
> However, I have received this bug report:
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365933
> 
> After looking at the problem, here's what's going on.
> 
> The person is using IMAP as the local repository as well.
> 
> You really need to move the atime save and restore code from accounts.py
> into the repository/Maildir.py.  Then, for any new call you add to the
> Maildir repository (that will be called from outside Maildir.py), you
> need to add a corresponding default function to repository/Base.py, and
> also make sure that on folders (such as IMAP) where atime restoration
> makes no sense, no error is generated.
> 
> Let me know if that doesn't make sense to you.  If you get it fixed, I'd
> be happy to re-apply it to a future version of OfflineIMAP.
> 
> -- John Goerzen
> 

Attached is a new diff that should work though not really tested
(v4.0.14). In repository/Base.py restore_atime() will call
self.restore_folder_atimes() only if the folder type is Maildir. Let me
know if it has any more problems.
2006-09-06 02:33:07 +01:00
John Goerzen
8f9f59dd4d Merge changelog 2006-10-13 07:19:32 +01:00