Function: message-is-yours-p
message-is-yours-p is a byte-compiled function defined in
message.el.gz.
Signature
(message-is-yours-p)
Documentation
Non-nil means current article is yours.
If you have added cancel-messages to message-shoot-gnksa-feet, all articles
are yours except those that have Cancel-Lock header not belonging to you.
Instead of shooting GNKSA feet, you should modify message-alternative-emails
to match all of yours addresses.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defun message-is-yours-p ()
"Non-nil means current article is yours.
If you have added `cancel-messages' to `message-shoot-gnksa-feet', all articles
are yours except those that have Cancel-Lock header not belonging to you.
Instead of shooting GNKSA feet, you should modify `message-alternative-emails'
to match all of yours addresses."
;; Canlock-logic as suggested by Per Abrahamsen
;; <abraham@dina.kvl.dk>
;;
;; IF article has cancel-lock THEN
;; IF we can verify it THEN
;; issue cancel
;; ELSE
;; error: cancellock: article is not yours
;; ELSE
;; Use old rules, comparing sender...
(save-excursion
(save-restriction
(message-narrow-to-head-1)
(if (and (message-fetch-field "Cancel-Lock")
(message-gnksa-enable-p 'canlock-verify))
(if (null (canlock-verify))
t
(error "Failed to verify Cancel-lock: This article is not yours"))
(let (sender from)
(or
(message-gnksa-enable-p 'cancel-messages)
(and (setq sender (message-fetch-field "sender"))
(string-equal (downcase sender)
(downcase (message-make-sender))))
;; Email address in From field equals to our address
(and (setq from (message-fetch-field "from"))
(string-equal
(downcase (car (mail-header-parse-address from)))
(downcase (car (mail-header-parse-address
(message-make-from))))))
;; Email address in From field matches
;; 'message-alternative-emails' regexp or function.
(and from
message-alternative-emails
(cond ((functionp message-alternative-emails)
(funcall message-alternative-emails
(mail-header-parse-address from)))
(t (string-match message-alternative-emails
(car (mail-header-parse-address from))))))))))))