[Dovecot] why wont /usr/pkg/libexec/dovecot/imap see my Maildir
When I invoke /usr/pkg/libexec/dovecot/imap from the command loine on the mail host, it logs me in, but won't see my emails:
13:22 yeled@lazy:~$ /usr/pkg/libexec/dovecot/imap
- PREAUTH [CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND
- UNSELECT LITERAL+ IDLE CHILDREN LISTEXT LIST-SUBSCRIBED] Logged in
- as yeled 0 select inbox
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)]
- Flags permitted.
- 0 EXISTS
- 0 RECENT
- OK [UIDVALIDITY 1059959635] UIDs valid
- OK [UIDNEXT 1] Predicted next UID 0 OK [READ-WRITE] Select completed.
I know I have many emails in there, and I can see them when I login via telnet localhost 443.
Any tips? would be nice to use fetchmail with ssh here.
C.
charlie@rubberduck.com - Melbourne, Australia http://rubberduck.com/~yeled/ PGP: 0x14AA7941 || finger yeled@lazy.spodder.com
On Mon, 2003-08-04 at 06:25, Charlie Allom wrote:
When I invoke /usr/pkg/libexec/dovecot/imap from the command loine on the mail host, it logs me in, but won't see my emails: .. I know I have many emails in there, and I can see them when I login via telnet localhost 443.
I'd guess it's because you have MAIL environment pointing to some mbox file. Try "unset MAIL", or "export MAIL=~/Maildir" before running imap. Note that imap binary doesn't read your configuration file at all, so if you've changed any defaults you'll have to give them in environment.
Hmm. Maybe it would be useful to add an option to dovecot binary to read configuration (which it does always anyway) and then exec() a given binary with the configuration moved into environment. Something like:
dovecot --exec /usr/pkg/libexec/imap/imap
Or something even simpler, since it can read the binary path from configuration anyway:
dovecot --exec-mail imap
Another optional feature that I was thinking is to allow users to override default settings using ~/.dovecotrc file. It would be mostly useful for namespace configuration and maybe setting some client-specific workarounds or optimizations.
On Mon, Aug 04, 2003 at 06:45:56AM +0300, Timo Sirainen wrote:
On Mon, 2003-08-04 at 06:25, Charlie Allom wrote:
When I invoke /usr/pkg/libexec/dovecot/imap from the command loine on the mail host, it logs me in, but won't see my emails: .. I know I have many emails in there, and I can see them when I login via telnet localhost 443.
I'd guess it's because you have MAIL environment pointing to some mbox file. Try "unset MAIL", or "export MAIL=~/Maildir" before running imap. Note that imap binary doesn't read your configuration file at all, so if you've changed any defaults you'll have to give them in environment.
You're right. I thought it would be along these lines .. Thanks!
Hmm. Maybe it would be useful to add an option to dovecot binary to read configuration (which it does always anyway) and then exec() a given binary with the configuration moved into environment. Something like:
Well I'll leave this up to you, you're doing very well so far :)
-- charlie@rubberduck.com - Melbourne, Australia http://rubberduck.com/~yeled/ PGP: 0x14AA7941 || finger yeled@lazy.spodder.com
participants (2)
-
Charlie Allom
-
Timo Sirainen