[Dovecot] Can I import RFC822 messages into Dovecot from file system

2008-11-27 Thread bbell2000

I'm returning to qmail and dovecot after having suffered a complete failure
with a different mail system and I'm now trying to figure out the easiest
way to recover our messages from the failed system.

The messages are stored as RFC822 in individual files and I can easily
identify which message belongs to whom.  I have qmail and dovecot configured
to use Maildir format.

I know I can probably write a script that resends the messages... but in
addition to adding another layer of transport headers I really don't want,
it's going to be way slow unless I disable my current content filters.

I'm new to dovecot and what's got me hung up are the indexes that dovecot
maintains in each user's directory.  Otherwise, I'd probably try copying the
messages into Maildir/cur just to see if it worked.

I could sure use some ideas about an efficient, reliable means of getting
our old messages back.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Can-I-import-RFC822-messages-into-Dovecot-from-file-system-tp20723478p20723478.html
Sent from the Dovecot mailing list archive at Nabble.com.



[Dovecot] Namespaces and shared folders

2008-11-27 Thread bbell2000

I had a working dovecot install before I tried to implement shared folders
using namespaces.

I added the following to /etc/dovecot/dovecot.conf:

namespace private {
separator =
prefix =
inbox = yes
}

namespace public {
separator = /
prefix =
location = maildir:/home/public/shared/Maildir
}


I created my shared folder using the maildirmake command that came with
qmail:

maildirmake -S /home/public/shared/Maildir
maildirmake -s write -f online /home/public/shared/Maildir
chown -R dovecot:shared /home/public/shared
find /home/public/shared -type d -exec chmod 0777 {} \;
find /home/public/shared -type f -exec chmod 0666 {} \;

At this point, the online folder shows up as a subscribable folder in
Thunderbird.  I can subscribe to online and I can still access my Inbox. 
But I can't get to any of the folders in my Inbox (Trash, Drafts, etc.).  I
can access these folders if I comment out the namespaces and revert to the
default behavior.

There are no clues in mail.err, mail.info or mail.warn -- the only messages
are the ones written when my client establishes a successful IMAP
connection.

What did I do wrong?

-- 
View this message in context: 
http://www.nabble.com/Namespaces-and-shared-folders-tp20727713p20727713.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] Namespaces and shared folders

2008-11-28 Thread bbell2000


giuliano wrote:
> 
> 
> I prefer to define everything, even the values that have a default, so  
> I would define
> location (even if mail_location should apply to the default namespace)  
> and the separator.
> 

Great suggestion.  I've changed my namespaces as follows:

  namespace private {
  separator =
  prefix = INBOX.
  location = maildir:~/Maildir
  inbox = yes
  }

  namespace public {
  separator = /
  prefix =
  location = maildir:/home/public/shared/Maildir
  inbox = no
  }

I seem to now have all of my Inbox folders working, and my shared folders
are working for read-only.  But when I try to drag a message from my Inbox
into one of the shared folders, I get an "Unknown namespace" error.

I enabled debug logging and see the following in syslog (and mail.info):

Nov 28 11:41:30 snappy dovecot: imap-login: Login: user=,
method=PLAIN, rip=172.30.1.116, lip=172.30.1.6, TLS
Nov 28 11:41:30 snappy dovecot: IMAP(bbell): Effective uid=1000, gid=1000,
home=/home/bbell
Nov 28 11:41:30 snappy dovecot: IMAP(bbell): Namespace: type=private,
prefix=INBOX., sep=, inbox=yes, hidden=no, subscriptions=no
Nov 28 11:41:30 snappy dovecot: IMAP(bbell): maildir:
data=/home/bbell/Maildir
Nov 28 11:41:30 snappy dovecot: IMAP(bbell): maildir:
root=/home/bbell/Maildir, index=/home/bbell/Maildir, control=, inbox=
Nov 28 11:41:30 snappy dovecot: IMAP(bbell): Namespace: type=public,
prefix=Public/, sep=/, inbox=no, hidden=no, subscriptions=no
Nov 28 11:41:30 snappy dovecot: IMAP(bbell): maildir:
data=/home/public/shared/Maildir
Nov 28 11:41:30 snappy dovecot: IMAP(bbell): maildir:
root=/home/public/shared/Maildir, index=/home/public/shared/Maildir,
control=, inbox=

I'm obviously still doing something wrong.  Clues?

-- 
View this message in context: 
http://www.nabble.com/Namespaces-and-shared-folders-tp20727713p20737416.html
Sent from the Dovecot mailing list archive at Nabble.com.



Re: [Dovecot] Namespaces and shared folders

2008-11-28 Thread bbell2000

Found the clue I was looking for at
http://www.mailinglistarchive.com/dovecot@dovecot.org/msg08557.html.  Seems
to be working fine now.

-- 
View this message in context: 
http://www.nabble.com/Namespaces-and-shared-folders-tp20727713p20737738.html
Sent from the Dovecot mailing list archive at Nabble.com.