Gnus development mailing list
 help / color / mirror / Atom feed
* nnml as primary select method /vs/ gnus-inews-mark-gcc-as-read
@ 2001-08-02 15:42 Karl Kleinpaste
  2001-08-02 20:49 ` Kai Großjohann
  0 siblings, 1 reply; 11+ messages in thread
From: Karl Kleinpaste @ 2001-08-02 15:42 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]

I changed my environment so that nnml is my primary select method.
This has made a bad interaction between gnus-message-archive-group and
gnus-inews-mark-as-read.

My gnus-message-archive-group consists of (MATCH . GROUP) pairs.  The
interpretation of the GROUP in the absence of a method prefix assumes
that nnarchive will be used, but I want to Gcc right into my nnml
groups, which don't normally have a prefix because they're primary
method groups.  Nonetheless, I can put an "nnml:" prefix on them
anyway, so the storing of articles works as I intended.

However, because of the slight difference in the perception of the
method (implicit method normally, with an exceptional case to avoid
nnarchive interpretation in g-m-a-g), the call to
gnus-group-mark-article-read fails to achieve the marking-as-read
result desired.

I would like to make the following small change in order to get around
this problem, but I'm not sure it won't break something else in the
(probably much more typical) case where the mail backend used for Gcc
is a secondary method.  What's needed is to ensure that, ultimately,
the group is referred to in its most "natural" way, which is to say,
with the implicit method of primary groups.

Could this be reviewed and applied if it's safe?  If it's not safe, is
there an alternative solution?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Gcc mark-as-read fix --]
[-- Type: text/x-patch, Size: 433 bytes --]

--- gnus-msg.el.~1~	Thu Jul 26 01:05:45 2001
+++ gnus-msg.el	Thu Aug  2 11:21:27 2001
@@ -1243,7 +1243,7 @@
 			      group (gnus-status-message method))
 		(sit-for 2))
 	      (when (and group-art gnus-inews-mark-gcc-as-read)
-		(gnus-group-mark-article-read group (cdr group-art)))
+		(gnus-group-mark-article-read (car group-art) (cdr group-art)))
 	      (kill-buffer (current-buffer)))))))))
 
 (defun gnus-inews-insert-gcc ()

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-08-17 16:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-02 15:42 nnml as primary select method /vs/ gnus-inews-mark-gcc-as-read Karl Kleinpaste
2001-08-02 20:49 ` Kai Großjohann
2001-08-02 21:11   ` Karl Kleinpaste
2001-08-02 21:54     ` Kai Großjohann
2001-08-17 10:29       ` Lars Magne Ingebrigtsen
2001-08-17 11:36         ` Kai Großjohann
2001-08-17 12:05           ` Lars Magne Ingebrigtsen
2001-08-17 13:34         ` Nevin Kapur
2001-08-17 13:57           ` Lars Magne Ingebrigtsen
2001-08-17 16:26             ` Doc strings for virtual server params (was Re: nnml as ...) Nevin Kapur
2001-08-17 16:33               ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).