* message.el (message-is-yours-p): Allow disabling canlock checking
authorLars Magne Ingebrigtsen <larsi@tmp-office.(none)>
Wed, 17 Aug 2011 21:37:08 +0000 (23:37 +0200)
committerLars Magne Ingebrigtsen <larsi@tmp-office.(none)>
Wed, 17 Aug 2011 21:37:08 +0000 (23:37 +0200)
lisp/ChangeLog
lisp/message.el

index 872cdc1..03b6808 100644 (file)
@@ -1,5 +1,9 @@
 2011-08-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * message.el (message-is-yours-p): Allow disabling canlock checking
+       (bug#9295).
+       (message-shoot-gnksa-feet): Add `canlock-verify'.
+
        * auth-source.el (auth-source-netrc-saver): Make the .authinfo file
        non-world-readable.
 
index a0ee4c3..313ddb4 100644 (file)
@@ -1397,7 +1397,8 @@ candidates:
 `quoted-text-only'  Allow you to post quoted text only;
 `multiple-copies'   Allow you to post multiple copies;
 `cancel-messages'   Allow you to cancel or supersede messages from
-                   your other email addresses.")
+                   your other email addresses;
+`canlock-verify'    Allow you to cancel messages without verifying canlock.")
 
 (defsubst message-gnksa-enable-p (feature)
   (or (not (listp message-shoot-gnksa-feet))
@@ -7081,7 +7082,8 @@ regexp to match all of yours addresses."
   (save-excursion
     (save-restriction
       (message-narrow-to-head-1)
-      (if (message-fetch-field "Cancel-Lock")
+      (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"))