* Trouble setting up Gnus + OfflineIMAP + dovecot @ 2015-10-22 16:36 Julien Cubizolles 2015-10-23 4:41 ` Jeffrey DeLeo 2015-10-23 14:02 ` Lluís Vilanova 0 siblings, 2 replies; 8+ messages in thread From: Julien Cubizolles @ 2015-10-22 16:36 UTC (permalink / raw) To: info-gnus-english Following the examples provided on this list, I've setup Gnus to use a maildir populated by OfflineIMAP as follows: --8<---------------cut here---------------start------------->8--- (setq gnus-secondary-select-methods '( (nnimap "FreeOffline" (nnimap-stream shell) (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free") ) (nnimap "GmailOffline" (nnimap-stream shell) (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-gmail") ) )) --8<---------------cut here---------------end--------------->8--- I've also some other nnimap backends (the ones actually synced by OfflineIMAP until I make the final swith), some nntp. I can Browse the GmailOffline server, which contains only one folder named "INBOX" (I've only synced this one so far) but Gnus complains that it cannot access it. --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "Couldn’t enter nnimap+GmailOffline:INBOX") signal(error ("Couldn’t enter nnimap+GmailOffline:INBOX")) error("Couldn't enter %s" "nnimap+GmailOffline:INBOX") gnus-browse-read-group(no nil) gnus-browse-select-group(nil) funcall-interactively(gnus-browse-select-group nil) call-interactively(gnus-browse-select-group nil nil) command-execute(gnus-browse-select-group) ../--8<---------------cut here---------------end--------------->8--- Do you have any idea what I'm doing wrong ? _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble setting up Gnus + OfflineIMAP + dovecot 2015-10-22 16:36 Trouble setting up Gnus + OfflineIMAP + dovecot Julien Cubizolles @ 2015-10-23 4:41 ` Jeffrey DeLeo 2015-10-23 9:34 ` Julien Cubizolles 2015-10-23 13:32 ` britt 2015-10-23 14:02 ` Lluís Vilanova 1 sibling, 2 replies; 8+ messages in thread From: Jeffrey DeLeo @ 2015-10-23 4:41 UTC (permalink / raw) To: info-gnus-english Taking dovecot out of the mix for the moment, you could try: (setq gnus-secondary-select-methods '((nnmaildir "GMail" (directory "~/Maildir-gmail")))) I guess your .offlineimaprc includes something like: [Account Gmail] # Identifier for the local repository; e.g. the maildir to be synced via IMAP. localrepository = Gmail-local [Repository Gmail-local] type = Maildir localfolders = ~/Maildir-gmail ... ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble setting up Gnus + OfflineIMAP + dovecot 2015-10-23 4:41 ` Jeffrey DeLeo @ 2015-10-23 9:34 ` Julien Cubizolles 2015-10-23 13:32 ` britt 1 sibling, 0 replies; 8+ messages in thread From: Julien Cubizolles @ 2015-10-23 9:34 UTC (permalink / raw) To: info-gnus-english Jeffrey DeLeo <JeffreyDeLeo@gmail.com> writes: > Taking dovecot out of the mix for the moment, you could try: > > (setq gnus-secondary-select-methods > '((nnmaildir "GMail" (directory "~/Maildir-gmail")))) That's working, but from what I read, gnus support for maildir has its problems. > I guess your .offlineimaprc includes something like: > [Account Gmail] > # Identifier for the local repository; e.g. the maildir to be synced via IMAP. > localrepository = Gmail-local > > [Repository Gmail-local] > type = Maildir > localfolders = ~/Maildir-gmail Yes, that's what I have. So my problems are with dovecot: In Maildir-free (synced from another IMAP server I'm also setting up), I only synced the "General" folder. But running --8<---------------cut here---------------start------------->8--- /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free * LIST "" * --8<---------------cut here---------------end--------------->8--- lists only an INBOX folder which isn't there... --8<---------------cut here---------------start------------->8--- * LIST "" * * LIST (\HasNoChildren) "/" INBOX * OK List completed. --8<---------------cut here---------------end--------------->8--- Here is the output of ls in this dir, with no INBOX folder in --8<---------------cut here---------------start------------->8--- ls ~/Maildir/free General dovecot-uidvalidity maildirfolder cur dovecot-uidvalidity.5629f967 new dovecot-uidlist dovecot.index.log tmp --8<---------------cut here---------------end--------------->8--- Maybe this INBOX remains from previous attempts, how can I clear all of dovecot cache if that's what it is ? Julien. _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble setting up Gnus + OfflineIMAP + dovecot 2015-10-23 4:41 ` Jeffrey DeLeo 2015-10-23 9:34 ` Julien Cubizolles @ 2015-10-23 13:32 ` britt 1 sibling, 0 replies; 8+ messages in thread From: britt @ 2015-10-23 13:32 UTC (permalink / raw) To: Jeffrey DeLeo; +Cc: info-gnus-english I use dovecot and mbsync (isync) and it basically works. My gnus has the following: Perhaps you might want to use imap and the network stream? (setq gnus-secondary-select-methods '((nnimap "email" (nnimap-address "localhost") (nnimap-stream network) (nnimap-authenticator login) (nnimap-inbox "INBOX") (nnimap-unsplittable-articles (%Deleted)) (nnimap-split-methods default) (nnir-search-engine imap)) (nntp "news.gwene.org" ) (nntp "news.gmane.org" ) ) ) /Britt Jeffrey DeLeo <JeffreyDeLeo@gmail.com> writes: > Taking dovecot out of the mix for the moment, you could try: > > (setq gnus-secondary-select-methods > '((nnmaildir "GMail" (directory "~/Maildir-gmail")))) > > I guess your .offlineimaprc includes something like: > [Account Gmail] > # Identifier for the local repository; e.g. the maildir to be synced via IMAP. > localrepository = Gmail-local > > [Repository Gmail-local] > type = Maildir > localfolders = ~/Maildir-gmail > ... ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble setting up Gnus + OfflineIMAP + dovecot 2015-10-22 16:36 Trouble setting up Gnus + OfflineIMAP + dovecot Julien Cubizolles 2015-10-23 4:41 ` Jeffrey DeLeo @ 2015-10-23 14:02 ` Lluís Vilanova 2015-10-23 14:26 ` Julien Cubizolles 1 sibling, 1 reply; 8+ messages in thread From: Lluís Vilanova @ 2015-10-23 14:02 UTC (permalink / raw) To: info-gnus-english Julien Cubizolles writes: > Following the examples provided on this list, I've setup Gnus to use a > maildir populated by OfflineIMAP as follows: > (setq gnus-secondary-select-methods > '( > (nnimap "FreeOffline" > (nnimap-stream shell) > (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free") > ) > (nnimap "GmailOffline" > (nnimap-stream shell) > (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-gmail") > ) > )) I use a configuration file for dovecot: (setq gnus-secondary-select-methods '((nnimap "FreeOffline" (nnimap-stream shell) (nnimap-shell-program "/usr/lib/dovecot/imap -c ~/.dovecot-free"))) With the following contents: protocols = imap log_timestamp = "%Y-%m-%d %H:%M:%S " mail_location = maildir:~/Maildir/free protocol imap { mail_plugins = fts fts_lucene } plugin { fts = lucene fts_lucene = whitespace_chars=@ fts_autoindex = yes } I vaguely remember having to switch from "-o" to "-c" for some reason I cannot recall. If that does not work, I'd say the problem might be in your offlineimap configuration. Did you check the contents of your "Maildir-free" directory? As a side question, does anybody have performance problems with this setup? (on-demand dovecot process) I was wondering if having an always-running daemon with all my mail accounts would be faster (although I don't know how to do that). Cheers, Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble setting up Gnus + OfflineIMAP + dovecot 2015-10-23 14:02 ` Lluís Vilanova @ 2015-10-23 14:26 ` Julien Cubizolles 2015-10-23 17:57 ` Lluís Vilanova 0 siblings, 1 reply; 8+ messages in thread From: Julien Cubizolles @ 2015-10-23 14:26 UTC (permalink / raw) To: info-gnus-english Thanks you for your answer Lluís. > I use a configuration file for dovecot: > > (setq gnus-secondary-select-methods > '((nnimap "FreeOffline" > (nnimap-stream shell) > (nnimap-shell-program "/usr/lib/dovecot/imap -c ~/.dovecot-free"))) > > With the following contents: > > protocols = imap > log_timestamp = "%Y-%m-%d %H:%M:%S " > mail_location = maildir:~/Maildir/free > protocol imap { > mail_plugins = fts fts_lucene > } > plugin { > fts = lucene > fts_lucene = whitespace_chars=@ > fts_autoindex = yes > } I tried it, it didn't help. > I vaguely remember having to switch from "-o" to "-c" for some reason I cannot > recall. If that does not work, I'd say the problem might be in your offlineimap > configuration. Did you check the contents of your "Maildir-free" directory? Here it is: --8<---------------cut here---------------start------------->8--- /home/wilk/Maildir-free ├── cur ├── dovecot.index.log ├── dovecot.mailbox.log ├── dovecot-uidlist ├── dovecot-uidvalidity ├── dovecot-uidvalidity.5629f967 ├── General │ ├── cur │ │ ├── 1445591380_0.15542.lago,U=152457,FMD5=0db377921f4ce762c62526131097968f:2, │ │ ├── 1445591381_0.15542.lago,U=152458,FMD5=0db377921f4ce762c62526131097968f:2, │ │ ├── 1445591381_1.15542.lago,U=152459,FMD5=0db377921f4ce762c62526131097968f:2, │ │ ├── 1445591381_2.15542.lago,U=137612,FMD5=0db377921f4ce762c62526131097968f:2,FS │ │ ├── 1445591382_0.15542.lago,U=142222,FMD5=0db377921f4ce762c62526131097968f:2,S many lines like this │ │ ├── 1445607543_0.15542.lago,U=152499,FMD5=0db377921f4ce762c62526131097968f:2,R │ │ ├── 1445607543_1.15542.lago,U=152500,FMD5=0db377921f4ce762c62526131097968f:2, │ │ └── 1445607543_2.15542.lago,U=152502,FMD5=0db377921f4ce762c62526131097968f:2, │ ├── new │ └── tmp ├── maildirfolder ├── new ├── subscriptions └── tmp --8<---------------cut here---------------end--------------->8--- Julien. _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble setting up Gnus + OfflineIMAP + dovecot 2015-10-23 14:26 ` Julien Cubizolles @ 2015-10-23 17:57 ` Lluís Vilanova 2015-10-23 22:24 ` Julien Cubizolles 0 siblings, 1 reply; 8+ messages in thread From: Lluís Vilanova @ 2015-10-23 17:57 UTC (permalink / raw) To: info-gnus-english Julien Cubizolles writes: > Thanks you for your answer Lluís. >> I use a configuration file for dovecot: >> >> (setq gnus-secondary-select-methods >> '((nnimap "FreeOffline" >> (nnimap-stream shell) >> (nnimap-shell-program "/usr/lib/dovecot/imap -c ~/.dovecot-free"))) >> >> With the following contents: >> >> protocols = imap >> log_timestamp = "%Y-%m-%d %H:%M:%S " >> mail_location = maildir:~/Maildir/free >> protocol imap { >> mail_plugins = fts fts_lucene >> } >> plugin { >> fts = lucene >> fts_lucene = whitespace_chars=@ >> fts_autoindex = yes >> } > I tried it, it didn't help. >> I vaguely remember having to switch from "-o" to "-c" for some reason I cannot >> recall. If that does not work, I'd say the problem might be in your offlineimap >> configuration. Did you check the contents of your "Maildir-free" directory? > Here it is: > /home/wilk/Maildir-free > ├── cur > ├── dovecot.index.log > ├── dovecot.mailbox.log > ├── dovecot-uidlist > ├── dovecot-uidvalidity > ├── dovecot-uidvalidity.5629f967 > ├── General > │ ├── cur > │ │ ├── 1445591380_0.15542.lago,U=152457,FMD5=0db377921f4ce762c62526131097968f:2, > │ │ ├── 1445591381_0.15542.lago,U=152458,FMD5=0db377921f4ce762c62526131097968f:2, > │ │ ├── 1445591381_1.15542.lago,U=152459,FMD5=0db377921f4ce762c62526131097968f:2, > │ │ ├── 1445591381_2.15542.lago,U=137612,FMD5=0db377921f4ce762c62526131097968f:2,FS > │ │ ├── 1445591382_0.15542.lago,U=142222,FMD5=0db377921f4ce762c62526131097968f:2,S > many lines like this > │ │ ├── 1445607543_0.15542.lago,U=152499,FMD5=0db377921f4ce762c62526131097968f:2,R > │ │ ├── 1445607543_1.15542.lago,U=152500,FMD5=0db377921f4ce762c62526131097968f:2, > │ │ └── 1445607543_2.15542.lago,U=152502,FMD5=0db377921f4ce762c62526131097968f:2, > │ ├── new > │ └── tmp > ├── maildirfolder > ├── new > ├── subscriptions > └── tmp Hmmmm, your contents seem strange to me. General should not be there, since you said you're only synchronizing INBOX. But since you said it's a gmail account, maybe you need to synchronize it somewhat differently: http://www.emacswiki.org/emacs/GnusGmail#toc9 Cheers, Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble setting up Gnus + OfflineIMAP + dovecot 2015-10-23 17:57 ` Lluís Vilanova @ 2015-10-23 22:24 ` Julien Cubizolles 0 siblings, 0 replies; 8+ messages in thread From: Julien Cubizolles @ 2015-10-23 22:24 UTC (permalink / raw) To: info-gnus-english Lluís Vilanova <vilanova@ac.upc.edu> writes: >> /home/wilk/Maildir-free >> ├── cur >> ├── dovecot.index.log >> ├── dovecot.mailbox.log >> ├── dovecot-uidlist >> ├── dovecot-uidvalidity >> ├── dovecot-uidvalidity.5629f967 >> ├── General >> │ ├── cur >> │ │ ├── 1445591380_0.15542.lago,U=152457,FMD5=0db377921f4ce762c62526131097968f:2, >> │ │ ├── 1445591381_0.15542.lago,U=152458,FMD5=0db377921f4ce762c62526131097968f:2, >> │ │ ├── 1445591381_1.15542.lago,U=152459,FMD5=0db377921f4ce762c62526131097968f:2, >> │ │ ├── 1445591381_2.15542.lago,U=137612,FMD5=0db377921f4ce762c62526131097968f:2,FS >> │ │ ├── 1445591382_0.15542.lago,U=142222,FMD5=0db377921f4ce762c62526131097968f:2,S >> many lines like this >> │ │ ├── 1445607543_0.15542.lago,U=152499,FMD5=0db377921f4ce762c62526131097968f:2,R >> │ │ ├── 1445607543_1.15542.lago,U=152500,FMD5=0db377921f4ce762c62526131097968f:2, >> │ │ └── 1445607543_2.15542.lago,U=152502,FMD5=0db377921f4ce762c62526131097968f:2, >> │ ├── new >> │ └── tmp >> ├── maildirfolder >> ├── new >> ├── subscriptions >> └── tmp > > Hmmmm, your contents seem strange to me. General should not be there, since you > said you're only synchronizing INBOX. My bad, I was only synchronizing INBOX at first but then I switched to another folder, General. > But since you said it's a gmail account, I've tried with a gmail account and another from a different imap server imap.free.fr (french ISP). The problem is the same. Thanks, Julien. _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-10-23 22:24 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-10-22 16:36 Trouble setting up Gnus + OfflineIMAP + dovecot Julien Cubizolles 2015-10-23 4:41 ` Jeffrey DeLeo 2015-10-23 9:34 ` Julien Cubizolles 2015-10-23 13:32 ` britt 2015-10-23 14:02 ` Lluís Vilanova 2015-10-23 14:26 ` Julien Cubizolles 2015-10-23 17:57 ` Lluís Vilanova 2015-10-23 22:24 ` Julien Cubizolles
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).