From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17331 Path: news.gmane.org!not-for-mail From: Helmut Waitzmann Newsgroups: gmane.emacs.gnus.user Subject: Re: Need help on setting multiple gmail imap account Date: Fri, 16 Jan 2015 07:26:12 +0100 Message-ID: <8761c75jhe.fsf@helmutwaitzmann.news.arcor.de> References: Reply-To: "Helmut Waitzmann Anti-Spam-Ticket.b.qc3c" NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421412019 28423 80.91.229.3 (16 Jan 2015 12:40:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2015 12:40:19 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Jan 16 13:40:14 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YC6CD-0008VN-Pt for gegu-info-gnus-english@m.gmane.org; Fri, 16 Jan 2015 13:40:13 +0100 Original-Received: from localhost ([::1]:55331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC6CD-0004fJ-7Q for gegu-info-gnus-english@m.gmane.org; Fri, 16 Jan 2015 07:40:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC6CA-0004e4-4z for info-gnus-english@gnu.org; Fri, 16 Jan 2015 07:40:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YC6C5-0005dQ-5K for info-gnus-english@gnu.org; Fri, 16 Jan 2015 07:40:10 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:40144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC6C4-0005Zf-V7 for info-gnus-english@gnu.org; Fri, 16 Jan 2015 07:40:05 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YC6C2-0008SQ-V7 for info-gnus-english@gnu.org; Fri, 16 Jan 2015 13:40:03 +0100 Original-Received: from ip-109-42-177-34.web.vodafone.de ([109.42.177.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jan 2015 13:40:02 +0100 Original-Received: from oe.throttle by ip-109-42-177-34.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jan 2015 13:40:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: info-gnus-english@gnu.org Original-Lines: 47 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-109-42-177-34.web.vodafone.de Mail-Copies-To: nobody User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:CRdfodJzKtMOllI47zm64065KcA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 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-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17331 Archived-At: Eric writes: > (add-to-list 'gnus-secondary-select-methods > '(nnimap "name1" > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-stream ssl) > (nnir-search-engine imap) > (nnmail-expiry-target "nnimap+gmail:[Gmail]/Trash") > (nnmail-expiry-wait 90)) > '(nnimap "name2" > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-stream ssl))) > > the authinfo file has: > machine name1 login email1 gmail.com password mypass1 port 993 force yes > machine name2 login email2 gmail.com password mypass2 port 993 force yes > > but it doesn't work for me. There are several other solutions like this > online. Looks like gnus is trying to connect to name1 and name2 which is not > a real server name. It might be possible by editing the etc/host file. Use a different authinfo file for each of the two accounts: > (add-to-list 'gnus-secondary-select-methods > '(nnimap "name1" (nnimap-authinfo-file "~/name1.authinfo") > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-stream ssl) > (nnir-search-engine imap) > (nnmail-expiry-target "nnimap+gmail:[Gmail]/Trash") > (nnmail-expiry-wait 90)) > '(nnimap "name2" (nnimap-authinfo-file "~/name2.authinfo") > (nnimap-address "imap.gmail.com") > (nnimap-server-port 993) > (nnimap-stream ssl))) The contents of the authinfo files are then ~/name1.authinfo: machine imap.gmail.com login email1 gmail.com password mypass1 port 993 force yes ~/name2.authinfo: machine imap.gmail.com login email2 gmail.com password mypass2 port 993 force yes