From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16583 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.gnus.user Subject: Re: Gnus state, feed commands Date: Wed, 20 Nov 2013 23:00:37 +0000 Message-ID: <87mwkyisq2.fsf@motoko.kusanagi> References: <87ob5k1a9q.fsf@nl106-137-194.student.uu.se> <87ppq0yuza.fsf@nl106-137-194.student.uu.se> <8761rq4m3u.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1384988459 11795 80.91.229.3 (20 Nov 2013 23:00:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2013 23:00:59 +0000 (UTC) To: info-gnus-english-mXXj517/zsQ@public.gmane.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Nov 21 00:01:05 2013 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VjGld-0004PH-79 for gegu-info-gnus-english@m.gmane.org; Thu, 21 Nov 2013 00:01:05 +0100 Original-Received: from localhost ([::1]:57543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjGlc-0006I4-Qd for gegu-info-gnus-english@m.gmane.org; Wed, 20 Nov 2013 18:01:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjGlU-0006Hw-Lc for info-gnus-english-mXXj517/zsQ@public.gmane.org; Wed, 20 Nov 2013 18:01:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjGlO-0005fv-R7 for info-gnus-english-mXXj517/zsQ@public.gmane.org; Wed, 20 Nov 2013 18:00:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjGlO-0005fg-Kg for info-gnus-english-mXXj517/zsQ@public.gmane.org; Wed, 20 Nov 2013 18:00:50 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VjGlN-0004Fy-0m for info-gnus-english-mXXj517/zsQ@public.gmane.org; Thu, 21 Nov 2013 00:00:49 +0100 Original-Received: from nl1.vpn-service.biz ([37.230.118.214]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Nov 2013 00:00:49 +0100 Original-Received: from wgreenhouse by nl1.vpn-service.biz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Nov 2013 00:00:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: nl1.vpn-service.biz X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:OVQ0ymF9kha3sB5P2Vel1GBnRf4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 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+gegu-info-gnus-english=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.gnus.user:16583 Archived-At: Emanuel Berg writes: > I "sort of" solved this. Check out the comments. [...] Cool. An alternate approach to the problem: track the place Gnus is getting its mail from. `display-time-mode' has some built-in support for this. My MTA delivers new mails for me to a Maildir at ~/Maildir, so with (setq display-time-mail-directory "~/Maildir/new/") I can get "Mail" in my mode line when display-time-mode is on and mail arrives at ~/Maildir. In the Maildir format, the new/ subdir is where mails arrive; when Gnus processes them, whether by marking them unread or flagged or splitting them to other folders, they are moved to cur/, so new/ will only contain new, unprocessed mail. There are also options to use an mbox file or an arbitrary function to test for the rpesence of new mail every time `display-time' updates. If you use Gnus `mail-sources' to control where your mail comes from, you might try (setq display-time-mail-function 'mail-source-new-mail-p)