Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

precise format of .authinfo file

42 views
Skip to first unread message

dma...@gmail.com

unread,
Oct 19, 2016, 10:44:41 PM10/19/16
to
I would like to know the exact specification of the .authinfo file format.

I am trying to use gnus to read my mail.
I now have a configuration that works for both
my personal gnail and my work office365 accounts
as long as I supply the passwords manually.

I am trying to create an ~/authinfo.gpg to automate logging in.
Initially I am trying to set up a plain ~/.authinfo file
to eliminate gpg related issues and I am only doing it for my gmail account.

When I supply a ~/.authinfo file for my gmail account
I am no longer asked for a password
but my gmail mailboxes do not appear
and in *Messages* I get a the message:

Warning: Opening nnimap server on gmail.com...failed: BAD Failed to parse your command f189mb236504406ivf

I get a similar problem for my work email when I try to set up authinfo for that account.

The format of authinfo entries is usually given as

machine HOST login ACCOUNT password PASSWORD port PORT

where the lowercase words are literals and upper case words get substituted by concrete values.
An example would be:

machine imap.gmail.com login mr...@gmail.com password H0keyPok3ey port 993

However in some examples either ACCOUNT and/or PASSWORD are sometimes shown as quoted, eg:

machine imap.gmail.com login "mr...@gmail.com" password "H0keyPok3ey" port 993

It is also not clear if any character escaping needs to be done.

Usually the ACCOUNT is given as the full email address.

Sometimes the port is given by a symbol like "imap" or the port section is omitted altogether.

I would also like to make sure that the entries are indeed space separated and not tab separated.

I have tried a number of the above possibilities alone and in combination
and all with the same result as above.

I am using GNU Emacs 25.2.

What do I need to get gnus to work with the authinfo.

Felix Dietrich

unread,
Oct 21, 2016, 8:15:27 AM10/21/16
to
Have you had a look at the `auth-source' info document [1]?

(info "(auth) Help for users")


[1] https://www.gnu.org/software/emacs/manual/html_node/auth/Help-for-users.html

--
Felix Dietrich

Byung-Hee HWANG (황병희, 黃炳熙)

unread,
Oct 22, 2016, 10:20:02 AM10/22/16
to
dma...@gmail.com 께서 쓰시길,
《記事 全文 <2d1f5c3f-fe50-4e26...@googlegroups.com>
에서》:
Well i think you would be bug report.

`M-x report-bug-emacs' (with "Cc: la...@gnus.org")

Otherwise you could check one by one. In my case, i failed with
GNU/Emacs 23.3 with Gnus 5.13. At that time, Gnus did fail to connect to
imap.gmail.com.

Then i did upgrade GNU/Emacs 25.x snapshot. And Gnus did success to
connect to imap.gmail.com.

For now i use Gnus devel version (Ma Gnus) with GNU/Emacs 23.3. Of
course Ma Gnus have no problem to connect to imap.gmail.com.

Again i suggest that you would be bug report with your detail
environments^^

Sincerely,

--
^고맙습니다 _地平天成_ 감사합니다_^))//
0 new messages