* for NB#83601:
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Fri, 11 Apr 2008 16:51:42 +0000 (16:51 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Fri, 11 Apr 2008 16:51:42 +0000 (16:51 +0000)
commit5c55ed8a118f025f4a9d12fc090dcf65a97b5ffa
tree9777e30bcfbc4838693bc18d7aae6703b5e045a7
parent72a7343401b88452e749163c96a8b376d291d3c6
* for NB#83601:

with this patch, when we're in low-memory state, we disallow:
- addressbook
- attachments (attaching, opening, saving)
- searching (also over dbus ==> it returns an empty list in that case)
- viewing messages, replying/forwarding

we still do allow:
- composing messages (without attachments)
- saving to drafts (< 25Kb)
- sending (< 25Kb)

also, when sending attachements, make sure the sum of their sizes does
not exceed, if they do, raise an error.

#define MODEST_MAX_LOW_MEMORY_MESSAGE_SIZE (25*1024)
#define MODEST_MAX_ATTACHMENT_SIZE (12*1024*1024)

still TODO is to make sure that the attachment size limitation also applies to
weird filesystems, such as obex and upnp

pmo-trunk-r4405
src/dbus_api/modest-dbus-callbacks.c
src/maemo/modest-msg-edit-window.c
src/maemo/modest-platform.c
src/modest-defs.h
src/modest-ui-actions.c
src/widgets/modest-msg-edit-window.h