From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81770 Path: news.gmane.org!not-for-mail From: coroa@online.de (Jonas =?utf-8?Q?H=C3=B6rsch?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Setting up Dovecot [Was => Re: gnus fetching same mails again and again (pop)] Date: Tue, 17 Apr 2012 01:55:17 +0200 Message-ID: <87ehrngrkq.fsf@gmail.com> References: <87mx6hl0fo.fsf@live.com> <871untb4n5.fsf@eps142.cdf.udc.es> <87lim01ifw.fsf@Gmail.com> <87hawo17gt.fsf@Gmail.com> <87wr5gqkhs.fsf@Gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334620593 17953 80.91.229.3 (16 Apr 2012 23:56:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Apr 2012 23:56:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30047@lists.math.uh.edu Tue Apr 17 01:56:32 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SJvmX-0008LE-Fi for ding-account@gmane.org; Tue, 17 Apr 2012 01:56:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1SJvli-0002sp-EU; Mon, 16 Apr 2012 18:55:38 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SJvlg-0002sd-NW for ding@lists.math.uh.edu; Mon, 16 Apr 2012 18:55:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SJvlf-0001Rf-5O for ding@lists.math.uh.edu; Mon, 16 Apr 2012 18:55:36 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SJvld-0007oR-4l for ding@gnus.org; Tue, 17 Apr 2012 01:55:33 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SJvlZ-0007hu-6f for ding@gnus.org; Tue, 17 Apr 2012 01:55:29 +0200 Original-Received: from dslb-188-103-110-179.pools.arcor-ip.net ([188.103.110.179]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Apr 2012 01:55:29 +0200 Original-Received: from coroa by dslb-188-103-110-179.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Apr 2012 01:55:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 60 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dslb-188-103-110-179.pools.arcor-ip.net User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:DMNfk8X32thMKI2j/2lW2zLMNMs= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81770 Archived-At: On Mon, Apr 16 2012, Yagnesh Raghava Yakkala wrote: >> >>> I couldn't get Dovecot working. >> > > - restarted dovecot > ,---- > | raghava-note:/ $ sudo service dovecot restart > | dovecot start/running, process 8639 > `---- it should not be necessary: if you want to invoke it via nnimap-stream shell: it doesn't even have to be running. i don't have to start the dovecot server to use /usr/lib/dovecot/imap.f > > ,---- > | (setq imap-shell-program "/usr/lib/dovecot/imap") > | > | (add-to-list 'gnus-secondary-select-methods > | '(nnimap "localimap" > | (nnimap-address "localhost") > | (nnimap-stream shell))) i'm using dovecot via shell invocation quite successfully for some time now. this is what i use as gnus-setup. so basically the same you already have minus nnimap-address and plus the stderr suppression: (add-to-list 'gnus-secondary-select-methods '(nnimap "dovecot" (nnimap-stream shell) (nnir-search-engine imap))) (setq imap-shell-program '("/usr/lib/dovecot/imap 2> /dev/null")) i don't need any additional authentification. no password, username, whatsoever. you might want to try what happens if you invoke /usr/lib/dovecot/imap in any shell, for me this looks like: * PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE] Logged in as coroa i'm using dovecot 2.1.4 on archlinux. i read that for some older versions you actually want to call it via /usr/sbin/dovecot --exec-mail imap instead of /usr/lib/do... just some random, perhaps helpful information by my side, have fun, jonas