Re: [PATCH] emacs: remove auto-signing of replies to signed messages

2014-04-15 Thread Jameson Graef Rollins
On Tue, Apr 15 2014, David Bremner  wrote:
> Jameson Graef Rollins  writes:
>
>> It was decided that auto-signing is potentially too troublesome for the
>> apparently common case of users who enable crypto processing for the
>> purpose of checking signature validity but who are not in a position to
>> sign out-going messages.  Users can still manually invoke signing as needed.
>
> pushed

Awesome.  Thank you Jani and David for fixing this issue.

jamie.


pgpT2pkPrVjBE.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] emacs: remove auto-signing of replies to signed messages

2014-04-15 Thread Jameson Graef Rollins
On Tue, Apr 15 2014, David Bremner  wrote:
> Jameson Graef Rollins  writes:
>
>> It was decided that auto-signing is potentially too troublesome for the
>> apparently common case of users who enable crypto processing for the
>> purpose of checking signature validity but who are not in a position to
>> sign out-going messages.  Users can still manually invoke signing as needed.
>
> pushed

Awesome.  Thank you Jani and David for fixing this issue.

jamie.
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: 



[PATCH] emacs: remove auto-signing of replies to signed messages

2014-04-15 Thread David Bremner
Jameson Graef Rollins  writes:

> It was decided that auto-signing is potentially too troublesome for the
> apparently common case of users who enable crypto processing for the
> purpose of checking signature validity but who are not in a position to
> sign out-going messages.  Users can still manually invoke signing as needed.

pushed

d


Re: [PATCH] emacs: remove auto-signing of replies to signed messages

2014-04-15 Thread David Bremner
Jameson Graef Rollins  writes:

> It was decided that auto-signing is potentially too troublesome for the
> apparently common case of users who enable crypto processing for the
> purpose of checking signature validity but who are not in a position to
> sign out-going messages.  Users can still manually invoke signing as needed.

pushed

d
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] emacs: remove auto-signing of replies to signed messages

2014-04-14 Thread Tomi Ollila
On Mon, Apr 14 2014, Jameson Graef Rollins  
wrote:

> It was decided that auto-signing is potentially too troublesome for the
> apparently common case of users who enable crypto processing for the
> purpose of checking signature validity but who are not in a position to
> sign out-going messages.  Users can still manually invoke signing as needed.
>
> Encrypting replies to encrypted messages is more of a security issue
> so we leave it in place.
> ---

LGTM. Works for me. +1

Tomi


>  emacs/notmuch-mua.el | 7 +++
>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index bf6253f..95e4a4d 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -116,10 +116,9 @@ list."
>   notmuch-mua-hidden-headers))
>  
>  (defun notmuch-mua-reply-crypto (parts)
> +  "Add mml sign-encrypt flag if any part of original message is encrypted."
>(loop for part in parts
> - if (notmuch-match-content-type (plist-get part :content-type) 
> "multipart/signed")
> -   do (mml-secure-message-sign)
> - else if (notmuch-match-content-type (plist-get part :content-type) 
> "multipart/encrypted")
> + if (notmuch-match-content-type (plist-get part :content-type) 
> "multipart/encrypted")
> do (mml-secure-message-sign-encrypt)
>   else if (notmuch-match-content-type (plist-get part :content-type) 
> "multipart/*")
> do (notmuch-mua-reply-crypto (plist-get part :content
> @@ -236,7 +235,7 @@ list."
>   ;; Quote the original message according to the user's configured style.
>   (message-cite-original)))
>  
> -;; Sign and/or encrypt replies to signed and/or encrypted messages.
> +;; Crypto processing based crypto content of the original message
>  (when process-crypto
>(notmuch-mua-reply-crypto (plist-get original :body
>  
> -- 
> 1.9.1
>
> ___
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] emacs: remove auto-signing of replies to signed messages

2014-04-14 Thread Jameson Graef Rollins
It was decided that auto-signing is potentially too troublesome for the
apparently common case of users who enable crypto processing for the
purpose of checking signature validity but who are not in a position to
sign out-going messages.  Users can still manually invoke signing as needed.

Encrypting replies to encrypted messages is more of a security issue
so we leave it in place.
---
 emacs/notmuch-mua.el | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index bf6253f..95e4a4d 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -116,10 +116,9 @@ list."
notmuch-mua-hidden-headers))
 
 (defun notmuch-mua-reply-crypto (parts)
+  "Add mml sign-encrypt flag if any part of original message is encrypted."
   (loop for part in parts
-   if (notmuch-match-content-type (plist-get part :content-type) 
"multipart/signed")
- do (mml-secure-message-sign)
-   else if (notmuch-match-content-type (plist-get part :content-type) 
"multipart/encrypted")
+   if (notmuch-match-content-type (plist-get part :content-type) 
"multipart/encrypted")
  do (mml-secure-message-sign-encrypt)
else if (notmuch-match-content-type (plist-get part :content-type) 
"multipart/*")
  do (notmuch-mua-reply-crypto (plist-get part :content
@@ -236,7 +235,7 @@ list."
;; Quote the original message according to the user's configured style.
(message-cite-original)))
 
-;; Sign and/or encrypt replies to signed and/or encrypted messages.
+;; Crypto processing based crypto content of the original message
 (when process-crypto
   (notmuch-mua-reply-crypto (plist-get original :body
 
-- 
1.9.1

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] emacs: remove auto-signing of replies to signed messages

2014-04-14 Thread Tomi Ollila
On Mon, Apr 14 2014, Jameson Graef Rollins  wrote:

> It was decided that auto-signing is potentially too troublesome for the
> apparently common case of users who enable crypto processing for the
> purpose of checking signature validity but who are not in a position to
> sign out-going messages.  Users can still manually invoke signing as needed.
>
> Encrypting replies to encrypted messages is more of a security issue
> so we leave it in place.
> ---

LGTM. Works for me. +1

Tomi


>  emacs/notmuch-mua.el | 7 +++
>  1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index bf6253f..95e4a4d 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -116,10 +116,9 @@ list."
>   notmuch-mua-hidden-headers))
>  
>  (defun notmuch-mua-reply-crypto (parts)
> +  "Add mml sign-encrypt flag if any part of original message is encrypted."
>(loop for part in parts
> - if (notmuch-match-content-type (plist-get part :content-type) 
> "multipart/signed")
> -   do (mml-secure-message-sign)
> - else if (notmuch-match-content-type (plist-get part :content-type) 
> "multipart/encrypted")
> + if (notmuch-match-content-type (plist-get part :content-type) 
> "multipart/encrypted")
> do (mml-secure-message-sign-encrypt)
>   else if (notmuch-match-content-type (plist-get part :content-type) 
> "multipart/*")
> do (notmuch-mua-reply-crypto (plist-get part :content
> @@ -236,7 +235,7 @@ list."
>   ;; Quote the original message according to the user's configured style.
>   (message-cite-original)))
>  
> -;; Sign and/or encrypt replies to signed and/or encrypted messages.
> +;; Crypto processing based crypto content of the original message
>  (when process-crypto
>(notmuch-mua-reply-crypto (plist-get original :body
>  
> -- 
> 1.9.1
>
> ___
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] emacs: remove auto-signing of replies to signed messages

2014-04-14 Thread Jameson Graef Rollins
It was decided that auto-signing is potentially too troublesome for the
apparently common case of users who enable crypto processing for the
purpose of checking signature validity but who are not in a position to
sign out-going messages.  Users can still manually invoke signing as needed.

Encrypting replies to encrypted messages is more of a security issue
so we leave it in place.
---
 emacs/notmuch-mua.el | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index bf6253f..95e4a4d 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -116,10 +116,9 @@ list."
notmuch-mua-hidden-headers))

 (defun notmuch-mua-reply-crypto (parts)
+  "Add mml sign-encrypt flag if any part of original message is encrypted."
   (loop for part in parts
-   if (notmuch-match-content-type (plist-get part :content-type) 
"multipart/signed")
- do (mml-secure-message-sign)
-   else if (notmuch-match-content-type (plist-get part :content-type) 
"multipart/encrypted")
+   if (notmuch-match-content-type (plist-get part :content-type) 
"multipart/encrypted")
  do (mml-secure-message-sign-encrypt)
else if (notmuch-match-content-type (plist-get part :content-type) 
"multipart/*")
  do (notmuch-mua-reply-crypto (plist-get part :content
@@ -236,7 +235,7 @@ list."
;; Quote the original message according to the user's configured style.
(message-cite-original)))

-;; Sign and/or encrypt replies to signed and/or encrypted messages.
+;; Crypto processing based crypto content of the original message
 (when process-crypto
   (notmuch-mua-reply-crypto (plist-get original :body

-- 
1.9.1