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=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_MED,RDNS_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 21058 invoked from network); 19 Mar 2020 06:04:44 -0000 Received: from unknown (HELO lists1.math.uh.edu) (129.7.128.208) by inbox.vuxu.org with ESMTP; 19 Mar 2020 06:04:44 -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 1jEoHi-0004fa-P1; Thu, 19 Mar 2020 01:04:02 -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 1jEoHc-0004cp-7V for ding@lists.math.uh.edu; Thu, 19 Mar 2020 01:03:56 -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 1jEoHa-0005IL-60 for ding@lists.math.uh.edu; Thu, 19 Mar 2020 01:03:55 -0500 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEoHT-0002Id-JL for ding@gnus.org; Thu, 19 Mar 2020 07:03:50 +0100 Received: by mail-pf1-x444.google.com with SMTP id z65so832180pfz.8 for ; Wed, 18 Mar 2020 23:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:organization:date:message-id:user-agent :mime-version; bh=OvKzn1hOKywc8k3BjHsMXHO1Z2CDoXlArbHdInKdw/s=; b=xPmz/El1LUXbBBZT/Gesoav5hVHZfZfpMWgwyT7ScBLgMBHmkEXRfMNokkxdqHfm5f kWk8TrDwsbwR8xCAai8iGLks5/WrcpoCP/JRRXUU3qq2tJzcdVETkHvsX14OebVrLW2P YuBgaIslH9ysV7e09aE1FeKBCVs1949ylbGpTTvuv7FvfHCV9uPp9gi5UpueW2Cgj7KO Lzez3/bHwCnr1k+syoP8/6+nYYMRNDwcKhYcLYBkaht/6s95jQp0yBfBQjB06Jpyzgrv MDfEZgOE9cMfdJRk37jrmStKeI2vcFQP2EtALWwrfzUxuLfkQ+NjodXzDIWO6uKiJIQ3 y59Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:date:message-id :user-agent:mime-version; bh=OvKzn1hOKywc8k3BjHsMXHO1Z2CDoXlArbHdInKdw/s=; b=C4ux7bd7aSodqRGGdfPjC9QtBSl7AZ9C2fcgDRV1hIK4An+49bbJQ7HwNN9M+Kxkoh JOvREQPhrJzwse3R5W7oevlDsID4aE7WXjZqBZCj08rRnRFc4Ut5wkJ2PQOFVCJzss+J epsVc6qCYXCTWnWFutfeZmM5MBK9lauE3sLHX16JsGbkUdwyTO93P2MrdzkMstXk3aRE X5FWw09XEt9o92iH16rFu9+ECyEaslKHvPNZ/TaxuZo1FmHuHZMkuL4DwJtK3vc5zFMA C/UugOUrKLgThjE4f2nqajzFmiTlv8y1w1twOhAVAyXhUhJxAMarcrqHThcV/QdBA7DE QQsQ== X-Gm-Message-State: ANhLgQ2auwe6S8ZTklu/R1Vq1DPuzhVovV43r92nBAPAcAFVJZdr2fww 8Yn0U8Kvr+65LG04gWwRddGTd94XZNcNag== X-Google-Smtp-Source: ADFU+vtekjOpHWXFcEDg0Ys3D9QbrqzwokRQ+dLIIne8W4jovfwS/oRqmIFaqJkfioJl59b8KLS8tg== X-Received: by 2002:a63:8c18:: with SMTP id m24mr1729815pgd.70.1584597825016; Wed, 18 Mar 2020 23:03:45 -0700 (PDT) Received: from localhost (udp072992uds.hawaiiantel.net. [141.239.244.209]) by smtp.gmail.com with ESMTPSA id q103sm3842141pjc.1.2020.03.18.23.03.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2020 23:03:44 -0700 (PDT) From: Bob Newell To: ding Subject: Moving mail generates 'quit' signal Organization: Avi Gobbler Publishing Date: Wed, 18 Mar 2020 20:03:43 -1000 Message-ID: <871rpoubi8.fsf@emailmessageidheader.nil> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk 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, when I call like this: (rjn-do-mail-move "nnml+pop.netzero.com:mail.misc" "nnimap+imap.gmail.com:INBOX") The quit condition is only when there is no mail to move. If there is mail to move, it works fine. I've taken to surrounding the line above like so: (condition-case quit (rjn-do-mail-move "nnml+pop.netzero.com:mail.misc" "nnimap+imap.gmail.com:INBOX") (quit nil)) ) This makes the problem go away but doesn't tell me why I have it. Here's the rest of the code. (defun rjn-do-mail-move (frombox tobox) "Move mail between mailboxes, even if between different IMAP servers" (save-window-excursion ;; This selects the 'from' group if there is anything in it, ;; returning t. If nothing in the group, return nil and do nothing ;; further. Note, we are not counting unread articles, we are ;; counting read AND unread, so gnus-group-unread won't work. We ;; move ALL articles, even old ones. ;; gnus-group-read-group seemingly returns t if there is ;; anything in the group and nil if not. But a quit ;; condition apparently arises if the 'frombox' is an nnml ;; group which is empty. (if (gnus-group-read-group 9999 t frombox) ;; We have articles (mail, maybe) to move. (progn ;; Mark all articles with process mark. (gnus-uu-mark-buffer) ;; Move them in bulk to the 'to' group. (gnus-summary-move-article nil tobox nil) ;; Mark the 'from' group as caught up. (gnus-summary-catchup t t) ;; Leave the 'from' group. (gnus-summary-exit) ;; Reset the group display to what it normally would be. (gnus-group-list-groups))))) I know this is weird and obscure but if anyone has an idea I'd be most appreciative. -- Bob Newell Honolulu, Hawai`i - Via Gnus/BBDB/Org/Emacs/Linux