aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Mail formatter rewriteDan Vrátil2012-06-061-2/+2
| | | | | | | | All mail-parsing and formatting code has been moved to em-format. Parsing is handeled by EMailParser class, formatting by EMailFormatter. Both classes have registry which hold extensions - simple classes that do actual parsing and formatting. Each supported mime-type has it's own parser and formatter extension class.
* Adapt to single-include E-D-S libraries.Matthew Barnes2012-06-041-1/+0
|
* Adapt mail to the new ESource API.Matthew Barnes2012-06-031-6/+0
|
* EMFormat: Add "session" as a constructor property.Matthew Barnes2012-04-011-1/+1
| | | | Pass it in instead of digging it out of EShellSettings.
* Introduce libemail-engine and libemail-utils.Matthew Barnes2012-01-191-25/+4
| | | | | | | These libraries are bound for E-D-S so they live at the lowest layer of Evolution for now -- even libeutil can link to them (but please don't). This is the first step toward moving mail handing to a D-Bus service.
* Make em_utils_generate_account_hash() private.Matthew Barnes2012-01-051-1/+0
| | | | | | Only used by em_utils_get_reply_all(), and the hash table it returns is not safe for general-purpose use. Make it a static function and rename it generate_recipient_hash().
* Bug #661087 - Add ability to remove localized "Re:" prefixes in subjectMilan Crha2011-12-221-0/+5
|
* Reduce diff noise with account-mgmt branch.Matthew Barnes2011-12-201-3/+7
|
* Avoid passing EMailBackend as much as possible.Matthew Barnes2011-12-161-3/+5
| | | | | | | | | | | | | | | More mail API churn... reversing some previous API decisions. I've made some key API changes to EMailSession on the account-mgmt branch which should allow for this, and will hopefully also benefit the "email-factory" branch. EMailBackend barely needs to exist anymore, except as the owner of EMailSession. For several low-level functions, we replace its EMailBackend parameter with EMailSession and EAlertSink parameters; the latter so it can still pass user alerts up the chain.
* Reorder accounts by drag-and-drop.Matthew Barnes2011-12-111-4/+0
| | | | | | | | | | | | | | | | | | | | | This implements https://bugzilla.gnome.org/show_bug.cgi?id=663527#c3. Account reordering is now done by drag-and-drop instead of up/down buttons. Turned out to be a wee bit more complicated than I initially thought. This scraps EAccountManager and EAccountTreeView and replaces them with new classes centered around EMailAccountStore, which EMailSession owns. EMailAccountStore is the model behind the account list in Preferences. The folder tree model now uses it to sort its own top-level rows using gtk_tree_path_compare(). It also broadcasts account operations through signals so we don't have to rely so heavily on EAccountList signals, since EAccountList is going away soon. Also as part of this work, the e-mail-local.h and e-mail-store.h APIs have been merged into EMailSession and MailFolderCache.
* Bug #659945 - "New" button in toolbar for new mail message not workingMilan Crha2011-11-101-2/+0
|
* EMFormatHTML: Configure CamelHttpStreams with proxy authpass.Matthew Barnes2011-09-261-1/+2
| | | | | | | Base64-encode the "USER:PASS" authentication string ourselves and hand it to camel_http_stream_set_proxy_authpass(). This is so I can kill camel_http_stream_set_proxy().
* Bug #351025 - Make the order of the mail accounts configurableMilan Crha2011-09-261-0/+4
|
* Miscellaneous cleanups.Matthew Barnes2011-08-311-6/+6
| | | | | | | Reducing diff noise with the account-mgmt branch. Trying to erode our dependency on EAccount as much as possible, or at least isolate its usage, to make things easier for me on the branch.
* Bug #650671 - Service connect/disconnect not cancelled properlyMilan Crha2011-07-021-0/+3
|
* Remove em_utils_folder_name_from_uri().Matthew Barnes2011-05-301-3/+0
|
* Remove em_uri_from_camel() and em_uri_to_camel().Matthew Barnes2011-05-061-4/+0
| | | | Functions are no longer used, or wanted.
* Drop 'folder_uri' member from MessageList.Matthew Barnes2011-05-041-2/+1
|
* Drop 'folder_uri' param from em_utils_folder_is_outbox().Matthew Barnes2011-05-031-1/+1
|
* Drop 'folder_uri' param from em_utils_folder_is_sent().Matthew Barnes2011-05-031-1/+1
|
* Drop 'folder_uri' param from em_utils_folder_is_templates().Matthew Barnes2011-05-031-1/+1
|
* Drop 'folder_uri' param from em_utils_folder_is_drafts().Matthew Barnes2011-05-031-1/+1
|
* Adapt to CamelService changes.Matthew Barnes2011-04-211-1/+1
|
* Bug #643218 - Local delivery doesn't deliver after maildir migrationMilan Crha2011-03-031-0/+2
|
* Bug #635144 - Using external editor duplicates signatureMilan Crha2011-02-021-1/+1
|
* Bug #445439 - Delete mail from pop-server when deleted from Inbox/TrashMilan Crha2010-10-271-1/+1
|
* Send errors to an EAlertSink instead of the task bar.Matthew Barnes2010-10-191-5/+1
| | | | | | This marks the end of unintrusive error dialogs, which were too unintrusive. We now show errors directly in the main window using the EAlert / EAlertSink framework.
* Give MailSession a permanent home.Matthew Barnes2010-10-131-3/+4
| | | | | | | | | | | Global variables in shared libraries are a bad idea. EMailBackend now owns the MailSession instance, which is actually now EMailSession. Move the blocking utility functions in mail-tools.c to e-mail-session.c and add asynchronous variants. Same approach as Camel. Replace EMailReader.get_shell_backend() with EMailReader.get_backend(), which returns an EMailBackend. Easier access to the EMailSession.
* Kill em_utils_temp_save_part().Matthew Barnes2010-10-011-2/+0
| | | | | | | | | Rewrite the last usage of it in itip-formatter.c to use EAttachments instead. This also allowed me to kill mail_save_part() in mail-ops.c. I may need to reevaluate the EAttachment API at some point for all these fringe EAttachment uses we're accumulating. Having to asynchronously "load" an EAttachment whose content is already in memory kinda sucks.
* Pass GCancellable to Camel.Matthew Barnes2010-09-281-1/+1
|
* Coding style cleanups.Matthew Barnes2010-09-131-13/+13
|
* Migrate from CamelException to GError.Matthew Barnes2010-07-091-1/+1
|
* Only #include Camel's top-level header.Matthew Barnes2010-04-031-6/+1
|
* Prevent future bugs like #612792.Matthew Barnes2010-03-151-1/+1
| | | | | | Add G_GNUC_NULL_TERMINATED to EAlert functions with variable-length parameter lists and drop the unnecessary "arg0" parameter so the function attribute works correctly.
* Bug #604994 - Folder state not preserved in Copy/Move Folder dialogMilan Crha2010-01-071-0/+3
|
* Move forward_to() implementation to MailSession (remove dep on composer)Jonathon Jongsma2009-12-211-0/+2
| | | | | | | | | | | | | | | | Previously, the CamelSesssion's forward_to vfunc was implemented in em-composer-utils. However, there wasn't really any composer-related functionality that this function depended on, so in order to remove MailSession's dependency on composer-related functionality, this function was moved into mail-session.c. So now, instead of calling em_utils_forward_message_raw(), you should just call camel_session_forward_to() instead. This change necessitated moving a couple of "guess_account"-related functions into em-utils, but that's ok for now -- it matches the existing em_utils_guess_account() function that's already there. https://bugzilla.gnome.org/show_bug.cgi?id=604952
* Kill em_utils_get_data/config_dir(), push down to MailSessionJonathon Jongsma2009-12-171-3/+0
| | | | | | | | This pushes the get_data_dir() API down to the right level. At present, it is still implemented by querying the shell backend for the data dir / config dir. But this should eventually be reversed (when mail is split off to EDS) so that the mail daemon is the one responsible for the storage locations and the shell backend queries the daemon for these values.
* Kill em_utils_adjustment_page().Matthew Barnes2009-12-161-2/+0
|
* Bug 563555 - Confirm before forwarding many emails inlineRitesh Khadgaray2009-11-201-0/+1
|
* Kill more redundant save dialogs and related utilities.Matthew Barnes2009-11-111-2/+0
|
* Kill more redundant save functions.Matthew Barnes2009-11-081-3/+0
|
* Bug #397265 - Image loading for new contact requires restarting EvolutionMilan Crha2009-10-261-0/+4
|
* Bug #322261 - vCalendar replies are sent out using the default accountMilan Crha2009-10-161-0/+2
|
* Bug #314333 - Decrypt body in reply to an inline-PGP encrypted mailMilan Crha2009-10-151-1/+1
|
* Finish killing Bonobo.Matthew Barnes2009-09-091-3/+0
|
* Radically reorganize source code.Matthew Barnes2009-06-251-2/+4
| | | | | | | | | | | | | | | | | | | - Collect all shell modules into a new top-level 'modules' directory: $(top_srcdir)/modules/addressbook $(top_srcdir)/modules/calendar $(top_srcdir)/modules/mail Nothing is allowed to link to these, not plugins nor other modules. THIS SOLVES BUG #571275 AND OPENS THE DOOR TO PORTING TO MAC OS X. - Mimic the libevolution-mail-shared library from master (except drop the "shared" suffix) and have libevolution-mail-importers and all mail-related plugins link to it. - Discard the a11y subdirectories and have the files live alongside their counterpart widgets.
* Fix "make distcheck" errors.Matthew Barnes2009-06-201-1/+3
|
* More code cleanup.Matthew Barnes2009-06-021-1/+1
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-271-18/+18
|
* Merge branch 'master' into kill-bonoboMatthew Barnes2009-05-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: a11y/widgets/ea-combo-button.c a11y/widgets/ea-combo-button.h addressbook/gui/component/addressbook-component.c addressbook/gui/component/addressbook-component.h addressbook/gui/component/addressbook-view.c addressbook/gui/component/addressbook-view.h addressbook/gui/component/component-factory.c addressbook/gui/widgets/e-addressbook-view.c addressbook/gui/widgets/eab-contact-display.c addressbook/gui/widgets/eab-gui-util.h addressbook/gui/widgets/eab-menu.c addressbook/gui/widgets/eab-menu.h addressbook/gui/widgets/eab-popup-control.c addressbook/gui/widgets/eab-popup-control.h addressbook/gui/widgets/eab-popup.c addressbook/gui/widgets/eab-popup.h calendar/gui/cal-search-bar.c calendar/gui/calendar-commands.c calendar/gui/calendar-component.c calendar/gui/comp-editor-factory.c calendar/gui/comp-editor-factory.h calendar/gui/control-factory.c calendar/gui/dialogs/comp-editor.c calendar/gui/e-cal-component-memo-preview.c calendar/gui/e-cal-component-memo-preview.h calendar/gui/e-calendar-table.c calendar/gui/e-memo-table.c calendar/gui/e-memos.c calendar/gui/e-tasks.c calendar/gui/gnome-cal.c calendar/gui/gnome-cal.h calendar/gui/itip-bonobo-control.c calendar/gui/itip-bonobo-control.h calendar/gui/main.c calendar/gui/memos-component.c calendar/gui/memos-control.c calendar/gui/memos-control.h calendar/gui/migration.c calendar/gui/migration.h calendar/gui/tasks-component.c calendar/gui/tasks-control.c calendar/importers/main.c composer/Makefile.am composer/e-composer-header-table.c composer/e-composer-header.c composer/e-composer-header.h composer/e-composer-name-header.c composer/e-composer-private.c composer/e-composer-text-header.c composer/e-msg-composer.c composer/e-msg-composer.h e-util/e-corba-utils.h e-util/e-logger.c e-util/e-logger.h e-util/e-util-labels.c e-util/e-util-labels.h em-format/em-format.c mail/Makefile.am mail/e-mail-shell-migrate.c mail/em-account-editor.c mail/em-account-editor.h mail/em-composer-prefs.c mail/em-composer-utils.c mail/em-composer-utils.h mail/em-folder-browser.c mail/em-folder-tree-model.c mail/em-folder-tree.c mail/em-folder-tree.h mail/em-folder-utils.c mail/em-folder-utils.h mail/em-folder-view.c mail/em-format-html-display.c mail/em-format-html.c mail/em-mailer-prefs.c mail/em-mailer-prefs.h mail/em-message-browser.c mail/em-message-browser.h mail/em-network-prefs.h mail/em-popup.c mail/em-utils.c mail/importers/Makefile.am mail/mail-component-factory.c mail/mail-component.c mail/mail-config-factory.c mail/mail-config-factory.h mail/mail-config.c mail/mail-dialogs.glade mail/mail-types.h plugins/calendar-weather/calendar-weather.c plugins/mail-account-disable/mail-account-disable.c plugins/select-one-source/select-one-source.c po/POTFILES.in shell/e-component-registry.c shell/e-component-registry.h shell/e-component-view.c shell/e-component-view.h shell/e-corba-config-page.c shell/e-corba-config-page.h shell/e-shell-constants.h shell/e-shell-settings-dialog.c shell/e-shell-settings-dialog.h shell/e-shell-window-commands.c shell/e-shell-window.c shell/e-shell.h shell/e-sidebar.c shell/e-sidebar.h shell/e-user-creatable-items-handler.c shell/e-user-creatable-items-handler.h shell/es-menu.c shell/es-menu.h shell/evolution-component.h shell/evolution-config-control.c shell/evolution-config-control.h shell/evolution-listener.c shell/evolution-listener.h shell/evolution-shell-component-utils.c shell/evolution-shell-component-utils.h shell/importer/evolution-importer-client.c shell/importer/evolution-importer-client.h shell/importer/evolution-importer-listener.c shell/importer/evolution-importer-listener.h shell/importer/evolution-importer.c shell/importer/evolution-importer.h shell/importer/evolution-intelligent-importer.c shell/importer/evolution-intelligent-importer.h shell/importer/intelligent.c shell/main.c shell/test/evolution-test-component.c shell/test/evolution-test-component.h widgets/menus/gal-view-instance.c widgets/menus/gal-view-menus.c widgets/menus/gal-view-menus.h widgets/misc/Makefile.am widgets/misc/e-activity-handler.c widgets/misc/e-activity-handler.h widgets/misc/e-charset-picker.c widgets/misc/e-combo-button.c widgets/misc/e-combo-button.h widgets/misc/e-config-page.h widgets/misc/e-dropdown-button.c widgets/misc/e-dropdown-button.h widgets/misc/e-filter-bar.c widgets/misc/e-info-label.c widgets/misc/e-info-label.h widgets/misc/e-multi-config-dialog.c widgets/misc/e-multi-config-dialog.h widgets/misc/e-search-bar.c widgets/misc/e-search-bar.h widgets/misc/e-task-bar.c widgets/misc/e-task-bar.h widgets/misc/e-task-widget.c widgets/misc/e-task-widget.h widgets/misc/test-dropdown-button.c widgets/misc/test-error.c widgets/misc/test-info-label.c widgets/table/e-table-example-1.c
| * Remove trailing whitespace, again.Matthew Barnes2009-05-271-1/+1
| |
| * Revert evolution revision 37063 (workaround for bug 563867).Matt McCutchen2009-03-021-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-02 Matt McCutchen <matt@mattmccutchen.net> * evolution/mail/em-folder-view.c: * evolution/mail/em-utils.c: * evolution/mail/em-utils.h: * evolution/mail/em-popup.c: Revert evolution revision 37063 (workaround for bug 563867). ** Part of the fix for bug #549838 svn path=/trunk/; revision=37350
| * ** Part of fix for bug #555888Milan Crha2009-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-02-09 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #555888 * mail-config.glade: * em-network-prefs.h: (struct _EMNetworkPrefs): * em-network-prefs.c: (emnp_parse_ignore_hosts), (emnp_load_sys_settings), (notify_proxy_type_changed), (em_network_prefs_construct): Do not overwrite user settings with system proxy settings. Register signals at the end, when all widgets are read. Hide socks settings, it is not used at the moment. * em-utils.h: (em_utils_get_proxy_uri): * em-utils.c: (em_utils_get_proxy_uri), (emu_proxy_setup): * em-format-html.c: (emfh_gethttp): Use proxy configurable within Evolution. svn path=/trunk/; revision=37236
| * Patch from Felix Riemann <friemann@svn.gnome.org> ** Fix for bug #563867 ↵Suman Manjunath2009-01-131-0/+3
| | | | | | | | | | | | (Unescape "&amp;" when passing the link to browsers). svn path=/trunk/; revision=37063
| * Change License from GPL to LGPL. 2nd batch.Sankarasivasubramanian Pasupathilingam2008-09-031-14/+14
| | | | | | | | | | | | More changes to come. svn path=/trunk/; revision=36247
| * ** Fixes Bug #200147Bharath Acharya2008-07-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-18 Bharath Acharya <abharath@novell.com> ** Fixes Bug #200147 Basic functionality implemented by Diego Escalante Urrelo <diegoe@gnome.org> Everyone owes him a big mug of Beer for that. ** Added Templates plugin * Makefile.am: * apps-evolution-template-placeholders.schemas.in: * org-gnome-templates.eplug.xml: * templates.c: * templates.glade: svn path=/trunk/; revision=35780
* | Use -no-undefined on Linux tooMilan Crha2009-05-201-3/+0
| | | | | | | | | | There still left two things opened, search for KILL-BONOBO to find them. One is in calendar's Makefile.am, one in composer.
* | Merge revisions 37200:3266 from trunk.Matthew Barnes2009-02-151-1/+1
| | | | | | | | svn path=/branches/kill-bonobo/; revision=37270
* | Merge revisions 37047:37074 from trunk.Matthew Barnes2009-01-151-0/+3
| | | | | | | | svn path=/branches/kill-bonobo/; revision=37075
* | Define a new interface called EMailReader, which implements operationsMatthew Barnes2008-12-271-57/+47
| | | | | | | | | | | | | | | | common to both the main shell window and the message browser. Replaces EMFolderView. Also begin to define EMailBrowser (GtkWindow subclass), which implements EMailReader and replaces EMMessageBrowser. svn path=/branches/kill-bonobo/; revision=36933
* | Merge revisions 36016:36303 from trunk.Matthew Barnes2008-09-111-14/+14
| | | | | | | | svn path=/branches/kill-bonobo/; revision=36307
* | Merge revisions 35747:35930 from trunk.Matthew Barnes2008-08-081-0/+1
|/ | | | svn path=/branches/kill-bonobo/; revision=35931
* fixed copyright noticesJeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35663
* ** Fix for bug #535791Milan Crha2008-06-091-1/+1
| | | | | | | | | | | | | | | | | | 2008-06-09 Milan Crha <mcrha@redhat.com> ** Fix for bug #535791 * mail-config.glade: * em-composer-prefs.c: (em_composer_prefs_construct): New UI option to let uset choose whether start typing at the bottom of the document or not on replying. * em-utils.h: (em_utils_message_to_html): * em-utils.c: (em_utils_message_to_html): * em-composer-utils.c: (forward_non_attached), (composer_set_body): Take care of /apps/evolution/mail/composer/reply_start_bottom. svn path=/trunk/; revision=35621
* ** Fix for bug #529375Milan Crha2008-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2008-04-23 Milan Crha <mcrha@redhat.com> ** Fix for bug #529375 * evolution-mail.schemas.in: * mail-config.glade: * em-utils.h: (em_utils_in_addressbook): * em-utils.c: (em_utils_in_addressbook): * em-format-html.c: (emfh_gethttp): * mail-session.c: (lookup_addressbook): * mail-config.h: (mail_config_get_lookup_book_local_only): * mail-config.c: (struct MailConfig), (mail_config_init), (mail_config_get_lookup_book_local_only): * em-mailer-prefs.h: (struct _EMMailerPrefs): * em-mailer-prefs.c: (junk_book_lookup_button_toggled), (em_mailer_prefs_construct): Add new option /apps/evolution/mail/junk/lookup_addressbook_local_only to determine whether check for address in a local address book only. svn path=/trunk/; revision=35410
* ** Fix for bug #273177Milan Crha2008-03-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-13 Milan Crha <mcrha@redhat.com> ** Fix for bug #273177 * addressbook/gui/contact-editor/e-contact-quick-add.h: (e_contact_quick_add_vcard): * addressbook/gui/contact-editor/e-contact-quick-add.c: (struct _QuickAdd), (quick_add_unref), (quick_add_set_vcard), (clicked_cb), (build_quick_add_dialog), (e_contact_quick_add_vcard): Allow adding also whole vCard with this dialog. * addressbook/gui/widgets/eab-popup-control.h: (struct _EABPopupControl): * addressbook/gui/widgets/eab-popup-control.c: (eab_popup_control_set_vcard), (eab_popup_control_cleanup), (eab_popup_control_set_vcard), (eab_popup_control_no_matches), (set_prop), (get_prop), (eab_popup_control_new): New property 'vcard', if set, has higher precedence than name/email. * mail/em-utils.h: (em_utils_add_vcard): * mail/em-utils.c: (emu_add_address_or_vcard), (em_utils_add_address), (em_utils_add_vcard): New function to add whole vCard to addressbook. * mail/em-popup.c: (emp_add_vcard), (emp_standard_menu_factory): Add popup menu item to vcard attachments. svn path=/trunk/; revision=35181
* ** Most of the errors are now non-intrusiveSrinivasa Ragavan2008-01-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | 2008-01-10 Srinivasa Ragavan <sragavan@novell.com> ** Most of the errors are now non-intrusive * em-folder-utils.c: (emfu_copy_folder_selected), (emfu_delete_response), (em_folder_utils_delete_folder): * em-folder-view.c: (emfv_delete_msg_response): * em-utils.c: (em_utils_edit_filters), (em_utils_save_part_to_file), (em_utils_temp_save_part), (error_response), (em_utils_show_error_silent), (em_utils_show_info_silent): * em-utils.h: * mail-autofilter.c: (mail_filter_delete_uri): * mail-component.c: (mail_component_show_logger): * mail-mt.c: (mail_msg_free): * mail-session.c: (do_user_message): * mail-vfolder.c: (mail_vfolder_delete_uri), (vfolder_edit_rule): svn path=/trunk/; revision=34787
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-1/+1
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* ** Fix for bug #307410Srinivasa Ragavan2007-07-091-0/+3
| | | | svn path=/trunk/; revision=33776
* Fix compilation warnings in mail folder (#437935).Matthew Barnes2007-06-031-0/+1
| | | | svn path=/trunk/; revision=33628
* ** Adds support for Contact Image in the preview paneSrinivasa Ragavan2007-06-021-0/+1
| | | | svn path=/trunk/; revision=33613
* ** Fixes bug #347238Srinivasa Ragavan2006-08-231-1/+1
| | | | svn path=/trunk/; revision=32636
* Added code to create a attachment bar.Srinivasa Ragavan2005-07-251-0/+1
| | | | | | | | | | | | | | | | | | | | | 2005-07-25 Srinivasa Ragavan <sragavan@novell.com> * em-format-html-display.c: (efhd_init) (efhd_finalise) () (efhd_attachment_image) (efhd_attachment_button) (efhd_format_attachment) Added code to create a attachment bar. * em-format-html.c: (efh_format_message) Added code to add bar at the beginning of the message. * em-popup.[ch]: (em_popup_target_new_attachments) (emp_part_popup_set_background) (emp_standard_menu_factory) Added code to handle the popup menu inside the attachment bar. * em-utils.[ch]: (em_utils_edit_filters) (emu_get_save_filesel) (em_utils_save_part) (em_utils_save_messages) Added code to handle save selected and save all options of the attachment bar. svn path=/trunk/; revision=29866
* forward-reference structuresNot Zed2005-05-161-0/+2
| | | | | | | | | | | | | | 2005-05-16 Not Zed <NotZed@Ximian.com> * mail-vfolder.h: * mail-autofilter.h: forward-reference structures * *.h: Make installed headers includable from mail/ * Makefile.am (mailinclude_HEADERS): install various mail headers as first cut at public plugin api. svn path=/trunk/; revision=29371
* ** See #61940.Not Zed2004-07-281-2/+3
| | | | | | | | | | | | | | | 2004-07-28 Not Zed <NotZed@Ximian.com> ** See #61940. * em-composer-utils.c (composer_set_body): add emformat source arg. (em_utils_reply_to_message): take source arg. Fixed callers. * em-utils.c (em_utils_message_to_html): take a source formatter argument, so we can copy/honour settings from it. (em_utils_part_to_html): similar. svn path=/trunk/; revision=26757
* added len parameter to em_utils_part_to_html and em_utils_message_to_html.Radek Doulik2004-07-281-2/+2
| | | | | | | | | | 2004-07-23 Radek Doulik <rodo@ximian.com> * added len parameter to em_utils_part_to_html and em_utils_message_to_html. it is used to return length of returned buffer. we use that info later when setting composer body content. svn path=/trunk/; revision=26747
* if we end up with an application/octet-stream part, pre-snoop it so we setNot Zed2004-05-191-0/+2
| | | | | | | | | | | | | | | | | | | 2004-05-19 Not Zed <NotZed@Ximian.com> * em-inline-filter.c (emif_add_part): if we end up with an application/octet-stream part, pre-snoop it so we set the right mime type to start with. Fixes #58554. * em-format.c (emf_snoop_part): removed, now in em-utils. * em-utils.c (em_utils_snoop_type): rah rah, snoop a mime part's type. * em-format-html.c (efh_text_plain): Revert jeff's fix for #56290. Ugh, we already have all the citation info in local data. Removed the need for gconf too. svn path=/trunk/; revision=25974
* ** Bug #6556.Not Zed2004-05-171-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-17 Not Zed <NotZed@Ximian.com> ** Bug #6556. * message-list.c (ml_drop_async_desc, ml_drop_async_drop) (ml_drop_async_done, ml_drop_async_free, ml_drag_data_action) (ml_drop_popup_copy, ml_drop_popup_move, ml_drop_popup_cancel) (ml_tree_drag_data_received): implement async drop operations and the ask drop option menu. 2004-05-14 Not Zed <NotZed@Ximian.com> ** Bug #6556. * message-list.c (ml_selection_received_uidlist): removed, not needed anymore. (ml_selection_received): call get_uidlist to paste the selection. (ml_tree_drag_data_received): same here. * em-folder-tree.c (emft_drop_uid_list): removed, not needed because of below change. * em-utils.c (em_utils_selection_get_uidlist): actually do the copy now, don't just decode the data. * em-folder-tree.c (tree_drag_data_received): just copy the selection data data itself, dont decode yet. (emft_import_message_rfc822): removed, not needed, use em utils stuff instead. (emft_drop_message_rfc822): same. (emft_drop_text_uri_list): same. (emft_drop_async_free): simply free stuff. (emft_drop_async_drop): call em_utils stuff where they exist to do the drop. * message-list.c (ml_tree_drag_data_get): send x-mailbox instead of message/rfc822 for the mailbox. (ml_tree_drag_data_received): handle drop of x-mailbox differently to message/rfc822. (ml_tree_drag_motion): implement so proper options are setup whilst dragging. (message_list_construct): seutp the drag src/dest types for changes typs and with ASK action. * em-utils.c (em_utils_read_messages_from_stream): dont unref the stream when we get it. (em_utils_selection_get_mailbox): add an argument to scan from or not, for message/rfc822 vs x-mailbox drops. (em_utils_read_messages_from_stream): Same. * em-folder-tree.c (tree_drag_motion): default to move properly. * message-list.c (ml_selection_received_uidlist): take a move flag. (ml_tree_drag_data_received): handle move action. * em-folder-tree.c (em_folder_tree_new_with_model): got sick of this bloody warning. * em-format.c (default_headers[]): just remove x-mailer from the header list, if it isn't on by default. This is the default list. (em_format_default_headers): loop through everything. svn path=/trunk/; revision=25915
* Moved these here from em-utils.c.Not Zed2004-05-031-36/+0
| | | | | | | | | | | | | | | | | | 2004-05-03 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (em_utils_compose_new_message) (em_utils_compose_new_message_with_mailto) (em_utils_post_to_folder, em_utils_post_to_url) (em_utils_edit_message, em_utils_edit_messages) (em_utils_forward_attached, em_utils_forward_inline) (em_utils_forward_quoted, em_utils_forward_message) (em_utils_forward_messages, em_utils_redirect_message) (em_utils_redirect_message_by_uid) : (em_utils_reply_to_message, em_utils_reply_to_message_by_uid) (em_utils_post_reply_to_message_by_uid): Moved these here from em-utils.c. svn path=/trunk/; revision=25744
* ** Changed error messages to use EError.Not Zed2004-04-281-1/+1
| | | | | | | | 2004-04-28 Not Zed <NotZed@Ximian.com> ** Changed error messages to use EError. svn path=/trunk/; revision=25653
* Cleaned up header inclusions and added plenty of forward declarations.Not Zed2004-03-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * *.[ch]: Cleaned up header inclusions and added plenty of forward declarations. Sped up complete re-compilation by upto 20%. ** See bug #55950. * em-utils.c (em_utils_in_addressbook): utility for checking if an email address is in the addressbook. I can't tell if it works 'cause it crashes eds. * em-format-html.c (emfh_gethttp): handle addressbook checking. 2004-03-30 Not Zed <NotZed@Ximian.com> * mail-config.h: clean up the headers and use some forward decl's instead. * em-format-html.c (em_format_html_set_load_http): change state to an int 'style' instead. * em-folder-view.c (emfv_setting_notify): set the format load http option to the config value directly. ** See bug #56147. * message-list.c (clear_info): set the node data to NULL when we unref its data. (ml_get_save_id): use a different test for the root node, and return NULL if we don't have any data on the node (because we're cleaing it). ** See bug #54962. * em-folder-tree.c (emft_popup_new_folder_response): put back the old hack to open the vfolder editor if you try to create a folder under vfolders. ** See bug #55940. * mail-autofilter.c (mail_filter_rename_uri): map the uri to an email uri before passing to filter code. (mail_filter_delete_uri): same here. svn path=/trunk/; revision=25261
* ** See bug #53084 and others.Not Zed2004-01-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-27 Not Zed <NotZed@Ximian.com> ** See bug #53084 and others. * em-migrate.c (em_migrate): remove the vfolder_revert hack. * em-composer-utils.c (ask_confirm_for_only_bcc): removed unused vars. * mail-tools.c (mail_tool_get_local_inbox): removed, handled by mail_component_get_folder now. * mail-component.c (mail_component_*): Changed the api slightly. Using NULL as the component argument automatically implies you want the default component. (em_uri_from_camel, em_uri_to_camel): moved to em-utils.[ch]. Ok so it isn't namespaced right ... *shrug*. (mail_component_get_local_inbox): removed. (mail_component_get_folder): single entry point for getting standard folders. This is MT-Safe. (mail_component_get_folder_uri): single entry point for getting standard folder uri's. This is MT-Safe. (add_store): removed, moved to mail_component_add_store. (mail_component_load_store_by_uri): call mail_component_add_store directly rather than copying its code. (default_*_folder*): Removed, use accessor methods instead, fixed all callers. (setup_local_store): renamed to mc_setup_local_store, use proper url encoding too. make run-once and thread-safe. (MailComponentPrivate): Added a lock. (mail_control_new): exported properly to kill warnings. (mail_component_init): dont setup_local_store or add accounts here. (impl_createControls): setup local store/accounts here. (mail_component_peek): dont setup vfolder storage here. (mc_startup): internal function to startup stuff needed for gui operation. (setup_search_context): make run-once. (mail_component_peek_search_context): call setup_search_context incase it isn't setup yet. (impl_upgradeFromVersion): remove the local store setup hack. svn path=/trunk/; revision=24462
* support for posting both to mail and to (multiple) foldersMeilof Veeningen2004-01-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-12 Meilof Veeningen <meilof@wanadoo.nl> * em-composer-utils.c: support for posting both to mail and to (multiple) folders * em-folder-browser.c: use em_utils_post_to_folder (works with NNTP) * em-folder-selection-button.[ch]: added multiple selection mode * em-folder-selector.[ch]: idem * em-folder-tree.[ch]: added multiple selection mode, no longer show disabled accounts * em-utils.c: various changes to allow posting to (multiple) folders * em-subscribe-editor.c: double-clicking a node in the editor updates it directly * mail-ops.c: for appending messages, set the "X-Mailer" header svn path=/trunk/; revision=24182
* Implemented; sets an image attachment as the GNOME wallpaper.David Moore2003-12-221-0/+1
| | | | | | | | | | | | | | 2003-12-22 David Moore <davmre@bellsouth.net> * em-popup.c (emp_part_popup_set_background): Implemented; sets an image attachment as the GNOME wallpaper. * em-utils.c (emu_save_part_done): Created a prototype at the top of the file. (em_utils_save_part_to_file): Added; save a message part to a specified file on disk. svn path=/trunk/; revision=23998
* changed to setup the rule part properly, it could never have worked. BugNot Zed2003-12-031-0/+2
| | | | | | | | | | | | | | | | | | | 2003-12-03 Not Zed <NotZed@Ximian.com> * mail-autofilter.c (rule_match_thread): changed to setup the rule part properly, it could never have worked. Bug #51601. * em-popup.c (emp_uri_popup_address_add): implement. * em-folder-view.c (emfv_popup_add_sender): implement. (emfv_add_sender_addressbook): hook up to above func. * em-utils.c (em_utils_add_address): implementation to add an email address to the addressbook. (emu_add_address_cb): callback required for funny api. Bug #51321. svn path=/trunk/; revision=23592
* Added empty_trash prompt key.Not Zed2003-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-02 Not Zed <NotZed@Ximian.com> * evolution-mail.schemas: Added empty_trash prompt key. * em-utils.c (em_utils_prompt_user): changed to take the gconf 'prompt again' key directly. Fixed callers. (em_utils_expunge_folder): prompt the user with an expunge specific message. (em_utils_empty_trash): have an empty-trash specific message for prompting confirm. (emu_confirm_expunge): removed, no longer needed. Bug #38613. (em_utils_expunge_folder): remove most line feeds, let the label wrap them. (em_utils_empty_trash): ditto. * em-subscribe-editor.c (sub_folder_subscribed): update the ui selection state after we're done. maybe we should listen on the model but this is easier. Bug #50861. * em-message-browser.c (emmb_activate): hook up our own verb list. (emmb_message_verbs[], emmb_close): implement the close verb. Bug #51558. * em-format-html-display.c (efhd_attachment_popup): duh, actually add the menu list we create. Bug #49902. * em-format.c (d): turn off debug, committed by accident. svn path=/trunk/; revision=23562
* Fixes bug #49816Jeffrey Stedfast2003-10-281-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-27 Jeffrey Stedfast <fejj@ximian.com> * Fixes bug #49816 * em-popup.c (emp_part_popup_reply_sender): No need to pass a parent window arg anymore. (emp_part_popup_reply_list): Same. (emp_part_popup_reply_all): Here too. (emp_part_popup_forward): Same. (emp_uri_popup_address_send): Here too. * em-folder-browser.c (emfb_mail_compose): No need to pass a parent window arg anymore. (emfb_mail_post): Same. * em-folder-view.c (emfv_message_reply): Don't pass a parent window argument anymore. (emfv_popup_forward): Same. (emfv_popup_resend): Same here. (em_folder_view_open_selected): Same. (emfv_message_forward_attached): Here too. (emfv_message_forward_inline): And here. (emfv_message_forward_quoted): Same. (emfv_message_redirect): Here too. (emfv_message_post_reply): And here. (emfv_format_link_clicked): ANd finally here. * em-utils.c (create_new_composer): Don't set_transient_for() anymore. (em_utils_compose_new_message): No longer takes a parent window argument. (em_utils_forward_attached): No longer takes a parent window arg. (em_utils_forward_inline): Same. (em_utils_forward_quoted): Same. (em_utils_forward_message): Same. (em_utils_forward_messages): Here too. (redirect_get_composer): Don't set_transient_for() here either. (em_utils_redirect_message): No longer takes a parent window arg. (em_utils_redirect_message_by_uid): Same. (reply_get_composer): Don't set_transient_for() here. (em_utils_reply_to_message): No longer takes a parent window arg. (em_utils_reply_to_message_by_uid): Same. (post_reply_to_message): Don't set_transient_for() here. (em_utils_post_reply_to_message_by_uid): No longer takes a parent window arg. (em_utils_compose_new_message_with_mailto): Don't set_transient_for() here. (em_utils_post_to_url): Same. (em_utils_edit_message): No longer takes a parent window arg. (em_utils_edit_messages): Same. svn path=/trunk/; revision=23092
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-0/+1
| | | | svn path=/trunk/; revision=22964
* cvs removed.Not Zed2003-09-181-0/+124
2003-09-17 Not Zed <NotZed@Ximian.com> * folder-browser.c, folder-browser.h, folder-browser-ui.c folder-browser-ui.h, mail-callbacks.c, mail-callbacks.h mail-display.c, mail-display.h, mail-display-stream.c mail-display-stream.h, mail-format.c, mail-format.h mail-identify.c, mail-search.c, mail-search.h message-browser.c, message-browser.h, subscribe-dialog.c subscribe-dialog.h, mail-font-prefs.c, mail-font-prefs.h: cvs removed. * Makefile.am: Removed mail-font-prefs.[ch], hasn't been built for ages. * em-*.c: killed a bunch of printfs. * em-format-html-display.c (efhd_html_button_press_event): update for html object api chagnes. ** Merge in mail-refactor-2 branch. svn path=/trunk/; revision=22602