Also change bg color of attachments view.
Properly show some message attachments in messages view.
Show other bodies in attachment as other messages.
Add proper alignment in attachments view icon pmo-trunk-r9045
Attachment size detection uses disposition size if available. pmo-trunk-r8963
Fixes leak 8/26 pmo-trunk-r8112
This is a manual merge of branch drop split view intro trunk. This should be the final work to make trunk release with the new ui from now on (and then making drop-split-view branch deprecated). It's based on drop-split-view r6953. pmo-trunk-r6954
Update unknown attachment icon name pmo-trunk-r6878
* Reworked attachments mime type detection and body detection, to work better with "direct attachment" messages (the ones that include as its top mime part the attached file) (fixes NB#92926) pmo-trunk-r6349
* Moved hildon2 icon names to the new names in specs. pmo-trunk-r6256
This patch addapts modest to the new API for TnyHeader in tinymail (offering dup methods instead of get methods for obtaining strings). * src/gnome/modest-msg-edit-window.c, src/gnome/modest-msg-view-window.c, src/widgets/modest-details-dialog.c, src/widgets/modest-attachment-view.c, src/widgets/modest-header-view.c, src/widgets/modest-mail-header-view.c, src/modest-tny-msg.c, src/modest-ui-actions.c, src/dbus_api/modest-dbus-callback.c, src/modest-tny-folder.c, src/modest-email-clipboard.c, src/maemo/modest-msg-edit-window.c, src/maemo/modest-platform.c, src/maemo/modest-msg-view-window.c, src/modest-formatter.c, src/modest-search.c, src/modest-tny-send-queue.c: * Use dup instead of get for TnyHeader strings. Other changes: * src/gnome/modest-account-settings-dialog.c: * Proper shadow for some tabs. * Use save password attribute properly. pmo-trunk-r4347
* src/modest-ui-dimming-rules.c: * Now we use the custom modest method to know if a mime part is an attached message (as it was failing for "file as message" attachments). * src/widgets/modest-attachment-view.c: * Now we show the filename of the attachment even if it's a TnyMsg. This makes "file as message" attachments show the proper name (fixes NB#81527). pmo-trunk-r4253
* Fixes NB#80090, fixed a crash when viewing messages with attachments pmo-trunk-r4119
Adapted to API change for Tinymail rev 3304 pmo-trunk-r4100
* src/widgets/modest-msg-edit-window.h: * Added methods for getting estimation of parts size in message. * src/modest-window-mgr.c: * If save to drafts fails because of disk being full, then we don't close the editor window. * src/widgets/modest-attachment-view.[ch]: * Added methods to set the size externally, and be able to avoid counting the size going through the full stream. * src/widgets/modest-window.c: * Close from escape shortcut only on view window, not only on edit window. This was really not working properly, as press was processed and release was processed after the dialog, if more than one second was spent, then the press was considered a force close. * src/widgets/modest-attachments-view.[ch]: * Added methods to get the size of attachments inside. * src/modest-tny-msg.[ch]: * Added method to estimate the storage size of a message, using simply the size of the attachments and the body parts. * src/modest-ui-actions.[ch]: * On saving to drafts or sending new mails, we estimate the size the message will have on device disk. If it's too big, we cancel the save operation, and show a banner (fixes NB#77528). * src/maemo/modest-msg-edit-window.c: * Methods to estimate file size of attachments added (using vfs) and the full message space (offering size of attachmetns and images). * src/modest-utils.c: * New method to get the available space on device disk. * src/modest-mail-operation.c: * If there's an error in create msg, notify operation failed. pmo-trunk-r4079
Fixed some reference leaks of attachments. I also moved from using GList* of TnyMimeParts to use TnyLists to maintain a more intuitive list of references. * src/widget/modest-gtkhtml-msg-view.[ch]: * Use TnyList of attachments * src/widgets/modest-msg-edit-window.h: * Use TnyList instead of GList for attachments. * src/widgets/modest-msg-view.[ch]: * Use TnyList instead of GList for attachments. * src/widgets/modest-attachment-view.c: * Now the ModestAttachmentView always keep a reference to the mime part with g_object_ref. * src/widgets/modest-msg-view-window.h: * Use TnyList instead of GList for attachments. * src/widgets/modest-attachments-view.[ch]: * Missing unreferencing on iteration. * Use TnyList instead of GList for attachmetns. * src/modest-tny-msg.c: * Use TnyList and unrefernce an attachment list properly. * src/modest-ui-actions.c: * Mail operations for saving to drafts or sending mails from edit window shouldn't keep a reference to the edit window. * Fixed minor bug assigning a g_strdup. * Some frees in error cases in modest_ui_actions_on_send. * src/maemo/modest-msg-edit-window.c: * Fixed some leaked references. * Use TnyList instead of GList for lists of attachments. * src/maemo/modest-msg-view-window.c: * Use TnyList instead of GList for lists of attachments. * Fixed some counting leaks. * src/modest-utils.[ch]: * New method modest_list_index (), that finds the ordinal index of an item in a list. * src/modest-ui-dimming-rules.c: * Use TnyList instead of GList for lists of attachments. pmo-trunk-r3996
Partially fixes NB#77528 Notifies the user when "save to draft", "open attachment" or "send msg" operations fail because the disk is full. It also improves general error notification in more general scenarios. pmo-trunk-r3962
Partially fixes NB#77528 Solves a memory problem when obtaining the size of an attachemnt * modest-count-stream.[ch] : implementation of TnyStream to get the size of a stream withou wasting extra memory * widgets/modest-attachment-view.c : uses the former to get the size of attachments * modest-mail-operation.c : removed two redundant lines * modest-tny-send-queue.c : check for NULL value before a strdup() pmo-trunk-r3870
* src/modest-text-utils.c: * Now derived subject composes a string with no subject also for a "" subject. * src/widgets/modest-attachment-view.c: * If subject is "", we also show no subject string * src/modest-tny-msg.c: * If we are forwarding, and the mail is formatted in html, we forward the message as attachment (fixes NB#62261). * src/modest-formatter.[ch]: * Fixed modest_formatter_attach, to attach the TnyMsg instead of a mime part. pmo-trunk-r2930
* src/widgets/modest-attachment-view.c: * Now get size thread worker is not anymore a mail operation, so the implementation is moved here. This should prevent some bad issues with getting uncancellable operations in mail operation queue, and then, causing hanges. * src/modest-mail-operation.[ch]: * Now get mime part size is not anymore a mail operation, so this has been removed from here. pmo-trunk-r2914