Commit graph

110 commits

Author SHA1 Message Date
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Glenn Morris
ff98122692 Fix previous change:
(smtpmail-send-queued-mail): Set smtpmail-mail-address before
calling smtpmail-via-smtp.
(smtpmail-via-smtp): Add fall-back values for envelope-from.
2003-08-26 17:42:27 +00:00
Glenn Morris
2265c62399 (smtpmail-mail-address): Doc change.
(smtpmail-send-it): Make treatment of envelope-from consistent with
sendmail.el.
2003-08-24 15:23:12 +00:00
Juanma Barranquero
2fbc1118b3 (smtpmail-send-it): Create smtpmail-queue-dir if it doesn't exist. 2003-07-13 17:20:34 +00:00
Simon Josefsson
11c10f3bf0 (smtpmail-open-stream): Don't hard code
starttls-program.
2003-05-13 19:48:50 +00:00
Juanma Barranquero
95754b9f0f (smtpmail-send-queued-mail): Use point-at-bol instead of forward-line. 2003-05-09 22:51:21 +00:00
Juanma Barranquero
9b60c729b4 (smtpmail-send-queued-mail): Don't use kill-line. 2003-05-08 22:16:39 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Simon Josefsson
2410946921 (smtpmail-via-smtp): Fall back to user-mail-address as sender. 2002-12-15 07:27:08 +00:00
Juanma Barranquero
74f39ce948 (smtpmail-send-queued-mail): Add autoload cookie. 2002-11-18 08:05:28 +00:00
Simon Josefsson
56e5818fd6 * mail/sendmail.el (mail-envelope-from): New option `header' to
use RFC 2822 From: header as the envelope address.
(mail-envelope-from): New function, this should be used instead of
looking at the `mail-envelope-from' variable.
(sendmail-send-it): Use it.
* mail/smtpmail.el (smtpmail-via-smtp): Use it.
2002-10-11 02:27:30 +00:00
Simon Josefsson
f029e7b0e9 (smtpmail-via-smtp): Only negotiate starttls on
streams that were opened using starttls.
2002-09-29 03:19:55 +00:00
Simon Josefsson
bf6e31bc66 (smtpmail-send-it): Don't use : in filenames
(for cygwin). Suggested by Andrew Senior <aws@watson.ibm.com>.
Use expand-file-name.  Also don't require time-stamp.
2002-09-12 06:03:03 +00:00
Simon Josefsson
b559a04168 (smtpmail-default-smtp-server): Doc fix. 2002-09-11 04:53:40 +00:00
Simon Josefsson
d0e28141ba Update copyright. 2002-09-04 19:11:28 +00:00
Simon Josefsson
1121afb461 (smtpmail-via-smtp): Delete process buffer
unless s-debug-info is enabled.
2002-08-30 10:32:25 +00:00
Richard M. Stallman
850ed7b3a7 (smtpmail-mail-address): New variable.
(smtpmail-send-it): Bind and use that instead of `mail-address'.
(smtpmail-via-smtp): Likewise.
2002-05-12 17:01:59 +00:00
Simon Josefsson
1a8e727bc0 (smtpmail-send-it): Use user-mail-address from
calling buffer.
(smtpmail-auth-credentials): Bump :version to 21.4 (21.3 will not
have the patch).
2002-05-09 10:18:09 +00:00
Richard M. Stallman
0d1c958a2f (netrc-machine, netrc-get): Add autoloads. 2002-05-08 13:13:41 +00:00
Sam Steingold
a8ba442952 (smtpmail-try-auth-methods): host is not in the authinfo/netrc => cred=nil. 2002-04-26 18:59:08 +00:00
Richard M. Stallman
60ed3fa5f0 (smtpmail-auth-credentials): Support netrc files as well.
(smtpmail-try-auth-methods): Support netrc data.
(netrc-parse): Autoload netrc.
2002-04-25 23:39:21 +00:00
Richard M. Stallman
08b10dd422 (smtpmail-queue-counter): New variable.
(smtpmail-send-it): Use it to construct new queue filenames (needed
if you send more than one message per second, which is
possible if you use Gnus Agent).
2002-04-25 21:45:22 +00:00
Eli Zaretskii
7e3fa9f5e2 (smtpmail-send-queued-mail): Use
with-temp-buffer instead of find-file-noselect, and bind
coding-system-for-read to no-conversion when reading the queued
messages.  From Simon Josefsson <jas@extundo.com>.
2001-12-21 12:06:21 +00:00
Eli Zaretskii
19a0baf79c (smtpmail-send-queued-mail): Insert the enqueued messages literally. 2001-12-10 19:49:32 +00:00
Stefan Monnier
21bf0d6c50 Use with-current-buffer.
(message-make-date, message-make-message-id): Autoload when needed.
(smtpmail-send-it): Use them to add `Date:' and `Message-Id:'
headers when missing.
2001-12-01 00:36:12 +00:00
Richard M. Stallman
92dfd10c1f Simplify previous change. 2001-11-25 17:45:36 +00:00
Pavel Janík
fefed09d42 (smtpmail-deduce-address-list): Don't use insert-string. 2001-11-25 15:11:22 +00:00
Richard M. Stallman
9056f1c9f7 (smtpmail-cred-server, smtpmail-cred-port, smtpmail-cred-key)
(smtpmail-cred-user, smtpmail-cred-cert, smtpmail-cred-passwd):
Defsubst instead of defmacro.
(smtpmail-intersection): Return value in reverse order.
(smtpmail-open-stream): Use stringp instead of string-to-list.
(smtpmail-open-stream, smtpmail-try-auth-methods): New functions,
separated from smtpmail-via-smtp.

(top level): Autoload starttls, mail-utils and rfc2104.
(smtpmail-smtp-service): Doc fix.  :type fix.
(smtpmail-debug-info): Doc fix.
(smtpmail-debug-verb, smtpmail-auth-credentials)
(smtpmail-starttls-credentials, smtpmail-auth-supported): New variables.
(smtpmail-deduce-address-list, smtpmail-send-it): Don't require
mail-utils (it is autoloaded).
(smtpmail-cred-server, smtpmail-cred-port, smtpmail-cred-key)
(smtpmail-cred-user, smtpmail-cred-cert, smtpmail-cred-passwd)
(smtpmail-find-credentials, smtpmail-intersection): New utility funs.
(smtpmail-via-smtp): Support STARTTLS, if binary is installed.
(smtpmail-via-smtp): Support AUTH.
(smtpmail-via-smtp): Use `smtpmail-debug-verb' to control VERB.
2001-11-17 22:43:36 +00:00
Stefan Monnier
d2f11dda2a (smtpmail-via-smtp): Use mail-envelope-from if set. 2001-10-18 20:48:23 +00:00
Gerd Moellmann
a95f291d6f Comment fix. 2001-08-07 14:43:48 +00:00
Gerd Moellmann
2b5c7e03a5 (maybe-append-domain): Renamed to
`smtpmail-maybe-append-domain'.
(smtpmail-via-smtp): Use the new name.
2001-05-18 11:24:16 +00:00
Gerd Moellmann
fa87f673f5 (smtpmail-warn-about-unknown-extensions): Add :version. 2001-05-07 11:26:24 +00:00
Gerd Moellmann
1b62b0624f (smtpmail-warn-about-unknown-extensions): New
option.
(smtpmail-via-smtp): Print warnings about unknown SMTP extensions
only if smtpmail-warn-about-unknown-extensions is set.
2001-05-07 11:24:51 +00:00
Gerd Moellmann
e889eabcba (smtpmail-via-smtp): Add support for
automatically appending a domain to RCPT TO: addresses.
1999-10-14 22:09:58 +00:00
Andrew Innes
e916648788 (smtpmail-send-it): Use convert-standard-filename to make file names
for queued mail safe on Windows (`:' is invalid in file names on
Windows).
1999-06-18 21:20:48 +00:00
Kenichi Handa
83af570eae (smtpmail-send-it): Bind
smtpmail-code-conv-from properly.
(smtpmail-send-data-1): If DATA is a multibyte string, encode it
by smtpmail-code-conv-from.
1999-05-25 11:12:17 +00:00
Andrew Innes
1188dd3759 (smtpmail-deduce-address-list): Bind variables
after switching buffer, as case-fold-search is a buffer local
variable.
1999-05-02 09:50:47 +00:00
Karl Heuer
067427f540 (smtpmail-do-bcc): Fix regexp. 1999-03-09 03:02:55 +00:00
Richard M. Stallman
fb035bbfe1 (smtpmail-send-data-1): Use encode-coding-string.
(smtpmail-address-buffer): Add defvar.
(smtpmail-recipient-address-list, smtpmail-read-point): Likewise.
1998-10-13 15:32:12 +00:00
Karl Heuer
2c79f5b831 (smtpmail-via-smtp): Parse out the first word
on extension lines.
1998-09-04 20:08:58 +00:00
Karl Heuer
f38d351407 (smtpmail-send-it): Add autoload cookie.
(smtpmail-via-smtp): Check that smtpmail-smtp-server is defined.
1998-08-29 15:56:41 +00:00
Richard M. Stallman
4b876894b7 (smtpmail-via-smtp): Speciy process coding system. 1998-05-12 19:44:17 +00:00
Richard M. Stallman
92a3f23d5b (smtpmail-send-it): Use mail-sendmail-undelimit-header. 1998-04-30 06:12:32 +00:00
Richard M. Stallman
5feeeae29d (smtpmail-send-it): Deleted all code related to Resent-To: processing.
(smtpmail-deduce-address-list): Changed the search for
Resent-\(To\|Cc\|Bcc\) headers.
(smtpmail-do-bcc): Delete Resent-Bcc: headers.
1998-04-20 18:03:00 +00:00
Karl Heuer
3375a61ce6 (smtpmail-send-it): Don't use time-stamp-strftime. 1997-10-15 23:33:14 +00:00
Richard M. Stallman
308bc5d840 Include time-stamp.
(smtpmail-queue-dir, smtpmail-queue-index-file): New variables.
(smtpmail-queue-mail): New variable.
(smtpmail-send-it): Handle those variables.
(smtpmail-send-queued-mail): New command.
1997-06-01 23:26:16 +00:00
Richard M. Stallman
c50d5ce0d1 (smtpmail-via-smtp): Recognize XVRB as a synonym for
VERB and XONE as a synonym for ONEX.

(smtpmail-read-response): Add "%s" to `message' calls to avoid
problems with percent signs in strings.

(smtpmail-read-response): Return all lines of the
response text as a list of strings.  Formerly only the first line
was returned.  This is insufficient when one wants to parse
e.g. an EHLO response.

Ignore responses starting with "0".  This is necessary to support
the VERB SMTP extension.

(smtpmail-via-smtp): Try EHLO and find out which SMTP service
extensions the receiving mailer supports.

Issue the ONEX and XUSR commands if the corresponding extensions
are supported.

Issue VERB if supported and `smtpmail-debug-info' is non-nil.

Add SIZE attribute to MAIL FROM: command if SIZE extension is
supported.

Add code that could set the BODY= attribute to MAIL FROM: if the
receiving mailer supports 8BITMIME.  This is currently disabled,
since doing it right might involve adding MIME headers to, and in
some cases reencoding, the message.
1997-06-01 22:24:22 +00:00
Richard M. Stallman
092af6d867 Comment change. 1997-04-20 07:33:52 +00:00
Richard M. Stallman
00ed33e7ab Add defgroup; use defcustom for user vars. 1997-04-13 07:51:54 +00:00
Richard M. Stallman
e4377f536f (smtpmail-read-response): Don't get confused by %'s in response-string. 1997-01-21 01:16:10 +00:00