Hugh T. Ranalli | 4 Nov 14:58 2007

QuickSync Question

I am running dovecot IMAP on two machines, my laptop and a server, and usin=
g=20
offlineimap 5.99.4 to synchronise 4 accounts via IMAP-IMAP. E-mail is=20
delivered to the server inbox and then synced to the laptop inbox. I have s=
et=20
up different times for synchronising each account, as some are more importa=
nt=20
than others.

With my main accounts, I want to do a full sync every hour and a quick sync=
=20
(primarily to sync the Inboxes) every two minutes. So in my account=20
configuration I have the following:

     # Perform a full re-sync every 60 minutes.
     autorefresh =3D 60

     # Perform quick syncs (folder changes, new or deleted messages)=20
     # every 2 minutes =3D=3D 30 times between full syncs
     quick =3D 30

The full sync works fine, but nothing is synced to the laptop inbox in-betw=
een=20
full syncs.=20

=46rom the annotated configuration file, it seems that new messages should =
be=20
part of a quick sync:

"quick synchronization only synchronizes if a Maildir folder has changed, o=
(Continue reading)

Daniel Jacobowitz | 4 Nov 15:42 2007

Re: QuickSync Question

On Sun, Nov 04, 2007 at 09:58:13AM -0400, Hugh T. Ranalli wrote:
> The full sync works fine, but nothing is synced to the laptop inbox in-betw=
> een=20
> full syncs.=20
> 
> =46rom the annotated configuration file, it seems that new messages should =
> be=20
> part of a quick sync:
> 
> "quick synchronization only synchronizes if a Maildir folder has changed, o=
> r=20
> if an IMAP folder has received new messages or had messages deleted."=20
> 
> Am I misunderstanding or misusing this functionality?

That's what is supposed to happen, but I only tested Courier.  Could
you turn on debugging and capture the output of a quick sync that did
nothing, but should have synced a message?

--

-- 
Daniel Jacobowitz
CodeSourcery

Hugh T. Ranalli | 4 Nov 20:19 2007

Re: QuickSync Question

Hi Daniel,
I tried this with just one account, to keep the logs clear,and turned on imap 
and thread debugging. It seems that after the full sync nothing happens. I 
waited several minutes, and sent myself a message to be synced but nothing 
showed up on the screen or in the log. I've included an extract of the 
beginning and end of the logs.

Thanks,
Hugh

This is OfflineIMAP 5.99.4
Python: 2.4.4c1 (#2, Oct 11 2006, 21:51:02) 
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)]
Platform: linux2
Args: 
['/usr/bin/offlineimap', '-d', 'imap,thread', '-l', '/home/hugh/qsync_debug.log']
MainThread: OfflineIMAP 5.99.4
Copyright (C) 2002 - 2007 John Goerzen <jgoerzen <at> complete.org>
This software comes with ABSOLUTELY NO WARRANTY; see the file
COPYING for details.  This is free software, and you are welcome
to distribute it under the conditions laid out in COPYING.
MainThread: OfflineIMAP 5.99.4
MainThread: Copyright (C) 2002 - 2007 John Goerzen <jgoerzen <at> complete.org>
MainThread: This software comes with ABSOLUTELY NO WARRANTY; see the file
MainThread: COPYING for details.  This is free software, and you are welcome
MainThread: to distribute it under the conditions laid out in COPYING.
MainThread: Now debugging for imap: IMAP protocol debugging
MainThread: Now debugging for thread: Threading debugging
MainThread: <ExitNotifyThread(Sync Runner, initial daemon)>.start(): starting 
thread
(Continue reading)

Daniel Jacobowitz | 4 Nov 20:47 2007

Re: QuickSync Question

On Sun, Nov 04, 2007 at 03:19:27PM -0400, Hugh T. Ranalli wrote:
> Hi Daniel,
> I tried this with just one account, to keep the logs clear,and turned on imap 
> and thread debugging. It seems that after the full sync nothing happens. I 
> waited several minutes, and sent myself a message to be synced but nothing 
> showed up on the screen or in the log. I've included an extract of the 
> beginning and end of the logs.

Sorry for wasting your time, I should have looked closer at your
config.

I use:

autorefresh = 5
quick = 10

This means "refresh every 5 minutes, but only do a full sync every 10
(11?) refreshes".  Each refresh is either quick or full but they're
still $autorefresh apart.

--

-- 
Daniel Jacobowitz
CodeSourcery

Hugh T. Ranalli | 5 Nov 15:45 2007

Re: QuickSync Question

Ah, for some reason I thought these settings worked the opposite way. I've 
made the changes and it seems to be working (though I have no idea how to 
tell a quick sync from a full sync).

Thanks so much for your time,
Hugh

On November 4, 2007 14:47:50 Daniel Jacobowitz wrote:
> I use:
> 
> autorefresh = 5
> quick = 10
> 
> This means "refresh every 5 minutes, but only do a full sync every 10
> (11?) refreshes".  Each refresh is either quick or full but they're
> still $autorefresh apart.
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery
> 
> 
> 

Raffi Khatchadourian | 8 Nov 15:00 2007
Picon

OfflineIMAP and launchd

Has anyone had any success running OfflineIMAP from launchd (now that
crontab is deprecated on OS X)? I somehow can't get the logging to work
and often when I put my notebook computer to sleep, when the computer
awakes offlineimap is not functioning via the launchd job (the pid and
lock files need to be removed from the ~/.offlineimap directory).
Thanks!

Raffi

Till Maas | 8 Nov 17:05 2007

crashes on a dual core machine with Fedora

Hiyas,
there is a bug report in Fedora's Bugzilla about crash on a dual core machine:

https://bugzilla.redhat.com/show_bug.cgi?id=317991

Traceback with 5.99.4 is at the end of this mail. Does someone know how to fix 
this?

Regards,
Till

Thread 'InputHandler loop' terminated with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/offlineimap/threadutil.py", line 153, 
in run
    Thread.run(self)
  File "/usr/lib/python2.5/threading.py", line 440, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.5/site-packages/offlineimap/ui/Curses.py", line 265, 
in bgreaderloop
    ch = s.c.stdscr.getch()
AttributeError: CursesUtil instance has no attribute 'stdscr'

No debug messages were logged for InputHandler loop.
Exception in thread Account sync atkac <at> redhat.com (most likely raised during 
interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
  File "/usr/lib/python2.5/site-packages/offlineimap/threadutil.py", line 239, 
in run
(Continue reading)

Daniel L. Rall | 8 Nov 18:37 2007

Re: crashes on a dual core machine with Fedora

On Thu, 08 Nov 2007, Till Maas wrote:
> Thread 'InputHandler loop' terminated with exception:
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/offlineimap/threadutil.py", line 153, 
> in run
>     Thread.run(self)
>   File "/usr/lib/python2.5/threading.py", line 440, in run
>     self.__target(*self.__args, **self.__kwargs)
>   File "/usr/lib/python2.5/site-packages/offlineimap/ui/Curses.py", line 265, 
> in bgreaderloop
>     ch = s.c.stdscr.getch()
> AttributeError: CursesUtil instance has no attribute 'stdscr'

c.stdscr doesn't seem to exist.  Check and see whether it actually
exists in the curses Python bindings; perhaps there's a version
incompatibility.

-- Attached file included as plaintext by Ecartis --

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

iD8DBQFHM0lBZ9mySWdPBeARArgYAJ4pXImeFjqojRBJCQ0QbtyPBbOtNwCeKIUm
iLxXr3EfgIep9mL9RSiXjog=
=ZN0I
-----END PGP SIGNATURE-----

Federico Lorenzi | 19 Nov 16:39 2007
Picon

OfflineIMAP chokes on moving a message between folders with GMail and Maildir

Hi there,

I have OfflineIMAP set up in the following way:
[federico <at> MAILjail] /home/federico/Maildir> cat ../.offlineimaprc | grep -v "^#"
[general]
metadata = ~/.offlineimap
accounts = GMail
maxsyncaccounts = 1
ui = TTY.TTYUI, Noninteractive.Basic, Noninteractive.Quiet
ignore-readonly = no

[mbnames]
enabled = no
filename = ~/Mutt/muttrc.mailboxes
header = "mailboxes "
peritem = "+%(accountname)s/%(foldername)s"
sep = " "
footer = "\n"

[Account GMail]

localrepository = Local
remoterepository = Remote
autorefresh = 1

[Repository Local]
type = Maildir
localfolders = ~/Maildir
sep = .

(Continue reading)

Raffi Khatchadourian | 19 Nov 17:32 2007
Picon

Re: OfflineIMAP and launchd

Don't mean to reply to my own email, but I have found a solution to this
problem if anyone is interested, let me know!

Raffi

On Thu  8.Nov'07 at  9:00:46 -0500, Raffi Khatchadourian wrote:
>Has anyone had any success running OfflineIMAP from launchd (now that
>crontab is deprecated on OS X)? I somehow can't get the logging to work
>and often when I put my notebook computer to sleep, when the computer
>awakes offlineimap is not functioning via the launchd job (the pid and
>lock files need to be removed from the ~/.offlineimap directory).


Gmane