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
Eli Zaretskii
95e4cc854b
Fix bug #7589 with EOL format in smtpmail's queued mail.
...
mail/smtpmail.el (smtpmail-send-it): Write queued mail body with Unix EOLs.
2010-12-13 17:12:01 +02:00
Glenn Morris
b2364eaaa8
* lisp/mail/smtpmail.el (smtpmail-send-it): Revert previous change.
...
(convert-standard-filename means it was bogus.)
2010-12-08 17:46:03 -08:00
Glenn Morris
3c1e62f86e
Small smtpmail fix for bug#7588.
...
* lisp/mail/smtpmail.el (smtpmail-send-it): Avoid colons in the queued
file names, for the sake of MS Windows.
2010-12-07 19:29:41 -08:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Stefan Monnier
937e6a5612
* url-util.el (url-insert-entities-in-string):
...
* url-nfs.el (url-nfs-unescape):
* url-ldap.el (url-ldap):
* url-imap.el (url-imap):
* url-cid.el (url-cid-gnus, url-cid): Use with-current-buffer.
* erc.el (erc-display-line-1, erc-process-away):
* erc-truncate.el (erc-truncate-buffer-to-size):
Use with-current-buffer.
* term/ns-win.el (ns-scroll-bar-move, ns-face-at-pos):
* play/mpuz.el (mpuz-create-buffer):
* play/landmark.el (lm-prompt-for-move, lm-print-wts, lm-print-smell)
(lm-print-y,s,noise, lm-print-w0, lm-init):
* play/gomoku.el (gomoku-prompt-for-move):
* play/fortune.el (fortune-in-buffer):
* play/dissociate.el (dissociated-press):
* play/decipher.el (decipher-adjacency-list, decipher-display-regexp)
(decipher-analyze-buffer, decipher-stats-buffer,decipher-stats-buffer):
* mail/supercite.el (sc-eref-show):
* mail/smtpmail.el (smtpmail-send-it):
* mail/rmailsum.el (rmail-summary-next-labeled-message)
(rmail-summary-previous-labeled-message, rmail-summary-wipe)
(rmail-summary-undelete-many, rmail-summary-rmail-update)
(rmail-summary-goto-msg, rmail-summary-expunge)
(rmail-summary-get-new-mail, rmail-summary-search-backward)
(rmail-summary-add-label, rmail-summary-output-menu)
(rmail-summary-output-body):
* mail/rfc822.el (rfc822-addresses):
* mail/reporter.el (reporter-dump-variable, reporter-dump-state):
* mail/mailpost.el (post-mail-send-it):
* mail/hashcash.el (hashcash-generate-payment):
* mail/feedmail.el (feedmail-run-the-queue)
(feedmail-queue-send-edit-prompt-help-first)
(feedmail-send-it-immediately, feedmail-give-it-to-buffer-eater)
(feedmail-deduce-address-list):
* eshell/esh-ext.el (eshell-remote-command):
* eshell/em-unix.el (eshell-occur-mode-mouse-goto):
* emulation/viper-util.el (viper-glob-unix-files, viper-save-setting)
(viper-wildcard-to-regexp, viper-glob-mswindows-files)
(viper-save-string-in-file, viper-valid-marker):
* emulation/viper-keym.el (viper-toggle-key):
* emulation/viper-ex.el (ex-expand-filsyms, viper-get-ex-file)
(ex-edit, ex-global, ex-mark, ex-next-related-buffer, ex-quit)
(ex-get-inline-cmd-args, ex-tag, ex-command, ex-compile):
* emulation/viper-cmd.el (viper-exec-form-in-vi)
(viper-exec-form-in-emacs, viper-brac-function):
* emulation/viper.el (viper-delocalize-var):
* emulation/vip.el (vip-mode, vip-get-ex-token, vip-ex, vip-get-ex-pat)
(vip-get-ex-command, vip-get-ex-opt-gc, vip-get-ex-buffer)
(vip-get-ex-count, vip-get-ex-file, ex-edit, ex-global, ex-mark)
(ex-map, ex-unmap, ex-quit, ex-read, ex-tag, ex-command):
* emulation/vi.el (vi-switch-mode, vi-ex-cmd):
* emulation/edt.el (edt-electric-helpify):
* emulation/cua-rect.el (cua--rectangle-aux-replace):
* emulation/cua-gmrk.el (cua--insert-at-global-mark)
(cua--delete-at-global-mark, cua--copy-rectangle-to-global-mark)
(cua-indent-to-global-mark-column):
* calendar/diary-lib.el (calendar-mark-1):
* calendar/cal-hebrew.el (calendar-hebrew-mark-date-pattern):
Use with-current-buffer.
* emulation/viper.el (viper-delocalize-var): Use dolist.
2009-11-03 02:04:29 +00:00
Roland Winkler
75da36cc8f
* mail/smtpmail.el: Indent code properly to make it more readable.
2009-05-25 01:13:59 +00:00
Simon Josefsson
9927d25059
(smtpmail-auth-supported): Mention that list is
...
in preference order.
(smtpmail-try-auth-methods): Improve which authentication
mechanism to use, so that the locally most preferred and mutually
supported mechanism is used.
2009-03-03 16:28:17 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Teodor Zlatanov
863e372f74
(smtpmail-open-stream): Use `starttls-any-program-available'. Auto-load starttls.el for it.
2008-11-10 20:13:41 +00:00
Teodor Zlatanov
373f031296
(smtpmail-open-stream): Use `starttls-any-program-available'.
2008-11-10 20:10:51 +00:00
Glenn Morris
20e43520ef
Remove unnecessary eval-and-compile.
2008-06-07 02:41:06 +00:00
Teodor Zlatanov
e64a3841c4
Add autoload for
...
`auth-source-user-or-password'.
(smtpmail-try-auth-methods): Use it.
2008-05-12 12:40:12 +00:00
Glenn Morris
b1fc2b5014
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 07:25:26 +00:00
Stefan Monnier
cbee283dd7
Fix up comment convention on the arch-tag lines.
2008-04-10 14:10:46 +00:00
Glenn Morris
0fc1e8febf
Remove leading `*' from defcustom doc-strings.
...
(smtpmail-code-conv-from): Doc fix. Fix custom type.
(smtpmail-queue-index-file): Make it a defcustom.
(smtpmail-queue-index): Delete.
(smtpmail-send-it, smtpmail-send-queued-mail):
Use smtpmail-queue-index-file and smtpmail-queue-dir rather than
smtpmail-queue-index.
2008-02-23 19:33:50 +00:00
Glenn Morris
48a731fe8e
(password-cache-add): Declare as function.
2008-02-14 18:43:02 +00:00
Bastien Guerry
b1cd57bc9a
2008-02-14 Justus Piater <Justus-bulk@Piater.name> (tiny change)
...
* mail/smtpmail.el: Use password-cache.
2008-02-14 14:59:32 +00:00
Bastien Guerry
5b5eae56a2
* mail/smtpmail.el: Use password-cache.
2008-02-13 21:52:41 +00:00
Glenn Morris
2f043267ee
Add 2008 to copyright years.
2008-01-07 02:00:47 +00:00
Glenn Morris
ceaeecb0c9
Switch license to GPLv3 or later.
2007-07-25 04:27:24 +00:00
Chong Yidong
b242a76c57
(smtpmail-via-smtp): Use ascii-case-table when downcasing.
2007-04-04 15:38:04 +00:00
Eli Zaretskii
814066452f
(smtpmail-via-smtp): Fix indentation.
2007-04-03 09:05:37 +00:00
Chong Yidong
f01ac5da4a
(smtpmail-via-smtp): Revert last change.
2007-04-02 22:45:41 +00:00
Chong Yidong
b6aee6ff1a
(smtpmail-via-smtp): Use standard case table when downcasing.
2007-04-01 17:38:10 +00:00
Juanma Barranquero
1429d866a5
(smtpmail-smtp-service, smtpmail-queue-index-file): Fix typos in docstrings.
...
(smtpmail-local-domain, smtpmail-queue-mail): Doc fixes.
2007-02-09 16:17:56 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Eli Zaretskii
362e23e116
(smtpmail-send-it): Copy buffer-file-coding-system from the mail buffer.
...
Possibly add a MIME header for the message encoding. Bind
coding-system-for-write around the call to mail-do-fcc. Use
smtpmail-code-conv-from to encode queued mail messages.
2006-11-24 14:33:19 +00:00
Richard M. Stallman
9b3bf5e89c
Comment change.
2006-10-18 11:11:32 +00:00
Simon Josefsson
6c77efbed3
2006-10-02 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
...
* mail/smtpmail.el (smtpmail-try-auth-methods): Fix typo in
2006-09-28 commit.
2006-10-02 07:48:59 +00:00
Chong Yidong
e4eb8462ca
* mail/smtpmail.el (smtpmail-try-auth-methods): Do not break long
...
lines in base64-encoded authentication response.
2006-09-28 17:16:12 +00:00
Simon Josefsson
8bf5f8c5d2
2006-09-06 Simon Josefsson <jas@extundo.com>
...
* mail/smtpmail.el (smtpmail-starttls-credentials): Doc fix.
2006-09-06 09:08:55 +00:00
Thien-Thi Nguyen
ceb4c4d303
Update years in copyright notice; nfc.
2006-02-06 12:31:40 +00:00
Jesper Harder
b0aea09e7b
(smtpmail-send-it): Use insert-buffer-substring.
2006-01-18 20:49:00 +00:00
Simon Josefsson
0c91399adf
Add comment describing AUTH PLAIN fix.
2006-01-10 14:06:14 +00:00
Simon Josefsson
c3f69831cb
Fix AUTH PLAIN authentication.
2005-12-28 08:46:05 +00:00
Kim F. Storm
9cf328cc65
(smtpmail-via-smtp): Disable undo in SMTP buffer.
2005-12-09 09:44:35 +00:00