From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18426 Path: news.gmane.org!.POSTED!not-for-mail From: dmahler@gmail.com Newsgroups: gmane.emacs.gnus.user Subject: precise format of .authinfo file Date: Wed, 19 Oct 2016 19:44:40 -0700 (PDT) Message-ID: <2d1f5c3f-fe50-4e26-b046-e84de3745751@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1476931516 740 195.159.176.226 (20 Oct 2016 02:45:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2016 02:45:16 +0000 (UTC) Injection-Date: Thu, 20 Oct 2016 02:44:41 +0000 User-Agent: G2/1.0 To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Oct 20 04:45:12 2016 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bx3Lu-0007RF-5a for gegu-info-gnus-english@m.gmane.org; Thu, 20 Oct 2016 04:45:06 +0200 Original-Received: from localhost ([::1]:52030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx3Lw-0005wi-89 for gegu-info-gnus-english@m.gmane.org; Wed, 19 Oct 2016 22:45:08 -0400 X-Received: by 10.200.40.50 with SMTP id 47mr2968009qtq.59.1476931481093; Wed, 19 Oct 2016 19:44:41 -0700 (PDT) X-Received: by 10.157.10.98 with SMTP id 89mr1600868otg.3.1476931481014; Wed, 19 Oct 2016 19:44:41 -0700 (PDT) Original-Path: usenet.stanford.edu!f6no490970qtd.0!news-out.google.com!203ni1310itk.0!nntp.google.com!e187no593072itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2605:a601:115a:df00:39ea:d2d3:c62e:920b; posting-account=BceQ2AoAAAAaU3tnOxctRcYJ-gfOgcRD Original-NNTP-Posting-Host: 2605:a601:115a:df00:39ea:d2d3:c62e:920b Original-Xref: usenet.stanford.edu gnu.emacs.gnus:89504 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18426 Archived-At: 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.