From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17317 Path: news.gmane.org!not-for-mail From: Eric Newsgroups: gmane.emacs.gnus.user Subject: Need help on setting multiple gmail imap account Date: Mon, 29 Dec 2014 16:17:38 +0000 (UTC) Message-ID: 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 1419870026 29381 80.91.229.3 (29 Dec 2014 16:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2014 16:20:26 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Dec 29 17:20:20 2014 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 1Y5d3E-0007lB-9M for gegu-info-gnus-english@m.gmane.org; Mon, 29 Dec 2014 17:20:12 +0100 Original-Received: from localhost ([::1]:33926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5d3D-0001tB-Hr for gegu-info-gnus-english@m.gmane.org; Mon, 29 Dec 2014 11:20:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5d3B-0001sw-MA for info-gnus-english@gnu.org; Mon, 29 Dec 2014 11:20:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5d37-0003BK-Ia for info-gnus-english@gnu.org; Mon, 29 Dec 2014 11:20:09 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:37111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5d37-00037W-CE for info-gnus-english@gnu.org; Mon, 29 Dec 2014 11:20:05 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y5d35-0007cT-58 for info-gnus-english@gnu.org; Mon, 29 Dec 2014 17:20:03 +0100 Original-Received: from 130.15.32.238 ([130.15.32.238]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Dec 2014 17:20:03 +0100 Original-Received: from thegreatfq by 130.15.32.238 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Dec 2014 17:20:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 130.15.32.238 (Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0) 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:17317 Archived-At: Hi, I am using emacs 24.4. Following this instruction: http://superuser.com/questions/86798/multiple-email-accounts-from-the-same-server-in-emacs-gnus The same solution is posted here https://lists.gnu.org/archive/html/info-gnus-english/2008-04/msg00088.html But all looks to be outdated. My trial setup is like this: (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. Does anyone has a working setup with the server aliasing approach? Thanks a lot. Eric