* Synchronizing offlineimap maildir between several computers
@ 2016-03-12 10:47 Julien Cubizolles
2016-03-13 2:27 ` Eric Abrahamsen
2016-03-14 21:05 ` Nils Ackermann
0 siblings, 2 replies; 9+ messages in thread
From: Julien Cubizolles @ 2016-03-12 10:47 UTC (permalink / raw)
To: ding
I'm using offlineimap to get Maildir copies of several IMAP accounts
from Gnus. I need to work from two different computers. At the moment,
I'm synchronizing the .gnus.el file between the 2 computers through
unison and relying on offlineimap running on the 2 computers to have the
Maildirs synchronized with the remote IMAP servers of my mail providers.
When I switch computers, I run unison, start Gnus which calls
offlineimap.el through a hook. It's basically working fine except that
until offlineimap has finished the synchronization, the .gnus.el data is
out of sync with the maildir so I get mostly starred groups.
I'm thinking about having Gnus call unison and offlineimap as
gnus-before-startup-hook but before I'm messing with it I'm curious
about what other solutions you have come up with.
Wilk.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Synchronizing offlineimap maildir between several computers
2016-03-12 10:47 Synchronizing offlineimap maildir between several computers Julien Cubizolles
@ 2016-03-13 2:27 ` Eric Abrahamsen
2016-03-14 5:28 ` Julien Cubizolles
2016-03-14 21:05 ` Nils Ackermann
1 sibling, 1 reply; 9+ messages in thread
From: Eric Abrahamsen @ 2016-03-13 2:27 UTC (permalink / raw)
To: ding
Julien Cubizolles <j.cubizolles@free.fr> writes:
> I'm using offlineimap to get Maildir copies of several IMAP accounts
> from Gnus. I need to work from two different computers. At the moment,
> I'm synchronizing the .gnus.el file between the 2 computers through
> unison and relying on offlineimap running on the 2 computers to have the
> Maildirs synchronized with the remote IMAP servers of my mail providers.
>
> When I switch computers, I run unison, start Gnus which calls
> offlineimap.el through a hook. It's basically working fine except that
> until offlineimap has finished the synchronization, the .gnus.el data is
> out of sync with the maildir so I get mostly starred groups.
>
> I'm thinking about having Gnus call unison and offlineimap as
> gnus-before-startup-hook but before I'm messing with it I'm curious
> about what other solutions you have come up with.
I run mbsync (the equivalent of your offlineimap) in the shell, and when
that's done I run Gnus :)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Synchronizing offlineimap maildir between several computers
2016-03-13 2:27 ` Eric Abrahamsen
@ 2016-03-14 5:28 ` Julien Cubizolles
2016-03-22 14:09 ` Wes Hardaker
0 siblings, 1 reply; 9+ messages in thread
From: Julien Cubizolles @ 2016-03-14 5:28 UTC (permalink / raw)
To: ding
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> I run mbsync (the equivalent of your offlineimap) in the shell, and when
> that's done I run Gnus :)
You're right, sometimes I should give Emacs a break and run some process
outside of it :-)
Julien.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Synchronizing offlineimap maildir between several computers
2016-03-12 10:47 Synchronizing offlineimap maildir between several computers Julien Cubizolles
2016-03-13 2:27 ` Eric Abrahamsen
@ 2016-03-14 21:05 ` Nils Ackermann
2016-03-15 20:57 ` Julien Cubizolles
1 sibling, 1 reply; 9+ messages in thread
From: Nils Ackermann @ 2016-03-14 21:05 UTC (permalink / raw)
To: ding
Julien Cubizolles <j.cubizolles@free.fr> writes:
> I'm using offlineimap to get Maildir copies of several IMAP accounts
> from Gnus. I need to work from two different computers. At the moment,
> I'm synchronizing the .gnus.el file between the 2 computers through
> unison and relying on offlineimap running on the 2 computers to have the
> Maildirs synchronized with the remote IMAP servers of my mail providers.
Last time I tried to do this I ran into problems because unison does not
correctly support hard links, but some features of maildir seem to use
them.
Regards,
Nils
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Synchronizing offlineimap maildir between several computers
2016-03-14 21:05 ` Nils Ackermann
@ 2016-03-15 20:57 ` Julien Cubizolles
0 siblings, 0 replies; 9+ messages in thread
From: Julien Cubizolles @ 2016-03-15 20:57 UTC (permalink / raw)
To: ding
Nils Ackermann <nils@ackermath.info> writes:
> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> I'm using offlineimap to get Maildir copies of several IMAP accounts
>> from Gnus. I need to work from two different computers. At the moment,
>> I'm synchronizing the .gnus.el file between the 2 computers through
>> unison and relying on offlineimap running on the 2 computers to have the
>> Maildirs synchronized with the remote IMAP servers of my mail providers.
>
> Last time I tried to do this I ran into problems because unison does not
> correctly support hard links, but some features of maildir seem to use
> them.
I don't synchronize the maildir through unison, only the .gnus.el file
so I never ran into this problem so far.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Synchronizing offlineimap maildir between several computers
2016-03-14 5:28 ` Julien Cubizolles
@ 2016-03-22 14:09 ` Wes Hardaker
2016-04-27 15:22 ` Julien Cubizolles
0 siblings, 1 reply; 9+ messages in thread
From: Wes Hardaker @ 2016-03-22 14:09 UTC (permalink / raw)
To: Julien Cubizolles; +Cc: ding
Julien Cubizolles <j.cubizolles@free.fr> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> I run mbsync (the equivalent of your offlineimap) in the shell, and when
>> that's done I run Gnus :)
>
> You're right, sometimes I should give Emacs a break and run some process
> outside of it :-)
Nah, just in the background:
(global-set-key "\C-Cg" '(lambda () (interactive)
(async-shell-command "offlineimap.py")))
And that *is* in a separate process outside of it; just starting it from
the right init system!
--
Wes Hardaker
My Pictures: http://capturedonearth.com/
My Thoughts: http://blog.capturedonearth.com/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Synchronizing offlineimap maildir between several computers
2016-03-22 14:09 ` Wes Hardaker
@ 2016-04-27 15:22 ` Julien Cubizolles
2016-05-02 23:10 ` Wes Hardaker
0 siblings, 1 reply; 9+ messages in thread
From: Julien Cubizolles @ 2016-04-27 15:22 UTC (permalink / raw)
To: Wes Hardaker; +Cc: ding
Wes Hardaker <wes@hardakers.net> writes:
> Nah, just in the background:
>
> (global-set-key "\C-Cg" '(lambda () (interactive)
> (async-shell-command "offlineimap.py")))
>
> And that *is* in a separate process outside of it; just starting it from
> the right init system!
How do you cleanly kill offlineimap ?
Julien.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Synchronizing offlineimap maildir between several computers
2016-04-27 15:22 ` Julien Cubizolles
@ 2016-05-02 23:10 ` Wes Hardaker
2016-05-03 7:47 ` Julien Cubizolles
0 siblings, 1 reply; 9+ messages in thread
From: Wes Hardaker @ 2016-05-02 23:10 UTC (permalink / raw)
To: Julien Cubizolles; +Cc: ding
Julien Cubizolles <j.cubizolles@free.fr> writes:
>> (global-set-key "\C-Cg" '(lambda () (interactive)
>> (async-shell-command "offlineimap.py")))
>>
>> And that *is* in a separate process outside of it; just starting it from
>> the right init system!
>
> How do you cleanly kill offlineimap ?
You don't to run it as a daemon. IE, you can run a single invocation of
it to check the required imap folders and then quit.
--
Wes Hardaker
My Pictures: http://capturedonearth.com/
My Thoughts: http://blog.capturedonearth.com/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Synchronizing offlineimap maildir between several computers
2016-05-02 23:10 ` Wes Hardaker
@ 2016-05-03 7:47 ` Julien Cubizolles
0 siblings, 0 replies; 9+ messages in thread
From: Julien Cubizolles @ 2016-05-03 7:47 UTC (permalink / raw)
To: Wes Hardaker; +Cc: ding
Wes Hardaker <wes@hardakers.net> writes:
> You don't to run it as a daemon. IE, you can run a single invocation of
> it to check the required imap folders and then quit.
Also, it turns out that C-c C-c seems to interrupt it nicely.
Regards,
Julien
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-05-03 7:47 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-12 10:47 Synchronizing offlineimap maildir between several computers Julien Cubizolles
2016-03-13 2:27 ` Eric Abrahamsen
2016-03-14 5:28 ` Julien Cubizolles
2016-03-22 14:09 ` Wes Hardaker
2016-04-27 15:22 ` Julien Cubizolles
2016-05-02 23:10 ` Wes Hardaker
2016-05-03 7:47 ` Julien Cubizolles
2016-03-14 21:05 ` Nils Ackermann
2016-03-15 20:57 ` Julien Cubizolles
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).