aboutsummaryrefslogtreecommitdiffstats
path: root/mail
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't set the account source/transport types to disabled simply becauseJeffrey Stedfast2004-03-192-16/+66
| | | | | | | | | | | | | 2004-03-18 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_setup): Don't set the account source/transport types to disabled simply because the provider is NULL (think of the "None" option). (source_type_changed): Need to update widget sensitivity based on locked'ness here. (transport_type_changed): Same. svn path=/trunk/; revision=25121
* rfc2047 decode the address here before passing it off to the addressbookJeffrey Stedfast2004-03-192-2/+20
| | | | | | | | | | 2004-03-18 Jeffrey Stedfast <fejj@ximian.com> * em-utils.c (em_utils_add_address): rfc2047 decode the address here before passing it off to the addressbook (which expects it to be in human-readable form, not encoded). Fixes bug #55591. svn path=/trunk/; revision=25118
* save the source and transport vbox's to enable/disable the whole lotNot Zed2004-03-186-82/+34
| | | | | | | | | | | | | | | 2004-03-18 Not Zed <NotZed@Ximian.com> * mail-account-gui.c (mail_account_gui_new): save the source and transport vbox's to enable/disable the whole lot easier. (mail_account_gui_setup): enable above based on perms. (mail_account_gui_build_extra_conf): also disable extra page, as above. * em-account-prefs.c (account_cursor_change): disable the whole account editor if accounts are ro. svn path=/trunk/; revision=25114
* make this crap not break the buildMichael Zucci2004-03-182-2/+2
| | | | svn path=/trunk/; revision=25111
* started writing this, but i couldn't be fucked right now - apparentlyNot Zed2004-03-1811-31/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-18 Not Zed <NotZed@Ximian.com> * mail-config.c (mail_config_writable): started writing this, but i couldn't be fucked right now - apparently gnome is supposed to use the gconf thing which just doens't work. i'll waste a few hours trying to get it to work again first before i keep going with this. 2004-03-17 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_message_deliverystatus): format as plain text too. * em-format.c (emf_message_deliverystatus): format delivery status messages as plain text, rather than as messages. since they wont be CamelMimeMessages. Maybe they should be silently hidden. * mail-offline-handler.c (store_go_online): split this, only call add_store/note_store once we've actually set the store online. (store_went_online): set the store up once we're fully online. Works around a deadlock in #55618. * em-account-prefs.c (account_cursor_change): disable editing/adding/removing accounts etc if accounts aren't editable. (em_account_prefs_construct): call above after setup. * mail-component.c (mc_quit_sync): if we have empty on exit days, check that. keep track of the last empty on exit time. * em-mailer-prefs.c (emmp_empty_trash_init): init the trash stuff here. (em_mailer_prefs_apply): save empty trash on exit frequency. svn path=/trunk/; revision=25110
* format as plain text too.Not Zed2004-03-172-0/+38
| | | | | | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_message_deliverystatus): format as plain text too. * em-format.c (emf_message_deliverystatus): format delivery status messages as plain text, rather than as messages. since they wont be CamelMimeMessages. Maybe they should be silently hidden. svn path=/trunk/; revision=25098
* split this, only call add_store/note_store once we've actually set theNot Zed2004-03-171-3/+11
| | | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * mail-offline-handler.c (store_go_online): split this, only call add_store/note_store once we've actually set the store online. (store_went_online): set the store up once we're fully online. Works around a deadlock in #55618. svn path=/trunk/; revision=25097
* Fix for bug #55358.Jeffrey Stedfast2004-03-175-139/+320
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-16 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55358. * em-folder-tree.c (emft_expand_node): Changed to be the callback function for em_folder_tree_model_expand_foreach(). (emft_maybe_expand_row): Renamed from emft_loading_row_cb(). We now handle both "loading-row" an "loaded-row" signals. Also updated for slight change in key generation. (em_folder_tree_new_with_model): Connect to the "loaded-row" signal. (emft_update_model_expanded_state): Updated for slight change in key generation. * em-folder-tree-model.c (em_folder_tree_model_add_store): Emit the "loaded-row" signal for the newly added store. (em_folder_tree_model_set_folder_info): Emit "loaded-row" for the row we've just set the info on (but only after we've added a child node if there is one, so the signal handler can expand the newly added row if appropriate). (em_folder_tree_model_class_init): Setup the "loaded-row" signal. (em_folder_tree_model_finalize): The tree-state is now an xml file and not a binary file, so change the expanded free func. (em_folder_tree_model_load_state): Load the expand-state xml file. If one doesn't exist, setup some defaults. (em_folder_tree_model_get_expanded): Scan the XML tree for the node. (em_folder_tree_model_set_expanded): Same. (em_folder_tree_model_save_expanded): Save the expand-state xml tree to disk. (em_folder_tree_model_expand_foreach): New function to iterate over all xml nodes and call the callback if the expand state is "true". svn path=/trunk/; revision=25094
* Don't focus the name_entry widget here.Jeffrey Stedfast2004-03-173-3/+9
| | | | | | | | | | | | 2004-03-16 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (impl_requestCreateItem): Don't focus the name_entry widget here. * em-folder-selector.c (em_folder_selector_create_new): Focus the name_entry widget here rather than in mail-component.c svn path=/trunk/; revision=25091
* New function to return a description of the async drop operation. FixesJeffrey Stedfast2004-03-172-1/+32
| | | | | | | | | 2004-03-16 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_drop_async_desc): New function to return a description of the async drop operation. Fixes bug #54808. svn path=/trunk/; revision=25090
* If the mail_get_message() async op fails, it will still call us with aJeffrey Stedfast2004-03-162-0/+11
| | | | | | | | | | | 2004-03-15 Jeffrey Stedfast <fejj@ximian.com> * em-utils.c (reply_to_message): If the mail_get_message() async op fails, it will still call us with a NULL message to check for that. Fixes bug #55612. (post_reply_to_message): Same. svn path=/trunk/; revision=25081
* Use camel_store_rename_folder() when appropriate (m->tostore ==Jeffrey Stedfast2004-03-162-21/+41
| | | | | | | | | | 2004-03-15 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_copy_folders__copy): Use camel_store_rename_folder() when appropriate (m->tostore == m->fromstore && m->delete) svn path=/trunk/; revision=25080
* make this a varags function, which then calls the virtual method to do theNot Zed2004-03-153-2/+41
| | | | | | | | | | | | | | | | 2004-03-15 Not Zed <NotZed@Ximian.com> * em-format.c (em_format_format_error): make this a varags function, which then calls the virtual method to do the work. (emf_multipart_appledouble, emf_multipart_mixed) (emf_multipart_alternative, emf_multipart_related) (emf_message_rfc822): print an error to explain why you're getting source content displayed. (em_format_format_secure): make this a function. and if we're done formatting a secure part, and we dont have a parent anymore, null out the validity. See #55541. svn path=/trunk/; revision=25070
* No-op if emfv->folder is NULL (this means we are looking at a storeJeffrey Stedfast2004-03-132-1/+7
| | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_search_search_activated): No-op if emfv->folder is NULL (this means we are looking at a store folder? or else the folder hasn't loaded yet). Fixes bug #55293. svn path=/trunk/; revision=25052
* remove junk learning thread, it's handled in camel-folder.c:folder_changedRadek Doulik2004-03-134-114/+18
| | | | | | | | | | | | | 2004-03-11 Radek Doulik <rodo@ximian.com> * mail-ops.c: remove junk learning thread, it's handled in camel-folder.c:folder_changed now * em-folder-view.c (emfv_popup_mark_junk): use em_folder_view_mark_selected, set junk, junk-learn and seen flags (emfv_popup_mark_nojunk): similar, reset junk, set junk-learn flags svn path=/trunk/; revision=25046
* Removed. No longer in use (hasn't been since before 1.2).Jeffrey Stedfast2004-03-133-119/+80
| | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_mail): Removed. No longer in use (hasn't been since before 1.2). (send_queue_send): Before enetring the main send loop, create a temporary uid array containing ONLY the messages we will send (ie. not any that have been marked deleted) so that we can more accurately report the number of messages total that we are sending. Also continue sending even if we encounter an exeption in mail_send_message() (unless, of course, it is a user-cancel). Merge any exceptions we get into the master exception variable and ALWAYS sync/expunge the queue folder. svn path=/trunk/; revision=25043
* Reverted signal blocking stuff. Doesn't work and is unneeded with theJeffrey Stedfast2004-03-122-11/+5
| | | | | | | | | 2004-03-11 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_set_folder): Reverted signal blocking stuff. Doesn't work and is unneeded with the proper fix. svn path=/trunk/; revision=25034
* Fixed a bug where txt wasn't being properly initialised in all cases forJeffrey Stedfast2004-03-122-8/+33
| | | | | | | | | | | | | 2004-03-11 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_format_header): Fixed a bug where txt wasn't being properly initialised in all cases for Date headers. Also fixed the x-evolution-mailer code to simply use the ehader->value that was passed in. (efh_format_headers): Fixed to handle the special X-Evolution-Mailer header. svn path=/trunk/; revision=25028
* a really gross hack, disable all search handlers before setting the searchNot Zed2004-03-112-19/+61
| | | | | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * em-folder-browser.c (emfb_set_folder): a really gross hack, disable all search handlers before setting the search and set hte search manually rather than going through the callbacks. Partial fix for #55267, and ugly as it is. (emfb_init): save the search signal id's. (emfb_set_folder): ugh, properly set the defaults if the settings haven't been stored on the folder, and properly move them upstream to the bonobo menus. svn path=/trunk/; revision=25027
* when we sort, handle not having the node in the tree. otherwise we alwaysNot Zed2004-03-112-3/+10
| | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * em-folder-tree-model.c (sort_cb): when we sort, handle not having the node in the tree. otherwise we always compare against "" which puts it at the head of the branch, rather than the tail. See #55428. svn path=/trunk/; revision=25024
* make dnd look funny for joe. #55246.Not Zed2004-03-112-1/+4
| | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (tree_drag_motion): make dnd look funny for joe. #55246. svn path=/trunk/; revision=25023
* change stores hash to point to a structure, in which we maintain theNot Zed2004-03-112-21/+73
| | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * mail-component.c: change stores hash to point to a structure, in which we maintain the vtrash and vjunk folders for the entirety of the session. memory use be damned i guess. #55417 and partially #55391. svn path=/trunk/; revision=25022
* pass the raw header in instead of name and value. (efh_format_headers): ifNot Zed2004-03-1112-71/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_header): pass the raw header in instead of name and value. (efh_format_headers): if we have specific headers to show, iterate over all headers and print out all matching ones, so duplicate headers are properly displayed. Related to #55298. * em-folder-selector.c (em_folder_selector_construct): dont set this to be modal. otherwise you can't click on error popups. duh. 2004-03-08 Not Zed <NotZed@Ximian.com> * em-folder-selection-button.c (em_folder_selection_button_clicked): don't let the user select virtual/vtrash folders or non-selectable folders. * mail-component.c (impl_createControls): disable selection of non-select rows. * em-folder-selector.c (em_folder_selector_create_new): exclude folders with noinferiors set. * em-folder-tree.c (folder_tree_new): add folder tree arg, hook onto the selection funciton for the tree selection. (emft_select_func): selection override function. allow certain things to be excluded. (em_folder_tree_set_excluded): api to set what is excluded from the selectability. (emft_tree_row_activated): call emft_select_func check to see if this row is excluded before emitting an activated signal. * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): save folder info->flags in the tree store. * mail-folder-cache.c (create_folders): use tail recursion. (get_folders): tail recurse. * (*): Fixed for api changes in camel. svn path=/trunk/; revision=25020
* Fix for bug #55298.Jeffrey Stedfast2004-03-112-14/+20
| | | | | | | | | | | | | | | 2004-03-10 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55298. * em-format-html.c (efh_format_header): Now takes a default txt argument (header value). For address/date headers, if this isn't set, default back to the old behaviour of looking it up. (efh_format_headers): If we are iterating thru the camel raw headers, always pas the header value as the txt argument, otherwise always pass NULL. svn path=/trunk/; revision=25015
* Removed an unused variable left over from an old attempted fix.Jeffrey Stedfast2004-03-113-7/+11
| | | | | | | | | | | | | 2004-03-10 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-display.c (efhd_xpkcs7mime_validity_clicked): Removed an unused variable left over from an old attempted fix. * em-folder-selector.c (emfs_response): Select the same folder in the create-folder dialog as is selected in the parent selector dialog. Fixes the rest of bug #53862. svn path=/trunk/; revision=25014
* Partial fix for bug #53862Jeffrey Stedfast2004-03-115-2/+72
| | | | | | | | | | | | | | | | | 2004-03-10 Jeffrey Stedfast <fejj@ximian.com> Partial fix for bug #53862 * em-folder-selector.c (emfs_response): Connect to the newly added "folder-added" signal and save a created_uri string so that we can be sure to only listen for the creation of the folder the user created in *our* create-folder dilog (and not from some other place). * em-folder-tree-model.c (folder_subscribed): Emit a new "folder-added" signal. svn path=/trunk/; revision=25013
* Focus the entry widget. Fixes bug #55330.Jeffrey Stedfast2004-03-112-0/+6
| | | | | | | | | 2004-03-10 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (request_password): Focus the entry widget. Fixes bug #55330. svn path=/trunk/; revision=25012
* ops, put close to the other if branchRadek Doulik2004-03-111-0/+1
| | | | svn path=/trunk/; revision=25011
* (pipe_to_sa_with_error): do not call close, camel_stream_closeRadek Doulik2004-03-112-1/+2
| | | | | | should be enough to be sure the fd was closed svn path=/trunk/; revision=25010
* call camel_stream_close and close the fds[1]Radek Doulik2004-03-112-1/+7
| | | | | | | | | 2004-03-10 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (pipe_to_sa_with_error): call camel_stream_close and close the fds[1] svn path=/trunk/; revision=25009
* New async function to create a folder. (em_folder_tree_create_folder):Jeffrey Stedfast2004-03-092-28/+156
| | | | | | | | | | | | | | 2004-03-08 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_create_folder): New async function to create a folder. (em_folder_tree_create_folder): Partly moved into emft_create_folder. Might be able to remove this code, but lewing might be using it in Connector or something? Need to ask him... (emft_popup_new_folder_response): Use emft_create_folder() instead. svn path=/trunk/; revision=24993
* new method, filter folder with FILTER_SOURCE_JUNKTEST type filterRadek Doulik2004-03-094-5/+37
| | | | | | | | | | | | | | 2004-03-08 Radek Doulik <rodo@ximian.com> * mail-ops.c (mail_filter_junk): new method, filter folder with FILTER_SOURCE_JUNKTEST type filter * em-folder-view.c: added Filter Junk command and junk icons to menus, added apply filters icon to popup menu (emfv_popup_filter_junk): new helper method, calls mail_filter_junk svn path=/trunk/; revision=24991
* Don't set our parent window as the efhd, ehfd isn't even a widget.Jeffrey Stedfast2004-03-065-3/+27
| | | | | | | | | | | | | | | | | 2004-03-05 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-display.c (em_format_html_display_search): Don't set our parent window as the efhd, ehfd isn't even a widget. Fixes bug #54030 * em-format-html-display.c (efhd_search_response): Reset the searching tokeniser on Cancel. * e-searching-tokenizer.c (e_searching_tokenizer_reset): New function to reset a search tokeniser. svn path=/trunk/; revision=24977
* ** See bug #55096.Not Zed2004-03-053-1/+24
| | | | | | | | | | | | | | | | 2004-03-05 Not Zed <NotZed@Ximian.com> ** See bug #55096. * importers/evolution-mbox-importer.c (process_item_fn): hack, unref when complete * importers/evolution-outlook-importer.c (outlook_importer_new): init status lock. (process_item_fn): hack, unref ourselves when we're complete. i think the shell leaks the ref. svn path=/trunk/; revision=24972
* If event == NULL, don't try to use event->key.timeJeffrey Stedfast2004-03-053-5/+58
| | | | | | | | | | | | | | 2004-03-04 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_popup): If event == NULL, don't try to use event->key.time * em-migrate.c (upgrade_vfolder_sources_1_4): New function to upgrade vfolder sources. (em_upgrade_xml_1_4): If the doc is vfolders.xml, upgrade the sources nodes. svn path=/trunk/; revision=24971
* ** See bug #53738.Not Zed2004-03-032-15/+13
| | | | | | | | | | | | 2004-03-03 Not Zed <NotZed@Ximian.com> ** See bug #53738. * mail-ops.c (fetch_mail_fetch): if we've been cancelled, uncancel so syncing can work. and always sync the folder (with expunge if deleting). svn path=/trunk/; revision=24948
* ** See bug #54924.Not Zed2004-03-032-8/+28
| | | | | | | | | | | | 2004-03-03 Not Zed <NotZed@Ximian.com> ** See bug #54924. * em-utils.c (em_utils_selection_set_urilist): Try to get the drop filename from the message subject, or folder name. (em_utils_empty_trash): kill warning. svn path=/trunk/; revision=24946
* ** See bug #54121.Not Zed2004-03-033-10/+57
| | | | | | | | | | | | | | 2004-03-03 Not Zed <NotZed@Ximian.com> ** See bug #54121. * mail-component.c (impl_requestCreateItem) (emc_new_folder_response): Hack in a nastish implementation of create folder for the new menu. (impl__get_userCreatableItems): add 'new mail folder' to new button. svn path=/trunk/; revision=24945
* if we have the folder opened already, and its the outbox, then use theNot Zed2004-03-0312-147/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-03 Not Zed <NotZed@Ximian.com> * em-inline-filter.c (emif_scan): * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): if we have the folder opened already, and its the outbox, then use the total count instead of unread count. Bit of hack, but copies mail-folder-cache stuff. * mail-component.c (mc_add_store): renamed from mail_component_add_store, internal call. Added a done callback. (mc_add_local_store): renamed from mc_add_store, callback for local store. (mail_component_add_store): call mc_add_store to do the work. (mc_add_local_store_done): ugh, the target of all this shit - note all the default folders now they should be setup. * mail-folder-cache.c (mail_note_folder): clean up the logic a bit. was gonna do osmething else but it didn't work. 2004-03-02 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (mail_send): if we're already sending, up the again count to tell it we need to re-send again. (receive_done): if we've been asked to run a send again while we were already running it, run it again to make sure we didn't miss any new messages. See bug #46839. * em-mailer-prefs.c (em_mailer_prefs_construct): update check_incoming_imap changes for merge conflicts. (settings_changed): i have no idea what these changes jeff did do, but check_incoming_imap is no longer needed, so i've deleted most of it. 2004-02-27 Not Zed <NotZed@Ximian.com> * em-format.c (emf_multipart_encrypted, emf_multipart_signed): If validation fails, display as multipart/mixed rather than unkown attachment type, and make the error a little clearer that its an error. See #52939. 2004-02-26 Not Zed <NotZed@Ximian.com> * message-list.c (regen_list_regened): NOOP if the folder has changed. * mail-session.c (mail_session_check_junk_notify): remove check_incoming_imap test. (mail_session_init): " * evolution-mail.schemas.in.in: Remove check_incoming_imap option. * mail-config.glade: Remove check incoming imap checkbox. * em-mailer-prefs.c (em_mailer_prefs_construct): remove check_incoming_imap test. (em_mailer_prefs_apply): " (settings_changed): " svn path=/trunk/; revision=24944
* s/||/&&/. Fixes a dumb bug I introduced yesterday.Jeffrey Stedfast2004-03-032-1/+6
| | | | | | | | | 2004-03-02 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): s/||/&&/. Fixes a dumb bug I introduced yesterday. svn path=/trunk/; revision=24938
* Connect to the folder-activated signal. (folder_activated_cb): CallJeffrey Stedfast2004-03-024-9/+83
| | | | | | | | | | | | | | | | | | 2004-03-01 Jeffrey Stedfast <fejj@ximian.com> * em-folder-selector.c (em_folder_selector_construct): Connect to the folder-activated signal. (folder_activated_cb): Call gtk_dialog_response() with GTK_RESPONSE_OK. Fixes bug #54793. * em-folder-tree.c (emft_tree_row_activated): New callback to emit the "folder-activated" signal which is needed to fix bug #54793. (emft_tree_button_press): Handle button1 double-clicks too (also for bug #54793). (emft_tree_button_press): On right-click, we also want to select the folder the user right-clicked on. Fixes bug #54772. svn path=/trunk/; revision=24928
* Fixed some console warnings from my last commit.Jeffrey Stedfast2004-02-282-27/+20
| | | | | | | | | 2004-02-27 Jeffrey Stedfast <fejj@ximian.com> * em-mailer-prefs.c (em_mailer_prefs_construct): Fixed some console warnings from my last commit. svn path=/trunk/; revision=24914
* removed unused source filesJeffrey Stedfast2004-02-282-196/+0
| | | | svn path=/trunk/; revision=24912
* If gconf_entry_get_value() returns NULL, then it means the key was unsetJeffrey Stedfast2004-02-284-79/+240
| | | | | | | | | | | | | | | | | | | | 2004-02-27 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_setting_notify): If gconf_entry_get_value() returns NULL, then it means the key was unset or something. Don't use g_return_if_fail() for that. First of the lockdown fixes... * em-composer-prefs.c (em_composer_prefs_construct): Same as below. * em-mailer-prefs.c (em_mailer_prefs_construct): Respect locked-down keys by disabling their sensitivity to the user. (settings_changed): Don't re-enable check_incoming_imap if the key is locked. svn path=/trunk/; revision=24911
* Create the arrows in these widgets as GTK_SHADOW_NONE, since the defaultRodney Dawes2004-02-272-1/+9
| | | | | | | | | | | | 2004-02-26 Rodney Dawes <dobey@ximian.com> * em-format-html-display.c (efhd_attachment_button): Create the arrows in these widgets as GTK_SHADOW_NONE, since the default arrow type in GTK+ 2.x is flat triangle arrows, and shadow types are generally ignored for arrows anyway, and so we don't look ugly with themes that handle shadow types on arrows correctly svn path=/trunk/; revision=24901
* Fix for bug #54352Jeffrey Stedfast2004-02-275-15/+41
| | | | | | | | | | | | | | | | | 2004-02-26 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #54352 * em-message-browser.c (emmb_class_init): Set update_message_style to FALSE. * em-folder-view.c (emfv_setting_notify): Only update message display style if our subclass wants us to. (emfv_class_init): Set update_message_style to TRUE. (emfv_view_mode): Don't save the gconf key unless our class allows us to. svn path=/trunk/; revision=24894
* Make sure url->path is non-NULL before setting folder_name to url->path +Jeffrey Stedfast2004-02-272-3/+12
| | | | | | | | | | 2004-02-26 Jeffrey Stedfast <fejj@ximian.com> * em-utils.c (em_utils_folder_name_from_uri): Make sure url->path is non-NULL before setting folder_name to url->path + 1. Could possibly fix bug #54853. svn path=/trunk/; revision=24887
* NOOP if the folder has changed.Not Zed2004-02-261-4/+7
| | | | | | | | | 2004-02-26 Not Zed <NotZed@Ximian.com> * message-list.c (regen_list_regened): NOOP if the folder has changed. svn path=/trunk/; revision=24877
* get rid of a duplicate #includeJeffrey Stedfast2004-02-261-1/+0
| | | | svn path=/trunk/; revision=24875
* Protect against using NULL pixbufs. Gets rid of a lot of console warningJeffrey Stedfast2004-02-262-7/+14
| | | | | | | | | | 2004-02-25 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-display.c (efhd_attachment_button): Protect against using NULL pixbufs. Gets rid of a lot of console warning spewage on my system. svn path=/trunk/; revision=24873
* Removed Delete/KP_Delete from here. Now handled via the bonobo-ui menuJeffrey Stedfast2004-02-262-4/+5
| | | | | | | | | 2004-02-25 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_list_key_press): Removed Delete/KP_Delete from here. Now handled via the bonobo-ui menu accels. Fixes bug #53504. svn path=/trunk/; revision=24870
* set seen flag for junk messages52004-02-262-1/+4
| | | | | | | | | 2004-02-25 <rodo@ximian.com> * mail-session.c (main_get_filter_driver): set seen flag for junk messages svn path=/trunk/; revision=24867
* do not set DELETED52004-02-262-2/+6
| | | | | | | | 2004-02-25 <rodo@ximian.com> * em-folder-view.c (emfv_popup_mark_junk): do not set DELETED svn path=/trunk/; revision=24865
* Removed Apply button. As discussed on IRC, UI doesn't feel we should haveJeffrey Stedfast2004-02-252-81/+7
| | | | | | | | | | 2004-02-24 Jeffrey Stedfast <fejj@ximian.com> * mail-account-editor.c (construct): Removed Apply button. As discussed on IRC, UI doesn't feel we should have an Apply button here. svn path=/trunk/; revision=24857
* Need to listen for changes to S/MIME options, the signature option menu,Jeffrey Stedfast2004-02-253-18/+44
| | | | | | | | | | 2004-02-24 Jeffrey Stedfast <fejj@ximian.com> * mail-account-editor.c (construct): Need to listen for changes to S/MIME options, the signature option menu, and any extra provider-specific config options. Fixes bug #54036. svn path=/trunk/; revision=24852
* Set the SEEN flag as well. (emfv_list_key_press): Removed theJeffrey Stedfast2004-02-253-16/+19
| | | | | | | | | | | | | | 2004-02-24 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_popup_mark_junk): Set the SEEN flag as well. (emfv_list_key_press): Removed the skip-to-next-message logic as this was already being handled in emfv_popup_delete(). Fixes bug #54471. (emfv_enable_menus): Re-enable MessageDelete here. Fixes bug #54770. svn path=/trunk/; revision=24849
* Use the new camel_store_folder_uri_equal() function.Jeffrey Stedfast2004-02-252-37/+9
| | | | | | | | | | 2004-02-24 Jeffrey Stedfast <fejj@ximian.com> * em-utils.c (em_utils_folder_is_drafts): Use the new camel_store_folder_uri_equal() function. (em_utils_folder_is_sent): Same. svn path=/trunk/; revision=24848
* Fix for bug #54057Jeffrey Stedfast2004-02-242-12/+69
| | | | | | | | | | | | | | 2004-02-23 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #54057 * em-utils.c (em_utils_folder_is_sent): Use provider->url_equal() rather than camel_store_uri_cmp() since that function did not do anything close to what it claimed to do. Also use em_uri_to_camel() here on the account sent_folder_uri. (em_utils_folder_is_drafts): Same. svn path=/trunk/; revision=24837
* Protect against NULL uids. (emmb_set_message): Same.Jeffrey Stedfast2004-02-242-1/+8
| | | | | | | | | | 2004-02-23 Jeffrey Stedfast <fejj@ximian.com> * em-message-browser.c (emmb_list_message_selected): Protect against NULL uids. (emmb_set_message): Same. svn path=/trunk/; revision=24834
* Print the headers when forwarding inline/quoted. Fixes bug #53916.Jeffrey Stedfast2004-02-242-6/+211
| | | | | | | | | 2004-02-23 Jeffrey Stedfast <fejj@ximian.com> * em-format-quote.c (emfq_format_message): Print the headers when forwarding inline/quoted. Fixes bug #53916. svn path=/trunk/; revision=24833
* We want UID_LISTs to drop with the MOVE action by default. Fixes a commonJeffrey Stedfast2004-02-242-1/+13
| | | | | | | | | | 2004-02-23 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_motion): We want UID_LISTs to drop with the MOVE action by default. Fixes a common complaint from IRC. svn path=/trunk/; revision=24832
* check mps->protocol != NULL before dereferencing it. See #54406.Not Zed2004-02-232-6/+13
| | | | | | | | | 2004-02-23 Not Zed <NotZed@Ximian.com> * em-format.c (emf_multipart_signed): check mps->protocol != NULL before dereferencing it. See #54406. svn path=/trunk/; revision=24829
* Delete key should always delete, never undelete (bug #53215). Also fixes aJeffrey Stedfast2004-02-212-7/+6
| | | | | | | | | | 2004-02-20 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_list_key_press): Delete key should always delete, never undelete (bug #53215). Also fixes a bug where uids->len was being accessed after uids had been free'd. svn path=/trunk/; revision=24822
* Fix for bug #53997Jeffrey Stedfast2004-02-212-1/+18
| | | | | | | | | | | | | 2004-02-20 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #53997 * em-folder-view.c (emfv_list_message_selected): Ref the emfv before spawning the async event. (emfv_list_done_message_selected): Check emfv->preview != NULL. Also unref the emfv when done. svn path=/trunk/; revision=24820
* Remove the debug message here.Dan Winship2004-02-212-6/+5
| | | | | | * mail-component.c (set_prop): Remove the debug message here. svn path=/trunk/; revision=24818
* fix for vfolder-rule api changes.Not Zed2004-02-202-5/+10
| | | | | | | | | 2004-02-20 Not Zed <NotZed@Ximian.com> * mail-vfolder.c (mail_vfolder_add_uri): fix for vfolder-rule api changes. svn path=/trunk/; revision=24816
* switch the sense of the no select checks. TEST!Not Zed2004-02-202-3/+8
| | | | | | | | | 2004-02-20 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c (unset_folder_info, setup_folder) (rename_folders): switch the sense of the no select checks. TEST! svn path=/trunk/; revision=24813
* wrap code with ENABLE_SMIME instead of HAVE_NSS. (emf_multipart_signed):Chris Toshok2004-02-202-4/+11
| | | | | | | | | | | 2004-02-19 Chris Toshok <toshok@ximian.com> * em-format.c (emf_application_xpkcs7mime): wrap code with ENABLE_SMIME instead of HAVE_NSS. (emf_multipart_signed): same. (type_builtin_table): same. svn path=/trunk/; revision=24811
* Revert previous change, dohRodney Dawes2004-02-202-0/+5
| | | | | | | | 2004-02-19 Rodney Dawes <dobey@ximian.com> * em-folder-tree.c (emft_save_state): Revert previous change, doh svn path=/trunk/; revision=24800
* Don't set the timeout id to 0 and then immediately return FALSE, whichRodney Dawes2004-02-202-1/+5
| | | | | | | | | 2004-02-19 Rodney Dawes <dobey@ximian.com> * em-folder-tree.c (emft_save_state): Don't set the timeout id to 0 and then immediately return FALSE, which tries to remove the timeout svn path=/trunk/; revision=24798
* fix camel provider api changes.Not Zed2004-02-1910-21/+26
| | | | | | | | | | | | | | | | | 2004-02-19 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (get_receive_type): * mail-config.c (mail_config_get_account_by_source_url) (mail_config_get_account_by_transport_url): * mail-component.c (mail_component_load_store_by_uri): * mail-account-gui.c (mail_account_gui_setup) (mail_account_gui_save): * em-utils.c (em_utils_empty_trash, em_uri_from_camel): * em-folder-tree-model.c (account_changed): * em-folder-selector.c (em_folder_selector_get_selected_uri): fix camel provider api changes. svn path=/trunk/; revision=24795
* Changed the name to not imply we are working with a GtkCList widget (sinceJeffrey Stedfast2004-02-193-137/+12
| | | | | | | | | | 2004-02-18 Jeffrey Stedfast <fejj@ximian.com> * em-composer-prefs.c (sig_fill_list): Changed the name to not imply we are working with a GtkCList widget (since we are using a GtkTreeView). svn path=/trunk/; revision=24788
* Pass flags to em_popup_target_new_folder() instead of just an isstore arg.Jeffrey Stedfast2004-02-192-1/+8
| | | | | | | | | | | 2004-02-18 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): Pass flags to em_popup_target_new_folder() instead of just an isstore arg. (emft_tree_button_press): Fake the fi flags for vTrash/vJunk so that em-popup.c can disable the delete flag for these. svn path=/trunk/; revision=24787
* removed a FIXME comment that my last commit fixedJeffrey Stedfast2004-02-191-1/+0
| | | | svn path=/trunk/; revision=24786
* Pass flags to em_popup_target_new_folder() instead of just an isstore arg.Jeffrey Stedfast2004-02-194-33/+58
| | | | | | | | | | | | | | 2004-02-18 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): Pass flags to em_popup_target_new_folder() instead of just an isstore arg. * em-popup.c (em_popup_target_new_folder): Instead of taking an isstore argument, take a flags argument so that our caller can give us hints about the selected folder/store. Also fixed a logic bug from my previous commit. svn path=/trunk/; revision=24785
* Updated for em-popup API change (altho currently passes a dummy value).Jeffrey Stedfast2004-02-195-16/+47
| | | | | | | | | | | | | | | | | | | | | | | | 2004-02-12 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): Updated for em-popup API change (altho currently passes a dummy value). * em-popup.c (em_popup_target_new_folder): Check for vTrash/vJunk by checking the CAMEL_FOLDER_VIRTUAL info flags bit. (perhaps this flag should be renamed to SPECIAL? VIRTUAL might not have been a good name). Also changed to check flags & CAMEL_FOLDER_NOSELECT rather than checking the uri string for a noselect param. * mail-folder-cache.c (unset_folder_info): Instead of checking for ";noselect" in the uri, check for a CAMEL_FOLDER_NOSELECT flag on mfi->flags. (setup_folder): Copy the fi->flags to mfi->flags here. (rename_folders): Same. (setup_folder): Check fi->flags for CAMEL_FOLDER_NOSELECT here instead. (rename_folders): Same. Also gets rid of a FIXME. svn path=/trunk/; revision=24784
* Revert change from yesterday. (efhd_xpkcs7mime_button): Use the icon fromJeffrey Stedfast2004-02-192-23/+9
| | | | | | | | | | 2004-02-18 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-display.c (efhd_xpkcs7mime_validity_clicked): Revert change from yesterday. (efhd_xpkcs7mime_button): Use the icon from the table. svn path=/trunk/; revision=24778
* ** See bug #54492.Not Zed2004-02-182-7/+14
| | | | | | | | | | | | 2004-02-18 Not Zed <NotZed@Ximian.com> ** See bug #54492. * em-folder-tree.c (emft_popup_copy_folder_selected): check the store flags, not the fragment presence to find out if we use the fragment as the path. svn path=/trunk/; revision=24767
* Fix for bug #54060 (except for the "don't let users copy/move messages toJeffrey Stedfast2004-02-185-43/+160
| | | | | | | | | | | | | | | | | | | | | | | 2004-02-17 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #54060 (except for the "don't let users copy/move messages to Outbox" bit). * em-folder-tree.c (emft_drop_target): Rearranged a little. We can check for special dest folders right away. Also added a check for the default local folders (Drafts/Inbox/Outbox/Sent) since we don't want to be able to move them anywhere else (copying is ok). (emft_popup_copy_folder_selected): Don't allow moving any of the default local folders to be consistant with drag&drop changes. (emft_popup_rename_folder): Don't allow the user to rename a default local folder. (emft_popup_delete_folder): Don't allow deletion of special local folders. * mail-component.c (mail_component_peek_local_store): New function to peek the local store. svn path=/trunk/; revision=24765
* Display an alternate description based on the trust value if we have aJeffrey Stedfast2004-02-182-3/+25
| | | | | | | | | | 2004-02-17 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-display.c (efhd_xpkcs7mime_validity_clicked): Display an alternate description based on the trust value if we have a trust to work with. svn path=/trunk/; revision=24764
* Set the hide_deleted bool on EMFolderView.Jeffrey Stedfast2004-02-183-8/+20
| | | | | | | | | | | | | | 2004-02-17 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_hide_deleted): Set the hide_deleted bool on EMFolderView. * em-folder-view.c (emfv_popup_delete): Fix Sarfraaz Ahmed's fix to only jump to the previous message if hide_deleted is set. Otherwise his fix gets extremely irritating. (emfv_list_key_press): Same. svn path=/trunk/; revision=24762
* ** See bug #53914.Not Zed2004-02-172-42/+51
| | | | | | | | | | | | 2004-02-17 Not Zed <NotZed@Ximian.com> ** See bug #53914. * em-utils.c (guess_account): do some extra checks, message source, and source folder. (guess_account_folder): helper to guess account based on folder. svn path=/trunk/; revision=24756
* ** See bug #54200.Not Zed2004-02-175-4/+36
| | | | | | | | | | | | | | | | | | | | | 2004-02-17 Not Zed <NotZed@Ximian.com> ** See bug #54200. * em-popup.c (em_popup_target_new_select): add EM_POPUP_SELECT_FOLDER - to find out if we have a folder at all. Handle getting a NULL folder passed in. * em-folder-view.c (em_folder_view_get_popup_target): Added EM_FOLDER_VIEW_SELECT_FOLDER - to detect when we dont have a folder set on the emfolderview. * em-folder-browser.c (emfb_mark_all_read): if we don't have a folder, dont try and run. (emfb_enable_map[]): Disable a bunch of stuff we have no folder set. svn path=/trunk/; revision=24755
* fix for the weird-arsed e-contact list api. and fix a small memleak.Not Zed2004-02-173-4/+23
| | | | | | | | | 2004-02-17 Not Zed <NotZed@Ximian.com> * importers/pine-importer.c (import_contact): fix for the weird-arsed e-contact list api. and fix a small memleak. svn path=/trunk/; revision=24753
* Make sure the drop-target folder doesn't already contain a folder namedJeffrey Stedfast2004-02-142-5/+10
| | | | | | | | | | | 2004-02-13 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_drop_folder): Make sure the drop-target folder doesn't already contain a folder named identical to the one we are dropping by using the new CAMEL_STORE_FOLDER_EXCL flag. Fixes bug #53810. svn path=/trunk/; revision=24739
* added defaults for composer width/heightRadek Doulik2004-02-132-0/+29
| | | | | | | | | 2004-02-13 Radek Doulik <rodo@ximian.com> * evolution-mail.schemas.in.in: added defaults for composer width/height svn path=/trunk/; revision=24734
* added the code to get the previous mail in a list, if get_next_mail fails.Sarfraaz Ahmed2004-02-132-3/+14
| | | | | | | | | | | 2004-02-11 Sarfraaz Ahmed <asarfraaz@novell.com> * em-folder-view.c (emfv_popup_delete): added the code to get the previous mail in a list, if get_next_mail fails. This is a fix for #54195 (emfv_list_key_press): Same as above svn path=/trunk/; revision=24733
* use mail-importer to import the mail tree, fix the account stuff to talkNot Zed2004-02-138-1174/+988
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-13 Not Zed <NotZed@Ximian.com> * importers/netscape-importer.c: use mail-importer to import the mail tree, fix the account stuff to talk directly to mail config. Added cancel button. etc. This is completely untested apart from compiling with no warnings. * importers/mail-importer.c (import_mbox_import): dont re-use the exception for syncing. * importers/evolution-outlook-importer.c: major reworking. Some platform fixes, runs in another thread, simpler/cleaner main loop. This is completely untested apart from compiling with no warnings. * importers/evolution-mbox-importer.c (support_format_fn): we dont want to check the From_ line case insensitive! (create_control_fn): implement this weird api. 2004-02-12 Not Zed <NotZed@Ximian.com> * importers/elm-importer.c: rewrote all importing stuff. * importers/mail-importer.c (mail_importer_import_folders_sync): split out into a recursive function & entry. Now handles mozilla format stuff with a flag. (import_mbox_import): made the cameloperation properly save/restore multiple registrations. svn path=/trunk/; revision=24732
* use g_find_program_in_path to avoid fork in case program is not availableRadek Doulik2004-02-132-0/+14
| | | | | | | | | | 2004-02-12 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (pipe_to_sa_with_error): use g_find_program_in_path to avoid fork in case program is not available svn path=/trunk/; revision=24724
* Disable the bonobo-ui-component statusbar when using the EMFolderBrowserJeffrey Stedfast2004-02-122-1/+7
| | | | | | | | | | | 2004-02-11 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (mail_control_new): Disable the bonobo-ui-component statusbar when using the EMFolderBrowser outside of the mail component. This prevents the Connector component from having 2 status bars. svn path=/trunk/; revision=24717
* #include <libgnomevfs/gnome-vfs-mime.h> (em_popup_create_menu): WrapJeffrey Stedfast2004-02-122-1/+8
| | | | | | | | | | 2004-02-11 Jeffrey Stedfast <fejj@ximian.com> * em-popup.c: #include <libgnomevfs/gnome-vfs-mime.h> (em_popup_create_menu): Wrap item->label with _() so that the strings get translated properly. svn path=/trunk/; revision=24714
* "On this computer" -> "On This Computer".Christian Neumair2004-02-123-3/+10
| | | | svn path=/trunk/; revision=24713
* Same.Jeffrey Stedfast2004-02-123-2/+37
| | | | | | | | | | 2004-02-11 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-print.c: Same. * em-junk-filter.c: #include <config.h> svn path=/trunk/; revision=24710
* Add license & config.hJeffrey Stedfast2004-02-122-2/+32
| | | | | | | | 2004-02-11 Jeffrey Stedfast <fejj@ximian.com> * em-popup.c: Add license & config.h svn path=/trunk/; revision=24709
* if spamc is not available, try /usr/sbin/spamcRadek Doulik2004-02-122-42/+113
| | | | | | | | | | | | | | | | 2004-02-11 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): if spamc is not available, try /usr/sbin/spamc 2004-02-10 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): try to check if system wide spamd has --local parameter set according to our setting (em_junk_sa_test_spamd): in case we were unable to start our own spamd, try to run it from /usr/sbin before giving up svn path=/trunk/; revision=24706
* call the right recursive function, oops.Not Zed2004-02-113-4/+10
| | | | | | | | | | | | 2004-02-11 Not Zed <NotZed@Ximian.com> * importers/mail-importer.c (mail_importer_import_folders_sync): call the right recursive function, oops. * importers/mail-importer.h: don't include camel-operation.h, but fix up the forward decl usage. svn path=/trunk/; revision=24703
* include camel-operation.hJP Rosevear2004-02-112-0/+6
| | | | | | | | 2004-02-11 JP Rosevear <jpr@ximian.com> * importers/mail-importer.h: include camel-operation.h svn path=/trunk/; revision=24702
* Basically rewrote this, the import tasks run in another thread. It tellsNot Zed2004-02-1121-1115/+903
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-11 Not Zed <NotZed@Ximian.com> * importers/pine-importer.c: Basically rewrote this, the import tasks run in another thread. It tells you more about what's going on, and its cancellable. (pine_store_settings): changed the meaning of the settings slightly, if set it means we've processed them already. * mail-component-factory.c (factory): hook in importer factory callback. 2004-02-10 Not Zed <NotZed@Ximian.com> * importers/*-importer.c: removed module init, just provide a new method. Updates for api changes. * Makefile.am: link mail importers in directly. * mail-importer.c: changed to do stuff in-memory with linked stuff, moved to importers/. * importers/GNOME_Evolution_Mail_Importers.server.in.in: merge all importer .server info's here, point them all to the mailer factory. Removed the others. * importers/Makefile.am: remove Mailer.idl stuff. Move all importers to a single library. svn path=/trunk/; revision=24701
* oops, remove some debugMichael Zucci2004-02-091-3/+0
| | | | svn path=/trunk/; revision=24680
* merged in code from em_folder_tree_model_drag_data_delete.Not Zed2004-02-094-646/+607
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-09 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (tree_drag_data_delete): merged in code from em_folder_tree_model_drag_data_delete. (tree_drag_data_get): similar. (tree_drag_data_received): similar. (drag_text_uri_list): removed, use em_utils_selection_set_urilist in tree_drag_data_get instead. (em_folder_tree_enable_drag_and_drop): merged in em_folder_tree_model_set_drag_drop_types. (tree_drag_motion): merge in drop_possible, handle qualifiers, and return the right type. (em_folder_tree_model_row_drop_target): rename to emft_drop_target, and make private. Beefed up substantially, handles illogical drops, dropping on to special folders and properly handling vfolder uri's (at least within the same tree instance). * em-folder-tree-model.c: Moved all of the DND stuff to em-folder-tree, where it belongs, made it all static. Should allow for some sharing of code too. svn path=/trunk/; revision=24679
* just print the \n after the credits in the same printf, rather than addingNot Zed2004-02-092-5/+9
| | | | | | | | | | 2004-02-09 Not Zed <NotZed@Ximian.com> * em-format-quote.c (emfq_format_message): just print the \n after the credits in the same printf, rather than adding an else. Add a <br> too, otherwise it has no effect. svn path=/trunk/; revision=24675
* Make private (only EMFormatHTMLQuote used it and that class is no longerJeffrey Stedfast2004-02-075-32/+35
| | | | | | | | | | | | | 2004-02-06 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_format_headers): Make private (only EMFormatHTMLQuote used it and that class is no longer in use). (efh_format_message): Updated for above change. * em-format-quote.c (emfq_format_message): Always write a \n after the credits line. svn path=/trunk/; revision=24661
* Set the NO_VIRTUAL flag bit for get_folder_info(). Fixes bug #51887.Jeffrey Stedfast2004-02-072-1/+6
| | | | | | | | | 2004-02-06 Jeffrey Stedfast <fejj@ximian.com> * em-subscribe-editor.c (sub_folderinfo_get): Set the NO_VIRTUAL flag bit for get_folder_info(). Fixes bug #51887. svn path=/trunk/; revision=24657
* move to the next message after mark not junk as wellRadek Doulik2004-02-073-19/+34
| | | | | | | | | | | | | | | | | | | | | 2004-02-06 Radek Doulik <rodo@ximian.com> * em-folder-view.c (emfv_popup_mark_nojunk): move to the next message after mark not junk as well * em-junk-filter.c (em_junk_sa_test_spamd): split into spamassassin and spamd tests (em_junk_sa_is_available): test spamd only if spamd usage enabled (pipe_to_sa_with_error): extended pipe_to_sa, last added parametr specifies return value if an error occured (em_junk_sa_check_junk): don't use /bin/sh -c when running spamassassin, it's not needed and we need to avoid getting 126,127 exit codes from the shell (em_junk_sa_check_junk): pass 0 rv_err to pipe_to_sa_with_error to avoid false positives in case someone removes/uninstalls SA while evolution runs svn path=/trunk/; revision=24651
* split into spamassassin and spamd tests (em_junk_sa_is_available): testRadek Doulik2004-02-062-14/+29
| | | | | | | | | | 2004-02-06 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): split into spamassassin and spamd tests (em_junk_sa_is_available): test spamd only if spamd usage enabled svn path=/trunk/; revision=24647
* ** See bug #53258.Not Zed2004-02-0610-81/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-06 Not Zed <NotZed@Ximian.com> ** See bug #53258. * em-format-html-display.c (efhd_find_handler): force any bonobo handler types to always be inline, even attachments. * em-format.c (em_format_is_inline): use handler flags for special cases, removing all hard-coded types. * em-format.h (EMFormatHandler): add a flags field, so far a flag to set default inline viewing of the content. 2004-02-06 Not Zed <NotZed@Ximian.com> * em-folder-properties.c: include string.h to kill warning. ** See bug #53627. * em-folder-view.c (emfv_popup_mark_junk): changed to work like delete does, jumping to the next message if required, and marking things immediately, then queuing up the junk marking job if required. * mail-ops.c (mail_mark_junk): ugh, this stuff totally can't go accessing messagelist from another thread!!!! Changed so this code only does the junk reporting, not setting flags. UGH! It should be doing this implictly on the folder when you set the flags, or at least when you sync the folder!!! Changed ot use the queued thread. * message-list.c (find_next_undeleted): changed to find next-unhidden, i.e. junk as well as deleted, if we're in hide-deleted mode. (build_tree): always call find_next_undeleted if we have a cursor. (build_flat): same. svn path=/trunk/; revision=24644
* Grab focus on the HTML widget when we displayRodney Dawes2004-02-062-0/+8
| | | | | | | | | | | 2004-02-05 Rodney Dawes <dobey@ximian.com> * em-message-browser.c (emmb_list_message_selected): Grab focus on the HTML widget when we display Fixes #52942 svn path=/trunk/; revision=24639
* Set the new title. (em_message_browser_window_new): Connect to theJeffrey Stedfast2004-02-062-0/+18
| | | | | | | | | | | 2004-02-05 Jeffrey Stedfast <fejj@ximian.com> * em-message-browser.c (emmb_list_message_selected): Set the new title. (em_message_browser_window_new): Connect to the message_selected signal in the message-list widget. Fixes bug #52232. svn path=/trunk/; revision=24638
* Now takes a GdkContext arg... will need this later when we want toJeffrey Stedfast2004-02-064-12/+19
| | | | | | | | | | 2004-02-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (em_folder_tree_model_row_drop_target): Now takes a GdkContext arg... will need this later when we want to re-enable dnd of vfolders. svn path=/trunk/; revision=24637
* Always set the search_state, even if it is NULL (NULL means default/unsetJeffrey Stedfast2004-02-062-4/+6
| | | | | | | | | 2004-02-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_set_folder): Always set the search_state, even if it is NULL (NULL means default/unset state). svn path=/trunk/; revision=24634
* Pass TRUE as wraparound (to both be consistant with prev_flagged and toJeffrey Stedfast2004-02-062-2/+8
| | | | | | | | | | 2004-02-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_mail_next_flagged): Pass TRUE as wraparound (to both be consistant with prev_flagged and to fix bug #48681. svn path=/trunk/; revision=24633
* sync the from folder if we're going to delete it, otherwise we can'tNot Zed2004-02-052-0/+12
| | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_copy_folders__copy): sync the from folder if we're going to delete it, otherwise we can't because its not empty. See #53815. svn path=/trunk/; revision=24631
* hmm, another well tested bit of code ... if you launch another thread youNot Zed2004-02-052-109/+139
| | | | | | | | | | | | | | | | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> * em-folder-tree-model.c (em_folder_tree_model_drag_data_received): hmm, another well tested bit of code ... if you launch another thread you gotta copy the selection since it wont hang around until we're done with it. So copy/parse the selection data into appropriate structures. (drop_folder): just take the async message as an argument, rather than copying half of it to the stack. (drop_text_uri_list, drop_uid_list): replace most args with the thread message. (drop_message_rfc822): removed, now trivial. (emftm_drag_data_received_async__drop): change for changed args, and fix a memleak. (emftm_drag_data_received_async__free): fixed for changed structure. * em-folder-tree.c (em_folder_tree_create_folder): call abort before we unref, aid debugging if we hit it. svn path=/trunk/; revision=24629
* call abort before we unref, aid debugging if we hit it.Not Zed2004-02-055-6/+43
| | | | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (em_folder_tree_create_folder): call abort before we unref, aid debugging if we hit it. * mail-vfolder.c (uri_is_spethal): check for vfolder/vtrash folders. Based on name check and store options. svn path=/trunk/; revision=24626
* Don't allow dropping into a vfolder (store). Fixes bug #53757.Jeffrey Stedfast2004-02-052-11/+20
| | | | | | | | | 2004-02-04 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (em_folder_tree_model_row_drop_target): Don't allow dropping into a vfolder (store). Fixes bug #53757. svn path=/trunk/; revision=24623
* ** See bug #53683.Not Zed2004-02-045-7/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-04 Not Zed <NotZed@Ximian.com> ** See bug #53683. * mail-ops.c (mail_sync_store): new async op to call CamelStore::sync. * mail-component.c (impl_requestQuit): implement, check to see if we can quit, or have open or unsent messages (and are in online mode). (impl_quit): implement. Trigger off a sync of all open stores, and return FALSE until its done. (impl_upgradeFromVersion): fixed the signature to match the idl, killed that warning at last. ** See bug #53832. * em-folder-browser.c (emfb_folder_properties): only show this if we have a uri set. Strictly, the menu item shouldn't be activated. ** See bug #53131. * em-folder-browser.c (em_folder_browser_show_preview): copy the message list's cursor_uid before calling set_message, since it can get freed during setting the message. svn path=/trunk/; revision=24608
* ** See bug #53832.Not Zed2004-02-041-1/+2
| | | | | | | | | | | | 2004-02-04 Not Zed <NotZed@Ximian.com> ** See bug #53832. * em-folder-browser.c (emfb_folder_properties): only show this if we have a uri set. Strictly, the menu item shouldn't be activated. svn path=/trunk/; revision=24605
* ** See bug #53131.Not Zed2004-02-041-2/+6
| | | | | | | | | | | | 2004-02-04 Not Zed <NotZed@Ximian.com> ** See bug #53131. * em-folder-browser.c (em_folder_browser_show_preview): copy the message list's cursor_uid before calling set_message, since it can get freed during setting the message. svn path=/trunk/; revision=24601
* oops, don't ref/unref the gtk_selection_dataJeffrey Stedfast2004-02-041-2/+0
| | | | svn path=/trunk/; revision=24596
* Modified slightly. The model now calls gtk_drag_finish() for us when it isJeffrey Stedfast2004-02-044-81/+139
| | | | | | | | | | | | | | | | 2004-02-03 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_data_received): Modified slightly. The model now calls gtk_drag_finish() for us when it is done. * em-folder-tree-model.c (em_folder_tree_model_drag_data_received): Make this perform camel operations in another thread so we don't block. (em_folder_tree_model_drag_data_get): Updated args to be consistant with drag_data_received. svn path=/trunk/; revision=24595
* handle the sa prefs here, have own gconf client with sa dir addedRadek Doulik2004-02-034-69/+46
| | | | | | | | | | | 2004-02-03 Radek Doulik <rodo@ximian.com> * em-junk-filter.c: handle the sa prefs here, have own gconf client with sa dir added * mail-session.c: removed sa prefs svn path=/trunk/; revision=24578
* Fix for bug #52941Jeffrey Stedfast2004-02-033-4/+83
| | | | | | | | | | | | 2004-02-02 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #52941 * em-message-browser.c (em_message_browser_window_new): Set window size based on previous size; load from gconf if necessary. (window_size_allocate): Save window size changes. svn path=/trunk/; revision=24569
* ** See bug #53549.Not Zed2004-02-023-4/+9
| | | | | | | | | | | | | 2004-02-02 Not Zed <NotZed@Ximian.com> ** See bug #53549. * em-folder-selector.c: Fix handling a parent path of "/". * mail-ops.c (mark_junk_mark): removed the really innacurate cut and paste comment. This has nothing to do with filter_folder. svn path=/trunk/; revision=24565
* ** See bug #52994.Not Zed2004-02-026-208/+331
| | | | | | | | | | | | | | | | | | | | | 2004-02-02 Not Zed <NotZed@Ximian.com> ** See bug #52994. * em-folder-properties.c (em_folder_properties_show): redirect vFolder uri's to the vFolder editor. ** See bug #53502. * em-folder-browser.c (emfb_folder_properties): implement. * em-folder-tree.c (emft_popup_properties): fixed for change below. * em-folder-properties.[ch]: Moved the folder properties window from em-folder-tree.c to its own file. svn path=/trunk/; revision=24564
* god knows what else this'll break.Not Zed2004-02-023-12/+14
| | | | | | | | | | | | | | | | 2004-02-02 Not Zed <NotZed@Ximian.com> ** See bug #53559. * em-folder-tree.c (folder_tree_new): set CAN_FOCUS flag on the folder tree content widget. * em-folder-selector.c (em_folder_selector_construct): Don't wrap the folder tree in a scrolled window. Its already in one ????. (em_folder_selector_construct): dont set can_focus on the folder tree. svn path=/trunk/; revision=24563
* Fixes for bug #53530Bill Zhu2004-02-022-2/+7
| | | | | | | | | | | 2004-02-01 Bill Zhu <bill.zhu@sun.com> Fixes for bug #53530 * em-utils.c (em_utils_redirect_message): Removed the duplicate adding of attachments svn path=/trunk/; revision=24561
* Fixes for bug #53348Jeffrey Stedfast2004-01-314-20/+103
| | | | | | | | | | | | | | | | | | | | | | 2004-01-30 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #53348 * mail-account-gui.c (mail_account_gui_save): Only add the new store to the mail-component if the mail-component doesn't already know about it (ie. only if we are adding a new account). * em-folder-tree-model.c (em_folder_tree_model_add_store): Hash our store-info based on account here. (em_folder_tree_model_init): Listen for account_changed/account_removed signals. (em_folder_tree_model_finalize): Disconnect above handlers. (account_changed): Tear down the account store node and replace it with the new store (assuming it belongs in the tree after the changes). (account_removed): Remove the account store from the tree. svn path=/trunk/; revision=24551
* Get recursive folder listing (needed or folders that haveJeffrey Stedfast2004-01-312-1/+5
| | | | | | | | | | 2004-01-30 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_row_expanded): Get recursive folder listing (needed or folders that have as-of-yet-unloaded-subfolders that contain unread mail will not be bolded). Fixes bug #51045. svn path=/trunk/; revision=24544
* Fix for bug #53195.Jeffrey Stedfast2004-01-312-7/+25
| | | | | | | | | | | 2004-01-30 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #53195. * em-folder-browser.c (emfb_set_folder): Restore search_state. (emfb_search_search_activated): Save search_state. svn path=/trunk/; revision=24543
* ** See bug #53549, partial fix.Not Zed2004-01-304-1/+26
| | | | | | | | | | | | | | | | | | 2004-01-30 Not Zed <NotZed@Ximian.com> ** See bug #53549, partial fix. * em-folder-selector.c (emfs_create_name_activate): only emit the ok response if the ok button would be active (i.e. entered a valid path). ** See bug #52992. * message-list.c (message_list_hide_clear): save the hide state after its been cleared, so any popup windows inherit it. (message_list_hide_uids): same. svn path=/trunk/; revision=24534
* ** See bug #53123.Not Zed2004-01-302-35/+43
| | | | | | | | | | | | | | 2004-01-30 Not Zed <NotZed@Ximian.com> ** See bug #53123. * em-folder-tree-model.c (drop_folder): changed to take store and dest folder as arg, to handle the case of the parent folder being "" properly. (em_folder_tree_model_drag_data_received): special case dropping a folder, and don't allow dropping to "" for any other types. svn path=/trunk/; revision=24533
* ** See bug #53558 (plus other fixes/cleanups)Not Zed2004-01-307-285/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-30 Not Zed <NotZed@Ximian.com> ** See bug #53558 (plus other fixes/cleanups) * em-format.c (emf_format_secure): default implementation, handle output of inner part, but dont output any sign/encrypt info. (emf_multipart_signed, emf_multipart_encrypted): replaced with implementations from em-format-html.c, which now call em_format_format_secure to output guts. (emf_class_init): hook-up virtual method format_secure. * em-format.[ch]: add a virtual method for outputing secured parts. Moved all validity stuff from em-format-html.[ch] to here. * mail-component.c (impl_createControls): set the session interactive too. * em-format-html-display.c: make smime stuff dependent on HAVE_NSS. (efhd_multipart_signed, efhd_application_xpkcs7mime): removed, now handled by root class. (efhd_output_secure): renamed to efhd_format_secure, and use EMFormat::format_secure to kick off. (efhd_class_init): setup format_secure virtual method. * em-format-html.c (efh_multipart_encrypted): We need to handle this here so we can properly keep track of the ciphervalidity stuff. Also do it directly using the context, not multipartencrypted part. (efh_multipart_signed): with unsupported signature format, format as multipart/mixed, not as an attachment. (efh_multipart_signed): make the smime stuff optional. (efh_multipart_signed, efh_multipart_encrypted): Moved to em-format.c. (efh_application_xpkcs7mime): moved to em-format.c (efh_output_secure): renamed to efh_format_secure, linked into virtual method. call parent class to do the validation foo then output the info if needed. (efh_format_message): fixed access to validity stuff to parent object. (efh_class_init): hook up format_secure virtual method. (*): removed some now-unused headers. svn path=/trunk/; revision=24531
* removed CAMEL_PROVIDER_IS_EXTERNAL check likewise likewiseNicel KM2004-01-294-8/+10
| | | | | | | | | 2004-01-29 Nicel KM <mnicel@novell.com> * mail-component.c: removed CAMEL_PROVIDER_IS_EXTERNAL check * mail-account-gui.c: likewise * mail-offline-handler.c: likewise svn path=/trunk/; revision=24517
* Fixes a bug i can't find right nowNot Zed2004-01-295-4/+41
| | | | | | | | | | | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> * em-format-html-display.c (efhd_attachment_button): check the snooped type for the icon/etc. (efhd_format_attachment): save the snooped type in the attach_puri. * em-format-html.c (efh_text_plain): If we had a snooped type, use that as the base type, rather than octet-stream, which will cause an attachment in attachment loop. * em-format.c (em_format_part_as): save the current snooped mime type in a stack if we had any. svn path=/trunk/; revision=24515
* ** See bug #53320 and probably othersNot Zed2004-01-294-54/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* If the store is already in the model, remove it and then re-add it. FixesJeffrey Stedfast2004-01-292-14/+8
| | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (em_folder_tree_model_add_store): If the store is already in the model, remove it and then re-add it. Fixes bug #53422. svn path=/trunk/; revision=24498
* And thus completes the fixes for bug #52766.Jeffrey Stedfast2004-01-293-28/+30
| | | | | | | | | | | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> And thus completes the fixes for bug #52766. * em-folder-tree.c (tree_drag_drop): Don't call gtk_drag_get_data() manually here or we end up getting 2 drag-data-received callbacks which is Not Good (tm). * em-folder-tree-model.c (drop_folder): Now takes a moved argument to specify whether or not the contents were moved (the move argument is just a hint). (drop_uid_list): Same. (em_folder_tree_model_drag_data_received): Updated for the above api changes. svn path=/trunk/; revision=24497
* ** See bug #53179Not Zed2004-01-284-18/+49
| | | | | | | | | | | | | | | 2004-01-28 Not Zed <NotZed@Ximian.com> ** See bug #53179 * mail-tools.c (mail_tool_get_local_movemail_path): Fix the movemail path. * mail-component.c (load_accounts): hack alert! * mail-send-recv.c (get_receive_type): hack alert! hardcode mbox: to be a movemail source. svn path=/trunk/; revision=24486
* ref folder from mail_component_get_folder.Not Zed2004-01-283-1/+11
| | | | | | | | | | | | 2004-01-28 Not Zed <NotZed@Ximian.com> * mail-send-recv.c (setup_send_data): ref folder from mail_component_get_folder. * mail-ops.c (fetch_mail_fetch): ref the folder we get from mail_component_get_folder since it doesn't ref it. svn path=/trunk/; revision=24485
* Removed unneeded debug printfs.Jeffrey Stedfast2004-01-283-15/+10
| | | | | | | | | | | | | | | 2004-01-27 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Removed unneeded debug printfs. * em-folder-tree.c (tree_drag_data_received): Use gtk_tree_view_get_dest_row_at_pos() instead of gtk_tree_view_get_path_at_pos() since this is what Nautilus uses. Unfortunately, it still gives us back the wrong GtkTreePath so it looks to me like Gtk+ is borked. Apparently you need the latest and greatest gtk+-2.3.x cvs snapshot for this to work. svn path=/trunk/; revision=24482
* Use gtk_tree_view_get_dest_row_at_pos() instead ofJeffrey Stedfast2004-01-283-8/+13
| | | | | | | | | | | | | | | 2004-01-27 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_data_received): Use gtk_tree_view_get_dest_row_at_pos() instead of gtk_tree_view_get_path_at_pos() since this is what Nautilus uses. Unfortunately, it still gives us back the wrong GtkTreePath so it looks to me like Gtk+ is borked. * em-migrate.c (em_migrate_imap_caches_1_4): Copy the imap cache into the right place. Duh. svn path=/trunk/; revision=24477
* Copy the imap cache into the right place. Duh.Jeffrey Stedfast2004-01-282-1/+6
| | | | | | | | | 2004-01-27 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_imap_caches_1_4): Copy the imap cache into the right place. Duh. svn path=/trunk/; revision=24470
* ** See bug #53084 and others.Not Zed2004-01-2717-309/+413
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fix the parent-finding logic.Not Zed2004-01-274-46/+31
| | | | | | | | | | | | | | | | | | | 2004-01-27 Not Zed <NotZed@Ximian.com> * em-folder-tree-model.c (folder_renamed): fix the parent-finding logic. 2004-01-23 Not Zed <NotZed@Ximian.com> * mail-component.c (mail_component_init): add the offline handler interface to the component. (store_go_online, go_online): removed, handled by the offline handler. * mail-offline-handler.c (store_go_online): add the store to the tree model when we go online. svn path=/trunk/; revision=24459
* Fixes for bug #53251.Jeffrey Stedfast2004-01-273-9/+63
| | | | | | | | | | | | | | | | | 2004-01-26 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #53251. * mail-account-gui.c (mail_account_gui_new): Convert the account drafts/sent folder uris to camel uris. (mail_account_gui_save): Convert drafts/sent camel uris into mailer uris when setting them on the account. Also, don't compare against file: anymore since those uris don't exist anymore. * em-migrate.c (em_upgrade_accounts_1_4): Update the drafts/sent folder uris. svn path=/trunk/; revision=24452
* Set priv->drag_row.Jeffrey Stedfast2004-01-273-8/+38
| | | | | | | | 2004-01-26 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (tree_drag_begin): Set priv->drag_row. svn path=/trunk/; revision=24447
* Update default mailboxAaron Weber2004-01-272-4/+461
| | | | svn path=/trunk/; revision=24442
* removed some debugging printfsJeffrey Stedfast2004-01-271-4/+1
| | | | svn path=/trunk/; revision=24441
* Use FOLDER_INFO_FAST bitflag here, since we don't care about unread countsJeffrey Stedfast2004-01-272-3/+11
| | | | | | | | | | | | 2004-01-26 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_copy_folders__copy): Use FOLDER_INFO_FAST bitflag here, since we don't care about unread counts when copying folders around. (emft_popup_delete_folders): Same. (emft_tree_row_expanded): Don't use FOLDER_INFO_FAST here. svn path=/trunk/; revision=24440
* translate DEMAND to INCOMING to get the right rulesRadek Doulik2004-01-273-1/+13
| | | | | | | | | | | | | 2004-01-26 Radek Doulik <rodo@ximian.com> * mail-session.c (main_get_filter_driver): translate DEMAND to INCOMING to get the right rules * mail-ops.c (mail_filter_on_demand): use FILTER_SOURCE_DEMAND Fixes #53266 svn path=/trunk/; revision=24436
* Updated some .cvsignore files.Christian Neumair2004-01-261-0/+2
| | | | svn path=/trunk/; revision=24424
* Cast the name entry to a GtkWidget to avoid a compiler warning Grab focusRodney Dawes2004-01-253-1/+11
| | | | | | | | | | | | | 2004-01-25 Rodney Dawes <dobey@ximian.com> * em-folder-selector.c (em_folder_selector_create_new): Cast the name entry to a GtkWidget to avoid a compiler warning * em-folder-tree.c (emft_popup_new_folder): Grab focus on the name entry when we show the dialog (#53089) Fixes #53089 svn path=/trunk/; revision=24423
* Removed the drag & drop interfaces, apparently these aren't good enoughJeffrey Stedfast2004-01-244-528/+693
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-23 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (em_folder_tree_model_get_type): Removed the drag & drop interfaces, apparently these aren't good enough for what we need. Gotta implement this all the Hard Way (tm). (em_folder_tree_model_drag_data_received): Helper function called by the drag_data_received signal callback in em-folder-tree.c (em_folder_tree_model_row_drop_possible): Same idea. (em_folder_tree_model_row_drop_target): Again. (em_folder_tree_model_row_draggable): You get the idea... (em_folder_tree_model_drag_data_get): And again. (em_folder_tree_model_drag_data_delete): Same. (em_folder_tree_model_set_drag_drop_types): Setup the drag & drop types on the widget (since the target drag & drop types are now internal to the model code rathr than the tree code). * em-folder-tree.c (em_folder_tree_enable_drag_and_drop): Rewritten. Connect to all the drag & drop signals and implemnent them. svn path=/trunk/; revision=24393
* remove a typo from the beginning of this fileDan Winship2004-01-241-1/+1
| | | | svn path=/trunk/; revision=24392
* add the control id to the factory.Larry Ewing2004-01-242-2/+9
| | | | | | | | | 2004-01-23 Larry Ewing <lewing@ximian.com> * mail-component-factory.c (factory): add the control id to the factory. svn path=/trunk/; revision=24390
* Handle where the file: url is roken (ie, points to a location out of theJeffrey Stedfast2004-01-242-1/+13
| | | | | | | | | | 2004-01-23 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (upgrade_xml_uris_1_4): Handle where the file: url is roken (ie, points to a location out of the evolution namespace). svn path=/trunk/; revision=24388
* Set the mnemonic widget for "Folder _name:"Rodney Dawes2004-01-242-0/+7
| | | | | | | | | | 2004-01-23 Rodney Dawes <dobey@ximian.com> * em-folder-selector.c: Set the mnemonic widget for "Folder _name:" Fixes #53088 svn path=/trunk/; revision=24387
* use mail_session_get_sa_daemon_portRadek Doulik2004-01-249-8/+262
| | | | | | | | | | | | | | | | | | | | | 2004-01-23 Radek Doulik <rodo@ximian.com> * em-junk-filter.c: use mail_session_get_sa_daemon_port * em-mailer-prefs.c (em_mailer_prefs_construct): added check_incoming_imap (em_mailer_prefs_apply): ditto (settings_changed): set check_incoming_imap sensitivity by check_incoming state * mail-session.c: add sa_daemon_port (mail_session_init): init sa_daemon_port and check_junk_for_imap (mail_session_check_junk_notify): watch for sa_daemon_port and check_junk_for_imap (mail_session_get_sa_daemon_port): new wrapper (mail_session_set_sa_daemon_port): ditto svn path=/trunk/; revision=24382
* Oops, when calling spamassassin rather than spamc, we need to invokeJeffrey Stedfast2004-01-232-6/+15
| | | | | | | | | | | 2004-01-22 Jeffrey Stedfast <fejj@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): Oops, when calling spamassassin rather than spamc, we need to invoke /bin/sh -c since spamassassin is a shell script. (em_junk_sa_check_junk): Same. svn path=/trunk/; revision=24372
* Fixes bug #53175.Jeffrey Stedfast2004-01-232-196/+196
| | | | | | | | | | | | | | | | | | 2004-01-22 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #53175. * em-junk-filter.c (pipe_to_sa): Don't need an argc (we don't even seem to use it??). (em_junk_sa_test_spamd_running): Don't invoke /bin/sh. (em_junk_sa_test_spamd): Simplified, also don't invoke /bin/sh. (em_junk_sa_check_junk): Cleaned up/simplified. Also don't invoke /bin/sh. (em_junk_sa_report_junk): Same. (em_junk_sa_report_notjunk): Same. (em_junk_sa_commit_reports): Same. svn path=/trunk/; revision=24370
* See bug #53051 + + * em-subscribe-editor.c (subscribe_set_store): fix typoGary Ekker2004-01-232-1/+7
| | | | | | | | See bug #53051 + + * em-subscribe-editor.c (subscribe_set_store): fix typo in label svn path=/trunk/; revision=24368
* uncomment system wide spamd testRadek Doulik2004-01-222-11/+28
| | | | | | | | | | | | | | 2004-01-22 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_test_spamd): uncomment system wide spamd test 2004-01-20 Radek Doulik <rodo@ximian.com> * em-junk-filter.c: lock report calls by em_junk_sa_report_lock mutex svn path=/trunk/; revision=24364
* Migrate the ETree expanded state files as well as the GalView files.Jeffrey Stedfast2004-01-223-42/+283
| | | | | | | | | | | | | 2004-01-21 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_1_4): Migrate the ETree expanded state files as well as the GalView files. * message-list.c: s/hide_save_state/save_hide_state/g and s/hide_load_state/load_hide_state/g to be more consistant with the other state saving function names. svn path=/trunk/; revision=24356
* use camel_mkdir(0777) rather than 0777 & st.st_mode which isn't setNot Zed2004-01-212-19/+46
| | | | | | | | | | | | | 2004-01-21 Not Zed <NotZed@Ximian.com> * em-migrate.c (cp_r): use camel_mkdir(0777) rather than 0777 & st.st_mode which isn't set anyway. (cp): use simple 0666 for the mode open, and then chmod after. (cp): check the return code of close, not just fsync. (cp): dont use fd[0] and fd[1] when we really just want simple variables, rename to readfd and writefd. svn path=/trunk/; revision=24347
* ** See bug #53159.Not Zed2004-01-214-17/+36
| | | | | | | | | | | | | | | | | | | | | | 2004-01-21 Not Zed <NotZed@Ximian.com> ** See bug #53159. * em-format.c (emf_message_rfc822): removed incorrect comment, this is not a fallback. * em-format-html.c (efh_text_plain): check the content-type of the containee object, not the holder. ** See bug #52979. * em-format-html.c: take out text/x-patch and put in text/* for a text/plain fallback handler instead. * em-format-html-display.c (efhd_find_handler): allow the bonobo handlers to override the builtin ones. svn path=/trunk/; revision=24341
* oopsJeffrey Stedfast2004-01-211-1/+1
| | | | svn path=/trunk/; revision=24335
* New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAPJeffrey Stedfast2004-01-212-0/+12
| | | | | | | | | | | | 2004-01-20 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_imap_caches_1_4): New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAP cache. Fixes bug #52985. (em_migrate_1_4): Copy over the searches.xml file. Fixes bug #52980. svn path=/trunk/; revision=24332
* fixed a type-o that omehow made it in between building and committingJeffrey Stedfast2004-01-211-2/+1
| | | | svn path=/trunk/; revision=24331
* New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAPJeffrey Stedfast2004-01-212-3/+82
| | | | | | | | | | 2004-01-20 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_imap_caches_1_4): New function to migrate the imap cache. (em_migrate_1_4): Migrate the IMAP cache. Fixes bug #52985. svn path=/trunk/; revision=24330
* Changed the logic of the visibility of the passwd text so that we hid etheJeffrey Stedfast2004-01-212-1/+7
| | | | | | | | | | 2004-01-20 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (request_password): Changed the logic of the visibility of the passwd text so that we hid ethe passwd if the flags have the SECRET bit set. svn path=/trunk/; revision=24328
* ** See Bug #52817.Not Zed2004-01-202-13/+23
| | | | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> ** See Bug #52817. * mail-session.c (request_password, do_get_pass, get_password): Fix for api changes to camel_session_get_password. (request_password): if we have a STATIC password, don't show any 'remember' checkbox. svn path=/trunk/; revision=24324
* Make displayed_uid public.Not Zed2004-01-208-17/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> * em-folder-view.c (EMFolderView): Make displayed_uid public. * em-folder-browser.c (em_folder_browser_show_preview): use em_folder_view_set_message rather than message_list_select_uid. When clearing, clear view->displayed_uid too. 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52965. * mail-component.c (mail_component_init): removed an epfixme, it already is an object. (impl_upgradeFromVersion): call mail_note_store after running the upgrade for local folders. * em-migrate.c (em_migrate): revert the vfolders.xml after we've imported them. * mail-vfolder.c (vfolder_revert): new api to re-load the vfolders file. svn path=/trunk/; revision=24322
* ** See bug #52885.Not Zed2004-01-202-6/+26
| | | | | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52885. * em-folder-browser.c (emfb_create_view_menus): unref the view instance/menu's rather than asserting, if they exist. (emfb_set_folder): call create_view_menu's rather than create_view_instance, so the view menu's are properly setup. (emfb_set_folder): call superclass first. svn path=/trunk/; revision=24320
* ** See bug #53028.Not Zed2004-01-202-1/+10
| | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #53028. * message-list.c (on_selection_changed_cmd): emit the cursor_activated if more than 1 item is selected also. svn path=/trunk/; revision=24319
* ** See bug #52990.Not Zed2004-01-203-3/+8
| | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52990. * mail-component.c (mail_component_init): re-enable auto-send-recv setup. svn path=/trunk/; revision=24318
* ** See bug #52989.Not Zed2004-01-202-6/+21
| | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52989. * message-list.c (hide_load_state): clear the hidden table if setup, before loading. svn path=/trunk/; revision=24316
* pasted bug #Radek Doulik2004-01-201-0/+2
| | | | svn path=/trunk/; revision=24308
* path to gtkhtml's rc file (config_write_style): use MAIL_CONFIG_RC_DIRRadek Doulik2004-01-202-2/+9
| | | | | | | | | | 2004-01-19 Radek Doulik <rodo@ximian.com> * mail-config.c (MAIL_CONFIG_RC_DIR): path to gtkhtml's rc file (config_write_style): use MAIL_CONFIG_RC_DIR (mail_config_init): ditto svn path=/trunk/; revision=24307
* removed this like i asked radek to ages ago, just call the parentNot Zed2004-01-196-34/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * mail-ops.c (add_vjunk_info, add_vtrash_info): removed this like i asked radek to ages ago, just call the parent directly. (add_vtrash_or_vjunk_info): renamed to something saner. add_special_info. (add_special_info): removed the 'unread count' parameter & return the added info. ** See bug #52854. * em-folder-tree.c (emft_tree_button_press): setup a FOLDER target for the popup menu. * em-popup.c (em_popup_target_free): implement free for TARGET_FOLDER, changed the target options somewhat. (em_popup_target_new_folder): implement folder selection target. Total Hack(tm) alert. (emp_standard_menu_factory): removed the stupid g_assert_if_not_reached() call. * message-list.c (message_list_destroy): NULL out the uid_nodemap when we destroy it. svn path=/trunk/; revision=24302
* get the toplevel widget here too, similar to bug 52161.Not Zed2004-01-193-7/+25
| | | | | | | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * em-folder-browser.c (emfb_folder_expunge): get the toplevel widget here too, similar to bug 52161. ** See bug #52956 * em-composer-prefs.c (sig_edit_cb): The fileentry_add_script_script widget is a GnomeFileEntry not a GtkEntry. (sig_add_script_response): use get_full_path rather than snooping the gtkentry. Also, don't close/quit the script dialogue on a bad name. svn path=/trunk/; revision=24301
* if we can't open the pop3 cache dir, because it doesn't exist, it is notNot Zed2004-01-194-119/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * em-migrate.c (em_upgrade_pop_uid_caches_1_4): if we can't open the pop3 cache dir, because it doesn't exist, it is not an error. ** See bug #52983. * mail-component.c (em_uri_from_camel, em_uri_to_camel): Handle vfolder: uri's properly. And make sure local uri's are properly encoded. (mail_component_get_folder_from_evomail_uri) (mail_component_evomail_uri_from_folder): removed, no longer used. (em_uri_from_camel): don't leak the camelurl. (d): disable debug * mail-vfolder.c (vfolder_load_storage): move the vfolder storage location to ~/.evolution/mail/vfolder rather than ~/.evolution/mail (this is currently unused anyway). (uri_is_ignore): short-circuit exit if we find a match. (mail_vfolder_add_uri): dont exit immediately if we have a vfolder uri, but don't add it to local/remove either. (mail_vfolder_delete_uri): remove any uri from the local/remote source list while we're at it. svn path=/trunk/; revision=24300
* properly decode the mailto url rather than treating it as a simple string.Not Zed2004-01-193-6/+34
| | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_on_url_cb): properly decode the mailto url rather than treating it as a simple string. * em-format-html.c (efh_format_address): if we have a name part, add it to the mailto part. As per rfc2368. So it isn't lost for clicking/etc. svn path=/trunk/; revision=24298
* pass in an exception to useJP Rosevear2004-01-172-1/+6
| | | | | | | | | 2004-01-16 JP Rosevear <jpr@ximian.com> * em-format-html-display.c (efhd_bonobo_object): pass in an exception to use svn path=/trunk/; revision=24286
* removed evolution-mbox-upgrade.c from the buildJeffrey Stedfast2004-01-172-429/+0
| | | | svn path=/trunk/; revision=24282
* Dump a struct _camel_header_address to an html string.Jeffrey Stedfast2004-01-172-4/+57
| | | | | | | | | | | | 2004-01-16 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_format_address): Dump a struct _camel_header_address to an html string. (efh_format_header): Use efh_format_address() and set the EM_FORMAT_HTML_HEADER_HTML bit on the flags so we don't re-convert our html string into html. svn path=/trunk/; revision=24280
* s/g_fre/g_free/Jeffrey Stedfast2004-01-173-17/+23
| | | | | | | | | | | | | 2004-01-16 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (mail_vfolder_rename_uri): s/g_fre/g_free/ * em-utils.c (guess_account): Change 'tmp' to not be const - fixes a compile warning. (em_utils_expunge_folder): Cast parent to a GtkWindow. (em_utils_empty_trash): Same. svn path=/trunk/; revision=24279
* updatedJeffrey Stedfast2004-01-171-1/+1
| | | | svn path=/trunk/; revision=24276
* fixed changelogJeffrey Stedfast2004-01-171-1/+3
| | | | svn path=/trunk/; revision=24275
* Oops, still need to stat() the src file so we can report what percentageJeffrey Stedfast2004-01-172-1/+7
| | | | | | | | | 2004-01-16 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Oops, still need to stat() the src file so we can report what percentage of the file has been completed so far. svn path=/trunk/; revision=24274
* Move 'message_list->folder = folder;' out of the uri compare if-block andJeffrey Stedfast2004-01-162-12/+17
| | | | | | | | | | | | 2004-01-16 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_set_folder): Move 'message_list->folder = folder;' out of the uri compare if-block and move it into the if-block that tests that folder != NULL. (regen_list_regen): Abort if the regen folder is not the same as the ml->folder. svn path=/trunk/; revision=24273
* cvsignoreJeffrey Stedfast2004-01-162-0/+4
| | | | svn path=/trunk/; revision=24272
* change this to check the store using the provider url_cmp and just lookupNot Zed2004-01-165-25/+103
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-16 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c (storeinfo_find_folder_info): change this to check the store using the provider url_cmp and just lookup the folder name directly. folder_compare can't be used for uri's, this stuff was so broken, my fault :( ** See bug #52467. * em-folder-tree-model.c (sort_cb): handle null path (root?). * mail-vfolder.c (mail_vfolder_add_uri): map uri to euri before processing. (rule_changed): map uri to camel uri before looking up. (mail_vfolder_delete_uri): handle as euri internally. (mail_vfolder_rename_uri): " * mail-autofilter.c (vfolder_rule_from_message): map camel uri to euri before setting as vfolder source. svn path=/trunk/; revision=24266
* Startup files/folders.Not Zed2004-01-167-17/+113
| | | | | | | | | | | | | | | | | | | | | | | 2004-01-16 Not Zed <NotZed@Ximian.com> * default/C/Inbox: * default/C/Makefile.am: * default/Makefile.am: Startup files/folders. * em-migrate.c (emm_setup_initial): initial implementation of startup setup. (cp): Fix the test, we want exists AND size>0, not exists OR size>0. (cp): Fix the open, we can't use O_EXCL with empty, but present files. Another hack fix for #52880. ** See bug #52896. * em-format-html-display.c (efhd_html_button_press_event): do this based on get_object_at rather than get_point_at, so we get the offset properly. svn path=/trunk/; revision=24261
* oopsJeffrey Stedfast2004-01-161-1/+1
| | | | svn path=/trunk/; revision=24259
* fixed a type-oJeffrey Stedfast2004-01-161-1/+1
| | | | svn path=/trunk/; revision=24258
* Make vfolder_store 'global'.Jeffrey Stedfast2004-01-163-5/+39
| | | | | | | | | | | | 2004-01-15 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c: Make vfolder_store 'global'. * em-folder-tree-model.c (sort_cb): Fix bug #12600 by not sorting VFolders (ie. show them in the same order they appear in the editor). svn path=/trunk/; revision=24257
* Fixes bug #52888Jeffrey Stedfast2004-01-162-2/+52
| | | | | | | | | | | | | 2004-01-15 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #52888 * em-folder-tree-model.c (sort_cb): New sort function for the folder-tree. (em_folder_tree_model_init): Set the default sort func. (em_folder_tree_model_new): Set the default sort column. svn path=/trunk/; revision=24255
* Make the model sorted. Fixes bug #52888.Jeffrey Stedfast2004-01-162-9/+39
| | | | | | | | | 2004-01-15 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (em_folder_tree_model_new): Make the model sorted. Fixes bug #52888. svn path=/trunk/; revision=24254
* oops, add major, minor, revision args to g_warningJeffrey Stedfast2004-01-161-4/+6
| | | | svn path=/trunk/; revision=24253
* Don't select the first unread mesg in the case where no mesg wasJeffrey Stedfast2004-01-162-1/+7
| | | | | | | | | | | | | | | | 2004-01-15 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_list_built): Don't select the first unread mesg in the case where no mesg was previously selected. Fixes bug #52887 until we are able to add a user preference (for 2.2?). * em-migrate.c (cp): Only abort the copy if the dest folder both exists and contains data. Fixes bug #52880. (em_migrate): Abort if config.xmldb cannot be loaded. Fixes bug #52886. svn path=/trunk/; revision=24252
* Only abort the copy if the dest folder both exists and contains data.Jeffrey Stedfast2004-01-162-2/+11
| | | | | | | | | | | 2004-01-15 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Only abort the copy if the dest folder both exists and contains data. Fixes bug #52880. (em_migrate): Abort if config.xmldb cannot be loaded. Fixes bug #52886. svn path=/trunk/; revision=24251
* Only abort the copy if the dest folder both exists and contains data.Jeffrey Stedfast2004-01-162-1/+8
| | | | | | | | | 2004-01-15 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Only abort the copy if the dest folder both exists and contains data. Fixes bug #52880. svn path=/trunk/; revision=24250
* removed ForgetPasswords verb. (emfb_forget_passwords): removed.Rodrigo Moya2004-01-162-8/+5
| | | | | | | | | 2004-01-15 Rodrigo Moya <rodrigo@ximian.com> * em-folder-browser.c: removed ForgetPasswords verb. (emfb_forget_passwords): removed. svn path=/trunk/; revision=24245
* ** See bug #52891.Not Zed2004-01-152-2/+9
| | | | | | | | | | | 2004-01-15 Not Zed <NotZed@Ximian.com> ** See bug #52891. * em-format-html.c (em_format_html_get_type): protect against http cache not being able to be created. svn path=/trunk/; revision=24236
* ** See bug #52878.Not Zed2004-01-152-3/+23
| | | | | | | | | | | | 2004-01-15 Not Zed <NotZed@Ximian.com> ** See bug #52878. * em-folder-view.c (emfv_finalise): unhook message_changed too. (emfv_set_folder): hook/unhook message_changed too. (emfv_message_changed): implement, proxy to folder_changed. svn path=/trunk/; revision=24235
* ** See bugs #51609 and #43515.Not Zed2004-01-156-3/+102
| | | | | | | | | | | | | | | | | | 2004-01-15 Not Zed <NotZed@Ximian.com> ** See bugs #51609 and #43515. * em-format-html-display.c (efhd_format_prefix): output flag for followup details above the message. (efhd_write_image): added to output icon data. * em-format-html.c (efh_format_do): call format_prefix before outputting the message in normal display mode. * em-format.c (emf_format_prefix): method called to format data before the first message output. Default impl == noop. svn path=/trunk/; revision=24230
* Add a description for /apps/evolution/mail/junk/sa/local_only.Jeremy Katz2004-01-152-0/+11
| | | | | | | | | 2004-01-14 Jeremy Katz <katzj@redhat.com> * evolution-mail.schemas.in.in: Add a description for /apps/evolution/mail/junk/sa/local_only. svn path=/trunk/; revision=24228
* Split out the remapping code into e-util/e-bconf-map.[c,h] to be sharedJeffrey Stedfast2004-01-152-529/+140
| | | | | | | | | 2004-01-14 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c: Split out the remapping code into e-util/e-bconf-map.[c,h] to be shared among components. svn path=/trunk/; revision=24221
* ** See bug 51660.Not Zed2004-01-1413-90/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-14 Not Zed <NotZed@Ximian.com> ** See bug 51660. * em-format-html-quote.c (efhq_multipart_related): setup part_id appropriately. * em-format-html-display.c (efhd_output_secure): use part_id in classid, and add .signed to part_id for subpart. (efhd_bonobo_unknown): use part_id in classid. (efhd_format_attachment): use part_id in classid's. * em-format-html.c (efh_multipart_related) (emfh_multipart_related_check): setup part_id for each subpart. (efh_output_secure): as above, and use the part_id for the classid. (em_format_html_add_pobject): use part_id for a generated classid. (efh_text_plain): setup pseudo-parts into part_id. * em-format.c (emf_format_clone): setup the part_id base, folder + uid. (emf_finalise): free the part_id gstring. (emf_init): allocate the part_id gstring. (em_format_add_puri): build the cid from the part_id rather than an arbitrary number, so it is more persistent. Also save the part_id in the puri for multipart/related use. (emf_multipart_mixed, emf_multipart_alternative) (emf_multipart_appledouble, emf_multipart_encrypted) (emf_multipart_related, emf_multipart_signed): Set the part_id for each subpart. (emf_clear_puri_node): free part_id. 2004-01-13 Not Zed <NotZed@Ximian.com> ** See bug 51660. * em-format-html-print.c (em_format_html_print_print): dont take message, get the message from the source formatter. * em-format.c (emf_format_clone): Added folder and uid parameters, changed camelmedium to a mimemessage. * em-format-html-display.c (efhd_attachment_button): check the icon image cache and if the image is there use it. * em-icon-stream.c (em_icon_stream_get_image): api to lookup finished images in cache. (em_icon_stream_new): add a cache key arg. (emis_sync_close): store the image in the cache once its completed. svn path=/trunk/; revision=24210
* Pass the parent window, fixing a crasher. Bug #52161.Ross Burton2004-01-141-2/+2
| | | | | | | | | 2004-01-13 Ross Burton <ross@burtonini.com> * em-folder-browser.c (emfb_empty_trash): Pass the parent window, fixing a crasher. Bug #52161. svn path=/trunk/; revision=24209
* s/<= 0/== 0/Jeffrey Stedfast2004-01-141-1/+1
| | | | svn path=/trunk/; revision=24207
* Handle upgrading from 1.0.x and 1.2.x (code basically moved verbatim fromJeffrey Stedfast2004-01-144-159/+1485
| | | | | | | | | | | | 2004-01-13 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate): Handle upgrading from 1.0.x and 1.2.x (code basically moved verbatim from e_config_upgrade). * mail-component.c (impl_upgradeFromVersion): Move all the major/minor/revision logic into em_migrate(). svn path=/trunk/; revision=24206
* support for posting both to mail and to (multiple) foldersMeilof Veeningen2004-01-1313-107/+534
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* use mail_session_get_sa_use_daemonRadek Doulik2004-01-132-1/+4
| | | | | | | | | 2004-01-12 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (em_junk_sa_check_junk): use mail_session_get_sa_use_daemon svn path=/trunk/; revision=24176
* added SA prefs (mail_session_get_sa_local_only): new helper methodRadek Doulik2004-01-138-79/+182
| | | | | | | | | | | | | | | | | | | | | | 2004-01-12 Radek Doulik <rodo@ximian.com> * mail-session.c: added SA prefs (mail_session_get_sa_local_only): new helper method (mail_session_set_sa_local_only): ditto (mail_session_get_sa_use_daemon): ditto (mail_session_set_sa_use_daemon): ditto (mail_session_check_junk_notify): fix the key comparison (mail_session_init): add gconf dir so that we get notified * mail-config.glade: added SA preferences * em-mailer-prefs.c (em_mailer_prefs_construct): added more junk prefs (em_mailer_prefs_apply): ditto * em-junk-filter.c: use preferences svn path=/trunk/; revision=24174
* fix up the controls factory location.Larry Ewing2004-01-133-15/+104
| | | | | | | | | | | | | | 2004-01-12 Larry Ewing <lewing@ximian.com> * GNOME_Evolution_Mail.server.in.in: fix up the controls factory location. * mail-component.c (mail_control_new): add new interface for getting a mail control with a folder_uri property bag. (get_prop): pbag get method. (set_prop): pbag set method. svn path=/trunk/; revision=24171
* Don't O_TRUNC the dest file, instead use O_EXC and don't do anything ifJeffrey Stedfast2004-01-122-1/+8
| | | | | | | | | | | 2004-01-11 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp): Don't O_TRUNC the dest file, instead use O_EXC and don't do anything if the dest file already exists (this way we don't re-migrate an mbox or corrupt any summary/ibex/meta files). svn path=/trunk/; revision=24165
* ** See bug 52737.Not Zed2004-01-122-1/+8
| | | | | | | | | | | 2004-01-12 Not Zed <NotZed@Ximian.com> ** See bug 52737. * em-format-html.c (efh_text_plain): treat text/* as inline content from the made-up multipart. svn path=/trunk/; revision=24159
* add total + unread counts to properties page.Not Zed2004-01-121-6/+34
| | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_popup_properties_got_folder): add total + unread counts to properties page. svn path=/trunk/; revision=24158
* ** See bug 52696.Not Zed2004-01-092-2/+12
| | | | | | | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> ** See bug 52696. * mail-component.c (setup_search_context): move the searches to ~/.evolution/mail/searches.xml (migration?). (setup_search_context): fix a merge error, vfoldertypes.xml->searchtypes.xml since it includes the system searches now. svn path=/trunk/; revision=24127
* add total + unread counts to properties page.Not Zed2004-01-093-2/+11
| | | | | | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_popup_properties_got_folder): add total + unread counts to properties page. * em-utils.c (filter_editor_response): * mail-vfolder.c (vfolder_editor_response): change for rule editor changes, ACCEPT->OK. svn path=/trunk/; revision=24125
* bugfixesMichael Zucci2004-01-091-0/+19
| | | | svn path=/trunk/; revision=24122
* keep the windows charset filter around until we're done since if we set itNot Zed2004-01-094-8/+25
| | | | | | | | | | | | | | | | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> * em-format.c (em_format_format_text): keep the windows charset filter around until we're done since if we set it up we reference its memory. Causes warnings and breaks message display. ** See bug #52637. * em-inline-filter.c (em_inline_filter_new): added a content-type paramter for the base content type. (em_inline_filter_finalize): free base content type. (emif_types[]): Added 'plain' parameter, indicates type needs plain parameters set on content type. (emif_add_part): inherit the full base type if it is set, for plain parts. * em-format-html.c (efh_text_plain): pass the part's content-type to the inline filter. svn path=/trunk/; revision=24121
* ** See bug #50786Not Zed2004-01-084-2/+22
| | | | | | | | | | | | | | | 2004-01-08 Not Zed <NotZed@Ximian.com> ** See bug #50786 * GNOME_Evolution_Mail.server.in.in: Remove :: from startup wizard iid, and put the mail wizard into the right factory. * mail-component.c (impl_requestCreateItem, impl_handleURI): * em-folder-browser.c (emfb_mail_compose): check we have an account before trying to send mail. svn path=/trunk/; revision=24104
* s/addressbook/address bookAaron Weber2004-01-081-1/+1
| | | | svn path=/trunk/; revision=24097
* Don't migrate stuff here anymore.Jeffrey Stedfast2004-01-084-57/+164
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-07 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (mail_component_init): Don't migrate stuff here anymore. * mail-ops.c (uid_cachename_hack): Removed a hack that checked for the really old uid cache location and make the uid cache live in a better location (why have mail/pop/<account> and mail/pop3/cache-<account>? simply put the cache file in mail/pop/<account>/uid-cache). * em-migrate.c (em_migrate_dir): When copying over mbox folders, don't abort if we fail to copy over a summary file (big whoop). Also, if indexing was turned on in the evolution 1.4 version of the folder, turn on indexing for that folder in the migrated mbox folder as well. (em_migrate_pop_uid_caches): Migrate the pop3 uid-cache files. Fixes bug #52464. (em_migrate): Call em_migrate_pop_uid_caches(). svn path=/trunk/; revision=24094
* Removed. (efh_format_header): Handle address formatting a littleJeffrey Stedfast2004-01-082-90/+118
| | | | | | | | | | | 2004-01-07 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_format_address): Removed. (efh_format_header): Handle address formatting a little differently to address dwmw's complaints. Also now handles other headers such as Resent-* and Sender as well. svn path=/trunk/; revision=24090
* as belowRadek Doulik2004-01-073-2/+9
| | | | | | | | | | | 2004-01-07 Radek Doulik <rodo@ximian.com> * em-message-browser.c (emmb_init): as below * em-folder-browser.c (emfb_init): always show vertical scrollbar, we do the same for message list and it avoids ugly flicker svn path=/trunk/; revision=24088
* Emit a hover-url signal when the user mouses over a URL, ...ERDI Gergo2004-01-076-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-04 ERDI Gergo <cactus@cactus.rulez.org> * em-folder-view.c (emfv_on_url_cb): Emit a hover-url signal when the user mouses over a URL, ... (emfv_hover_url_impl): ... and use BonoboUI to change the status bar message... (em_folder_view_set_statusbar): ... unless we are asked not to, ... * mail-component.c (impl_createControls): ... like in the case of the mail component, ... (view_hover_url_cb): ... that uses the ActivityHandler to do the same Add these together, and #127536 is neatly solved. 2004-01-05 ERDI Gergo <cactus@cactus.rulez.org> * e-task-bar.c (init): Create a separate label to the left of the progress messages... (e_task_bar_message): ...and allow components to set it... * e-activity-handler.c (e_activity_handler_message): ...through this new ActivityHandler method svn path=/trunk/; revision=24086
* Protect against a NULL message-info. Afaik, this can only happen if theJeffrey Stedfast2004-01-062-3/+11
| | | | | | | | | | | 2004-01-06 Jeffrey Stedfast <fejj@ximian.com> * em-message-browser.c (emmb_set_message): Protect against a NULL message-info. Afaik, this can only happen if the message has since been removed? Might be a larger problem here... Anyways, fixes the crash in bug #52297. svn path=/trunk/; revision=24066
* Clone the CamelRenameInfo and ref the store before emitting the asyncJeffrey Stedfast2004-01-062-47/+95
| | | | | | | | | | | | | | | | | 2004-01-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (folder_renamed_cb): Clone the CamelRenameInfo and ref the store before emitting the async event. (folder_deleted_cb): Same idea but for CamelFolderInfo's. (folder_created_cb): Here too. (folder_subscribed_cb): Same. (folder_unsubscribed_cb): And here. (folder_renamed): Split out from folder_rename_cb(), free the CamelRenameInfo and unref the store when done. (folder_unsubscribed): Same idea. (folder_subscribed): Same. svn path=/trunk/; revision=24062
* add NULL at the end of argv for execvp (poited out by Frank Solensky,Radek Doulik2004-01-062-11/+23
| | | | | | | | | 2004-01-05 Radek Doulik <rodo@ximian.com> * em-junk-filter.c: add NULL at the end of argv for execvp (poited out by Frank Solensky, thanks) svn path=/trunk/; revision=24059
* Check that the folder isn't NULL (ie. no folder is selected). Fixes bugJeffrey Stedfast2004-01-063-1/+16
| | | | | | | | | | | | 2004-01-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_list_message_selected): Check that the folder isn't NULL (ie. no folder is selected). Fixes bug #52207. * message-list.c (message_list_set_folder): Remove the cursor-activated idle callback. svn path=/trunk/; revision=24054
* Set the send/recv dialog to non-modal. Fixes bug #50127.Jeffrey Stedfast2004-01-062-18/+23
| | | | | | | | | 2004-01-05 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (build_dialog): Set the send/recv dialog to non-modal. Fixes bug #50127. svn path=/trunk/; revision=24053
* If we aren't in the main thread, proxy it over to the main thread.Jeffrey Stedfast2004-01-062-8/+41
| | | | | | | | | | | | | | | | | 2004-01-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (folder_subscribed_cb): If we aren't in the main thread, proxy it over to the main thread. (folder_unsubscribed_cb): Same. (folder_created_cb): Here too. (folder_deleted_cb): And here. (folder_renamed_cb): Again here. * em-folder-view.c (emfv_set_folder_uri): Pass mail_thread_queued to mail_get_folder() instead of mail_thread_new so that we eliminate a race when switching folders in the UI. svn path=/trunk/; revision=24050
* Pass mail_thread_queued to mail_get_folder() instead of mail_thread_new soJeffrey Stedfast2004-01-062-2/+8
| | | | | | | | | | 2004-01-05 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_set_folder_uri): Pass mail_thread_queued to mail_get_folder() instead of mail_thread_new so that we eliminate a race when switching folders in the UI. svn path=/trunk/; revision=24045
* ** See bug #50996.Not Zed2004-01-054-5/+63
| | | | | | | | | | | | | | | 2004-01-05 Not Zed <NotZed@Ximian.com> ** See bug #50996. * em-format-html-display.c (efhd_find_handler): implement override for unknown types, try bonobo handlers. (efhd_bonobo_unknown): formathandler for bonobo objects. * em-format.c (em_format_find_handler): make virtual, rename to emf_find_handler. svn path=/trunk/; revision=24043
* s/it's/its/ in mail warning.David Woodhouse2004-01-052-1/+5
| | | | svn path=/trunk/; revision=24036
* Implemented; sets an image attachment as the GNOME wallpaper.David Moore2003-12-224-3/+132
| | | | | | | | | | | | | | 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
* Merge in evolution-mail-message-display.xml first, since it is the parentRodney Dawes2003-12-192-2/+8
| | | | | | | | | | 2003-12-18 Rodney Dawes <dobey@ximian.com> * em-message-browser.c (emmb_init): Merge in evolution-mail-message-display.xml first, since it is the parent UI XML, really fixes bug #49949 svn path=/trunk/; revision=23984
* #ifdef out certain code pieces if s/mime isn't supportedJP Rosevear2003-12-172-0/+14
| | | | | | | | | 2003-12-16 JP Rosevear <jpr@ximian.com> * em-format-html-display.c: #ifdef out certain code pieces if s/mime isn't supported svn path=/trunk/; revision=23950
* Fix erroneous function callJP Rosevear2003-12-152-1/+8
| | | | | | | | | | | 2003-12-14 JP Rosevear <jpr@ximian.com> * em-folder-tree.c (emft_tree_row_collapsed): Fix erroneous function call Fixes #52120 svn path=/trunk/; revision=23939
* put the style in .evolution.Not Zed2003-12-123-1/+11
| | | | | | | | | | | | | 2003-12-12 Not Zed <NotZed@Ximian.com> * mail-config.c (config_write_style): put the style in .evolution. ** See bug #52023. * message-list.c (message_list_select_uid): noop if we've been destroyed (foldre == NULL). svn path=/trunk/; revision=23932
* ** See bug #52108.Not Zed2003-12-124-0/+16
| | | | | | | | | | | | | | | | 2003-12-12 Not Zed <NotZed@Ximian.com> ** See bug #52108. * em-format.c (em_format_is_attachment): also recognise application/pkcs7-mime for mailers who like to make up their own standards. * em-format-html.c (type_builtin_table[]): * em-format-html-display.c (type_builtin_table[]): make recognise application/pkcs7-mime too. svn path=/trunk/; revision=23931
* get the build moving again. add CERT_UI_CFLAGS here for the time being.Chris Toshok2003-12-122-0/+6
| | | | | | | | | 2003-12-11 Chris Toshok <toshok@ximian.com> * Makefile.am (INCLUDES): get the build moving again. add CERT_UI_CFLAGS here for the time being. svn path=/trunk/; revision=23929
* Fixes bug #1717.Jeffrey Stedfast2003-12-122-23/+67
| | | | | | | | | | | | | | | | | | | | 2003-12-11 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #1717. * em-folder-browser.c (emfb_list_built): If we have a uid to select, select that instead of selecting the first unread. (emfb_set_folder): CamelObject::meta_get() actually returns a strdup'd buffer, so we need to free it. Get the last selected uid and set that up as the uid to select when the message-list finishes building. (emfb_list_message_selected): Save the selected uid. (emfb_init): Connect to the message-list's message_selected signal so that we can save selected state (don't want to do this in EMFolderView or MessageList because we don't want the state to be saved for the EMMessageBrowser). svn path=/trunk/; revision=23928
* Shorten the namespace of some internal functions to just emft.Jeffrey Stedfast2003-12-122-4/+7
| | | | | | | | | | | 2003-12-11 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c: Shorten the namespace of some internal functions to just emft. (emft_popup_delete_rec): Don't delete the contents of a folder if it is a vFolder. Fixes bug #52029. svn path=/trunk/; revision=23927
* Shorten the namespace of some internal functions to just emft.Jeffrey Stedfast2003-12-123-119/+154
| | | | | | | | | | | | | | 2003-12-11 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c: Shorten the namespace of some internal functions to just emft. * em-mailer-prefs.c (em_mailer_prefs_construct): Use newv() here and pass an array of GTypes - makes it simpler to change the order of columns later and/or add new columns if we need to. Also makes the line shorter :-) svn path=/trunk/; revision=23926
* display x-evolution-mailer pseudo header irrespective of xmailer_mask.Grahame Bowland2003-12-117-7/+690
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-11 Grahame Bowland <grahame@angrygoats.net> * em-format-html.c (efh_format_header): display x-evolution-mailer pseudo header irrespective of xmailer_mask. This is now handled by a header configuration dialog. * mail-config.glade: add tab to mail configuration dialog to allow custom headers to be specified for display. * em-mailer-prefs.h: modify struct _EMMailerPrefs to add widgets for custom header tab. Add defines for custom header flags. Add struct EMMailerCustomHeader to describe custom headers, and add function em_mailer_custom_headers_from_xml to allow XML from gconf key to be parsed into this structure. * em-folder-view.c (emfv_setting_notify): catch changes to custom header gconf key and update mail view to correspond * em-mailer-prefs.c (em_mailer_prefs_apply): save custom headers to gconf (header_list_enabled_toggled): toggle clicked toggle column (add_header): add header to custom header list if valid (remove_header): remove selected custom header (is_valid_header): return true if passed header is valid, otherwise false (entry_header_changed): call add_header_update_sensitivity (em_mailer_prefs_construct): initialise header selection tab. Load gconf data for header selection dialog. (em_mailer_custom_header_to_xml): load a header structure from XML document structure (em_mailer_custom_header_from_xml): load a header structure from a string containing valid XML. if any failure, the header.name is set to NULL. (header_list_row_selected): call remove_header_update_sensitivity (remove_header_update_sensitivity): set the sensitivity of the remove button to FALSE if the list is empty or nothing is selected. Otherwise, set it to TRUE. (add_header_update_sensitivity): set the sensitivity of the the add button to FALSE if the entry box is empty, contains a duplicate header, or contains an invalid header. Otherwise, set it to TRUE. * evolution-mail.schemas.in.in: add mail/display/headers svn path=/trunk/; revision=23924
* (efh_text_enriched): add table around the enriched part so itLarry Ewing2003-12-112-2/+12
| | | | | | matches html and text modes. svn path=/trunk/; revision=23922