From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27608 invoked from network); 3 Sep 2021 10:18:38 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 3 Sep 2021 10:18:38 -0000 Received: from localhost ([::1]:50994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mM6HM-0004I4-6D for ml@inbox.vuxu.org; Fri, 03 Sep 2021 06:18:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM6HI-0004Hw-O8 for info-gnus-english@gnu.org; Fri, 03 Sep 2021 06:18:32 -0400 Received: from dia.uberspace.de ([185.26.156.221]:51228) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mM6HA-0001ZV-DP for info-gnus-english@gnu.org; Fri, 03 Sep 2021 06:18:32 -0400 Received: (qmail 23079 invoked from network); 3 Sep 2021 10:18:13 -0000 Received: from localhost (HELO localhost) (127.0.0.1) by dia.uberspace.de with SMTP; 3 Sep 2021 10:18:13 -0000 From: Christoph Groth To: info-gnus-english@gnu.org Subject: Gnus stuck in nnimap-wait-for-response with local dovecot Date: Fri, 03 Sep 2021 12:18:02 +0200 Message-ID: <87h7f2dkth.fsf@drac> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.26.156.221; envelope-from=christoph@grothesque.org; helo=dia.uberspace.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I=E2=80=99m still using a mail setup that involves Gnus with nnimap and a l= ocal dovecot that is run on demand. I sync mail between the local maildir (that is used by dovecot when it runs) and remote IMAP servers using isync/mbsync. I learned about this setup from Eric Abrahamsen on the ding mailing list in the old days. I believe that the original presentation of the idea was this blog post: https://web.archive.org/web/20160427162529/http://roland.entierement.nu/blo= g/2010/09/08/gnus-dovecot-offlineimap-search-a-howto.html On the Gnus side, the setup is based on setting nnimap-shell-program to "/usr/lib/dovecot/imap -o mail_location=3Dmaildir:$HOME/.mail/%s/ 2>>$HOME/= .dovecot.err" only that this happens inside a setup involving fancy splitting. (This way of using dovecot seems to be somewhat obscure, or at least I haven=E2=80=99t been able to find much documentation about it.) Anyway, my setup has been working like this for many years now, but there=E2=80=99s a wart. Whenever there is new mail and I launch M-x gnus, = it will typically freeze during startup and I have to abort with C-g and retry. After retrying one or two times Gnus does start and everything seems to work normally. The new mail is visible in Gnus. Here is the kind of the backtrace that I can typically obtain in the situation Debugger entered: ("Quit") nnimap-wait-for-response(839) nnimap-get-groups() nnimap-split-incoming-mail() nnimap-request-scan(nil "cea") gnus-request-scan(nil (nnimap "xyz" (nnimap-stream shell) (nnimap-unsplit= table-articles (%Deleted)) (nnimap-shell-program "/usr/lib/dovecot/imap -o = mail_location=3Dmaildir:$HO...") (nnimap-split-methods (("blabla" "^list-id= : .*)() gnus-1(nil nil nil) gnus(nil) funcall-interactively(gnus nil) call-interactively(gnus record nil) command-execute(gnus record) execute-extended-command(nil "gnus" "gnus") Perhaps someone has an idea on how I could debug this further? Or perhaps there is a better setup to which I could switch? Perhaps I should consider https://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html and do away with notmuch and the hack that is needed to connect it to Gnus. Cheers Christoph --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJNBAEBCgA3FiEEP6x58QAOdlLG0jena2rszJGp28QFAmEx9loZHGNocmlzdG9w aEBncm90aGVzcXVlLm9yZwAKCRBrauzMkanbxBDnD/924EjIn47LE3sgfetocHPh fXh0iboDToAIX4d4iVxg4b7wwjiyYxA7n2yCGUiWCkJFC7CuAnHJnYeo8S9G8r1d R8GYj6AVscRwzPAo1vZf6+XAHpZbkVTKni7SU7g/YF5CysJ2d+PElhUjH9rtFpq3 sEQ0Ol1YDhYNUGxLoOlXL2z/WtZspnlU5nG5wkpuRJogYZFOsXxxhOWbyoE5Pdfl TSA5QA6SxJBl837JzDj0tIfQMM/0O1JN52keU9osYHLTqYC+KPy87MgIIRJ24RUy 4/vT1PjVoeFcqsz/VH91tcVcoQT5R4Xk1Sm7roNmMoJu4i0L5vNtWjzNJXfW6gbT a2HkS9McEcczIxGzuk5fh6QNkgYvzOeRfiLUU2FcyFV9QDIf931PxnZXGk3vr8e5 Frr4PO9XwNmHC8ozqetXDGrVY/W1fqrE/7XQx2lFL+/312ZslNfV1AHahvkXeHeJ XsI81Z+b+PObASHie9OU2GLJRVUW48zkVgRCMGaBCg1K0//Ed/IB8Gntif6WIqHb MsFJVWHfAOUy0GRh16HoG8T0BgPwaI3t2089NVnAinlGiMeE/F8Uoo4nRh+yDken iGC5mF+b109kfx/wfXQmZbDwsFzOQ1GGbaqWlPQ8+wlNr7uSt8xfiXmNnm/2HY3E 8eSeU+kJUMwihR25gp2Diw== =toHl -----END PGP SIGNATURE----- --=-=-=--