unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* smtpmail and ~/.authinfo
@ 2011-08-20 10:26 Eli Zaretskii
  2011-08-21  4:39 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 45+ messages in thread
From: Eli Zaretskii @ 2011-08-20 10:26 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: emacs-devel

I switched today to using ~/.authinfo with smtpmail in Emacs 24 for
the first time, and immediately hit a snag: sending mail failed with
an error message from the SMTP server claiming that my login
credentials were incorrect.

It turned out that ~/.authinfo _must_ have Unix EOLs, or else sending
mail with smtpmail not work.  This happens because auth-source-search
is called from smtpmail inside a form that let-binds
coding-system-for-read to `binary'.  That binding is there for reasons
that have nothing to do with auth-source-search, and a cursory search
finds no similar bindings in other users of auth-source-search.

It should be easy to fix this, but I need to know what can be in Netrc
files to do this correctly.  Can these files include non-ASCII
characters, or do all fields in these files have to be strict 7-bit
ASCII?  If non-ASCII characters are allowed, then are there any
limitations on the charsets that can be used in Netrc files, or can
they be anything at all in any valid encoding?  Also, is there any
need to do something special with non-ASCII characters (if they are
allowed) when communicating with the SMTP server, like encode them in
some particular way?

Given the answers to these questions, fixing the above problem should
be as simple as adding a few lines to smtpmail-via-smtp.

TIA



^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2011-09-28  8:38 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-20 10:26 smtpmail and ~/.authinfo Eli Zaretskii
2011-08-21  4:39 ` Lars Magne Ingebrigtsen
2011-08-21  6:12   ` Eli Zaretskii
2011-08-21 19:25     ` Lars Magne Ingebrigtsen
2011-08-21 19:59       ` Eli Zaretskii
2011-08-21 20:17         ` Lars Magne Ingebrigtsen
2011-08-22  5:35           ` Eli Zaretskii
2011-09-10 19:01             ` Lars Magne Ingebrigtsen
2011-09-25 12:33         ` Ted Zlatanov
2011-09-25 12:48           ` Eli Zaretskii
2011-09-25 13:21             ` Ted Zlatanov
2011-09-25 17:08               ` Eli Zaretskii
2011-09-26 14:41                 ` Ted Zlatanov
2011-09-26 16:18                   ` Eli Zaretskii
2011-09-26 16:53                     ` Ted Zlatanov
2011-09-26 17:15                       ` Eli Zaretskii
2011-09-26 17:23                         ` Eli Zaretskii
2011-09-26 17:31                         ` Ted Zlatanov
2011-09-26 17:00                     ` Stefan Monnier
2011-09-26 17:28                       ` Ted Zlatanov
2011-09-26 21:27                         ` Stefan Monnier
2011-09-26 18:04               ` Lars Magne Ingebrigtsen
2011-09-26 19:22                 ` Ted Zlatanov
2011-09-26 19:30                   ` Lars Magne Ingebrigtsen
2011-09-26 19:48                     ` Ted Zlatanov
2011-09-26 21:31                       ` Stefan Monnier
2011-09-26 21:43                         ` Lars Magne Ingebrigtsen
2011-09-26 21:54                           ` Ted Zlatanov
2011-09-27  4:07                           ` Stephen J. Turnbull
2011-09-27  6:11                             ` Lars Magne Ingebrigtsen
2011-09-27 10:29                             ` Ted Zlatanov
2011-09-27 12:33                               ` Stephen J. Turnbull
2011-09-27 20:15                                 ` Ted Zlatanov
2011-09-28  1:41                                   ` Stephen J. Turnbull
2011-09-28  8:38                                     ` Eli Zaretskii
2011-09-26 21:55                         ` Ted Zlatanov
2011-09-27  2:57                         ` Eli Zaretskii
2011-09-27 10:38                           ` Ted Zlatanov
2011-09-27 11:31                             ` Eli Zaretskii
2011-09-27 12:55                               ` Stefan Monnier
2011-09-27 14:02                             ` Jason Rumney
2011-09-26 19:34                   ` Eli Zaretskii
2011-09-26 19:40                     ` Ted Zlatanov
2011-09-27  2:51                       ` Eli Zaretskii
2011-09-27 13:54                   ` Jason Rumney

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).