[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changes in Headers in RMAIL
From: |
Eli Zaretskii |
Subject: |
Re: Changes in Headers in RMAIL |
Date: |
Wed, 15 Nov 2006 20:14:07 +0200 |
> Date: Wed, 15 Nov 2006 17:59:21 +0000
> From: <address@hidden>
>
> For some time I have had a mail filter that works by looking at the
> headers. The problem is that with the new version the particular
> headers seem not to be searchable.
>
> In particular
>
> (defun rmail-file-filtering-mail-hook ()
> "Hook to file mail and label spam etc automatically"
> .....
> (setq x-rbl (mail-fetch-field "X-RBL-Warning"))
> .....
> ((or x-rbl ; Sites on RBL
> (string-match "rbl-plus.mail-abuse.ja.net" x-warning)
> (string-match "zen.spamhaus.org" x-warning))
> (let ((ss rmail-delete-after-output))
> ....
> (rmail-set-attribute "deleted" t)
> .....
>
> but the X_RBL-Warning header is not found despite being there
I think that's because the X-RBL-Warning header is concealed by
default. Does it help to use rmail-narrow-to-non-pruned-header before
mail-fetch-field?