From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62793 Path: news.gmane.org!not-for-mail From: Wolfram Fenske Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap: gnus-gcc-mark-as-read not working Date: Fri, 14 Apr 2006 10:20:36 +0200 Message-ID: <86ek0036wb.fsf@student.uni-magdeburg.de> References: <86sloh3ua8.fsf@student.uni-magdeburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1145002873 2789 80.91.229.2 (14 Apr 2006 08:21:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2006 08:21:13 +0000 (UTC) Original-X-From: ding-owner+m11320@lists.math.uh.edu Fri Apr 14 10:21:12 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FUJYB-0007Iy-Db for ding-account@gmane.org; Fri, 14 Apr 2006 10:21:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FUJY5-0005Q1-00; Fri, 14 Apr 2006 03:21:01 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FUJXu-0005Pw-00 for ding@lists.math.uh.edu; Fri, 14 Apr 2006 03:20:50 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FUJXp-0007sq-3v for ding@lists.math.uh.edu; Fri, 14 Apr 2006 03:20:50 -0500 Original-Received: from mail.uni-magdeburg.de ([141.44.1.10]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FUJXo-0008UO-00 for ; Fri, 14 Apr 2006 10:20:44 +0200 Original-Received: from sunny.urz.uni-magdeburg.de ([141.44.8.7]) by mail.uni-magdeburg.de with esmtp (EXIM Version 4.43) for id 1FUJXl-0004ss-Or; Fri, 14 Apr 2006 10:20:44 +0200 Original-Received: from hondo (pD9514A4D.dip0.t-ipconnect.de [217.81.74.77]) (authenticated bits=0) by sunny.urz.uni-magdeburg.de (8.12.10/8.12.10) with ESMTP id k3E8KcTH021578 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 14 Apr 2006 10:20:39 +0200 Original-To: ding@gnus.org In-Reply-To: <86sloh3ua8.fsf@student.uni-magdeburg.de> (Wolfram Fenske's message of "Fri, 14 Apr 2006 01:55:27 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.18 (berkeley-unix) X-Spam-Score: -2.6 (--) X-Spam-Report: ---- Start SpamAssassin results -2.6 points, 5.0 required; -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.0 AWL AWL: From: address is in the auto white-list ---- End of SpamAssassin results X-Scan-Signature: 9dbd3a33e85c86c9af479440e64c4c90 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62793 Archived-At: --=-=-= Wolfram Fenske writes: > Hello! > > I have sent mail Gcc-ed to a folder on my IMAP-server. This mostly > works, but the copy in the sent-mail folder is never marked as read. > In my .gnus.el I have: > > --8<---------------cut here---------------start------------->8--- > (setq gnus-message-archive-group "nnimap+uni:INBOX.sent-mail" > gnus-gcc-mark-as-read t) > --8<---------------cut here---------------end--------------->8--- > > If I use nnfolder [...], archiving works as it should. I've tracked it down. The error occurs here: --8<---------------cut here---------------start------------->8--- (defun gnus-group-make-articles-read (group articles) "Update the info of GROUP to say that ARTICLES are read." (let* ((num 0) (entry (gnus-gethash group gnus-newsrc-hashtb)) ... ; some more initializing (when entry ... ; do all the work --8<---------------cut here---------------end--------------->8--- For my IMAP sent-mail group, "entry" is always "nil" because "group" is "nnimap+uni:INBOX.sent-mail" but my ~/.newsrc.eld contains only entries like "INBOX.sent-mail", i. e. the prefix "nnimap+uni:" is missing. Now the question is: why don't I have the prefixes in ~/.newsrc.eld? Is this because nnimap is my primary gnus-select-method? A while back I had nnimap as my secondary select method and I think I didn't have this problem then. Also: is there a bug in "gnus-group-make-articles-read" or is it my config? I tought --8<---------------cut here---------------start------------->8--- (setq gnus-message-archive-method '(nnimap "my.imap.server.de") gnus-message-archive-group "INBOX.sent-mail") --8<---------------cut here---------------end--------------->8--- might do the trick, but this didn't fix it, either. If there really is a bug, and someone can tell me what's going on with those prefixes, I'd be happy to write a patch. Until then, I'm using this workaround: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=make-articles-read.patch *** gnus-sum.el.orig Fri Apr 14 08:01:20 2006 --- gnus-sum.el Fri Apr 14 10:04:05 2006 *************** *** 5744,5749 **** --- 5744,5754 ---- "Update the info of GROUP to say that ARTICLES are read." (let* ((num 0) (entry (gnus-gethash group gnus-newsrc-hashtb)) + (entry (or entry + ;; strip the backend prefix and try again + (when (string-match "\\([^+]+\\+[^:]+:\\)?\\(.+\\)" group) + (setq group (match-string 2 group)) + (gnus-gethash group gnus-newsrc-hashtb)))) (info (nth 2 entry)) (active (gnus-active group)) range) --=-=-= Regards Wolfram -- A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? --=-=-=--