Steve Youngs | 1 Mar 2004 03:20
X-Face
Picon

Splitting mail -- XEmacs 21.4 vs 21.5

Now, you'd think that the exact same Gnus mail splitting rules would
split mail into the same groups regardless of XEmacs version.  But
you'd be wrong!

Here are my split rules:

(setq nnmail-split-methods 'nnmail-split-fancy
      nnmail-message-id-cache-length 5000
      nnmail-crosspost nil
      nnmail-split-fancy
      '(| 
	;; Tiffany is highest priority.
	(any "ms_tamber <at> hotmail\\.com" "private.Tiffany")
	;; SPAM...
	;; Most people put their spam splits after their mailing
	;; lists and stuff.  I think this is the wrong way to do it,
	;; because you'd still get heaps of spam in your mailing list
	;; groups.
	("X-Spam-Flag" "Yes" "SPAM.spamassassin")
 	("Content-Type" content-spam "SPAM.content")
  	("Content-Transfer-Encoding" encoding-spam "SPAM.encoding")
  	("Subject" subject-spam "SPAM.subjects")
  	(from author-spam "SPAM.authors")
  	("Received" domain-spam "SPAM.domains")
	("Keywords" keyword-spam "SPAM.keywords")
	;; XEmacs stuff I want to disappear.
	(to "xemacs-\\(people\\|request\\|users\\|webmaint\\|winnt\\|nt\\)+ <at> xemacs\\.org"
	    "SPAM.xemacs")
	(to "youngs <at> xemacs\\.org" "SPAM.xemacs")
	;; Bounces
(Continue reading)

Katsumi Yamaoka | 1 Mar 2004 05:34
X-Face
Favicon
Gravatar

Re: Splitting mail -- XEmacs 21.4 vs 21.5

>>>>> In <microsoft-free.87u119i9zm.fsf <at> eicq.dnsalias.org>
>>>>>	Steve Youngs <sryoungs <at> bigpond.net.au> wrote:

SY> (setq nnmail-split-methods 'nnmail-split-fancy
SY>       nnmail-message-id-cache-length 5000
SY>       nnmail-crosspost nil
SY>       nnmail-split-fancy

[...]

SY> 	"INBOX"))

SY> In XEmacs 21.4.15 everything goes where you'd expect it to go.
SY> In XEmacs 21.5.16 (+CVS-20040227) everything goes to INBOX.

You may be able to solve the problem by setting the
`nnmail-split-fancy-match-partial-words' variable as t.  See the
doc-string for it.  There is an XEmacs 21.5 bug which is probably
related to the following thread:

http://thread.gmane.org/sdd685fw0w.fsf <at> wes.hardakers.net

The test code I used is below:

(let ((nnmail-split-fancy '(...your customization...))
      (nnmail-split-fancy-match-partial-words nil))
  (with-temp-buffer
    (insert "\
From: ms_tamber <at> hotmail.com
To: Steve Youngs <sryoungs <at> bigpond.net.au>
(Continue reading)

Katsumi Yamaoka | 1 Mar 2004 08:37
X-Face
Favicon
Gravatar

Re: Splitting mail -- XEmacs 21.4 vs 21.5

>>>>> In <b9yn071w5gr.fsf <at> jpl.org> Katsumi Yamaoka wrote:

> You may be able to solve the problem by setting the
> `nnmail-split-fancy-match-partial-words' variable as t.

Oops, sorry.  Gnus should be built with XEmacs 21.5 if it is
used with XEmacs 21.5.  However, I tested it using Gnus built
with XEmacs 21.4.  The problem is surely a syntax-table bug in
XEmacs 21.5, and it can be solved by building Gnus with XEmacs
21.5.  Here are test cases:

(require 'nnmail)
(with-syntax-table nnmail-split-fancy-syntax-table
  (string-match "\\<ms_tamber <at> hotmail\\.com\\>"
		"ms_tamber <at> hotmail.com"))
 => nil

(ignore-errors (load "/SOMEWHERE/gnus/lisp/dgnushack.el"))
(with-syntax-table nnmail-split-fancy-syntax-table
  (string-match "\\<ms_tamber <at> hotmail\\.com\\>"
		"ms_tamber <at> hotmail.com"))
 => 0

See also:

> http://thread.gmane.org/sdd685fw0w.fsf <at> wes.hardakers.net

>>>>> In <microsoft-free.87u119i9zm.fsf <at> eicq.dnsalias.org>
>>>>>	Steve Youngs <sryoungs <at> bigpond.net.au> wrote:

(Continue reading)

Kai Grossjohann | 1 Mar 2004 09:59
Picon

M-q in headers

WIBNI M-q in a header would refill that header?

Kai

Kai Grossjohann | 1 Mar 2004 10:01
Picon

Kill recipients in To/Cc headers

I often have to edit recipients in To/Cc headers.  For example, I
might wish to remove a recipient, or move a certain recipient from one
header to another.

But there is no convenient way to kill a recipient.  Usually, I end up
doing C-M-SPC several times, or perhaps just C-SPC C-f C-f ... C-w.

WIBNI M-k or somesuch command would kill a recipient, when in a To/Cc
header?

Kai

Kai Grossjohann | 1 Mar 2004 10:07
Picon

Why do I get *.ADAPT files for nnml groups?

I customized gnus-use-adaptive-scoring, like so:

    Gnus Use Adaptive Scoring: Hide Value
    [X] word
    [X] line
       State: this option has been set and saved.

    If non-nil, use some adaptive scoring scheme. Hide Rest
    If a list, then the values `word' and `line' are meaningful.  The
    former will perform adaption on individual words in the subject
    header while `line' will perform adaption on several headers.
    Parent groups: Gnus Meta Gnus Score Adapt

I turned adaptive scoring off (I think!) for nnml groups, by
customizing gnus-parameters like so:

    Gnus Parameters: Hide Value
    INS DEL Cons-cell:
                Regexp: ^nnml\>
                Repeat:
                INS DEL Lisp expression: (gcc-self . t)
                INS DEL Lisp expression: (gnus-use-adaptive-scoring ignore)
                INS
    INS
       State: this option has been set and saved.

    Alist of group parameters. Hide Rest

    For example:
       (("mail\\..*"  (gnus-show-threads nil)
(Continue reading)

Jonas Steverud | 1 Mar 2004 10:12

Re: Kill recipients in To/Cc headers

Kai Grossjohann <kai <at> emptydomain.de> writes:

> WIBNI M-k or somesuch command would kill a recipient, when in a To/Cc
> header?

Wouldn't it be possible to implement something like kill-sexp?

(defun message-kill-recepient (NumOfRec)
 "Blah blah"
  (interactive)
  (let ((opoint (point)))
    (message-forward-receptient (or NumOfRec 1))
    (kill-region opoint (point)))) ;; IMHO, delete-region should be an option

The trick is to implement message-forward-receptient (which is a nice
side-effect of this). Is it sufficent to look for a comma or is commas
allowed in the name?

Hmm. Now that I think of it I think I've seen commans in the name part
of the adresses.

I think this goes beyond me. :-(

--

-- 
(        http://hem.bredband.net/steverud/        !     Wei Wu Wei     )
(        Meaning of U2 Lyrics, Roleplaying        !  To Do Without Do  )

Kai Grossjohann | 1 Mar 2004 10:13
Picon

Re: Why do I get *.ADAPT files for nnml groups?

Kai Grossjohann <kai <at> emptydomain.de> writes:

> What's wrong?

Well, err.  I get *.ADAPT files for nnml groups, and I also get the
corresponding scoring.  (I used V t on a random scored-down article in
an nnml group to check that the scoring came from its adapt file.)

So the question should be: why do I get adaptive scoring in nnml
groups?  And how to turn it off?

Kai

Jonas Steverud | 1 Mar 2004 10:49

Re: Why do I get *.ADAPT files for nnml groups?

Kai Grossjohann <kai <at> emptydomain.de> writes:

> Kai Grossjohann <kai <at> emptydomain.de> writes:
>
>> What's wrong?
[...]
> So the question should be: why do I get adaptive scoring in nnml
> groups?  And how to turn it off?

I use
(setq
 gnus-parameters (list
		  '("nnfolder:" (gnus-use-scoring nil))
		  '("nndraft:" (gnus-use-scoring nil))
		  )
)

Replace gnus-use-scoring with gnus-use-adaptive-scoring. (Not tested.)

Maybe not the best way but it works. :-)

--

-- 
(        http://hem.bredband.net/steverud/        !     Wei Wu Wei     )
(        Meaning of U2 Lyrics, Roleplaying        !  To Do Without Do  )

Yair Friedman | 1 Mar 2004 11:14

Re: Why do I get *.ADAPT files for nnml groups?

Some SCORE rules (followup, and maybe others) create also implicit ADAPT
files.

Do you have any followup rules turned on?

HTH
Yair.

On Mon, 01 Mar 2004 10:13:17 +0100, 
Kai Grossjohann <kai <at> emptydomain.de> writes:

> Kai Grossjohann <kai <at> emptydomain.de> writes:
>
>> What's wrong?
>
> Well, err.  I get *.ADAPT files for nnml groups, and I also get the
> corresponding scoring.  (I used V t on a random scored-down article in
> an nnml group to check that the scoring came from its adapt file.)
>
> So the question should be: why do I get adaptive scoring in nnml
> groups?  And how to turn it off?
>
> Kai


Gmane