From: Diane Murray <dsm@muenster.de>
Subject: [Patch] [CVS] rmail-spam-filter error when missing "From:" field
Date: Wed, 10 Nov 2004 00:30:22 +0100 [thread overview]
Message-ID: <87pt2mwqgh.fsf@spargel.okie.doke> (raw)
When there is no "From:" field in a received message being checked by
the spam filter, a `(wrong-type-argument stringp nil)' error occurs.
The following patch corrects this.
* mail/rmail-spam-filter.el (rmail-spam-filter): Only check white
list if `message-sender' is non-nil.
*** rmail-spam-filter.el 16 Feb 2004 22:57:42 +0100 1.8
--- rmail-spam-filter.el 09 Nov 2004 22:38:46 +0100
***************
*** 302,314 ****
;; Check white list, and likewise cause while loop
;; bypass.
! (if (let ((white-list rsf-white-list)
! (found nil))
! (while (and (not found) white-list)
! (if (string-match (car white-list) message-sender)
! (setq found t)
! (setq white-list (cdr white-list))))
! found)
(setq exit-while-loop t
maybe-spam nil
this-is-a-spam-email nil))
--- 302,315 ----
;; Check white list, and likewise cause while loop
;; bypass.
! (if (and message-sender
! (let ((white-list rsf-white-list)
! (found nil))
! (while (and (not found) white-list)
! (if (string-match (car white-list) message-sender)
! (setq found t)
! (setq white-list (cdr white-list))))
! found))
(setq exit-while-loop t
maybe-spam nil
this-is-a-spam-email nil))
reply other threads:[~2004-11-09 23:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pt2mwqgh.fsf@spargel.okie.doke \
--to=dsm@muenster.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).