all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: smtpmail and ~/.authinfo
Date: Mon, 26 Sep 2011 11:53:18 -0500	[thread overview]
Message-ID: <87d3en454x.fsf@lifelogs.com> (raw)
In-Reply-To: 838vpbgtuo.fsf@gnu.org

On Mon, 26 Sep 2011 19:18:39 +0300 Eli Zaretskii <eliz@gnu.org> wrote: 

>> From: Ted Zlatanov <tzz@lifelogs.com>
>> Date: Mon, 26 Sep 2011 09:41:08 -0500
>> 
>> With raw-text they also get potentially unsafe characters, right?

EZ> They get what they put in the file.  If we assume that what's there is
EZ> acceptable by their SMTP server, it's "safe".

Exactly.  So the UTF-8 encoding won't change anything, it will only make
it easier for the netrc/authinfo file to be shared :)

>> Could you help me (or point me to the right examples) to:
>> 
>> - always create/write a file in UTF-8 on every platform

EZ> You mean, force Emacs to encode .authinfo in UTF-8 when creating it?
EZ> I guess that's the job for file-coding-system-alist.

So I would just override that when writing the netrc/authinfo file.  I
can't imagine any value in letting the user override the UTF-8 encoding,
can you?

>> - opportunistically open the file in binary, raw-text, UTF-8, etc. on
>> every platform

EZ> Sorry, I don't understand what you'd like to do.  Please elaborate,
EZ> and I will gladly try to help.

There must be netrc/authinfo files written in binary encoding because
that was the default.  I'd like to open them, but also open UTF-8
encoded netrc/authinfo files, and also accept raw-text or any other
reasonably guessed encoding.  For UTF-8 there are heuristics but Emacs
has them built-in, right?  So I don't have to write special code to
guess?

The alternative is to try as utf-8, then try binary, then give up.  But
that's less friendly to the user I think.

Ted




  reply	other threads:[~2011-09-26 16:53 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d3en454x.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.