1 Jan 2009 19:33
1 Jan 2009 20:44
Re: How to know if offlineimap is running
Loui Chang <louipc.ist <at> gmail.com>
2009-01-01 19:44:24 GMT
2009-01-01 19:44:24 GMT
On Thu, Jan 01, 2009 at 07:33:18PM +0100, Nathan Huesken wrote: > I run offlineimap in a cronjob. > Is there a way to know when offlineimap is currently running? > The .offlineimap/lock file seems to always exist ... Maybe you can check if the process described by .offlineimap/pid is running. It seems like a bug, that .offlineimap/lock always exists, but I'm not really familiar with offlineimap's inner workings.
8 Jan 2009 16:18
Re: [PATCH] Fix md5 import error
Michael Witten <mfwitten <at> MIT.EDU>
2009-01-08 15:18:00 GMT
2009-01-08 15:18:00 GMT
On 31 Dec 2008, at 10:26 AM, Loui Chang wrote:
>> Paul Hinze <paul.t.hinze <at> gmail.com> on 2008-12-22 at 19:16:
>>> I did a bit of debugging and asking around in #python and it turns
>>> out
>>> that because Maildir.py uses a conditional import of md5 from either
>>> hashlib or the md5 module, the md5.new() call is not always correct.
>>> The attached patch should fix this problem.
>
> Oh darn. Good thing you caught that.
> Things seem to work fine with hashlib and this patch now.
> I actually tested it this time.
I have pulled from the public git repo:
git://git.complete.org/offlineimap
and I don't seem to have gotten the new patch; I still
get the runtime error that Paul fixed.
8 Jan 2009 16:27
Re: [PATCH] Fix md5 import error
Loui Chang <louipc.ist <at> gmail.com>
2009-01-08 15:27:28 GMT
2009-01-08 15:27:28 GMT
On Thu, Jan 08, 2009 at 09:18:00AM -0600, Michael Witten wrote: > > On 31 Dec 2008, at 10:26 AM, Loui Chang wrote: > > >> Paul Hinze <paul.t.hinze <at> gmail.com> on 2008-12-22 at 19:16: > >>> I did a bit of debugging and asking around in #python and it turns out > >>> that because Maildir.py uses a conditional import of md5 from either > >>> hashlib or the md5 module, the md5.new() call is not always correct. > >>> The attached patch should fix this problem. > > > > Oh darn. Good thing you caught that. > > Things seem to work fine with hashlib and this patch now. > > I actually tested it this time. > > I have pulled from the public git repo: > > git://git.complete.org/offlineimap > > and I don't seem to have gotten the new patch; I still > get the runtime error that Paul fixed. John Goerzen hasn't pushed it yet. Maybe he's out on vacation hah.
8 Jan 2009 17:07
Re: [PATCH] Fix md5 import error
John Goerzen <jgoerzen <at> complete.org>
2009-01-08 16:07:08 GMT
2009-01-08 16:07:08 GMT
Loui Chang wrote: > On Thu, Jan 08, 2009 at 09:18:00AM -0600, Michael Witten wrote: >> On 31 Dec 2008, at 10:26 AM, Loui Chang wrote: >> >>>> Paul Hinze <paul.t.hinze <at> gmail.com> on 2008-12-22 at 19:16: >>>>> I did a bit of debugging and asking around in #python and it turns out >>>>> that because Maildir.py uses a conditional import of md5 from either >>>>> hashlib or the md5 module, the md5.new() call is not always correct. >>>>> The attached patch should fix this problem. >>> Oh darn. Good thing you caught that. >>> Things seem to work fine with hashlib and this patch now. >>> I actually tested it this time. >> I have pulled from the public git repo: >> >> git://git.complete.org/offlineimap >> >> and I don't seem to have gotten the new patch; I still >> get the runtime error that Paul fixed. > > John Goerzen hasn't pushed it yet. Maybe he's out on vacation hah. I was, and now have a serious case of inbox overload. Will try to get to this today.
9 Jan 2009 08:56
9 Jan 2009 12:57
Re: How to know if offlineimap is running
Jim Pryor <lists+offlineimap <at> jimpryor.net>
2009-01-09 11:57:39 GMT
2009-01-09 11:57:39 GMT
On Thu, Jan 01, 2009 at 02:44:24PM -0500, Loui Chang wrote:
> On Thu, Jan 01, 2009 at 07:33:18PM +0100, Nathan Huesken wrote:
> > I run offlineimap in a cronjob.
> > Is there a way to know when offlineimap is currently running?
> > The .offlineimap/lock file seems to always exist ...
>
> Maybe you can check if the process described by .offlineimap/pid
> is running.
>
> It seems like a bug, that .offlineimap/lock always exists,
> but I'm not really familiar with offlineimap's inner workings.
Yes, specifically you can do this (in a Bash script):
CONFIGDIR="$HOME/.offlineimap" # this is set in your .offlineimaprc, as
the "metadata" setting. I actually have mine at a different location
BINARY=/usr/bin/offlineimap
if [ -f "$CONFIGDIR/pid" -a $(cat "$CONFIGDIR/pid") = \
$(pidof -x "$BINARY") ]; then
# offlineimap is running
else
# offlineimap not running
fi
(Continue reading)
9 Jan 2009 16:49
Re: Gmail: Hard Links
John Goerzen <jgoerzen <at> complete.org>
2009-01-09 15:49:37 GMT
2009-01-09 15:49:37 GMT
Michael Witten wrote: > From a very cursory glance, it seems like hard links > could be used to decrease drastically the footprint > of Gmail folders in the local repository. > > What say yee? > > > Would be great, but how to identify what to link together?
9 Jan 2009 18:31
Re: Gmail: Hard Links
Loui Chang <louipc.ist <at> gmail.com>
2009-01-09 17:31:51 GMT
2009-01-09 17:31:51 GMT
On Fri, Jan 09, 2009 at 09:49:37AM -0600, John Goerzen wrote: > Michael Witten wrote: > > From a very cursory glance, it seems like hard links > > could be used to decrease drastically the footprint > > of Gmail folders in the local repository. > > > > What say yee? > > Would be great, but how to identify what to link together? Changing the way offlineimap indexes messages might help there. All my duplicate labelled messages have the same checksum, but offlineimap seems to tack on an md5sum based on something other than the actual message.
9 Jan 2009 22:46
Re: [PATCH] Fix md5 import error
John Goerzen <jgoerzen <at> complete.org>
2009-01-09 21:46:51 GMT
2009-01-09 21:46:51 GMT
Paul Hinze wrote: > Paul Hinze <paul.t.hinze <at> gmail.com> on 2008-12-22 at 19:16: >> I did a bit of debugging and asking around in #python and it turns out >> that because Maildir.py uses a conditional import of md5 from either >> hashlib or the md5 module, the md5.new() call is not always correct. >> The attached patch should fix this problem. > > Thanks to Daniel Rall for pointing out that the attachment got stripped > off my last message. Patch follows. Thank you. Applied and pushed. -- John
RSS Feed