(mml2015-pgg-sign): Bind pgg-default-user-id to MML
authorSimon Josefsson <jas@extundo.com>
Wed, 16 Apr 2003 19:24:32 +0000 (19:24 +0000)
committerSimon Josefsson <jas@extundo.com>
Wed, 16 Apr 2003 19:24:32 +0000 (19:24 +0000)
sender tag, if available.

lisp/ChangeLog
lisp/mml2015.el

index 6aa7704..42d3115 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-16  Simon Josefsson  <jas@extundo.com>
+
+       * mml2015.el (mml2015-pgg-sign): Bind pgg-default-user-id to MML
+       sender tag, if available.
+
 2003-04-16  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * spam-report.el (Module): new module for spam reporting
@@ -52,7 +57,7 @@
        specify a predicate other than false.
        (gnus-category-read): Use the new feature to create a 'default'
        category with a 'short' predicate.
-       
+
 2003-04-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * message.el (message-unique-id): Comment change.
index 34007f1..60c9e94 100644 (file)
 
 (defun mml2015-pgg-sign (cont)
   (let ((pgg-errors-buffer mml2015-result-buffer)
-       (boundary (funcall mml-boundary-function (incf mml-multipart-number))))
+       (boundary (funcall mml-boundary-function (incf mml-multipart-number)))
+       (pgg-default-user-id (or (message-options-get 'message-sender)
+                                pgg-default-user-id)))
     (unless (pgg-sign-region (point-min) (point-max))
       (pop-to-buffer mml2015-result-buffer)
       (error "Sign error"))