all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: Bastien <bzg@gnu.org>
Cc: help-gnu-emacs@gnu.org, Julien Cubizolles <j.cubizolles@free.fr>
Subject: Re: From Gnus to mu4e
Date: Fri, 28 Aug 2015 10:39:31 +0200	[thread overview]
Message-ID: <m2k2sfolh8.fsf@krugs.de> (raw)
In-Reply-To: <87wpwg3b66.fsf@gnu.org> (Bastien's message of "Thu, 27 Aug 2015 19:15:29 +0200")

[-- Attachment #1: Type: text/plain, Size: 2906 bytes --]

Bastien <bzg@gnu.org> writes:

> Hi Rainer,
>
> Rainer M Krug <Rainer@krugs.de> writes:
>
>> There is one program accessing the mail folder: dovecot - no conflicts, race
>> conditions, no slightly different formats, standards, ... And you can
>> also remotely access dovecot if you want to.
>>
>> By the way: the dovecot daemon is not permanently running, as I am using
>> the shell access from gnus:
>>
>> ,----
>> | (nnimap-shell-program "/usr/local/opt/dovecot/libexec/dovecot/imap -o mail_location=maildir:$HOME/Maildir")))
>> `----
>>
>> The same from offlineimap:
>>
>> ,----
>> | preauthtunnel = /usr/local/opt/dovecot/libexec/dovecot/imap -o mail_location=maildir:$HOME/Maildir
>> `----
>
> Interesting -- can you detail this parts of your configuration?

This is how I define my secondary select method in GNUS, which is my
local, with offlineimap synched, mail:

--8<---------------cut here---------------start------------->8---
(add-to-list 'gnus-secondary-select-methods          
                      ;; (nnimap-stream network)
                      ;; (nnimap-server-port 143)
                      ;; (nnimap-address "localhost")))
                      (nnimap-stream shell)
                      (nnimap-shell-program "/usr/local/opt/dovecot/libexec/dovecot/imap -o mail_location=maildir:$HOME/Maildir")))
--8<---------------cut here---------------end--------------->8---

To ose the daemon, you have to toggle the comments (I hope - haven't
done it in a long time...).

In offlineimap, I have the following for my local mail location:

--8<---------------cut here---------------start------------->8---
[Repository LocalRMKrugGMAIL]
type = IMAP
preauthtunnel = /usr/local/opt/dovecot/libexec/dovecot/imap -o mail_location=maildir:$HOME/Maildir
holdconnectionopen = yes
maxconnections = 3
--8<---------------cut here---------------end--------------->8---

So offlineimap uses the binary (.../imap) to connect to my maildir.

>
> I am not using dovecot locally so far, just nnmaildir from Gnus.
>
> But I've encountered some annoying race conditions, while sync'ing
> through mbsync *and* reading/replying from Gnus, so I'm interested
> in knowing how to avoid them -- ideally letting mbsync to run in
> the background.

Interesting.

I have seen that mbsync can also sync to a *running* imap server, but I
do not if you can use something like I use in gnus and offlineimap.

Thinking about the race conditions more, I do not know if my approach
actually avoids them, as there are two different processes of imap
running (one offlineimap, one gnus) accessing the same mail.
I can only say this worked perfectly for me so far.
If you really want to be sure, run everything through a local docecot imap
server.

Cheers,

Rainer


>
> Thanks!

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 480 bytes --]

  reply	other threads:[~2015-08-28  8:39 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20 21:23 From Gnus to mu4e Julien Cubizolles
2015-08-21 10:28 ` Julien Cubizolles
2015-08-21 10:49   ` Colin Yates
2015-08-21 13:06 ` Suvayu Ali
2015-08-26  6:53   ` Julien Cubizolles
2015-08-25  5:49 ` Bastien
2015-08-25  6:28   ` Ian Zimmerman
2015-08-25  6:56     ` Bastien Guerry
2015-08-26  7:22   ` Julien Cubizolles
2015-08-27 12:50     ` Rainer M Krug
2015-08-27 17:15       ` Bastien
2015-08-28  8:39         ` Rainer M Krug [this message]
2015-08-28  8:44           ` Bastien
2015-08-28  8:51             ` Rainer M Krug
2015-08-28  8:58               ` Rasmus
2015-08-28  9:15                 ` Julien Cubizolles
2015-08-28 10:03                   ` Rainer M Krug
2015-08-28 10:08                     ` Rasmus
2015-08-28 10:41                       ` Rainer M Krug
2015-08-28 10:04                   ` Rasmus
2015-08-28  8:51           ` Bastien
2015-08-27 21:27       ` Julien Cubizolles
2015-08-27 23:34         ` Suvayu Ali
2015-08-27 23:50           ` Ian Zimmerman
2015-08-28  0:14             ` Suvayu Ali
2015-08-28  0:24               ` Ian Zimmerman
2015-08-28  8:25                 ` Rainer M Krug
2015-08-28  9:06                 ` Suvayu Ali
2015-08-28 15:31                   ` Ian Zimmerman
2015-08-31  0:16                     ` Suvayu Ali
2015-08-28  8:21         ` Rainer M Krug
2015-08-27 12:58     ` Suvayu Ali
2015-08-27 15:52       ` Glenn Morris
2015-08-27 17:32         ` Suvayu Ali
2015-08-27 17:11       ` Bastien
2015-08-27 17:08     ` Bastien
2015-08-27 17:30       ` Suvayu Ali
2015-08-27 21:52       ` Julien Cubizolles
2015-08-27 22:18         ` Bastien
2015-08-27 23:30           ` Julien Cubizolles
     [not found] <mailman.14.1440105837.31004.help-gnu-emacs@gnu.org>
2015-08-24 11:19 ` Joost Kremers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2k2sfolh8.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=bzg@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=j.cubizolles@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.