From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/26396 Path: main.gmane.org!not-for-mail From: Denys Duchier Newsgroups: gmane.emacs.gnus.general Subject: How to ask the IMAP server if new mail has arrived Date: 08 Nov 1999 15:49:28 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163613 19173 80.91.224.250 (21 Oct 2002 01:26:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:26:53 +0000 (UTC) Cc: Simon Josefsson Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA02371 for ; Mon, 8 Nov 1999 09:49:55 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAB29460; Mon, 8 Nov 1999 08:49:54 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 08 Nov 1999 08:50:12 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id IAA11309 for ; Mon, 8 Nov 1999 08:50:02 -0600 (CST) Original-Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA02363 for ; Mon, 8 Nov 1999 09:49:31 -0500 (EST) Original-Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.9.3/1999070600) with ESMTP id PAA23272; Mon, 8 Nov 1999 15:49:28 +0100 (CET) Original-Received: from grizzly.ps.uni-sb.de (grizzly.ps.uni-sb.de [134.96.186.68]) by cs.uni-sb.de (8.9.3/1999031900) with ESMTP id PAA20837; Mon, 8 Nov 1999 15:49:29 +0100 (CET) Original-Received: (from duchier@localhost) by grizzly.ps.uni-sb.de (8.9.1a/8.9.1) id PAA14562; Mon, 8 Nov 1999 15:49:28 +0100 Original-To: ding@gnus.org Original-Lines: 15 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:26396 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:26396 On to puzzle number 2. Can someone come up with a handy function that asks the IMAP server if any new mail has arrived, and returns the appropriate boolean. Then I could just use that to e.g. redefine display-time-file-nonempty-p to get the desired Mail warning in the mode line. Thanks, -- Dr. Denys Duchier Denys.Duchier@ps.uni-sb.de Forschungsbereich Programmiersysteme (Programming Systems Lab) Universitaet des Saarlandes, Geb. 45 http://www.ps.uni-sb.de/~duchier Postfach 15 11 50 Phone: +49 681 302 5618 66041 Saarbruecken, Germany Fax: +49 681 302 5615