Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: dmahler@gmail.com
To: info-gnus-english@gnu.org
Subject: precise format of .authinfo file
Date: Wed, 19 Oct 2016 19:44:40 -0700 (PDT)	[thread overview]
Message-ID: <2d1f5c3f-fe50-4e26-b046-e84de3745751@googlegroups.com> (raw)

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-x@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-x@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.

             reply	other threads:[~2016-10-20  2:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-20  2:44 dmahler [this message]
2016-10-21 12:15 ` Felix Dietrich
2016-10-22 14:12 ` Byung-Hee HWANG (황병희, 黃炳熙)

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=2d1f5c3f-fe50-4e26-b046-e84de3745751@googlegroups.com \
    --to=dmahler@gmail.com \
    --cc=info-gnus-english@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.
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 NNTP newsgroup(s).