aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/ChangeLog12
-rw-r--r--lisp/gnus/gnus-art.el4
-rw-r--r--lisp/gnus/gnus-async.el2
-rw-r--r--lisp/gnus/mml-smime.el28
4 files changed, 35 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index dd93c7b22fe..0cea790792f 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,15 @@
12013-01-11 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * gnus-art.el (gnus-mime-display-security): Use point-min-marker
4 and point-max-marker.
5 * gnus-async.el (gnus-async-article-callback): Use point-max-marker.
6
72013-01-10 Uwe Brauer <oub@mat.ucm.es> (tiny change)
8
9 * mml-smime.el (mml-smime-encrypt-to-self): New user option analogous
10 to mml2015-encrypt-to-self.
11 (mml-smime-epg-encrypt): Respect mml-smime-encrypt-to-self.
12
12013-01-09 Daiki Ueno <ueno@gnu.org> 132013-01-09 Daiki Ueno <ueno@gnu.org>
2 14
3 * mml-smime.el (epg-sub-key-fingerprint): Autoload for 15 * mml-smime.el (epg-sub-key-fingerprint): Autoload for
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 1b4cddc5009..25a555f3d8b 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -8688,9 +8688,7 @@ For example:
8688 gnus-mime-security-button-end-line-format)) 8688 gnus-mime-security-button-end-line-format))
8689 (gnus-insert-mime-security-button handle))) 8689 (gnus-insert-mime-security-button handle)))
8690 (mm-set-handle-multipart-parameter 8690 (mm-set-handle-multipart-parameter
8691 handle 'gnus-region 8691 handle 'gnus-region (cons (point-min-marker) (point-max-marker)))
8692 (cons (set-marker (make-marker) (point-min))
8693 (set-marker (make-marker) (point-max))))
8694 (goto-char (point-max)))) 8692 (goto-char (point-max))))
8695 8693
8696(defun gnus-mime-security-run-function (function) 8694(defun gnus-mime-security-run-function (function)
diff --git a/lisp/gnus/gnus-async.el b/lisp/gnus/gnus-async.el
index 41b0cc25006..c5d64332547 100644
--- a/lisp/gnus/gnus-async.el
+++ b/lisp/gnus/gnus-async.el
@@ -254,7 +254,7 @@ that was fetched."
254 gnus-async-article-alist 254 gnus-async-article-alist
255 (cons (list (intern (format "%s-%d" group article) 255 (cons (list (intern (format "%s-%d" group article)
256 gnus-async-hashtb) 256 gnus-async-hashtb)
257 mark (set-marker (make-marker) (point-max)) 257 mark (point-max-marker)
258 group article) 258 group article)
259 gnus-async-article-alist)))) 259 gnus-async-article-alist))))
260 (if (not (gnus-buffer-live-p summary)) 260 (if (not (gnus-buffer-live-p summary))
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el
index e5e99dedcbe..6ea55377e02 100644
--- a/lisp/gnus/mml-smime.el
+++ b/lisp/gnus/mml-smime.el
@@ -80,6 +80,12 @@ Whether the passphrase is cached at all is controlled by
80 :version "24.4" 80 :version "24.4"
81 :type 'boolean) 81 :type 'boolean)
82 82
83(defcustom mml-smime-encrypt-to-self nil
84 "If t, add your own key ID to recipient list when encryption."
85 :group 'mime-security
86 :version "24.4"
87 :type 'boolean)
88
83(defun mml-smime-sign (cont) 89(defun mml-smime-sign (cont)
84 (let ((func (nth 1 (assq mml-smime-use mml-smime-function-alist)))) 90 (let ((func (nth 1 (assq mml-smime-use mml-smime-function-alist))))
85 (if func 91 (if func
@@ -475,13 +481,17 @@ Content-Disposition: attachment; filename=smime.p7s
475 (goto-char (point-max)))) 481 (goto-char (point-max))))
476 482
477(defun mml-smime-epg-encrypt (cont) 483(defun mml-smime-epg-encrypt (cont)
478 (let ((inhibit-redisplay t) 484 (let* ((inhibit-redisplay t)
479 (context (epg-make-context 'CMS)) 485 (context (epg-make-context 'CMS))
480 (config (epg-configuration)) 486 (config (epg-configuration))
481 (recipients (message-options-get 'mml-smime-epg-recipients)) 487 (recipients (message-options-get 'mml-smime-epg-recipients))
482 cipher signers 488 cipher signers
483 (boundary (mml-compute-boundary cont)) 489 (sender (message-options-get 'message-sender))
484 recipient-key) 490 (signer-names (or mml-smime-signers
491 (if (and mml-smime-sign-with-sender sender)
492 (list (concat "<" sender ">")))))
493 (boundary (mml-compute-boundary cont))
494 recipient-key)
485 (unless recipients 495 (unless recipients
486 (setq recipients 496 (setq recipients
487 (apply #'nconc 497 (apply #'nconc
@@ -494,6 +504,10 @@ Content-Disposition: attachment; filename=smime.p7s
494 (message-options-set 'message-recipients 504 (message-options-set 'message-recipients
495 (read-string "Recipients: "))) 505 (read-string "Recipients: ")))
496 "[ \f\t\n\r\v,]+")))) 506 "[ \f\t\n\r\v,]+"))))
507 (when mml-smime-encrypt-to-self
508 (unless signer-names
509 (error "Neither message sender nor mml-smime-signers are set"))
510 (setq recipients (nconc recipients signer-names)))
497 (if (eq mm-encrypt-option 'guided) 511 (if (eq mm-encrypt-option 'guided)
498 (setq recipients 512 (setq recipients
499 (epa-select-keys context "\ 513 (epa-select-keys context "\