"Michail A.Baikov" <[EMAIL PROTECTED]> wrote:

>But qmail not work in only maildirs mode. pop3 daemon know about ONLY
>Maildirs! :-(

qmail-pop3d only works with maildirs.

>I'm don't want use other software (like sendmail,procmail,qpopper and etc),
>but want be use mailbox-like style.

Sorry, that's not possible. You'll either need to use maildirs or
switch to a POP daemon like Solid[1].

>Too many capacibility parts of disk's. We must use only /var/spool/mail for
>storage messages.

You'll need to use /bin/mail, procmail, or some other local delivery
agent. qmail-local only delivers to $HOME.

>I'm make next (ex. for user BOB):
>
>mkdir /var/spool/mail/bob
>mkdir /var/spool/mail/bob/cur
>.........................................../new
>.........................................../tmp
>chown bob.users /var/spool/mail/bob
>chown bob.users * -R (in bob directory)
>chmod 0700 /var/spool/mail/bob
>etc..
>
>in $HOME :
>
>echo -n >.qmail
>echo ./Maildir/ > .qmail
>ln -s /var/spool/mail/bob Maildir
>
>and all work, but this curved :-/

Yeah. :-)

>I am want use Mailbox in $HOME. And kill Maildir with /var/spool/mail/*

Wait a minute...I thought you said you had to use /var/spool/mail, not 
$HOME. Which is it?

>qmail-pop3d not work with Mailbox :-(

Correct.

>> > 1. All messages saving in Maildir/new/....
>> > How automate move all message from Maildir/ to ./Mailbox ?
>>
>> Write a script to loop through the messages and append them to the
>> /var/spool/mail/$USER mailbox after prefising them with "From "
>> lines.
>
>Sorry, not understand, source? Example of script please ;-)

Something like:

  for i in `find Maildir -type f -print`; do
    echo >>/var/spool/mail/$USER
    echo "root@localhost Wed Sep 27 13:39:32 2000" >>/var/spool/mail/$USER
    sed 's/^From/>From/' $i >>/var/spool/mail/$USER
  done

Which is completely untested and likely to Kill Your Dog (tm)[2].

>Resume: qmail-pop3d work with ./Mailbox or no?

No.

So why do you want to use mbox? Maildir is superior.

-Dave

Footnotes: 
[1]  http://web.infoave.net/~dsill/lwq.html#solid

[2]  http://web.infoave.net/~dsill/lwq.html#lwq-warranty

Reply via email to