On Monday 08 June 2015 23:06:26 Marcus Rueckert wrote:> On 2015-06-08 14:48:12 +0200, Pali Roh?r wrote: > > On Monday 08 June 2015 02:45:52 Marcus Rueckert wrote: > > > IMHO ... Maildir is a better format. > > > > Really? I do not think so! Having half of million (small) files in > > one directory is killer... which eats caches and slow down access > > time. Even listing such directory (without reading file contents) > > consume lot of CPU cycles... > > so what? > > 1. modern filesystems > 2. dovecot's caching > > 313k mails in single mailbox and no problems at all. >Still I want read/write access to storage and want to use mbox as storage (also for easier backup and copy)... And my question was how to properly read and write from/to mbox files which are used by dovecot. -- Pali Roh?r pali.rohar at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://dovecot.org/pipermail/dovecot/attachments/20150608/8943219f/attachment-0001.sig>
On 2015-06-08 23:11:09 +0200, Pali Roh?r wrote:> Still I want read/write access to storage and want to use mbox as > storage (also for easier backup and copy)...1. backup is actually much easier for maildir. 2. especially when you want to deleting mails in the mbox file it is a lot of rewriting data. compared to just unlinking the files.> And my question was how to properly read and write from/to mbox files > which are used by dovecot.Through the imap protocol or at least the same locking mechanism configured in dovecot. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On Monday 08 June 2015 23:17:50 Marcus Rueckert wrote:> Through the imap protocol or at least the same locking mechanism > configured in dovecot. >It is which locking mechanism? It is really ok for dovecot to: 1) append (new) emails into mbox file? 2) edit mbox file? (e.g. change some header/body) -- Pali Roh?r pali.rohar at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://dovecot.org/pipermail/dovecot/attachments/20150608/18feef63/attachment.sig>
On 6/8/2015 5:11 PM, Pali Roh?r <pali.rohar at gmail.com> wrote:> Still I want read/write access to storage and want to use mbox as > storage (also for easier backup and copy)... > > And my question was how to properly read and write from/to mbox files > which are used by dovecot.There is no method for doing this. Any manual/direct manipulation of the files risks serious problems. Fyi, your 'fears' regarding using the IMAP protocol on localhost are seriously unfounded. Just use IMAP, and move on with your life.
On 6/9/2015 8:36 AM, Charles Marcus <CMarcus at Media-Brokers.com> wrote:> On 6/8/2015 5:11 PM, Pali Roh?r <pali.rohar at gmail.com> wrote: >> Still I want read/write access to storage and want to use mbox as >> storage (also for easier backup and copy)... >> >> And my question was how to properly read and write from/to mbox files >> which are used by dovecot. > There is no method for doing this.Guess that should have read: There is no 'proper' or safe way for doing this.