Hello, I want to use dovecot as imap server with mbox storage format (described at [1]) but I also want to access (and modify!) those mbox files which are stored on server (and used by dovecot). What is correct way to read those mboxes? From wiki page [1] I read that I should ignore first message in mbox (which contains X-IMAPbase header) and mbox file is in mboxcl2 format. And what is correct way to modify that mbox file (which is used by dovecot imap)? I would like to configure mutt on server to directly access those mbox mailboxes without need to use imap protocol (over localhost). It is possible without any data/message damage? [1] - http://wiki2.dovecot.org/MailboxFormat/mbox -- 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/20150606/58a33aa9/attachment.sig>
On 2015-06-06 19:01:29 +0200, Pali Roh?r wrote:> I want to use dovecot as imap server with mbox storage format (described > at [1]) but I also want to access (and modify!) those mbox files which > are stored on server (and used by dovecot). > > What is correct way to read those mboxes? From wiki page [1] I read that > I should ignore first message in mbox (which contains X-IMAPbase header) > and mbox file is in mboxcl2 format. > > And what is correct way to modify that mbox file (which is used by > dovecot imap)? I would like to configure mutt on server to directly > access those mbox mailboxes without need to use imap protocol (over > localhost). It is possible without any data/message damage?IMHO ... If you start a new mail server now ... Maildir is a better format. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 06-06-15 19:01, Pali Roh?r wrote:> Hello, > > I want to use dovecot as imap server with mbox storage format > (described at [1]) but I also want to access (and modify!) those > mbox files which are stored on server (and used by dovecot). > > What is correct way to read those mboxes? From wiki page [1] I read > that I should ignore first message in mbox (which contains > X-IMAPbase header) and mbox file is in mboxcl2 format. > > And what is correct way to modify that mbox file (which is used by > dovecot imap)? I would like to configure mutt on server to > directly access those mbox mailboxes without need to use imap > protocol (over localhost). It is possible without any data/message > damage?Just out of curiosity: why are you interested in handling the files manually when dovecot and IMAP protocol can already do that for you? Even when accessing the files directly from the server, dovecot will handle possible file correction, access control, file permissions etc all for you. Using IMAP to localhost with mutt still gives you all of the above, maybe including other nice IMAP-related benefits such as FTS etc. Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVdX+9AAoJEJPfMZ19VO/1yqsP/3ZHyKwJJ9IAmeMTaT/W2wHM gLhXAJj3ZYO2s1gp5b2Swyq/ta4KUDEwgdWQQaDK2YVdyTTu9f/6TgMubPNcuYV9 ogfqyGunPpVk3ZVSf9U2EviU2SXvjzUDuZ1bI80IxQYVXYOidzAZw4wBN+IXjFss giLKaI+T6YOU2+nFrCkavjMXuwbPhjo84Xe2KPvB0mcGy31HQoHq/ChOYHVzYUkH 1qYVWOE5bjUMHZFwExsR84vhjIBTAqwqKP0Hf5JdZRIafsrysY0gqSOWcrTeu7HH e2MLQvtLr3vAWoi319AQ03vz//ESOKBfZl/tv2ZuVzh8o9l0zkDtm0FxMlj+rrmQ /O/1kV4jJGjcCYfL61hZPkHHcI8sJq81Dz0CX5xbisYCLkk+EpWHjQC9ILgcl6vQ FBBOqvCfgmyCgYHi/3PbIZ5Hd4gmzIG2Du+59Webv/dIigeNv5dW5gbqx7kLYP1A ltBYQYtK+/tSVOZKjvcfNoT6BQcSn90VGNC2QzO8FcDkTzu/ihiY4DuE9bpCDgAs uebcRa55DOhL3EFeEy85fczCuac1TM8uaO+la9Xdokj4lWl20j6HlGQPlykRlMx0 Kyw6Z42SIR9lFa+Q+KsvBDY94rfwj5sgmo5oelndno/l1bHx1h8BGesbzKyS53r1 Jl57kyy3lePwcQ+dbGYm =lrws -----END PGP SIGNATURE-----
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... PS: I'm not subscribed to this list, so please CC me! -- Pali Roh?r pali.rohar at gmail.com
On Monday 08 June 2015 13:42:53 Tom Hendrikx wrote:> On 06-06-15 19:01, Pali Roh?r wrote: > > Hello, > > > > I want to use dovecot as imap server with mbox storage format > > (described at [1]) but I also want to access (and modify!) those > > mbox files which are stored on server (and used by dovecot). > > > > What is correct way to read those mboxes? From wiki page [1] I read > > that I should ignore first message in mbox (which contains > > X-IMAPbase header) and mbox file is in mboxcl2 format. > > > > And what is correct way to modify that mbox file (which is used by > > dovecot imap)? I would like to configure mutt on server to > > directly access those mbox mailboxes without need to use imap > > protocol (over localhost). It is possible without any data/message > > damage? > > Just out of curiosity: why are you interested in handling the files > manually when dovecot and IMAP protocol can already do that for you? >Because I have direct access to files and so I would not use another indirect and slower access to them if I'm not forced. And also IMAP protocol is not implemented properly in any application and direct file access via open/read/write/... unix calls is easier as implementing and using too complicated IMAP protocol. If I want to download all emails as fast as possible I just rsync those mboxes. Using IMAP connection for this operation is slow, hard and I think also stupid.> Even when accessing the files directly from the server, dovecot will > handle possible file correction, access control, file permissions etc > all for you. Using IMAP to localhost with mutt still gives you all of > the above, maybe including other nice IMAP-related benefits such as > FTS etc. > > TomI do not want to have one message stored N times, just because every IMAP client store message locally and message is stored also on IMAP server. If I use IMAP over localhost it means that I have to wait for IMAP protocol until client download all headers/body/etc... then do magic and show me emails. But I do not want to spend lot of time with writing philosophical problems of IMAP and their clients... I just want to know: How to correctly read dovecot mboxes and how to correctly write to them. Thats all. In your email I did not find this information :-( PS: I'm not subscribed to this list, so please CC me! -- Pali Roh?r pali.rohar at gmail.com
Pretty sure [s]he's a troll: Every assumption [s]he's written until now has been wrong and there was not even the attempt to show data/information that supports the claims. That communication form is usually intentional to provoke discussion. Further CCing to his/her email should stop, s/he can just subscribe. Am 06.06.2015 um 19:01 schrieb Pali Roh?r:> What is correct way to read those mboxes? > And what is correct way to modify that mbox fileReally simple - just 9 pages: http://tools.ietf.org/html/rfc4155> I would like to configure mutt on server to directly > access those mbox mailboxes without need to use imap protocol (over > localhost). It is possible without any data/message damage?# man mutt # mutt -f /var/mail/... Greetings Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20150609/4584122f/attachment.sig>
Excuse me... But I start thinking rude behaviour and trolling from you side. On Tuesday 09 June 2015 09:55:40 Daniel Tr?der wrote:> Pretty sure [s]he's a troll: Every assumption [s]he's written until now > has been wrong and there was not even the attempt to show > data/information that supports the claims. > That communication form is usually intentional to provoke discussion. > > Further CCing to his/her email should stop, s/he can just subscribe. > > Am 06.06.2015 um 19:01 schrieb Pali Roh?r: > > What is correct way to read those mboxes? > > And what is correct way to modify that mbox file > Really simple - just 9 pages: http://tools.ietf.org/html/rfc4155 > > > I would like to configure mutt on server to directly > > access those mbox mailboxes without need to use imap protocol (over > > localhost). It is possible without any data/message damage? > # man mutt > # mutt -f /var/mail/... > > Greetings > Daniel >I already read dovecot mailing list page [1] and there is written that I can post messages to list even without subscribing. And all well behaved mailing list send response also to original sender. Otherwise such mailing list is useless for people who are not subscribed (it is just /dev/null). I though that ML used by people who understand emails very well do not do such useless things for senders... I'm really disappointed about you -- dovecot people on ML -- I have just asked clear question about mbox storage format because I did not find everything on dovecot wiki page [2] and I wanted to be sure how it is working... And I thought that dovecot mailing list is good place where people could answer my question how is dovecot using mbox storage. And every response was either not to my question or your which just marked me as troll who should not even post messages to this list. I do not want to continue this discussion about trolling... as there is no value from it. I really do not understand what do you have against me. Thanks. [1] - http://www.dovecot.org/mailinglists.html [2] - http://wiki2.dovecot.org/MailboxFormat/mbox -- Pali Roh?r pali.rohar at gmail.com