After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 324679 - evolution cant use 2G+ mbox files
evolution cant use 2G+ mbox files
Status: RESOLVED DUPLICATE of bug 522433
Product: evolution
Classification: Applications
Component: Mailer
2.26.x (obsolete)
Other All
: Normal major
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 511552 551413 584042 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-12-21 07:20 UTC by Marcos Pinto
Modified: 2009-08-19 12:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Marcos Pinto 2005-12-21 07:20:29 UTC
Please describe the problem:
evolution cant use 2G+ mbox files.  this means that if you use pop mail, which
evolution stores locally as mbox, you're limited to how many messages you can have.

Steps to reproduce:
1. set up a pop account
2. send/receive a whole lot of emails
3. watch evolution give you an error that your mbox file is too large


Actual results:
evolution gives you an error that your mbox file is too large


Expected results:
evolution appends the file past the 2G+ limit.  it's not a filesystem problem,
as i'm using 2.6.13 kernel with xfs

Does this happen every time?
yes

Other information:
Comment 1 Karsten Bräckelmann 2006-01-15 02:22:53 UTC
Confirming as per comment by fejj on IRC.
Comment 2 Marcos Pinto 2006-03-27 22:29:59 UTC
This is also a problem on 2.6.  Any updates on a patch/fix/anything?
Comment 3 Sankar P 2006-05-30 09:47:27 UTC
I remember Fejj making a patch for some large-file support. I guess this is fixed.
Comment 4 Jeffrey Stedfast 2006-05-30 14:41:09 UTC
yea, this is fixed
Comment 5 Marcos Pinto 2006-09-12 18:50:05 UTC
This isn't fixed for me using Evolution 2.8.0.  I still get "Cannot append  message to mbox file: /home/foo/.evolution/mail/local/Inbox: File too large"

?
Comment 6 Sankar P 2006-09-13 05:31:31 UTC
Your system should have large file support (O_LARGEFILE flag) 

On configure stage this is decided. Check with your distro if Evolution is built with large file support.
Comment 7 Marcos Pinto 2006-09-13 12:59:16 UTC
I'm using Ubuntu Edgy, which does have large file support.  As far as Evolution detecting that during configure...I downloaded the source and ran configure --help, but saw no option to enable or disable large file support.  I then ran configure with no options and looked in config.log to see what it had decided upon for large file support, but saw no mention of it.  How can I tell if Evolution is setting the correct option for this?  
Comment 8 Jeffrey Stedfast 2006-09-14 15:52:29 UTC
the largefile support is in evolution-data-server package, not evolution itself.

to check if your system has it, run ./configure and check the generated config.h, if O_LARGEFILE is defined to 0, then your system does not support it.

you can check config.log to see what the error was.
Comment 9 Marcos Pinto 2006-09-15 13:51:37 UTC
I ran configure with the same options as the distribution used (in debian/rules) and evolution-data-server did indeed say that it *had* large file support.  Just to be sure, I removed the one that came with my distro and configured/built/installed one from source, making sure that it had large file support enabled.  I still receive this error and cannot use my mailbox.  
Comment 10 Akhil Laddha 2009-03-04 11:37:14 UTC
*** Bug 551413 has been marked as a duplicate of this bug. ***
Comment 11 Matthew Barnes 2009-03-04 12:21:40 UTC
So are there any issues in turning on large-file support for those distros that haven't yet?  I vaguely remember someone saying it breaks backward compatibility in the binary format of the index files (or was it something else), but is that still an issue now with the SQLite databases?

I'm getting tired of all the dupes for this...
Comment 12 Akhil Laddha 2009-05-28 04:58:00 UTC
*** Bug 584042 has been marked as a duplicate of this bug. ***
Comment 13 Akhil Laddha 2009-06-29 05:34:55 UTC
*** Bug 511552 has been marked as a duplicate of this bug. ***
Comment 14 Eddy Petrişor 2009-07-01 16:54:40 UTC
Splendid, a colleague encountered yesterday the same problem, but got no error message (at least no dialog, but haven't checked xession-errors).

The Inbox grew over the 2G limit and no message was shown. We managed to gain access to them by converting the mbox to maildir with mb2md and configuring a fake delivery inbox pointing to the converted inbox.



May I suggest Evolution changes the default storage format from mbox to maildir? It supports delivery to maildir, I don't see why it shouldn't support storing the mails got via POP in maildir format. Switching to maildir format would also fix for large inboxes performance issues (when deleting mails), possible corruptions, inconsistencies or old data (sudden power outage), problems when free space is less than the current size of the mbox to be modified.

I imagine Evolution is smart enough not to lose mails (since it never lost me mails), but it will probably have stale data in case of sudden stops like power outages.



OTOH, if maildir-as-default-storage isn't implemented, and if the mail box gets close the 2G limit*, Evolution could warn the user and advice to filter, move away or remove messages from the troublesome „directory”.



* in spite of the large file support option compiled in in distribution packages, it seems there is still a problem with it actually working.
Comment 15 Akhil Laddha 2009-08-19 12:49:23 UTC

*** This bug has been marked as a duplicate of bug 522433 ***