From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83826 Path: news.gmane.org!not-for-mail From: Bullone Newsgroups: gmane.emacs.gnus.general Subject: Problems about INBOXes disappear from multiple Gmail accounts with offlineimap and dovecot integration Date: Sun, 27 Oct 2013 19:58:43 +0800 Message-ID: <87txg3kjrg.fsf@DN.243-234-182.cable.dynamic.kbtelecom.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382885977 4762 80.91.229.3 (27 Oct 2013 14:59:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Oct 2013 14:59:37 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32082@lists.math.uh.edu Sun Oct 27 15:59:38 2013 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 1VaRoX-00065o-Sh for ding-account@gmane.org; Sun, 27 Oct 2013 15:59:38 +0100 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 1VaRnc-00067q-VP; Sun, 27 Oct 2013 09:58:41 -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 1VaQUy-0005nV-9X for ding@lists.math.uh.edu; Sun, 27 Oct 2013 08:35:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1VaQUn-0003ve-6Y for ding@lists.math.uh.edu; Sun, 27 Oct 2013 08:35:19 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1VaQUk-0005Xo-PI for ding@gnus.org; Sun, 27 Oct 2013 14:35:06 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VaQUi-0007GM-G3 for ding@gnus.org; Sun, 27 Oct 2013 14:35:04 +0100 Original-Received: from 101.8.210.5 ([101.8.210.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Oct 2013 14:35:04 +0100 Original-Received: from kulugox by 101.8.210.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Oct 2013 14:35:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 203 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 101.8.210.5 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:Lp8mucq/UpegRl6N9JRdPfAj3XQ= X-Spam-Score: 3.1 (+++) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0190 Ham tokens: 0.000-248--1894h-0s--0d--H*u:Emacs, 0.000-180--1377h-0s--0d--H*UA:Gnus, 0.000-180--1377h-0s--0d--H*u:Gnus, 0.000-171--1303h-0s--0d--H*u:linux, 0.000-171--1303h-0s--0d--H*UA:linux Spam tokens: 1.000-31--0h-119s--1d--H*M:dynamic, 1.000-31--0h-119s--1d--H*MI:dynamic, 1.000-18--0h-68s--1d--H*MI:cable, 1.000-18--0h-68s--1d--H*M:cable, 0.998-2--0h-6s--4d--H*MI:234 Autolearn status: no -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.229.3 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kulugox[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.5 BAYES_05 BODY: Bayes spam probability is 1 to 5% [score: 0.0190] 2.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83826 Archived-At: Thanks to a lot of people: Now I can use offlineimap to fetch mails from Gmail to my local laptop, and at least connect to local Dovecot from gnus. However there is still at least two problems: First: I could read all groups in gnus just EXECPT INBOX of all three gmail accounts. If I try to enter the INBOX group,"Group nnimap+One:INBOX contains no messages" is the *Messages* which pops up. Second: In fact , once there are repeated IMAP directory names in each accounts(such as INBOX, @WAITING,@TODO...etc) , these directories will contains no messages. I think this is the same cause of the first problem. Third Every IMAP directories appear in different accounts,which really wastes a lot of disk space. In fact I feel the dovecot part is the most reasonable problem, however I have no more idea how to tune it . I have googled and asked from #dovecot irc channel, but still with no luck. Could someone help me set it up? Any suggestion will be appreciated. My environment is: Debian wheezy stable, GNU Emacs 24.3.50.1, Gnus V5.13, Offlineimap 6.3.4, Dovecot 2.1.7, Below is my gnus, offlineimap,and dovecot configuration files ######################## Gnus Part ######################################## This is my .gnus: (require 'pgg) (load "~/.gnus-custom.el") (setq nnrss-use-local t) (setq imap-shell-program "MAIL=maildir:$HOME/Maildir /usr/lib/dovecot/imap") (setq gnus-permanently-visible-groups ".*") This is some gnus part of my custom-file: '(gnus-buttonized-mime-types (quote ("multipart/alternative" "multipart/signed"))) '(gnus-default-charset (quote chinese-iso-8bit)) '(gnus-group-list-inactive-groups nil) '(gnus-group-name-charset-group-alist (quote ((".*" . utf-8) ("\\\\.com\\\\.cn:" . cn-gb-2312)))) '(gnus-group-name-charset-method-alist (quote (((nntp "news.newsfan.net") . gbk)))) '(gnus-group-use-permanent-levels t) '(gnus-keep-same-level t) '(gnus-newsgroup-ignored-charsets (quote (unknown-8bit x-unknown iso-8859-1))) '(gnus-notifications-minimum-level 3) '(gnus-buttonized-mime-types (quote ("multipart/alternative" "multipart/signed"))) '(gnus-default-charset (quote chinese-iso-8bit)) '(gnus-group-list-inactive-groups nil) '(gnus-group-name-charset-group-alist (quote ((".*" . utf-8) ("\\\\.com\\\\.cn:" . cn-gb-2312)))) '(gnus-group-name-charset-method-alist (quote (((nntp "news.newsfan.net") . gbk)))) '(gnus-group-use-permanent-levels t) '(gnus-keep-same-level t) '(gnus-newsgroup-ignored-charsets (quote (unknown-8bit x-unknown iso-8859-1))) '(gnus-notifications-minimum-level 3) '(gnus-save-killed-list nil) '(gnus-secondary-select-methods (quote ((nnimap "One" (nnimap-address "localhost") (nnimap-server-port 993) (nnimap-stream shell) (nnimap-shell-program "MAIL=maildir:$HOME/Maildir/One /usr/lib/dovecot/imap") (nnimap-authinfo-file "~/.authinfo.gpg")) (nnimap "Two" (nnimap-address "localhost") (nnimap-server-port 993) (nnimap-stream shell) (nnimap-shell-program "MAIL=maildir:$HOME/Maildir/Two /usr/lib/dovecot/imap") (nnimap-authinfo-file "~/.authinfo.gpg")) (nnimap "Three" (nnimap-address "localhost") (nnimap-server-port 993) (nnimap-shell-program "MAIL=maildir:$HOME/Maildir/Three /usr/lib/dovecot/imap") (nnimap-stream shell) (nnimap-authinfo-file "~/.authinfo.gpg"))))) ####################### Offlineimap Part ############################### [general] ui = ttyui accounts = One,Two,Three maxsyncaccounts = 3 sslcacertfile = ~/.offlineimap/CA # pythonfile = ~/.offlineimap.py [Account One] localrepository = One-Local remoterepository = One-Remote [Account Two] localrepository = Two-Local remoterepository = Two-Remote [Account Three] localrepository = Three-Local remoterepository = Three-Remote #### One [Repository One-Local] type = IMAP remotehost = localhost port = 143 remoteuser = One remotepass = password localfolders = ~/Maildir/One preauthtunnel = /usr/lib/dovecot/imap # remoteport=993 [Repository One-Remote] type = IMAP remoteuser = Mail-one@gmail.com remotepass = password remotehost = imap.gmail.com ssl = yes maxconnections = 3 realdelete = no cert_fingerprint = b0ba392bba326e6feb1add4d04fa0fb86cd173fa ##### Two [Repository Two-Local] type = IMAP localfolders = ~/Maildir/Two remotehost = localhost port = 143 remoteuser = Two remotepass = password preauthtunnel = /usr/lib/dovecot/imap [Repository Two-Remote] type = IMAP remotehost = imap.gmail.com remoteuser = Mail-Two@gmail.com remotepass = password ssl = yes maxconnections = 3 realdelete = no cert_fingerprint = b0ba392bba326e6feb1add4d04fa0fb86cd173fa ####Three [Repository Three-Local] type = IMAP localfolders = ~/Maildir/Three remotehost = localhost port = 143 remoteuser = Three remotepass = password preauthtunnel = /usr/lib/dovecot/imap [Repository Three-Remote] type = IMAP remoteuser = Mail-Three@gmail.com remotehost = imap.gmail.com remotepass = password #### no-hach-spas-bi-by ssl = yes maxconnections = 3 realdelete = no cert_fingerprint = b0ba392bba326e6feb1add4d04fa0fb86cd173fa ####################### Dovecot Part ########################## /etc/dovecot/conf.d/10-mail.conf: mail_location = maildir:%h/Maildir/%u:LAYOUT=fs /etc/dovecot/conf.d/auth-passwdfile.conf.ext: passdb { driver = passwd-file # args = scheme=CRYPT username_format=%u /etc/dovecot/users args = /etc/dovecot/passwd } userdb { driver = passwd-file args = username_format=%u /etc/dovecot/passwd } /etc/dovecot/passwd: One:password:1001:1000::/home/bullone::userdb_mail=maildir:/home/bullone/Maildir/One Two:password:1002:1000::/home/bullone::userdb_mail=maildir:/home/bullone/Maildir/Two Three:password:1003:1000::/home/bullone::userdb_mail=maildir:/home/bullone/Maildir/Three -- Best Regards