Gnus development mailing list
 help / color / mirror / Atom feed
* Patch for gnus-nocem
@ 2003-11-25 22:57 Edwin Steiner
  2004-01-02 20:13 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Edwin Steiner @ 2003-11-25 22:57 UTC (permalink / raw)


Hello Gnus Developers!

Today I activated NoCeM scanning and it did not work. I tracked the
problem down to the following: Most of my news groups are on a
secondary server, so they have names like nntp+<server>:<groupname>. The
code in gnus-nocem.el checks against gnus-active-hashtb which contains
these names, not the real group names.

The patch below solves this problem. The lookup is now done in
gnus-nocem-real-group-hashtb which contains the real group names. (And
I think gnus-active-hashtb should not be modified by nocem anyway,
right?)

This patch makes the check in the following when clause partially
redundant. You could substitute

	  (when (gnus-gethash (gnus-group-real-name (symbol-name group))
			      gnus-nocem-real-group-hashtb)

with

	  (when (symbol-value group)

I did not test this, though.
I could submit a patch for it, too, if you are interested.

best regards
-Edwin



Index: lisp/gnus-nocem.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-nocem.el,v
retrieving revision 6.3
diff -u -r6.3 gnus-nocem.el
--- lisp/gnus-nocem.el	17 Nov 2002 22:35:39 -0000	6.3
+++ lisp/gnus-nocem.el	25 Nov 2003 22:32:58 -0000
@@ -297,7 +297,7 @@
       (while (search-forward "\t" nil t)
 	(cond
 	 ((not (ignore-errors
-		 (setq group (let ((obarray gnus-active-hashtb)) (read buf)))))
+		 (setq group (let ((obarray gnus-nocem-real-group-hashtb)) (read buf)))))
 	  ;; An error.
 	  )
 	 ((not (symbolp group))




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

* Re: Patch for gnus-nocem
  2003-11-25 22:57 Patch for gnus-nocem Edwin Steiner
@ 2004-01-02 20:13 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2004-01-02 20:13 UTC (permalink / raw)


Edwin Steiner <edwin.steiner@gmx.net> writes:

> The patch below solves this problem. The lookup is now done in
> gnus-nocem-real-group-hashtb which contains the real group names.

Thanks for the patch; I've applied it to Gnus v5.10.4 (i. e., CVS).

> This patch makes the check in the following when clause partially
> redundant. You could substitute
>
> 	  (when (gnus-gethash (gnus-group-real-name (symbol-name group))
> 			      gnus-nocem-real-group-hashtb)
>
> with
>
> 	  (when (symbol-value group)
>
> I did not test this, though.
> I could submit a patch for it, too, if you are interested.

Sure.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

end of thread, other threads:[~2004-01-02 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25 22:57 Patch for gnus-nocem Edwin Steiner
2004-01-02 20:13 ` 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).