From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54451 Path: main.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el and IMAP Date: Fri, 24 Oct 2003 14:53:07 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Sender: ding-owner@lists.math.uh.edu Message-ID: References: <863cdldm6j.fsf@slowfox.dyndns.org> <4nn0bskkge.fsf@lockgroove.bwh.harvard.edu> <76brs7q5yz.fsf@newjersey.ppllc.com> <4nu15zlims.fsf@lockgroove.bwh.harvard.edu> Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067287641 22838 80.91.224.253 (27 Oct 2003 20:47:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2003 20:47:21 +0000 (UTC) Original-X-From: ding-owner+M2992@lists.math.uh.edu Mon Oct 27 21:47:19 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEEGk-0003Gk-00 for ; Mon, 27 Oct 2003 21:47:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AEEGU-00025O-00; Mon, 27 Oct 2003 14:47:02 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AEEGE-000254-00 for ding@lists.math.uh.edu; Mon, 27 Oct 2003 14:46:46 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id A62AC3A0064 for ; Mon, 27 Oct 2003 14:46:45 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AD1RK-000141-00 for ; Fri, 24 Oct 2003 14:53:14 +0200 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AD1RJ-00013t-00 for ; Fri, 24 Oct 2003 14:53:13 +0200 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AD1RJ-0004k1-00 for ; Fri, 24 Oct 2003 14:53:13 +0200 Original-Lines: 83 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: P05mdcZT&lL[-s2=mw~RsllZ0zZAb?vdE}.s 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/