1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00

Make some network connections warn unless they are encrypted

* mail/smtpmail.el (smtpmail-via-smtp): Warn unless encrypted and
we're sending a password.

* pop3.el (pop3-open-server): Warn unless encrypted.

* nnimap.el (nnimap-open-connection-1): Warn unless encrypted.
This commit is contained in:
Lars Magne Ingebrigtsen 2014-11-23 15:00:48 +01:00
parent 4c298b2a73
commit c43b706ab3
5 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2014-11-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mail/smtpmail.el (smtpmail-via-smtp): Warn unless encrypted and
we're sending a password.
* net/nsm.el: New file that implements a Network Security Manager.
* net/network-stream.el (open-network-stream): Add a new

View File

@ -1,3 +1,9 @@
2014-11-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
* pop3.el (pop3-open-server): Warn unless encrypted.
* nnimap.el (nnimap-open-connection-1): Warn unless encrypted.
2014-11-17 Albert Krewinkel <albert@zeitkraut.de>
* message.el (message-valid-fqdn-regexp): Add non-internaional new

View File

@ -405,6 +405,7 @@ textual parts.")
"*nnimap*" (current-buffer) nnimap-address
(nnimap-map-port (car ports))
:type nnimap-stream
:warn-unless-encrypted t
:return-list t
:shell-command nnimap-shell-program
:capability-command "1 CAPABILITY\r\n"

View File

@ -561,6 +561,7 @@ Returns the process associated with the connection."
'tls)
(t
(or pop3-stream-type 'network)))
:warn-unless-encrypted t
:capability-command "CAPA\r\n"
:end-of-command "^\\(-ERR\\|+OK\\).*\n"
:end-of-capability "^\\.\r?\n\\|^-ERR"

View File

@ -687,6 +687,7 @@ Returns an error if the server cannot be contacted."
"smtpmail" process-buffer host port
:type smtpmail-stream-type
:return-list t
:warn-unless-encrypted ask-for-password
:capability-command (format "EHLO %s\r\n" (smtpmail-fqdn))
:end-of-command "^[0-9]+ .*\r\n"
:success "^2.*\n"