Charlie Allom
2003-Aug-04 03:25 UTC
[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 at 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 at rubberduck.com - Melbourne, Australia http://rubberduck.com/~yeled/ PGP: 0x14AA7941 || finger yeled at lazy.spodder.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20030804/f8f14acc/attachment-0003.bin>
Timo Sirainen
2003-Aug-04 03:45 UTC
[Dovecot] why wont /usr/pkg/libexec/dovecot/imap see my Maildir
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.