1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
Commit Graph

165 Commits

Author SHA1 Message Date
Stefan Monnier
6c2453e038 * lisp/emacs-lisp/cl-lib.el (current-case-table): Remove setter.
* lisp/leim/quail/sisheng.el (sisheng-list): Use with-case-table.
2014-04-12 15:30:14 -04:00
Paul Eggert
ba3189039a Update copyright year to 2014 by running admin/update-copyright. 2014-01-01 07:43:34 +00:00
Paul Eggert
0877d0dc24 Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
Paul Eggert
ab422c4d68 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
Lars Ingebrigtsen
e7d52a4de5 Make smtpmail forget the password if the server says it's invalid
* mail/smtpmail.el (smtpmail-try-auth-method): Refactored out into
its own function.
(smtpmail-try-auth-methods): Forget the user name/password if the
login is unsuccessful.

Fixes: debbugs:12424
2012-12-24 13:14:04 +01:00
Lars Ingebrigtsen
8ce192e317 Have smtpmail.el prefer the From: header for the MAIL FROM envelope
* mail/smtpmail.el (smtpmail-send-it): Prefer the From: header
over `user-mail-address' for the SMTP MAIL FROM envelope.
(smtpmail-via-smtp): Ditto.
2012-09-04 18:00:10 +02:00
Jason L. Wright
8633b1f456 * mail/smtpmail.el (smtpmail-send-command): Send the command and
the following \r\n using a single `process-send-string', since the
Lotus SMTP server refuses to accept any commands if they are sent
with two `process-send-string's.

Fixes: debbugs:11444
2012-05-09 21:12:20 +02:00
Eli Zaretskii
3f018d6d39 Make sure smtpmail produces valid mbox files with Unix EOLs for FCC.
lisp/mail/smtpmail.el (smtpmail-send-it): Bind
 coding-system-for-write to *-unix, so that FCC files are kept in
 valid mbox format.
2012-03-09 13:06:44 +02:00
Glenn Morris
9f26dc2432 Try to document smtp changes
* doc/emacs/sending.texi (Mail Sending): smtpmail-auth-credentials was removed.

* doc/misc/smtpmail.texi (Emacs Speaks SMTP): General update for 24.1.
(Encryption): New chapter, split out from previous.

* lisp/mail/smtpmail.el (smtpmail-smtp-user, smtpmail-stream-type):
Doc fixes.

* etc/NEWS: Related edits.
2012-02-14 22:15:26 -05:00
Glenn Morris
6546b13405 * lisp/mail/smtpmail.el (smtpmail-query-smtp-server): Give it a doc. 2012-02-14 13:22:47 -05:00
Lars Ingebrigtsen
835bdcba53 smtpmail initial prompting fixes
(smtpmail-query-smtp-server): Prompt the user for a port number if
we can't connect to any of the standard ports.
2012-02-14 16:43:07 +01:00
Lars Ingebrigtsen
d29b2b4cb7 Respect smtpmail-smtp-service when doing a trial connection
* mail/smtpmail.el (smtpmail-query-smtp-server): Fix typo in the
way the ports list is computed.
2012-02-14 16:31:49 +01:00
Lars Ingebrigtsen
4c7e65bf4f Get the MAIL FROM from the From: header if no domain is configured
* mail/smtpmail.el (smtpmail-user-mail-address): New function.
(smtpmail-via-smtp): Use it, or fall back on the From address.
(smtpmail-send-it): Ditto.
2012-02-09 23:42:12 +01:00
Lars Magne Ingebrigtsen
f186bb958a Remove some unused password-related autoloads
* mail/smtpmail.el (password-cache-add): Removed unused declaration.
(password-read): Don't autoload unused function.
2012-01-07 06:34:30 +01:00
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Lars Magne Ingebrigtsen
a1eacd1e03 * mail/smtpmail.el (smtpmail-stream-type): Mention the `ssl' value. 2012-01-03 20:41:14 +01:00
Juanma Barranquero
cd1181dbec Fix typos. 2011-11-20 04:48:53 +01:00
Leo Liu
112a65928f Add a missing space in smtpmail-send-data
http://debbugs.gnu.org/9701
2011-10-09 09:44:43 +08:00
Lars Magne Ingebrigtsen
85a162088f * mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection.
Fixes: debbugs:9615
2011-09-27 19:45:18 +02:00
Lars Magne Ingebrigtsen
5d5ac8ec03 (smtpmail-via-smtp): Ignore errors that arise when sending QUIT.
Fixes: debbugs:9312
2011-09-18 09:36:20 +02:00
Lars Magne Ingebrigtsen
65a046c491 Update the process marker so that the "broken by peer" status message is inserted in the right place. 2011-09-15 00:57:57 +02:00
Lars Magne Ingebrigtsen
7520339cd1 (smtpmail-send-command): Don't include AUTH passwords in the log buffer 2011-09-14 23:59:50 +02:00
Chong Yidong
2784c43403 Make sendmail-query-once update send-mail-function directly.
* mail/sendmail.el (sendmail-query-once-function): Deleted.
(sendmail-query-once): Save directly to send-mail-function.
Update message-send-mail-function too.

* mail/smtpmail.el (smtpmail-try-auth-methods): Clarify prompt.
2011-09-03 16:24:12 -04:00
Glenn Morris
e5f1c99e95 Minor smtpmail.el fixes.
* lisp/mail/smtpmail.el (smtpmail-smtp-user): Add version: tag.
(smtpmail-via-smtp): Handle nil response from smtp.
2011-08-24 20:41:03 -04:00
Lars Magne Ingebrigtsen
7185da524d (smtpmail-query-smtp-server): Allow `quit'-ing out in case the probe hangs. 2011-08-21 22:29:11 +02:00
Lars Magne Ingebrigtsen
e7f2c178da (smtpmail-try-auth-methods): Expand the secret password. 2011-08-21 22:10:29 +02:00
Lars Magne Ingebrigtsen
c65c96228e Only bind `coding-system-for-*' around the process open call to avoid auth-source side effects. 2011-08-21 21:27:27 +02:00
Lars Magne Ingebrigtsen
f5e3c5984b Introduce a new variable to allow controlling the SMTP user name
* mail/smtpmail.el (smtpmail-smtp-user): New variable.
(smtpmail-try-auth-methods): Use it.
2011-08-21 06:11:59 +02:00
Lars Magne Ingebrigtsen
3e79eb87b7 (auth-source): Require to avoid problems with binding variables.
Also clean up some unused autoloads.

Fixes: debbugs:9298
2011-08-18 00:02:49 +02:00
Paul Eggert
9a70f03d70 Merge from trunk. 2011-08-02 22:05:38 -07:00
Lars Magne Ingebrigtsen
4e190b801d (smtpmail-via-smtp): Query the user for password if we get errors 550 to 554. 2011-07-17 02:45:56 +02:00
Lars Magne Ingebrigtsen
9988520a26 Use `customize-save-variable' unconditionally, now that it works under emacs -Q 2011-07-11 22:15:04 +02:00
Lars Magne Ingebrigtsen
d760b73104 Allow sending mail in "emacs -Q" by not calling customize-save-variable
* mail/smtpmail.el (smtpmail-query-smtp-server): Ditto.

* mail/sendmail.el (sendmail-query-once): If we aren't allowed to
save customizations (with "emacs -Q"), just set the variable
instead of erroring out.
2011-07-08 09:42:21 +02:00
Lars Magne Ingebrigtsen
56ec5115e6 Update doc string of `smtpmail-stream-type'.
* mail/smtpmail.el (smtpmail-stream-type): Note that `plain' can
be used.
2011-07-07 16:54:12 +02:00
Lars Magne Ingebrigtsen
4906cd3d17 * mail/smtpmail.el (smtpmail-default-smtp-server): Made into a defcustom again for backwards compatibility. 2011-07-06 23:34:13 +02:00
Lars Magne Ingebrigtsen
20a7a65f9a (smtpmail-send-it): Leave off changing the buffer multibyteness, since it shouldn't matter. 2011-06-28 17:30:45 +02:00
Lars Magne Ingebrigtsen
40098786b5 Bind coding-system-for-* to binary to possibly avoid line encoding
issues on Windows (among other things).
2011-06-27 02:02:15 +02:00
Lars Magne Ingebrigtsen
468d09d44e If the SMTP server supports STARTTLS, but Emacs has no built-in or
external STARTTLS support, then report this in a sensible fashion to
the user.
2011-06-26 23:05:06 +02:00
Lars Magne Ingebrigtsen
97bb109368 (smtpmail-try-auth-methods): If the user has stored a user name, then
query for the password first, instead of waiting for SMTP to give an
error message and the trying again.
2011-06-22 21:24:51 +02:00
Lars Magne Ingebrigtsen
ddb7ffeeb8 When the .authinfo file has a user name but not a password, prompt
for the password.
2011-06-22 16:48:31 +02:00
Lars Magne Ingebrigtsen
396f7c9d28 (smtpmail-via-smtp): Make sure we don't send QUIT twice. 2011-06-22 11:13:50 +02:00
Lars Magne Ingebrigtsen
6af7a7844e Set :use-starttls-if-possible so that we always use STARTTLS if the server supports it.
SMTP servers that support STARTTLS commonly require it.
2011-06-22 00:55:52 +02:00
Lars Magne Ingebrigtsen
7d36ad4669 (smtpmail-via-smtp): Check for servers saying they want AUTH after MAIL FROM, too. 2011-06-22 00:33:44 +02:00
Lars Magne Ingebrigtsen
95f41d9ad1 Rewritten smtpmail.el to use `open-network-stream' to do STARTTLS
upgrades opportunistically, and to only use auth-source for all
credentials.  Mostly backwards compatible, but
`smtpmail-auth-credentials' and `smtpmail-starttls-credentials' are
removed, and users who relied on those will have to put the
credentials in ~/.authinfo instead.
2011-06-21 23:10:52 +02:00
Stefan Monnier
1257e75502 * lisp/mail/smtpmail.el (smtpmail-send-data): Add progress reporter. 2011-05-30 14:23:47 -03:00
Glenn Morris
db0406bb64 Merge from emacs-23; up to 2010-06-11T21:26:13Z!lekktu@gmail.com. 2011-05-23 20:54:18 -07:00
Kenichi Handa
b8d747b9bd RFC2047-encode header of outgoing mails. 2011-05-23 13:44:29 +09:00
Ted Zlatanov
563790b6db Use auto-source-search' instead of auto-source-user-or-password'.
* mail/smtpmail.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(smtpmail-try-auth-methods): Use it.

* net/imap-hash.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(imap-hash-open-connection): Use it.

* net/tramp-imap.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(tramp-imap-passphrase-callback-function): Use it.

* net/tramp.el (tramp-default-method): Also check if
`auth-source-search' is bound.
(tramp-read-passwd): Use `auth-source-search' instead of
`auto-source-user-or-password'.

* url-parse.el (url-bit-for-url, url-user-for-url)
(url-password-for-url): Use `auto-source-search' instead of
`auto-source-user-or-password'.

* url-auth.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password'.
(url-basic-auth, url-digest-auth, url-do-auth-source-search): Use it.
2011-02-12 11:51:02 -06:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00