From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68050 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: Automatically marking Gcc's as SEEN in nnimap Date: Sun, 04 Jan 2009 00:15:52 +0100 Message-ID: <87mye8t1zr.fsf@engster.org> References: <877i5zyw2o.fsf@gmail.com> <84ljuecjdi.fsf@incoming.verizon.net> <87prj49ugi.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1231024576 23854 80.91.229.12 (3 Jan 2009 23:16:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 23:16:16 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16495@lists.math.uh.edu Sun Jan 04 00:17:27 2009 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.50) id 1LJFk8-0000mO-3e for ding-account@gmane.org; Sun, 04 Jan 2009 00:17:20 +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 1LJFio-0005Xk-JA; Sat, 03 Jan 2009 17:15:58 -0600 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 1LJFin-0005XN-8b for ding@lists.math.uh.edu; Sat, 03 Jan 2009 17:15:57 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LJFij-0004eL-Ro for ding@lists.math.uh.edu; Sat, 03 Jan 2009 17:15:57 -0600 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LJFiz-0002ct-00 for ; Sun, 04 Jan 2009 00:16:09 +0100 Original-Received: from dslb-082-083-027-235.pools.arcor-ip.net ([82.83.27.235] helo=honk) by m61s02.vlinux.de with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1LJFik-0005jz-8F for ding@gnus.org; Sun, 04 Jan 2009 00:15:54 +0100 Mail-Copies-To: never Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68050 Archived-At: --=-=-= Lloyd Zusman writes: > David Engster writes: > >> Lloyd Zusman writes: >>> >>> [ ... ] >>> >>> Does anyone have any thoughts about this? Is there a way to get messages >>> that are marked as "read" in nnimap to also get marked as "seen" on the >>> IMAP server? >> >> Do you use nnimap as your primary select method? If so, manually edit >> your GCC header >> >> Gcc: nnimap+imap.server.tld:INBOX.archive.whatever >> >> so that it just reads >> >> Gcc: INBOX.archive.whatever >> >> Does it work now? >> >> -David > > Aha! Well, I have three nnimap select methods: one as my primary, and > two others which are secondary. When I refer to archives on the primary > server in the way you describe above, they are now indeed getting marked > as SEEN at the same time they're getting marked as "read". It seems there is a bug in gnus-msg.el when the gcc is going to the primary back end. Without changing the GCC manually, does the following patch fix this for you? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=gnus-msg-patch.diff diff --git a/lisp/gnus-msg.el b/lisp/gnus-msg.el index 555b6a0..ce6fd3d 100644 --- a/lisp/gnus-msg.el +++ b/lisp/gnus-msg.el @@ -1624,6 +1624,8 @@ this is a reply." group (mm-encode-coding-string group (gnus-group-name-charset method group))) + (when (gnus-native-method-p method) + (setq group (gnus-group-short-name group))) (unless (gnus-check-server method) (error "Can't open server %s" (if (stringp method) method (car method)))) --=-=-= > However, what can I do about the secondaries? Anything? Secondary or foreign servers should work if you give a fully qualified group name; at least it works for me with a nnimap server in the secondary select methods. Also, 'read' marks in Gnus should directly correspond to the SEEN flags on the IMAP server. If you activate the IMAP logging, you should see stuff like 595 UID STORE 2987 +FLAGS (\Seen) when you mark message as read (and -FLAGS if you remove the marks on a message) -David --=-=-=--