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 221894 - [RFE] configurable IMAP cache
[RFE] configurable IMAP cache
Status: RESOLVED WONTFIX
Product: evolution
Classification: Applications
Component: Mailer
unspecified
Other All
: Normal enhancement
: Future
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on: 216927
Blocks:
 
 
Reported: 2002-03-14 08:28 UTC by Oliver Jones
Modified: 2012-01-30 12:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Oliver Jones 2002-03-14 08:28:12 UTC
Package: Evolution
Priority: Wishlist
Version: 1.0.2
Synopsis: [RFE] You should be able to specify whether or not Evolution caches message headers.
Bugzilla-Product: Evolution
Bugzilla-Component: Mailer

Description:
In outlook express you can specify whether or not it should cache the
message headers locally when using IMAP.  Evolution should do the same. 


I access my mail via a Cyrus IMAP server running locally.  I do this so
I can access my mail from elsewhere on the network (windows box etc). 
There is little benefit (in fact it slows things down) in having
Evolution cache all the message headers in $HOME/evolution.  It also
wastes disk space.  

I would like the ability to specify per mail folder (or globally per
account) whether or not to syncronise and cache mail headers.

Thanks.



Comment 1 Gerardo Marin 2002-03-14 17:04:36 UTC
Comments on this?
Comment 2 Oliver Jones 2002-03-15 01:33:21 UTC
Another thing I hate about Evo-mail is that when I drag and drop a
message from my IMAP INBOX to a folder Evo insists on fetching all the
mail headers for the target mailbox.  This can take an age when there
are 1000's of messages in that mailbox.  

This behaviour is probably related to the above.
Comment 3 Jeffrey Stedfast 2002-03-15 01:59:58 UTC
that's because of the way the abstraction layer works, there's really
not much we can do about that short of a complete rewrite (which ain't
gonna happen anytime in the forseeable future).

That said, I can't say we'll even implement "Don't cache headers
locally" but I'll leave it around for those people who care about it
and decide they want to contribute to Evolution by submitting patches
and whatnot.

There *are* plans to fix Evolution so that we don't cache local copies
of the message bodies though. Which at least solves part of your
complaint.
Comment 4 Michael Griego 2002-03-28 20:27:28 UTC
I'd like to add to this myself.  I too would like to see the ability 
to control whether or not headers are cached locally.  We use an 
IMAP server in our institution, and I'd like to be able to turn off 
local header caching as it causes me to constantly overrun my home 
directory quota.  I have several *large* IMAP folders I watch, and 
the forcing of local header caching makes for a very large evolution 
directory, which in turn forces me to constatnly go and delete some 
of the cache directories to be able to stay under my alotted quota.  
I'd like to see Evolution used a whole lot more in our University by 
faculty and staff who use Linux (and there are a number of those), 
and the introduction of the Exchange connector will help fuel that, 
but I can see this getting in the way of that.
Comment 5 Not Zed 2002-09-12 04:16:08 UTC
another problem is that the cache is ...

 - currently not a cache at all, its just a copy of everything you
ever downloaded (and not deleted).
 - used directly for offline mode

the last point is a bigger problem to solve, and surprise surprise,
another reason that offline mode shoudl be in camel and not in the shell.

i guess this depends on the imap rewrite anyway as itd be a pretty
major change to the current code.
Comment 6 olaf 2003-10-29 12:39:53 UTC
Is any progress here?
Local cache of all message bodies is a really huge problem.
It causes quota to overflow.
For example I have 500 MBytes in evolution directory:
[olaf@venus mail]$ du -s /home/olaf/evolution/mail/imap
498112  /home/olaf/evolution/mail/imap
This is really crazy.
This also causes backups to grow enormously.
I have bumped it from WISHLIST to MINOR.
Comment 7 Jeffrey Stedfast 2004-05-20 20:18:42 UTC
we no longer "cache" headers, so that eliminates some of the complaint
at least, btu we still retain a copy of each message viewed.

as a workaround until we implement this, you could setup a cron job to
go thru th evolution imap cache folder tree and delete the cached
message files.
Comment 8 Oliver Jones 2004-05-20 23:37:25 UTC
Please provide an example cron job.
Comment 9 Jeffrey Stedfast 2004-05-21 00:56:21 UTC
`man 5 crontab`

and `man crontab`
Comment 10 Oliver Jones 2004-05-21 01:56:27 UTC
I know how to use cron.  I was meaning what do we need to purge from
evolution's user imap cache?  Please explain the process for purging
the mail/imap folders.  Can we just safely delete the 1234. files? 
What about the summary files? etc etc.
Comment 11 Jeffrey Stedfast 2004-05-21 02:01:24 UTC
<uid>.* files may be deleted safely.

you *could* delete the summary files too, but I wouldn't recommend it.
deleting them would cause evolution to re-scan the folders for message
structures, flags, headers, etc.
Comment 12 Guillaume Desmottes 2005-08-04 16:39:19 UTC
It will be also good to be able to configure the max size of the cache.
Comment 13 jwarnier 2005-12-27 10:32:18 UTC
An example, correct me if I'm wrong:

find ~/.evolution/mail/imap/jwarnier@beeznest.net/folders/INBOX/ -type f -name "*." -exec rm {} \;

You can of course filter it better if you want.
Comment 14 Fabian Fagerholm 2006-04-18 09:33:52 UTC
Is it safe to delete ~/.evolution/mail/imap/<account_name>/folders/* ? Will evolution recreate the "cache" for that account if it's missing?
Comment 15 Fabian Fagerholm 2006-04-18 10:15:21 UTC
I deleted ~/.evolution/mail/imap/* and evolution recreated everything without complaning. Perhaps evolution could include a feature that would do this from within the program in a user-friendly way? Some ideas:

    * Allow deleting the cache for individual accounts.
    * Calculate the hard drive space freed by deleting the cache.
    * Allow setting a maximum cache size and automatically deleting old items
      when the size exceeds this limit.
Comment 16 Robin 2008-05-02 08:21:55 UTC
Has this progressed? I don't want to have all my private emails sitting on my laptop just in case anything happens to it. To me, security is more important than being able to read email offline.
Comment 17 André Klapper 2012-01-29 17:22:54 UTC
(In reply to comment #16)
> I don't want to have all my private emails sitting on my laptop just in case
> anything happens to it. To me, security is more important

Encrypt your harddisk.
Comment 18 Matthew Barnes 2012-01-29 19:41:53 UTC
(In reply to comment #17)
> Encrypt your harddisk.

Exactly.  Or close up permissions on your home directory.  Or just use web mail.

Once another user gains access to your home directory you've already lost.

Closing as WONTFIX.
Comment 19 Fabian Fagerholm 2012-01-30 12:36:12 UTC
(In reply to comment #18)
> Closing as WONTFIX.

Hmm. Robin's comment about security is a separate issue than this bug. This bug was about being able to configure the caching behaviour of Evolution, primarily for disk space and performance reasons. Security was not the issue.

If the RESOLVED, WONTFIX came because of the security issue, then I propose that this bug be reopened. Unless the original proposal is also rejected.
Comment 20 Fabian Fagerholm 2012-01-30 12:38:37 UTC
Oh yes, and also note the earlier comment:

Jeffrey Stedfast [developer] 2004-05-20 20:18:42 UTC
[...]
as a workaround until we implement this, you could setup a cron job to[...]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Perhaps something has been implemented already, or is something still being planned?