From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from mx1.math.uh.edu (mx1.math.uh.edu [129.7.128.32]) by inbox.vuxu.org (Postfix) with ESMTP id 5C198299AC for ; Mon, 4 Nov 2024 01:46:49 +0100 (CET) Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t7lF2-00000002Y2R-060h for ml@inbox.vuxu.org; Sun, 03 Nov 2024 18:46:48 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1t7lF0-00000006NzC-3Isz for ml@inbox.vuxu.org; Sun, 03 Nov 2024 18:46:46 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1t7lEz-00000006Nz6-1bx0 for ding@lists.math.uh.edu; Sun, 03 Nov 2024 18:46:45 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t7lEu-00000001RVM-2oXs for ding@lists.math.uh.edu; Sun, 03 Nov 2024 18:46:45 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lkaDsozuJv8fwfCMg7nnwx260um5LJPxyQOChXTUkxE=; b=H3QMrbOvu37smXxSSOSOCleLmJ eWjNliDU45LqMmkHZyt7WArMJm6mJPuz9uk1Q6bpw/B42yyhInM0Qw9apnE8XIRRRkVTCC48QkLc9 UToVJCqZWfY9xKpDCDA0+/pntEWFduu42Cmc0U++eKAl4uoYvlwwe4GElD+HXqqCKnvc=; Received: from mout.gmx.net ([212.227.17.20]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t7lEn-0002ZJ-M2 for ding@gnus.org; Mon, 04 Nov 2024 01:46:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1730681192; x=1731285992; i=jimjoe@gmx.net; bh=lkaDsozuJv8fwfCMg7nnwx260um5LJPxyQOChXTUkxE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=NJl7d3sLFVZlhuOp6quRyv7i7U7Z9NgesKHJkuXlJMCWpuIGfmaT8aTpg4qOstjg Ww3eY5AR+dT943XOYHBBIEKgQ7l91gkOyegm2SnjC3NrfujWkJI3SISeLE6Xvt2FO oZEYWfMqEl/Qsg9MPgefHD9cB8c+4EvZGMxHdcmANxdJTxuF1J6aCd/fGx7rbrsrS fMsMRiXksUYtVnkNxINVxcc6PQAPWko8L5gp45MlpZlW/jSfStGzorw4P5gzv1MmK bueWSXH/kALPCpecCOx9k5d4wCpHe9pDJs3X3fYHzpVRudg0d56oxwCWS/dxKM1Wq FBXdkMKGIcb/du7kwA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from user-Inspiron-3493 ([42.108.30.70]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MXGvG-1tKUf32WbO-00LmZp; Mon, 04 Nov 2024 01:46:32 +0100 From: James Thomas To: Divya Ranjan Cc: ding@gnus.org Subject: Re: Agent and IMAP In-Reply-To: <865xpx5zi0.fsf@gmx.net> (James Thomas's message of "Sat, 12 Oct 2024 17:01:19 +0530") References: <874j5is2i8.fsf@subvertising.org> <86ldyu19g6.fsf@gmx.net> <87plo6otvl.fsf@subvertising.org> <865xpx5zi0.fsf@gmx.net> Date: Mon, 04 Nov 2024 06:16:26 +0530 Message-ID: <86ses7esgt.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:B/OjUnrCmBfwxVqw+ZLB94oVr5xdY2R/nuI7+9TdvYCttn2nlMd 5mh49nkcMw5doC3lonv3TmLlk6EUVApprXaNlmH5tACNhQuf4AtE7XlcANTaEHOlMKe+Afu O/8VR3nxUic8KSRq14Pq/jdRsTtDX4CZq0C1m7UUpkP23b/vYXcZS73t/MPrmdKPNI0TuUl AmnO2onIKATKFLaA1fcBg== UI-OutboundReport: notjunk:1;M01:P0:Jt0uKGuAFXc=;amw+Cr/dNOQdt5itgcmKZqExX+H /EPXM6t4U3RmSfMhJckM8MLg/h9HBAtG1JVPklTlxysJuI5NkEELdRf4ukwjorJVFOXzUsnbv pbLWhdlwUWz82Vf4bLD3rcEQwrDKCVySyO7eAf4kWtjVHJaD9V6YqX1k4SyTMLcZU6yewpqgr qGkzu3nULVANSSG3QjQ5K0Nsvf4a2LD/E2h7uz9QN3hYX8dw+KjZj/fxDn3A6FL4xCVQvAQfa T34z57GQcfV3+9AtgDL74c3OG2n7I60QeDN8DKi+p9EgO4PtvyS/Jvtyhg0WqPaVlgxuGsqeb Okhpk9AMEIWxtoMs9vZrOLt+ccECkLXR92A6V0Kz8AtzBv1VQ35lXhdi6K/2enFS8eLqAABc8 tx9QF8Ru8zsI40NapfoYYNP77TCnpFi1t0wHLrK/Zt6nkyYlviezZanenvy1EzpojCGKNN85T EZghYkL9nAfvBRvNySDxtkO7QxMErExn4FJBxgjdN7qH17BD0mH6hzMnH9FUAlbURkSNKiL47 zYeZXZMdwf2kqD0NL5d2GrPN40uU7ccJb6ZHZ4Ee+xEJorefLsCWU86sIWtilIQqng08xmuYw Vh+DIjy1RbGgMut2Ex/Dq1iRm8RwKviakxrlHVaMbpo4QwuO3UpPhQpA3RMgap1M5NQLhsFNh D6pmsyxcrl2oqwIJpResWY3WiSyRSCtxvl6PHnK2B321l1RpWZ4L8sSRfo0f6aiMwfXwLTK39 AQfPFtZfamPKHcbbKhY46GmIo68Or5xYeGf+N3/YYDAOIIUYc/X92UcRXkM5N2UB/LUtN2+Fk 6XBHbb+OaX34Wwl3baIXdB6g== List-ID: Precedence: bulk James Thomas wrote: > (defun my/gnus-demon-scan-mail () > (gnus-agent-while-plugged > ;; Only level 3 servers should be agentized, for this. > (gnus-agent-synchronize-flags) > ;; Inbox. > (gnus-group-get-new-news 3 t) > (with-temp-message "" > ;; Spam. > (gnus-group-get-new-news 4 t) > (gnus-agent-fetch-session)) > (unless (equal (current-message) gnus-no-groups-message) > ;; Custom alert function. > (alert)) > (call-interactively #'gnus-group-list-groups))) Actually, this is the function I used to use: --8<---------------cut here---------------start------------->8--- (defun my/gnus-demon-scan-mail () (gnus-agent-while-plugged ;; Get marked. (gnus-agent-fetch-session) (gnus-agent-possibly-synchronize-flags) (gnus-group-get-new-news 4 t) (with-temp-message "" ;; Get new headers. (gnus-agent-fetch-session)) (unless (equal (current-message) gnus-no-groups-message) (alert)))) --8<---------------cut here---------------end--------------->8--- I'd removed some stuff that I (wrongly) thought unnecessary. Also, these are in my .gnus.el: (setq gnus-agent-synchronize-flags t) (setq gnus-agent-go-online t) And the default (info "(gnus) Agent Categories") was changed from 'short' to 'false'. Just FYI. Regards, James