aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed error id "camel-exception" as it was a bogus error.Jeffrey Stedfast2006-04-191-4/+3
| | | | | | | | | | | | | | | 2006-04-18 Jeffrey Stedfast <fejj@novell.com> * mail.error.xml: Removed error id "camel-exception" as it was a bogus error. 2006-04-14 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (em_utils_handle_receipt): Fixed up the if conditional so that 'account' wasn't ever dereferenced when NULL. Fixes bug #324327. svn path=/trunk/; revision=31829
* committed fix for moving composer window up the stack.Srinivasa Ragavan2006-03-011-0/+1
| | | | svn path=/trunk/; revision=31616
* Use the same Win32 macro for gmtime_r() that guards against gmtime()Tor Lillqvist2006-02-221-4/+21
| | | | | | | | | | | | | 2006-02-21 Tor Lillqvist <tml@novell.com> * em-composer-utils.c: Use the same Win32 macro for gmtime_r() that guards against gmtime() returning NULL as elsewhere. gmtime() is thread-safe on Win32. (attribution_format): Check if camel returns CAMEL_MESSAGE_DATE_CURRENT for Date:, try the date from Received: then. If that doesn't work either, use current date. svn path=/trunk/; revision=31560
* s/int/guint/g for 1-bit bitfield. Remove cruft use guint for 1-bitKjartan Maraas2006-02-081-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-09 Kjartan Maraas <kmaraas@gnome.org> * em-account-editor.h: s/int/guint/g for 1-bit bitfield. * em-composer-utils.c: (em_utils_redirect_message): Remove cruft * em-folder-tree.c: (emft_drop_target): use guint for 1-bit bitfield and rename a variable with a name clash. * em-folder-utils.c: (em_folder_utils_rename_folder): Rename var to avoid name clashes. * em-folder-view.c: guint for 1-bit bitfields. * em-folder-view.h: Same as above. * em-format-html-print.h: Again. * em-format-html.c: (efh_text_html), (efh_multipart_related): Add comments * em-format.c: (emf_multipart_alternative): Add comment about using var that is passed in rather than a local variable. * em-inline-filter.c: (emif_scan): Remove unused var. Mark code static. * em-mailer-prefs.h: guint for 1-bit bitfields. * em-migrate.c: (em_migrate_folder): mark a struct static. remove unused var * em-subscribe-editor.c: guint for 1-bit bitfield * em-utils.c: remove unused function * em-vfolder-rule.c: mark array static * importers/mail-importer.c: (decode_status): Remove unused code. Use guint for 1-bit bitfield. * mail-autofilter.c: (rule_from_message): rename a variable * mail-component.c: guint for 1-bit bitfield * mail-folder-cache.c: (update_1folder): remove unused code * mail-mt.c: mark some structs static * message-list.c: (message_list_select_uid), (ml_value_to_string), (ml_tree_value_at), (find_next_undeleted), (build_tree), (build_flat): Remove unused code and fix some format specifiers. svn path=/trunk/; revision=31448
* check if account is null before accessing itParthasarathi Susarla2006-02-021-1/+1
| | | | | | | | | 2006-02-02 Parthasarathi Susarla <sparthasarathi@novell.com> * em-composer-utils.c: (em_utils_handle_receipt): check if account is null before accessing it svn path=/trunk/; revision=31399
* Use e_util_mkdir_hier() instead of e_mkdir_hier().Simon Zheng2006-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-10 Simon Zheng <simon.zheng@sun.com> * em-composer-utils.c: * em-folder-tree-model.c: (em_folder_tree_model_save_state): * em-format-html.c: * em-migrate.c: (cp_r), (em_migrate_folder), (em_migrate_pop_uid_caches_1_4), (em_migrate_folder_expand_state_1_4), (em_migrate_folder_view_settings_1_4), (em_migrate_imap_cmeta_1_4), (em_migrate_1_4), (emm_setup_initial), (em_migrate): * em-popup.c: * em-utils.c: (em_utils_save_part_to_file): * mail-component.c: (mail_component_init): * mail-config.c: * mail-folder-cache.c: * mail-mt.c: * mail-ops.c: * mail-tools.c: (mail_tool_get_local_movemail_path): Use e_util_mkdir_hier() instead of e_mkdir_hier(). Use e_util_strstrcase() instead of e_strstrcasea(). use e_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_filename_make_safe() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. use e_utf8_strftime() in evolution-data-server/ libedataserver/e-data-server-util.c instead of the copy in evolution/e-util/e-util.c. svn path=/trunk/; revision=31118
* use libedataserver/e-account-list.h instead of e-util/e-account-list.h.Simon Zheng2006-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2006-01-06 Simon Zheng <simon.zheng@sun.com> * em-account-editor.c: * em-account-prefs.c: * em-composer-utils.c: * em-folder-tree-model.h: * em-migrate.c: * em-subscribe-editor.c: * em-utils.c: * importers/netscape-importer.c: * mail-config.c: * mail-crypto.c: * mail-ops.h: * mail-send-recv.c: * mail-vfolder.c: use libedataserver/e-account-list.h instead of e-util/e-account-list.h. use libedataserver/e-account.h instead of e-util/e-account.h. svn path=/trunk/; revision=31075
* Use the composer window as the parent window while showing the errorParthasarathi Susarla2006-01-041-1/+1
| | | | | | | | | | 2006-01-04 Parthasarathi Susarla <sparthasarathi@novell.com> * em-composer-utils.c: (em_utils_composer_send_cb): Use the composer window as the parent window while showing the error message. svn path=/trunk/; revision=31041
* ** See bug #315987 Send only if account is enabledParthasarathi Susarla2005-11-231-7/+14
| | | | | | | | | | | | | | | | | 2005-11-23 Parthasarathi Susarla <sparthasarathi@novell.com> ** See bug #315987 * em-composer-utils.c: (em_utils_composer_send_cb): Send only if account is enabled (em_utils_composer_save_draft_cb): Save message to server folder only if the account is enabled, else save it locally (generate_account_hash): Add default account into the account hash only if the account none of the account is enabled. (guess_account): use only enabled account * mail.error.xml: Add error message for send-no-account-enabled svn path=/trunk/; revision=30646
* Return valid transport, only if the account is enabled.Parthasarathi Susarla2005-10-221-0/+7
| | | | | | | | | | | | | | | | 2005-10-22 Parthasarathi Susarla <sparthasarathi@novell.com> * mail-config.c: (mail_config_get_default_account): Return valid transport, only if the account is enabled. 2005-10-22 Parthasarathi Susarla <sparthasarathi@novell.com> * em-composer-utils.c: (create_new_composer): If the account corresponding to the fromuri is not enabled. Then load the preferred account from the composer. ---------------------------------------------------------------------- svn path=/trunk/; revision=30555
* composer/e-msg-composer-select-file.c, composer/e-msg-composer.c,Philip Van Hoof2005-10-191-13/+8
| | | | | | | | | | | | 2005-10-19 Philip Van Hoof <pvanhoof@gnome.org> composer/e-msg-composer-select-file.c, composer/e-msg-composer.c, composer/e-msg-composer.h, composer/evolution-composer.c, composer/listener.c, mail/em-composer-utils.c, plugins/mailing-list-actions/mailing-list-actions.c: data hiding svn path=/trunk/; revision=30532
* em-composer-utils.c (reply_get_composer, get_reply_list,Tor Lillqvist2005-09-281-3/+3
| | | | | | | | | | | | | 2005-09-28 Tor Lillqvist <tml@novell.com> * em-composer-utils.c (reply_get_composer, get_reply_list, post_reply_to_message) * em-folder-view.c (emfv_format_link_clicked): Use g_ascii_strncasecmp() instead of strncasecmp(). We are comparing to literal ASCII strings, so just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30397
* Fixes #316983Carsten Guenther2005-09-231-2/+2
| | | | | | | | | | | | | 2005-09-22 Carsten Guenther <carsten.guenther@scalix.com> Fixes #316983 * em-composer-utils.c (em_utils_send_receipt): Exchanged the FROM and TO fields so that a read receipt actually goes to the sender of the original message. svn path=/trunk/; revision=30370
* if we get a null default, then set "" on the entry. (emae_option_entry):Not Zed2005-07-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-07-21 Not Zed <NotZed@Ximian.com> * em-account-editor.c (emae_option_entry): if we get a null default, then set "" on the entry. (emae_option_entry): set the default value on the url if it doesn't exist already. 2005-07-20 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (refresh_folders_desc, refresh_folders_get) (refresh_folders_got, refresh_folders_free, get_folders) (receive_update_got_folderinfo, receive_update_got_store): refresh all the folders manually and directly. * mail-folder-cache.c (setup_folder): propagate even -1 unread counts, they get ignored later. * em-composer-utils.c (emu_handle_receipt_message) (em_utils_handle_receipt): use getmessagex too, so we can always clear any error. * em-folder-view.c (emfv_message_selected_timeout) (emfv_list_done_message_selected): use getmessagex and do something meaninful with the error. * mail-ops.c (mail_get_messagex): added new get message which returns an exception. 2005-07-19 Not Zed <NotZed@Ximian.com> * mail-tools.c (mail_tool_uri_to_folder): dont get the service connected, it will connect if it needs to. * mail-ops.c (get_folderinfo_get): * em-folder-utils.c (emft_copy_folders__copy) (emfu_delete_folders): * em-folder-tree.c (emft_get_folder_info__get): Always request subscribed folders, if the backend doesn't implement it it will ignore it. 2005-07-13 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (mail_autoreceive_init, auto_online): listen to session online events, and if we are online, trigger an auto-receive of all auto-check accounts. 2005-07-11 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (auto_account_commit): force an update immediately if we're setting up the timeout to start with. * em-folder-tree-model.c (em_folder_tree_model_set_unread_count): noop if the unread count < 0. (em_folder_tree_model_set_folder_info): only set the unread count if we actually have one. * em-folder-tree.c (emft_tree_row_expanded): get the folder list 'fast'. * mail-ops.c (get_folderinfo_get): get the folder list 'fast'. svn path=/trunk/; revision=29822
* included missing header file camel-multipart.h **Fixes #310330Vivek Jain2005-07-151-0/+1
| | | | | | | | | | 2005-07-14 Vivek Jain <jvivek@novell.com> * em-composer-utils.c : included missing header file camel-multipart.h **Fixes #310330 svn path=/trunk/; revision=29772
* Retired GAL from Head. The relevant files have moved inside evolution.Kaushal Kumar2005-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-06-17 Kaushal Kumar <kakumar@novell.com> * Retired GAL from Head. The relevant files have moved inside evolution. Thanks to JP Rosevear for performing the cvs surgery. The files have been moved in the following order. evolution/e-util <- gal/gal/util evolution/a11y <- gal/gal/a11y evolution/a11y/e-table <- gal/gal/a11y/e-table evolution/a11y/e-text <- gal/gal/a11y/e-text evolution/widgets/table <- gal/gal/e-table evolution/widgets/text <- gal/gal/e-text evolution/widgets/misc <- gal/gal/widgets evolution/widgets/misc/pixmaps <- gal/gal/widgets/pixmaps evolution/widgets/menus <- gal/gal/menus Following is the summary of changes done to fix the build:- - New files added to cvs repository, - a11y/e-table/Makefile.am - a11y/e-text/Makefile.am - widgets/table/Makefile.am - widgets/text/Makefile.am - widgets/misc/pixmaps/Makefile.am - iconv-detect.h - iconv-detect.c - Updated configure.in. - Updated all the relevant Makefile.am files. - Updated the include paths to replace all gal references. - Updated the marshal list to suit gal files requirements. svn path=/trunk/; revision=29522
* move e-error into e-util/Not Zed2005-05-161-1/+1
| | | | | | | | 2005-05-16 Not Zed <NotZed@Ximian.com> * move e-error into e-util/ svn path=/trunk/; revision=29366
* Use the real folder and real uid (not the virtual if replying to a messageJeffrey Stedfast2005-05-131-4/+21
| | | | | | | | | | 2005-04-21 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (post_reply_to_message): Use the real folder and real uid (not the virtual if replying to a message in a vfolder). Fixes bug #269129. svn path=/trunk/; revision=29345
* Simplify the scanning for '@' by using strchr().Jeffrey Stedfast2005-04-091-7/+4
| | | | | | | | | 2005-04-08 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (em_utils_send_receipt): Simplify the scanning for '@' by using strchr(). svn path=/trunk/; revision=29197
* removed. (em_utils_handle_receipt): asynchronously load message if none isNot Zed2005-04-081-1/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-08 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (em_utils_ask_receipt): removed. (em_utils_handle_receipt): asynchronously load message if none is supplied. * em-folder-view.c (emfv_set_seen): pass message in. * em-composer-utils.c (em_utils_ask_receipt): strip leading lwsp on the disposition address. (em_utils_ask_receipt): added a comment about which rfc. (em_utils_handle_receipt): merged ask_receipt into here. Changed api to take a message instead, so we don't have to load the message every time. Also only set receipt-handled if we have a receipt requested in the first place. 2005-04-05 ERDI Gergo <cactus@cactus.rulez.org> * mail-errors.xml: Added new dialog for receipt requests * em-composer-utils.c (em_utils_guess_account): Made guess_account public, to be callable from em-folder-view (em_utils_send_receipt): New function to send an RFC 2298-compliant message delivery notification svn path=/trunk/; revision=29185
* ** See bug #66592Not Zed2005-03-041-95/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-03 Not Zed <NotZed@Ximian.com> ** See bug #66592 * mail-tools.c (mail_tool_make_message_attachment): jus call camel_medium_remove_header to remove the bcc header, don't need to loop. * mail-ops.c (mail_send_message): try to find the account by uid first, fall back to name. * em-composer-utils.c (composer_get_message): set x-evolution-account by uid, not name. 2005-03-02 Not Zed <NotZed@Ximian.com> ** See bug #66592 * em-composer-utils.c (got_post_folder): no longer needed. (composer_get_message): remove 'post' and 'no_recipeints' args. * mail-ops.c (mail_send_message): change for xev changes. Also handle postto if set. * mail-tools.c (mail_tool_remove_xevolution_headers) (mail_tool_restore_xevolution_headers): fix for api change. (mail_tool_destroy_xevolution): remove. * mail-tools.h: remove XEvolution, just use a struct _header_raw for it. * em-composer-utils.c (em_utils_composer_send_cb): don't post message here, just queue it like any other outgoing mail. svn path=/trunk/; revision=28950
* ** See bug #68459Not Zed2005-02-251-59/+57
| | | | | | | | | | | | | 2005-02-24 Not Zed <NotZed@Ximian.com> ** See bug #68459 * em-composer-utils.c (get_reply_sender): check the followup-to header before the newsgroups header. (reply_get_composer, get_reply_sender, get_reply_all): change post-to to be a CamelNNTPAddress not a string pointer. svn path=/trunk/; revision=28885
* ** See bug #66943.Not Zed2005-01-191-17/+30
| | | | | | | | | | | | | | 2005-01-19 Not Zed <NotZed@Ximian.com> ** See bug #66943. * em-composer-utils.c (save_draft_done): check if the editor_engine is still there before trying to invoke a method on it. (em_utils_composer_save_draft_cb): grab resources before getting the folder, so the composer doesn't go away. svn path=/trunk/; revision=28445
* handle the "reply" parameter, if set.Not Zed2005-01-051-2/+4
| | | | | | | | | | | | | 2005-01-05 Not Zed <NotZed@Ximian.com> * mail-component.c (handleuri_got_folder): handle the "reply" parameter, if set. * em-composer-utils.c (em_utils_reply_to_message): only ref the source if supplied. (reply_to_message): only unref the source if supplied. svn path=/trunk/; revision=28241
* ** Merge in notzed-messageinfo-branch.Not Zed2004-11-121-7/+7
| | | | | | | | 2004-11-12 Not Zed <NotZed@Ximian.com> ** Merge in notzed-messageinfo-branch. svn path=/trunk/; revision=27899
* added hook docs, and cleaned up some of the hook point names.Not Zed2004-10-281-2/+1
| | | | | | | | | | | | | | | | | | | | 2004-10-28 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c (real_flush_updates): * em-message-browser.c (em_message_browser_new): * em-mailer-prefs.c (em_mailer_prefs_construct): * em-format-html-display.c (efhd_attachment_popup): * em-folder-view.c (emfv_popup, emfv_list_done_message_selected) (emfv_format_popup_event): * em-folder-tree.c (emft_popup): * em-folder-properties.c (emfp_dialog_got_folder): * em-folder-browser.c (em_folder_browser_new): * em-composer-utils.c (em_utils_reply_to_message): * em-composer-prefs.c (em_composer_prefs_construct): * em-account-editor.c (em_account_editor_construct): added hook docs, and cleaned up some of the hook point names. svn path=/trunk/; revision=27749
* duh, they're camel not gobjects.Not Zed2004-10-221-1/+8
| | | | | | | | | | | 2004-10-22 Not Zed <NotZed@Ximian.com> * em-event.c (eme_target_free): duh, they're camel not gobjects. * em-folder-view.c (emfv_list_done_message_selected): added a message.reading event. svn path=/trunk/; revision=27694
* Add a REPLY_ALL flag to the Message target. Set the REPLY_ALL flag whenNat Friedman2004-10-221-1/+2
| | | | | | | | | | 2004-10-22 Nat Friedman <nat@novell.com> * em-event.c: Add a REPLY_ALL flag to the Message target. * em-composer-utils.c (em_utils_reply_to_message): Set the REPLY_ALL flag when appropriate. svn path=/trunk/; revision=27689
* emit a 'message.replying' event with a message target.Not Zed2004-10-211-0/+8
| | | | | | | | | | | | | | | | | | | 2004-10-21 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (em_utils_reply_to_message): emit a 'message.replying' event with a message target. 2004-10-21 Nat <nat@novell.com> * em-event.c (em_event_target_new_message): new target type for message-related events. 2004-10-21 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_format_popup_event): put 'evolution' back in the popup hook names. svn path=/trunk/; revision=27673
* do noting if the composer couldn't be created. We get a popup fromNot Zed2004-10-151-10/+16
| | | | | | | | | | | 2004-10-15 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (create_new_composer): (em_utils_compose_new_message, forward_non_attached): do noting if the composer couldn't be created. We get a popup from elsewhere to let the user know. svn path=/trunk/; revision=27590
* put back in the attachment attaching code. Doesn't work for s/mime andNot Zed2004-10-071-1/+4
| | | | | | | | | | | | | | | | | | | | | 2004-09-28 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (forward_non_attached): put back in the attachment attaching code. Doesn't work for s/mime and pgp, but why bother arguing about it. 2004-10-06 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_get_folder_info__desc): fix busted cast. * *.c: e-popup api changes. 2004-10-06 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_tree_button_press): remove some debug that made it in accidentally. svn path=/trunk/; revision=27487
* describe the get-folder process. This also makes it cancellable.Not Zed2004-09-241-1/+1
| | | | | | | | | | | | | | 2004-09-23 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_get_folder_info__desc): describe the get-folder process. This also makes it cancellable. ** See bug #64972. * em-composer-utils.c (em_utils_reply_to_message): pass the folder to guess_account. svn path=/trunk/; revision=27354
* Merged notzed-eplugin-2-branch to head.Michael Zucci2004-09-201-0/+1
| | | | svn path=/trunk/; revision=27300
* If type="{Sender}" and name is an empty string, use the addr. Fixes bugJeffrey Stedfast2004-08-041-1/+1
| | | | | | | | | 2004-08-03 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (format_sender): If type="{Sender}" and name is an empty string, use the addr. Fixes bug #62377 svn path=/trunk/; revision=26820
* ** See #61940.Not Zed2004-07-281-8/+25
| | | | | | | | | | | | | | | 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-4/+7
| | | | | | | | | | 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
* ** See bug #61824.Not Zed2004-07-261-66/+33
| | | | | | | | | | | | | | | | | | | | | | | | 2004-07-23 Not Zed <NotZed@Ximian.com> ** See bug #61824. * em-popup.c (emp_part_popup_reply_sender) (emp_part_popup_reply_list, emp_part_popup_reply_all): use new api. We have no uid/folder to update here. * em-folder-view.c (emfv_message_reply): use new api for replying so we can supply the message content and have flags updated. * em-composer-utils.c (em_utils_reply_to_message): added optional folder and uid. (em_utils_reply_to_message_by_uid): removed, use the other interface instead. (reply_to_message): just call reply_to_message if we get a message to reply to. (em_utils_reply_to_message): if no message supplied, load it via the uid. svn path=/trunk/; revision=26727
* New function to format an attribution string (won't crash if translatorsJeffrey Stedfast2004-06-161-20/+190
| | | | | | | | | | | | | | 2004-06-15 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (attribution_format): New function to format an attribution string (won't crash if translators were sloppy with their strftime/printf-style formatters). Also nice/extendable for future feature enhancements such as user-customisable attribution strings. (composer_set_body): Use above function rather than using e_strftime/etc ourselves. svn path=/trunk/; revision=26356
* if we removed all of the addresses because they were 'us', add the firstNot Zed2004-06-141-1/+7
| | | | | | | | | | 2004-06-14 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (get_reply_all): if we removed all of the addresses because they were 'us', add the first to address back. otherwise reply-to-all behaves strange. svn path=/trunk/; revision=26330
* Don't attach anything ever. This is confusing way too many users whoJeffrey Stedfast2004-06-021-5/+1
| | | | | | | | | | | | 2004-06-01 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (forward_non_attached): Don't attach anything ever. This is confusing way too many users who expect it to attach all or nothing. Since Forward-Attached is what users should be using to forward a message and all attachments, make these not attach anything (which is what other mailers do anyway). svn path=/trunk/; revision=26145
* Updated the #if 0'd code for the API chanegs made toJeffrey Stedfast2004-05-151-3/+8
| | | | | | | | | | | | | | | | | 2004-05-14 Jeffrey Stedfast <fejj@novell.com> * em-popup.c (emp_popup_resend): Updated the #if 0'd code for the API chanegs made to em_utils_edit_messages(). * em-folder-view.c (em_folder_view_open_selected): Pass TRUE as the replace argument to em_utils_edit_messages() here. (emfv_popup_resend): Pass FALSE here. Fixes bug #58357. * em-composer-utils.c (em_utils_edit_messages): Now takes a 'replace' argument specifying whether or not the original message should be deleted when the edited message is sent or saved. svn path=/trunk/; revision=25907
* ** See bug #58302.Not Zed2004-05-121-2/+2
| | | | | | | | | | | | | 2004-05-12 Not Zed <NotZed@Ximian.com> ** See bug #58302. * em-composer-utils.c (em_utils_post_to_folder): * em-composer-utils.c (em_utils_compose_new_message_with_mailto): poke the composer headers from account directly, don't call set headers which overwrites stuff. svn path=/trunk/; revision=25879
* take fromuri and subject to set the basic headers/account.Not Zed2004-05-031-35/+60
| | | | | | | | | | | | | | | | 2004-05-03 Not Zed <NotZed@Ximian.com> * em-composer-utils.c (create_new_composer): take fromuri and subject to set the basic headers/account. (em_utils_compose_new_message) (em_utils_compose_new_message_with_mailto, forward_attached) (em_utils_forward_attached, forward_non_attached) (em_utils_forward_inline, em_utils_forward_quoted) (em_utils_forward_message, em_utils_forward_messages): Take the from folder uri to set the from account if it can. Fixed all callers. For #57964. svn path=/trunk/; revision=25747
* Moved these here from em-utils.c.Not Zed2004-05-031-2/+1088
| | | | | | | | | | | | | | | | | | 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-32/+13
| | | | | | | | 2004-04-28 Not Zed <NotZed@Ximian.com> ** Changed error messages to use EError. svn path=/trunk/; revision=25653
* use e_destination_export_to_vcard_attribute instead of exporting to xml,Chris Toshok2004-04-101-15/+11
| | | | | | | | | | | | | | | | | | | 2004-04-09 Chris Toshok <toshok@ximian.com> * importers/pine-importer.c (import_contact): use e_destination_export_to_vcard_attribute instead of exporting to xml, and use e_contact_set_attributes. * em-utils.c (em_utils_camel_address_to_destination): EABDestination -> EDestination. (reply_get_composer): same (post_reply_to_message): same. * em-composer-utils.c (ask_confirm_for_unwanted_html_mail): EABDestination -> EDestination. (composer_get_message): same. svn path=/trunk/; revision=25392
* ** See bug #53320 and probably othersNot Zed2004-01-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> ** See bug #53320 and probably others * message-list.c (message_list_set_folder): NULL out message_list->folder when we clear it so it isn't left for another free when we switch again. 2004-01-29 Not Zed <NotZed@Ximian.com> ** See bug #52190. * message-list.c: Added folder/folder uri to the data stored for primary/secondary selection, uses a struct to store the data now. This is needed so when you cut/copy messages, and paste them, it doesn't end up 'pasting' the messages from the current folder, but from the one where the copy/cut took place. (clear_selection): helper to free data inside selection struct. 2004-01-29 Not Zed <NotZed@Ximian.com> ** See bug #53506. * mail-tools.c (mail_tools_folder_to_url): use a camelurl to do this properly, and handle fragment folder-paths. * em-composer-utils.c (em_utils_composer_send_cb): removed outbox_folder local, not necessary. svn path=/trunk/; revision=24511
* ** See bug #53084 and others.Not Zed2004-01-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-42/+78
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Added empty_trash prompt key.Not Zed2003-12-021-44/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* rfc2047 encode the Organization header value.Jeffrey Stedfast2003-12-021-2/+7
| | | | | | | | | 2003-12-01 Jeffrey Stedfast <fejj@ximian.com> * em-composer-utils.c (composer_get_message): rfc2047 encode the Organization header value. svn path=/trunk/; revision=23535
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-12/+12
| | | | svn path=/trunk/; revision=22964
* cvs removed.Not Zed2003-09-181-0/+623
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