Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
an mbox is normally a single file, e.g. /var/spool/mail/bob where all emails are listed in a big file. Maildirs are folders of emails, normally /home/bob/Mail which contain a file for each seperate email, and sub folders for new, old emails etc... Maildirs were introduced to allow more flexibility in email file locking and such.
thanks for info,Just need some help, understanding concepts. As I was playing with exim, I have successfully install it on my pc, but cannot figure it out how I got those mail delivered ...
I try to send email through exim itself
exim sumit@localhost
and it says mail sent, and I got it in /home/sumit/mail/new folder
now how can I access thsi mail through say outlook on windows?
qmail is a huge champion of Maildir's and a further extension of them. They are a more structured way to handle and store mail, but in line, more complicated. i'd check the qmail literature to get some comprehensive arguments in their favour. note that certain smtp and imap/pop3 servers favour (or only work with) certain mail types. for example i believe that sendmail will only work with Maildirs with an unofficial patch. may well be wrong.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Since mbox is one large file, it might become useless when corrupted. I am also not sure what happens to this huge file when you delete mails. Possibly you have to compact the file periodically (like in Outlook Express). Also might suffer performance degradation when using one huge file.
I prefer maildir format. I run an IMAP server and store the mail in maildir format. Usually three or four mail clients access the mail simultanously. Never had a problem.
Since mbox is one large file, it might become useless when corrupted. I am also not sure what happens to this huge file when you delete mails. Possibly you have to compact the file periodically (like in Outlook Express). Also might suffer performance degradation when using one huge file.
jlinkels
mbox is just a plain text file with the header portion of the mail in a certain format. Delete a mail, the file shrinks by the size of the mail; delete 'em all, you have a 0 byte file. No special processing is necessary.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
mbox is just a plain text file with the header portion of the mail in a certain format. Delete a mail, the file shrinks by the size of the mail; delete 'em all, you have a 0 byte file. No special processing is necessary.
Imagine you have a mbox file which has grown to a few GB over the years. (Mine does) If you delete a mail, isn't it true that the entire file must be rewritten? Or are there smarter ways? And isn't access slower, or do you have some kind of index? I honestly don't know.
Imagine you have a mbox file which has grown to a few GB over the years. (Mine does) If you delete a mail, isn't it true that the entire file must be rewritten? Or are there smarter ways? And isn't access slower, or do you have some kind of index? I honestly don't know.
jlinkels
Your assumptions are correct. mbox is not the most effecient file format. No index, no fancy deletion facility. It's just what was developed originally for email. If you want to store gig's worth of email, then a single file ain't the way to do it.
sorry was out of office so late in replying, yes having all data in single file is slow process, as usual, but I wonder even if you have few thousand mails than your File system must be able to support that many Files in one folder to my knowledge a folder can have like 32K files only, than if a user (suppose a gamil type of account) have so many mails than doesn't that limit comes in effect ??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.