From: Ted Zlatanov <teodor.zlatanov@divine.com>
Subject: Re: Spam spam spam spam spam
Date: Tue, 02 Apr 2002 17:06:15 -0500 [thread overview]
Message-ID: <m3hemtdaco.fsf@onyx.nimbus.northernlight.com> (raw)
In-Reply-To: <m3n0wlvpwr.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 02 Apr 2002 21:52:52 +0200")
[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Ted Zlatanov <teodor.zlatanov@divine.com> writes:
>
>> Is there anyone who will implement these, or will Lars do it? I'd
>> like to get this functionality in place soon, and I can contribute if
>> needed.
>
> Please go ahead. :-)
>
> The spam.el file contains rudimentary whitelist/blacklist support,
> and you can build on that.
What features are missing that you wanted to add?
Did you want to finish the work? It looks like spam.el is
semi-complete already. I don't mind picking up - it's always fun to
polish my Lisp. Just let me know what features/functions you wanted.
What did you think about the "spam" mark? I've added it to
gnus-sum.el; patch attached. I picked the "H" character for the
company that brought us the original word, since "S" was taken. I can
see it being applied by score or by a splitting-time function. I also
added a gnus-summary-mark-as-spam function, which could be augmented
to also report the spam to user-defined destinations.
I don't think a user would always want spam going to the same folder,
as a score would force them to do. That's why the spam mark makes
sense. You can apply it to an article; it will be treated as a
gnus-killed-mark in most ways. But you can limit the summary to spam
only, whereas otherwise you're stuck with differently scored, but
otherwise alike articles.
Thanks
Ted
[-- Attachment #2: gnus-spam-mark addition patch --]
[-- Type: text/plain, Size: 2494 bytes --]
--- gnus-sum.el Tue Apr 2 16:57:30 2002
+++ gnus-sum-tzz.el Tue Apr 2 16:28:46 2002
@@ -420,6 +420,11 @@
:group 'gnus-summary-marks
:type 'character)
+(defcustom gnus-spam-mark ?H
+ "*Mark used for spam articles."
+ :group 'gnus-summary-marks
+ :type 'character)
+
(defcustom gnus-souped-mark ?F
"*Mark used for souped articles."
:group 'gnus-summary-marks
@@ -536,7 +541,7 @@
:type 'boolean)
(defcustom gnus-auto-expirable-marks
- (list gnus-killed-mark gnus-del-mark gnus-catchup-mark
+ (list gnus-spam-mark gnus-killed-mark gnus-del-mark gnus-catchup-mark
gnus-low-score-mark gnus-ancient-mark gnus-read-mark
gnus-souped-mark gnus-duplicate-mark)
"*The list of marks converted into expiration if a group is auto-expirable."
@@ -2326,15 +2331,10 @@
(defvar gnus-summary-tool-bar-map nil)
;; Emacs 21 tool bar. Should be no-op otherwise.
-;; NB: A new function tool-bar-local-item-from-menu is added in Emacs
-;; 21.2.50+. Considering many users use Emacs 21, use
-;; tool-bar-add-item-from-menu here.
(defun gnus-summary-make-tool-bar ()
- (if (and
- (condition-case nil (require 'tool-bar) (error nil))
- (fboundp 'tool-bar-add-item-from-menu)
- (default-value 'tool-bar-mode)
- (not gnus-summary-tool-bar-map))
+ (if (and (fboundp 'tool-bar-add-item-from-menu)
+ (default-value 'tool-bar-mode)
+ (not gnus-summary-tool-bar-map))
(setq gnus-summary-tool-bar-map
(let ((tool-bar-map (make-sparse-keymap))
(load-path (mm-image-load-path)))
@@ -7248,7 +7248,7 @@
;; Concat all the marks that say that an article is read and have
;; those removed.
(list gnus-del-mark gnus-read-mark gnus-ancient-mark
- gnus-killed-mark gnus-kill-file-mark
+ gnus-killed-mark gnus-spam-mark gnus-kill-file-mark
gnus-low-score-mark gnus-expirable-mark
gnus-canceled-mark gnus-catchup-mark gnus-sparse-mark
gnus-duplicate-mark gnus-souped-mark)
@@ -9133,6 +9133,13 @@
the actual number of articles marked is returned."
(interactive "p")
(gnus-summary-mark-forward n gnus-expirable-mark))
+
+(defun gnus-summary-mark-as-spam (n)
+ "Mark N articles forward as spam.
+If N is negative, mark backward instead. The difference between N and
+the actual number of articles marked is returned."
+ (interactive "p")
+ (gnus-summary-mark-forward n gnus-spam-mark))
(defun gnus-summary-mark-article-as-replied (article)
"Mark ARTICLE as replied to and update the summary line.
next prev parent reply other threads:[~2002-04-02 22:06 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-30 15:33 Lars Magne Ingebrigtsen
2002-03-30 15:59 ` Lars Magne Ingebrigtsen
2002-04-01 14:44 ` NAGY Andras
2002-04-05 20:01 ` Ted Zlatanov
2002-04-05 21:41 ` Kai Großjohann
2002-04-05 22:27 ` Derrell.Lipman
2002-04-09 17:44 ` Toby Speight
2002-04-05 21:42 ` Jon Ericson
2002-04-05 22:59 ` Ted Zlatanov
2002-04-02 16:31 ` Ted Zlatanov
2002-04-02 19:52 ` Lars Magne Ingebrigtsen
2002-04-02 22:06 ` Ted Zlatanov [this message]
2002-04-05 19:33 ` Ted Zlatanov
2002-03-30 16:09 ` Robin S. Socha
2002-03-30 16:32 ` Lars Magne Ingebrigtsen
2002-03-30 16:56 ` Lloyd Zusman
2002-03-30 17:05 ` Lars Magne Ingebrigtsen
2002-03-30 18:27 ` Lloyd Zusman
2002-04-01 14:46 ` NAGY Andras
2002-04-01 15:11 ` Lloyd Zusman
2002-03-30 17:30 ` Robin S. Socha
2002-03-30 17:34 ` Lars Magne Ingebrigtsen
2002-03-30 18:27 ` Robin S. Socha
2002-03-31 22:00 ` Stainless Steel Rat
2002-03-30 16:33 ` Lars Magne Ingebrigtsen
2002-03-30 16:43 ` Henrik Enberg
2002-03-30 16:53 ` Robin S. Socha
2002-03-30 17:35 ` Henrik Enberg
2002-03-30 17:58 ` Robin S. Socha
2002-03-30 18:29 ` Lars Magne Ingebrigtsen
2002-03-30 18:52 ` Harry Putnam
2002-03-30 19:37 ` Jason R. Mastaler
2002-03-30 23:46 ` Lars Magne Ingebrigtsen
2002-03-31 0:38 ` Jason R. Mastaler
2002-04-01 14:07 ` Lloyd Zusman
2002-04-04 3:28 ` news
2002-03-31 2:07 ` Mark Milhollan
2003-01-01 21:06 ` Lars Magne Ingebrigtsen
2003-01-02 19:02 ` Simon Josefsson
2002-03-30 16:34 ` Henrik Enberg
2002-03-30 16:45 ` Lars Magne Ingebrigtsen
2002-03-30 16:52 ` Lars Magne Ingebrigtsen
2002-03-30 17:45 ` Kai Großjohann
2002-03-30 18:29 ` Lars Magne Ingebrigtsen
2002-03-30 19:28 ` Lars Magne Ingebrigtsen
2002-03-31 1:39 ` Paul Jarc
2002-03-31 1:45 ` Lars Magne Ingebrigtsen
2002-03-31 1:48 ` Paul Jarc
2002-03-31 1:57 ` Lars Magne Ingebrigtsen
2002-03-31 15:23 ` Lars Magne Ingebrigtsen
2002-03-31 16:20 ` Romain FRANCOISE
2002-03-31 18:19 ` Russ Allbery
2002-04-02 7:09 ` Michel Schinz
2002-04-03 5:10 ` Russ Allbery
2002-04-03 13:50 ` Frank Schmitt
2002-03-31 1:31 ` Daniel Pittman
2003-01-01 21:05 ` Lars Magne Ingebrigtsen
2002-03-31 15:34 ` Fabien Penso
2002-03-31 15:50 ` Lars Magne Ingebrigtsen
2002-03-31 16:06 ` Fabien Penso
2002-03-31 18:11 ` Russ Allbery
2002-03-31 18:31 ` Lars Magne Ingebrigtsen
2002-04-01 17:22 ` Paul Jarc
2002-04-01 19:25 ` Lars Magne Ingebrigtsen
2002-04-01 19:34 ` Paul Jarc
2002-04-01 18:22 ` Chris Shenton
2002-04-13 22:49 ` John H Palmieri
2002-04-13 23:00 ` Nevin Kapur
2002-04-14 0:04 ` Stainless Steel Rat
2002-04-14 0:57 ` Bill White
2002-04-21 3:38 ` Harry Putnam
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=m3hemtdaco.fsf@onyx.nimbus.northernlight.com \
--to=teodor.zlatanov@divine.com \
/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).