From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77854 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: IMAP and IDLE... Date: Wed, 16 Mar 2011 13:48:21 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87y64eucju.fsf@lifelogs.com> References: <87k4fzxjbp.fsf@lifelogs.com> <878vwfxi3d.fsf@gandalf.home.thebuble.org> <87hbb3w35i.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300301427 17242 80.91.229.12 (16 Mar 2011 18:50:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2011 18:50:27 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26172@lists.math.uh.edu Wed Mar 16 19:50:22 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PzvnZ-0002hj-0B for ding-account@gmane.org; Wed, 16 Mar 2011 19:50:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PzvnR-0003fi-Ae; Wed, 16 Mar 2011 13:50:13 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PzvnP-0003fR-Tu for ding@lists.math.uh.edu; Wed, 16 Mar 2011 13:50:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PzvnL-0005KB-Qm for ding@lists.math.uh.edu; Wed, 16 Mar 2011 13:50:11 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PzvnL-0004VK-3I for ding@gnus.org; Wed, 16 Mar 2011 19:50:07 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PzvnK-0002ZC-NJ for ding@gnus.org; Wed, 16 Mar 2011 19:50:06 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Mar 2011 19:50:06 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Mar 2011 19:50:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:GSY5fNkVyqLC2udsIkc4Rkt6aA4= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77854 Archived-At: On Wed, 16 Mar 2011 18:35:41 +0100 Lars Magne Ingebrigtsen wrote: LMI> Ted Zlatanov writes: >> I'd need a count and to be able to peek at the sender and subject of the >> INBOX, plus to be able to dump the INBOX messages' body text (without >> attachments) in a temp buffer. So I can say "oh there's mail... let me >> peek... no, it's not worth splitting it yet." This is how I work now. LMI> Right, a count might be nice... I'll keep it in mind when (or if) I LMI> tackle the IDLE issue. LMI> So far, there's three use cases for idling on INBOX: LMI> 1) Pull down and split everything there LMI> 2) For server-side splits, just update the INBOX group -- the LMI> interesting mail is in the INBOX LMI> 3) Just report the number of unsplit messages in INBOX, so that it can LMI> be acted on manually Maybe a nnimap backend variable of "IDLE-handler" would be nice. It would receive a list of the new raw message bodies and then the user can decide what to do by customizing that handler. So we can provide pre-defined defaults: for (1), 'run-splits for (2), 'update-INBOX for (3), a custom lambda or symbol That way you can implement the IDLE functionality without worrying about writing all the rest of the code immediately. Ted