* Problems about INBOXes disappear from multiple Gmail accounts with offlineimap and dovecot integration
@ 2013-10-27 11:58 Bullone
0 siblings, 0 replies; only message in thread
From: Bullone @ 2013-10-27 11:58 UTC (permalink / raw)
To: ding
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-27 11:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-27 11:58 Problems about INBOXes disappear from multiple Gmail accounts with offlineimap and dovecot integration Bullone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).