Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de>
Subject: Re: spam.el and IMAP
Date: Fri, 24 Oct 2003 14:53:07 +0200	[thread overview]
Message-ID: <v9n0bqhk5o.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <4nu15zlims.fsf@lockgroove.bwh.harvard.edu>

On Fri, Oct 24 2003, Ted Zlatanov wrote:

> On Thu, 23 Oct 2003, 4.uce.03.r.s@nurfuerspam.de wrote:
>
>> BTW, is there a simple way to tell `spam.el' to put ham articles
>> from "Spam/spamblock" to both, "bayes/ham" _and_ "INBOX"?
>> I.e. probably first copy the article to the first group and then
>> move it to the second.
>
> I see no reason why we can't handle multiple groups for
> {spam,ham}-process-destination.  I added the necessary code but it's
> untested - please try it out and let me know how it works.
>
> We used to use gnus-summary-move-article, now it's
> gnus-summary-copy-article followed by gnus-summary-delete-article.
> I assume an error in copy-article will abort the delete as well.

The patch leads to serious problems:

In my spam group, now the function
`spam-mark-spam-as-expired-and-move-routine' tries to *delete* all
spam-marked (`$') articles, rather than leaving them as expirable
(`E').  Luckily I had `gnus-novice-user' set to `t', so that
`gnus-summary-delete-article' asked me before deleting.

The next problem is, that there's something wrong with the new
multiple groups code.  I've customized the group,

,----
| [X] Destination for ham articles at summary exit from a spam
| group: [Value Menu] Move to multiple groups:
|     [INS] [DEL] Destination group: nnimap+urz:test1
|     [INS] [DEL] Destination group: nnimap+urz:test2
|     [INS]
| Where ham articles will go at summary exit from a spam group.
`----

... which lead to the following output in `G p':

,----
| ((ham-process-destination "nnimap+urz:test1" "nnimap+urz:test2")
|  (uidvalidity . "990116726")
|  (timestamp 16281 5192))
`----

BTW: Previously, I got dotted pairs, like...

  (ham-process-destination . "nnimap+urz:bayes/ham")

Is the new custom-type for multiple groups as intended?  BTW: Is `M-:
(gnus-group-find-parameter gnus-newsgroup-name
'ham-process-destination) RET' the correct way to check the parameter
inside the group?  (This returns nil now.)

Now, I marked one article as read (`r') using `d', then on group exit,
I edebugged `spam-ham-copy-or-move-routine' and found that `groups' is
`((nil))' leading to an error "Wrong type argument: stringp, (nil)"
one the last line in the following block of
`spam-ham-copy-or-move-routine':

    ;; now do the actual move
    (dolist (group groups)
      (when todo
	(dolist (article todo)
	  (when spam-mark-ham-unread-before-move-from-spam-group
	    (gnus-summary-mark-article article gnus-unread-mark))
	  (gnus-summary-set-process-mark article))
	(gnus-summary-copy-article nil group)))

> My topic and group parameters are very weird right now (see my
> earlier post about auto-expire) and I was not able to test the
> multiple groups code with group/topic parameters.

Maybe you should revert the change (multiple groups code), unless you
can fix it soon, because it may break existing setups and delete mails
(see above).  (If you can't test it, it might be better to post the
code here and wait for a positive reaction before committing it. ;-))

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




  reply	other threads:[~2003-10-24 12:53 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-22 20:58 Gnus and Outlook and spam? Kai Grossjohann
2003-10-23  0:55 ` Jody Klymak
2003-10-23 16:06 ` Ted Zlatanov
2003-10-23 16:22   ` Jake Colman
2003-10-23 17:38     ` Ted Zlatanov
2003-10-23 17:42       ` Jake Colman
2003-10-23 19:29         ` Ted Zlatanov
2003-10-24 13:35           ` Jake Colman
2003-10-27 20:59             ` Ted Zlatanov
2003-10-28 15:25               ` Jake Colman
2003-10-28 15:57                 ` Ted Zlatanov
2003-10-23 22:31         ` Danny Siu
2003-10-23 19:38     ` spam.el and IMAP (was: Gnus and Outlook and spam?) Reiner Steib
2003-10-23 22:00       ` spam.el and IMAP Ted Zlatanov
2003-10-24 12:53         ` Reiner Steib [this message]
2003-10-24 13:55         ` Adrian Lanz
2003-10-26 12:41         ` Adrian Lanz
2003-10-27  7:30         ` Adrian Lanz
2003-10-27 23:34           ` Ted Zlatanov
2003-10-27  8:23         ` Adrian Lanz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9n0bqhk5o.fsf@marauder.physik.uni-ulm.de \
    --to=4.uce.03.r.s@nurfuerspam.de \
    --cc=reiner.steib@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).