From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.help Subject: Re: Gnus with Emacs 23: gnus-gcc-mark-as-read not working anymore Date: Tue, 29 Sep 2009 23:33:53 +0200 Message-ID: <878wfx1lmm.fsf@arcor.de> References: <87zl8og1rn.fsf@usenet.my.skamphausen.de> <87eipzto4p.fsf@usenet.my.skamphausen.de> <874oqncbmf.fsf@usenet.my.skamphausen.de> <87zl8e3s7x.fsf@usenet.my.skamphausen.de> <87my4d51iq.fsf@usenet.my.skamphausen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254264267 24120 80.91.229.12 (29 Sep 2009 22:44:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2009 22:44:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 30 00:44:20 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MslQi-0007RA-F5 for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Sep 2009 00:44:20 +0200 Original-Received: from localhost ([127.0.0.1]:53466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MslQh-0005xR-J9 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Sep 2009 18:44:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MskL5-00085b-J2 for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 17:34:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MskL0-0007z5-D4 for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 17:34:27 -0400 Original-Received: from [199.232.76.173] (port=42208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MskL0-0007yl-3X for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 17:34:22 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35470) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MskKz-0000Oe-EN for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 17:34:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MskKw-0004Aj-MG for help-gnu-emacs@gnu.org; Tue, 29 Sep 2009 23:34:18 +0200 Original-Received: from dslc-082-083-033-081.pools.arcor-ip.net ([82.83.33.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Sep 2009 23:34:18 +0200 Original-Received: from deng by dslc-082-083-033-081.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Sep 2009 23:34:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 61 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslc-082-083-033-081.pools.arcor-ip.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:g6aJuxs6rvuUvDfbdetkOOkVMlM= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68544 Archived-At: Stefan Kamphausen writes: > David Engster writes: >>>> This was introduced because of a problem with nnimap as primary mail >>>> backend. See >>>> >>>> http://thread.gmane.org/gmane.emacs.gnus.general/67932 >>>> >>>> Do you use nnml as your primary back end? >>> >>> Yes > I could narrow the problem down to line 1685 in gnus-msg.el: > > (setq group (gnus-group-short-name group))) > > since gnus-group-short-name strips the nnml-prefix. I just evaluated > the gnus-inews-do-gcc defun found in Emacs 22.3 and then everything > worked as expected. OK, I tested this with Emacs 23.1/Gnus v5.13 with the following minimal .gnus.el: (setq gnus-select-method '(nnml "")) (setq gnus-message-archive-group '((cond ((message-news-p) "nnml:saved-news") (t (list "nnml:mail.office.all" (format-time-string "nnml:mail.%Y-%m") ))))) (setq gnus-gcc-mark-as-read t) It works for me. I get the following GCC header Gcc: nnml:mail.office.all nnml:mail.2009-09 and when I send mail, it is marked as read and doesn't show up when I hit 'g'. In fact, when I comment out the call to gnus-group-short-name, it does not work anymore and I get a new article in both groups. I don't know why you're seeing the exact opposite behavior. Please check if the articles actually get marked as read. You can do this by evaluating first (gnus-active "mail.office.all") which will give you the lowest and highest article number, and (gnus-info-read (gnus-get-info "mail.office.all")) which will give you the range of read articles. You should get something like (1 . 10) and ((1 . 10)), resp., with '10' being the highest article number in my case. Then send a message and immediately evaluate the above again. It should be something like (1 . 11) and ((1 . 11)). Regards, David