From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=RCVD_IN_DNSWL_MED,RDNS_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 28379 invoked from network); 19 Mar 2020 07:04:32 -0000 Received: from unknown (HELO lists1.math.uh.edu) (129.7.128.208) by inbox.vuxu.org with ESMTP; 19 Mar 2020 07:04:32 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jEpDu-0005C3-HB; Thu, 19 Mar 2020 02:04:10 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jEpDp-000590-Od for ding@lists.math.uh.edu; Thu, 19 Mar 2020 02:04:05 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jEpDo-0005YT-Cc for ding@lists.math.uh.edu; Thu, 19 Mar 2020 02:04:05 -0500 Received: from ericabrahamsen.net ([52.70.2.18] helo=mail.ericabrahamsen.net) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEpDh-0002oT-Hn for ding@gnus.org; Thu, 19 Mar 2020 08:04:00 +0100 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id B639DFAB67; Thu, 19 Mar 2020 07:03:54 +0000 (UTC) From: Eric Abrahamsen To: Bob Newell Cc: ding Subject: Re: Moving mail generates 'quit' signal References: <871rpoubi8.fsf@emailmessageidheader.nil> Date: Thu, 19 Mar 2020 00:03:53 -0700 In-Reply-To: <871rpoubi8.fsf@emailmessageidheader.nil> (Bob Newell's message of "Wed, 18 Mar 2020 20:03:43 -1000") Message-ID: <87r1xox1uu.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 List-ID: Precedence: bulk Bob Newell writes: > Aloha, > > I've started to fetch mail from two secondary sources. One is > an IMAP server and all is well. The other is POP only and I've > run into an odd issue. > > I have a function that I call after fetching to move mail from > the inbox of the secondary source to my gmail inbox, so > everything will be in the same place in the end. For the > secondary IMAP server this works but for the POP server, I get > a 'quit' condition, which I'm unable to completely trace thus > far. > > Here's the operative code in question. > > First the POP server setup, pretty standard. > > (add-to-list 'gnus-secondary-select-methods '(nnml "pop.netzero.com")) > (setq mail-sources '((pop :server "pop.netzero.com" > :user "thatwouldbeme" > :password "highlysecret" > :port 110 > ) > )) > > Now the move mail stuff. This is a little long but the quit > condition arises below in gnus-group-read-group This will end up calling `gnus-summary-read-group', which calls `gnus-summary-read-group-1', which up top calls `gnus-select-newsgroup', and puts its return value into the let-bound variable `did-select'. If `gnus-select-newsgroup' can't find any articles to read, it returns the symbol `quit'. Then gnus-summary-read-group-1' sees that (in line 4037), and ends up signalling a quit error. It's my bed time, but I'm guessing you should be using a function other than `gnus-group-read-group'. All you want to be doing is checking the group for new messages, right? This function is for interactively entering the group, so the `quit' makes more sense in that situation. If you haven't resolved this by morning my time, I can take another look :) Eric