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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29897 invoked from network); 3 Sep 2021 20:22:00 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 3 Sep 2021 20:22:00 -0000 Received: from localhost ([::1]:47166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMFhG-0005eY-IL for ml@inbox.vuxu.org; Fri, 03 Sep 2021 16:21:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMFOu-0006dH-5y for info-gnus-english@gnu.org; Fri, 03 Sep 2021 16:03:00 -0400 Received: from mail.ericabrahamsen.net ([52.70.2.18]:54238) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMFOl-0002l1-KU for info-gnus-english@gnu.org; Fri, 03 Sep 2021 16:02:57 -0400 Received: from localhost (24-113-148-110.wavecable.com [24.113.148.110]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 7ABCEFA82D; Fri, 3 Sep 2021 20:02:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1630699363; bh=XZfYx/kSQ3l+DmYi87q3iPGh5hnBBvG17UjqYQJ9zTs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=B2SmowRZ2+S5u+FpPpjIkrexCd8GrrtwIQ/PePNvT0Hey7QftDBon/fguLCmygFrY Xq62BpORcgBTH6r0sSKjpn3Fq954o8jXFAzxl3JKz/KeL1Yr6LtK56dXgsZxfUvkTj cxWP41e7nhTG+pdxy2npL5BckUDl43+Ykphyk15M= From: Eric Abrahamsen To: Christoph Groth Subject: Re: Gnus stuck in nnimap-wait-for-response with local dovecot References: <87h7f2dkth.fsf@drac> Date: Fri, 03 Sep 2021 13:02:42 -0700 In-Reply-To: <87h7f2dkth.fsf@drac> (Christoph Groth's message of "Fri, 03 Sep 2021 12:18:02 +0200") Message-ID: <87tuj1jul9.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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: , Cc: info-gnus-english@gnu.org Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" Christoph Groth writes: > Hello, > > I=E2=80=99m still using a mail setup that involves Gnus with nnimap and a= local > 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/b= log/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>>$HOM= E/.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() I can't really guess why this would be happening. The call to `nnimap-request-scan' should be setting everything up properly, so far as I know. Perhaps someone else will have some better tips for debugging. My only other suggestion would be switching to dovecot as an always-on system service, and then switching Gnus to using "localhost" as the IMAP server address. It seems entirely plausible that that will improve things.