From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.help Subject: Re: From Gnus to mu4e Date: Thu, 27 Aug 2015 14:50:03 +0200 Message-ID: References: <87d1yhpsbr.fsf@free.fr> <87lhczyl1p.fsf@free.fr> <87a8tezf7x.fsf@free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1440679917 11512 80.91.229.3 (27 Aug 2015 12:51:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2015 12:51:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Julien Cubizolles Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 27 14:51:42 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUweD-000357-AO for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Aug 2015 14:51:17 +0200 Original-Received: from localhost ([::1]:39970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUweC-0001FP-LB for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Aug 2015 08:51:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUwdF-0000Ql-SR for help-gnu-emacs@gnu.org; Thu, 27 Aug 2015 08:50:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUwdA-0007QD-Jj for help-gnu-emacs@gnu.org; Thu, 27 Aug 2015 08:50:17 -0400 Original-Received: from mail-wi0-f171.google.com ([209.85.212.171]:37149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUwdA-0007Pv-55 for help-gnu-emacs@gnu.org; Thu, 27 Aug 2015 08:50:12 -0400 Original-Received: by widdq5 with SMTP id dq5so44141078wid.0 for ; Thu, 27 Aug 2015 05:50:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=P2cgrNlL3psQzJg/RHJr/yyA8WqXvhNQKbmuriHTSeM=; b=ZLTAUPJV81GWkh90+ZkeXV+f+JTy9bPue7W/ZhbR4BWAA406iCLrMVD9rsOzGVrAgT +H4wZqO39wI4pPwc/kqIfAHmorBAwsNkVvZmuzRcigxHbeWZ5XqsUu4hUoS7E/dAOpra zWDyc7KSGcbuawC0arOamxQj8IZUQ/XGWLeKzHlaHt32OGvNEolaD4FBZaGhctX/RPn9 CPcLJ73iZu5DVu1l3ubjlq7BUGY6sWc1syUvbz3+OWuCHQCVTt9rvVBpCU0ak3Dm9J61 e6LwzDw9OGNRRMYb/4vleUpgjribU63/Esgtc/LBX7/zFa0VsnF3KGj7mSqJltTRzODf xSCA== X-Received: by 10.180.75.75 with SMTP id a11mr19546750wiw.27.1440679811267; Thu, 27 Aug 2015 05:50:11 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by smtp.gmail.com with ESMTPSA id k12sm2996023wjw.4.2015.08.27.05.50.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2015 05:50:10 -0700 (PDT) In-Reply-To: <87a8tezf7x.fsf@free.fr> (Julien Cubizolles's message of "Wed, 26 Aug 2015 09:22:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.171 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106865 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Julien Cubizolles writes: > Bastien writes: > >> Julien Cubizolles writes: >> >>> I'm considering moving from Gnus to mu4e, mostly because I spend too >>> much time tinkering with settings I don't really understand/need in >>> Gnus, and because the search feature seems promising. >> >> After a *lot* of scratching and testing, here is my setup: >> >> - Gnus for news and mails: because there are too many things I miss in >> other MUA. A simple example: quote only the selected region when >> replying. This cannot be implemented easily in mu and notmuch. >> >> - notmuch as a search engine: mu is really great (I used it the last >> three months) but I cannot get used to mu4e. And starting mu4e with >> a database of 100K emails takes two or three seconds. >> >> - mbsync to sync imap folders as local maildirs: I used offlineimap >> for several years and mbsync is just faster. Sorry - I am late to this question. I am using the same setup, only with offlineimap - it works, and speed is not such a problem for me so that I would move to mbsync. > > That seems very interesting, and I think I'll try to set it > up. offlineimap or mbsync seems to be the right way to: > + have a fast access to my mail (nnimap from Gnus on a remote server > is a bit slow sometimes) > > + have a complete access from my mobile phone > > + I can still choose whatever MUA I want on top of that if I want to > try something else thant Gnus and still access my old nnml mail. Exactly - and you can easily make backups from your all your emails in a format which will be supported for quite some time. > > I have a few questions about some details of your setup: > > + regarding filtering and spam detection, do you rely on the > possibilities offered by you mail provider (Gmail or other)? I am using gmail for this - thought for some minutes about implementing it locally, but gmail works reliable. > > + you said you're running Dovecot. Gnus could also directly access the > local maildir without a local imap server the way mu4e does, couldn't > it=C2=A0? What's the benefit of running it=C2=A0? 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 mai= l_location=3Dmaildir:$HOME/Maildir"))) `---- The same from offlineimap: ,---- | preauthtunnel =3D /usr/local/opt/dovecot/libexec/dovecot/imap -o mail_loc= ation=3Dmaildir:$HOME/Maildir `---- and offlineimap only reads the emails from the maildir. And I have found the following two functions to open the same message which is open in gnus in notmuch and the other way around: =2D-8<---------------cut here---------------start------------->8--- ** In notmuch jump to gnus folder From=20[[http://roland.entierement.nu/blog/2010/09/08/gnus-dovecot-offlinei= map-search-a-howto.html]]: But seeing just the message that matches is not enough,=20 sometimes we want the whole thread. Here's a snippet of=20 Lisp for your .gnus, based on Tassilo Horn's configuration.=20 Do a Notmuch search, enter one of the results, type C-c C-c,=20 you'll get transported to the folder where that message was,=20 with the context. Note this requires code from org-mode,=20 so you might need to install that. #+begin_src emacs-lisp (defun rmk/notmuch-file-to-group (file) "Calculate the Gnus group name from the given file name. " (let ((group (file-name-directory (directory-file-name (file-name-directo= ry file))))) (setq group (replace-regexp-in-string ".*/Maildir/" "nnimap+Maildir:" g= roup)) (setq group (replace-regexp-in-string "/$" "" group)) (if (string-match ":$" group) (concat group "INBOX") (replace-regexp-in-string ":\\." ":" group)))) (defun rmk/notmuch-goto-message-in-gnus () "Open a summary buffer containing the current notmuch article." (interactive) (let ((group (rmk/notmuch-file-to-group (notmuch-show-get-filename))) (message-id (replace-regexp-in-string "^id:" "" (notmuch-show-get-message-id)))) (setq message-id (replace-regexp-in-string "\"" "" message-id)) (if (and group message-id) (progn=20 (switch-to-buffer "*Group*") (org-gnus-follow-link group message-id)) (message "Couldn't get relevant infos for switching to Gnus.")))) (define-key notmuch-show-mode-map (kbd "C-c C-c") 'rmk/notmuch-goto-message= -in-gnus) #+end_src =2D-8<---------------cut here---------------end--------------->8--- Hope this helps, Rainer > >> - postfix with smtp_sender_dependent_authentication to use various >> smtp servers depending on the email I'm using. I see people use >> msmtp and msmtp-mta, which I tried for a while, but I'm just too >> impatient with the .3s you have to wait when sending.=20=20 > > From looking at my fossilized .gnus.el, I'm using smtpmail, which > would be equivalent to msmtp. > > + I'm gonna need to duplicate this setup on two machines (laptop and > desktop). I guess running offline imap on the two machines and > synchronizing the nnml, nnarchive mail by unison would work. > > Thanks a lot for all this information. I've a much clearer idea of all > the possibilities now. > > Julien. > > > =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJV3weAAAoJENvXNx4PUvmCsHkIAJyfbF3YoJBmWFzsiuIhP/OK HupTF0uOkWWqkDgX+fis2GiWZ6KGfxsvZhbzhjMXeurl29McHi1l8SMKWejEnQUM ZPvDJu7hsVVBddAi6xGo/0BSSawyz93abFCpUdIK3pPg9Ts9mML3XsYfNpEC7+Kz vEtYy8wEub31rsw1pW+jJ+lr+wWkL429CBz8uow35eF9diNNTcBdou5X64fomDcb fNKKQILu9sPiVl06AYvlUbVTiK43qw1t2qey61KqwouKHzkZ0cUjC/xC+ZHvQBtU aSh5WETo0in7I3eDU28+ZikNSmYZ45upoaMveocvFQqZxelP/fL6yMKODGAfhpA= =3BAx -----END PGP SIGNATURE----- --=-=-=--