aboutsummaryrefslogtreecommitdiffstats
path: root/mail
Commit message (Collapse)AuthorAgeFilesLines
* dded a needed #includeJeffrey Stedfast2004-04-201-0/+1
| | | | svn path=/trunk/; revision=25535
* added a needed #includeJeffrey Stedfast2004-04-201-0/+1
| | | | svn path=/trunk/; revision=25534
* Use E_ICON_SIZE_* enums for the menu icon sizes.Jeffrey Stedfast2004-04-202-5/+8
| | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c: Use E_ICON_SIZE_* enums for the menu icon sizes. svn path=/trunk/; revision=25531
* Use E_ICON_SIZE_* enums for the menu/toolbar icon sizes.Jeffrey Stedfast2004-04-202-36/+39
| | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c: Use E_ICON_SIZE_* enums for the menu/toolbar icon sizes. svn path=/trunk/; revision=25530
* Same.Jeffrey Stedfast2004-04-2011-21/+41
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (construct): Same. * message-list.c (message_list_init_images): Same. * mail-send-recv.c (build_dialog): Same. * mail-mt.c (do_op_status): Same. * mail-config-druid.c (evolution_mail_config_wizard_new): Same. * em-popup.c (em_popup_create_menu): Same. * em-format-html-display.c (efhd_format_prefix): Same. * em-format-html.c (efh_format_secure): Same as below. * em-folder-tree.c (render_pixbuf): Don't use absolute icon sizes, use the e-icon-factory enums. svn path=/trunk/; revision=25527
* get rid of mark_pixbuf, it's not even suedJeffrey Stedfast2004-04-202-6/+0
| | | | svn path=/trunk/; revision=25524
* Removed variables that got re-added with the icon-theme patch somehow.Jeffrey Stedfast2004-04-206-19/+16
| | | | | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * em-composer-prefs.h: Removed variables that got re-added with the icon-theme patch somehow. * em-account-prefs.c: Don't bother keeping global references to the enable_pixbuf anymore, since it's unnecessary. svn path=/trunk/; revision=25523
* mail-component.cMichael Terry2004-04-1921-217/+241
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Michael Terry <mike@mterry.name> * GNOME_Evolution_Mail.server.in.in: * em-account-prefs.[ch]: * em-composer-prefs.[ch]: * em-folder-browser.c: * em-folder-tree.c: * em-folder-view.c: * em-format-html-display.c: * em-format-html.[ch]: * em-popup.c: * mail-component.c * mail-config-druid.c: * mail-config.glade: * mail-mt.c: * mail-send-recv.c: * message-list.c: * message-tag-followup.c: * message-tags.glade: Update the mailer to use icon themes through the EIconFactory object in e-util svn path=/trunk/; revision=25517
* Removed unused and uninitialised "url" local that gets g_free-edDavid Malcolm2004-04-192-2/+6
| | | | | | | | | 2004-04-16 David Malcolm <dmalcolm@redhat.com> * importers/netscape-importer.c (netscape_import_accounts): Removed unused and uninitialised "url" local that gets g_free-ed svn path=/trunk/; revision=25507
* Work in progress, HIG'ing and de-coupling of errors.Michael Zucci2004-04-161-0/+293
| | | | svn path=/trunk/; revision=25493
* Change the message display widget names to match the ones we are using inJeffrey Stedfast2004-04-162-3/+10
| | | | | | | | | | 2004-04-15 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (config_write_style): Change the message display widget names to match the ones we are using in 1.5 (rather than the ones from earlier versions). Fixes bug #57070. svn path=/trunk/; revision=25490
* Added a new "message_list_scrolled" signal so our users can listen to thisJeffrey Stedfast2004-04-153-11/+33
| | | | | | | | | | | 2004-04-14 Jeffrey Stedfast <fejj@ximian.com> * message-list.c: Added a new "message_list_scrolled" signal so our users can listen to this event in order to update saved state. (message_list_get_scrollbar_position): Simplified. (message_list_set_scrollbar_position): Simplified. svn path=/trunk/; revision=25470
* Don't complain about message errors ("Internal Error: ..."), insteadJeffrey Stedfast2004-04-152-5/+6
| | | | | | | | | | 2004-04-14 Jeffrey Stedfast <fejj@ximian.com> * em-format.c: Don't complain about message errors ("Internal Error: ..."), instead silently fall back to display the message as source. Fixes bug #56876. svn path=/trunk/; revision=25464
* ugh, use the queued thread to get the folder, otherwise we can get foldersNot Zed2004-04-145-11/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-14 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_set_folder_uri): ugh, use the queued thread to get the folder, otherwise we can get folders set on the display out of order. * message-list.c (message_list_set_search): if we set this while frozen, save the search elsewhere. (message_list_thaw): if we had a frozen-time search, use it when we regenerate. * em-folder-browser.c (emfb_set_folder): freeze/thaw the messagelist around changes so we don't have multiple updates fire off changing folders. (emfb_activate): remove an unused variable i never used. * message-list.c (message_list_freeze, message_list_thaw): lock some updates to the ui, so you can do things like set folder and search atomically. (message_list_set_threaded, message_list_set_hidedeleted) (message_list_set_search, message_list_hide_uids) (message_list_hide_clear, message_list_set_folder): dont refresh the list if we're frozen. svn path=/trunk/; revision=25458
* remove debug comment.Not Zed2004-04-145-12/+73
| | | | | | | | | | | | | | | | | | 2004-04-14 Not Zed <NotZed@Ximian.com> * mail-component.c (impl_createControls): remove debug comment. ** See #56641. * em-format-html-display.c (efhd_format_secure): fix a small memleak. (efhd_bonobo_unknown, efhd_format_attachment): close the <object> tag properly, and <br> it as well to make sure its separated. * em-sync-stream.c: add some runtime and compile time stream logging stuff. svn path=/trunk/; revision=25457
* ** See bug #56149.Not Zed2004-04-145-44/+26
| | | | | | | | | | | | | | | | | | 2004-04-14 Not Zed <NotZed@Ximian.com> ** See bug #56149. * em-folder-view.c (emfv_edit_cut): similar to below, use focus to determine who we select from. (emfv_edit_copy): ditto. * message-list.c: Remove primary selection stuff. It just annoys. * em-folder-browser.c (emfb_edit_copy): use focus rather than selection owner to determine who to copy from. (emfb_edit_cut): similarly. svn path=/trunk/; revision=25455
* hmm, use the right pointer when iterating the pending uri list.Not Zed2004-04-142-5/+9
| | | | | | | | | 2004-04-14 Not Zed <NotZed@Ximian.com> * em-format.c (emf_multipart_related): hmm, use the right pointer when iterating the pending uri list. svn path=/trunk/; revision=25454
* We don't actually want to disallow clicking on \NoSelect folders. Fixes aJeffrey Stedfast2004-04-142-1/+5
| | | | | | | | | | 2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * mail-component.c (impl_createControls): We don't actually want to disallow clicking on \NoSelect folders. Fixes a bug campd has been complaining to me about :-) svn path=/trunk/; revision=25449
* argh. don't expand/fillJeffrey Stedfast2004-04-141-4/+4
| | | | svn path=/trunk/; revision=25444
* If we get an empty charset string from gconf, don't try to use the resultJeffrey Stedfast2004-04-142-3/+10
| | | | | | | | | | 2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_signature_run_script): If we get an empty charset string from gconf, don't try to use the result to create a charset filter. Real fix for bug #51924. svn path=/trunk/; revision=25443
* upped the defult timeout to 10 minutes rather than 1Jeffrey Stedfast2004-04-141-1/+1
| | | | svn path=/trunk/; revision=25441
* Removed crackrock usage of GtkFixed as fillter. Also HIGified some otherJeffrey Stedfast2004-04-142-413/+393
| | | | | | | | | 2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * mail-config.glade: Removed crackrock usage of GtkFixed as fillter. Also HIGified some other stuff. svn path=/trunk/; revision=25440
* enabled some unread-count debug spewageJeffrey Stedfast2004-04-142-3/+3
| | | | svn path=/trunk/; revision=25439
* track the messagelist hidedeleted value since it looks it up when we setNot Zed2004-04-145-17/+70
| | | | | | | | | | | | | | | | | | | | | 004-04-13 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_set_folder): track the messagelist hidedeleted value since it looks it up when we set the folder. * em-folder-browser.c (emfb_hide_deleted): use new method below to propagate change. (emfb_activate): same. * em-folder-view.c (em_folder_view_set_hide_deleted): accessor to set the hide_deleted state, emits a view_changed event. * mail-component.c (view_changed_cb): use VISIBLE rather than TOTAL for the displayed total count. Also deleted if we're not in hide deleted mode. And do spethal things with spethal folders, etc. svn path=/trunk/; revision=25438
* run this in the thread_queued_slow, so it runs in sequence and afterNot Zed2004-04-133-1/+8
| | | | | | | | | | | | 2004-04-13 Not Zed <NotZed@Ximian.com> * mail-ops.c (mail_refresh_folder): run this in the thread_queued_slow, so it runs in sequence and after folder_sync. * em-folder-view.c (emfv_set_folder): fire off a refresh_folder once the folder is loaded. Addresses #56871. svn path=/trunk/; revision=25431
* reset load_http_now once we've done, should fix #56338 finally.Not Zed2004-04-132-0/+3
| | | | | | | | | | 2004-04-13 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_done): reset load_http_now once we've done, should fix #56338 finally. svn path=/trunk/; revision=25430
* use %% for %%.Not Zed2004-04-135-14/+31
| | | | | | | | | | | | | | | | | | | | | | | | 2004-04-13 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_headers): use %% for %%. * em-folder-view.c (emfv_init, emfv_finalise, emfv_activate): revert dans' creatable items handler patch, moved to mail-component instead (which deals with the actual menu's). * mail-component.c (impl_createControls): setup a user creatable items handler on the view widget. (view_control_activate_cb): activate the user creatable items handler on the view widget. * em-folder-view.c (emfv_init): add a comment about jeff's last fix. * em-utils.c (forward_non_attached): Set attachments from forwardee before we set the body, otherwise images wont resolve properly. Related to #56566. svn path=/trunk/; revision=25428
* Need to set the session on the preview object. Fixes bug #56862.Jeffrey Stedfast2004-04-132-1/+6
| | | | | | | | | 2004-04-12 Jeffrey Stedfast <fejj@ximian.com> * em-folder-view.c (emfv_init): Need to set the session on the preview object. Fixes bug #56862. svn path=/trunk/; revision=25419
* Scroll to the auto-selected folder. Fixes bug #56707.Jeffrey Stedfast2004-04-132-0/+4
| | | | | | | | | 2004-04-12 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (em_folder_tree_set_selected): Scroll to the auto-selected folder. Fixes bug #56707. svn path=/trunk/; revision=25418
* New function. (message_list_set_scrollbar_position): New function.Jeffrey Stedfast2004-04-133-0/+27
| | | | | | | | | | | | | 2004-04-12 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_get_scrollbar_position): New function. (message_list_set_scrollbar_position): New function. * em-utils.c (em_uri_to_camel): If the provider is unavailable, return euri like the other fail cases. Fixes bug #56846. svn path=/trunk/; revision=25417
* If the provider is unavailable, return euri like the other fail cases.Jeffrey Stedfast2004-04-122-2/+8
| | | | | | | | | 2004-04-12 Jeffrey Stedfast <fejj@ximian.com> * em-utils.c (em_uri_to_camel): If the provider is unavailable, return euri like the other fail cases. Fixes bug #56846. svn path=/trunk/; revision=25415
* Updated Spanish translation.Francisco Javier F. Serrador2004-04-102-1/+6
| | | | | | | | 2004-04-10 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * es.po: Updated Spanish translation. svn path=/trunk/; revision=25406
* Don't bother adding the autogen sig here, e-signature-list.c handles thisJeffrey Stedfast2004-04-103-11/+44
| | | | | | | | | | | | 2004-04-09 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_init): Don't bother adding the autogen sig here, e-signature-list.c handles this now. * em-migrate.c (em_upgrade_accounts_1_4): Migrate the signature uids. Fixes bug #56726. svn path=/trunk/; revision=25404
* use e_destination_export_to_vcard_attribute instead of exporting to xml,Chris Toshok2004-04-104-34/+46
| | | | | | | | | | | | | | | | | | | 2004-04-09 Chris Toshok <toshok@ximian.com> * importers/pine-importer.c (import_contact): use e_destination_export_to_vcard_attribute instead of exporting to xml, and use e_contact_set_attributes. * em-utils.c (em_utils_camel_address_to_destination): EABDestination -> EDestination. (reply_get_composer): same (post_reply_to_message): same. * em-composer-utils.c (ask_confirm_for_unwanted_html_mail): EABDestination -> EDestination. (composer_get_message): same. svn path=/trunk/; revision=25392
* add width=16 height=16 to rupert's image so that it doesn't flicker/moveRadek Doulik2004-04-102-1/+6
| | | | | | | | | 2004-04-09 Radek Doulik <rodo@ximian.com> * em-format-html.c (efh_format_headers): add width=16 height=16 to rupert's image so that it doesn't flicker/move svn path=/trunk/; revision=25385
* Set the excluded bits on the folder-tree. Don't allow the user to xferJeffrey Stedfast2004-04-102-0/+8
| | | | | | | | | | | 2004-04-09 Jeffrey Stedfast <fejj@ximian.com> * em-folder-selection.c (em_select_folder): Set the excluded bits on the folder-tree. Don't allow the user to xfer messages into folders which are: NoSelect, Virtual, nor vTrash. Fixes bug #56229. svn path=/trunk/; revision=25384
* Create an EUserCreatableItemsHandler for the view. (emfv_finalise): UnrefDan Winship2004-04-093-0/+22
| | | | | | | | | | | | * em-folder-view.c (emfv_init): Create an EUserCreatableItemsHandler for the view. (emfv_finalise): Unref it. (emfv_activate): Activate it * mail-component.c (impl__get_userCreatableItems): add object/folder flags to the items svn path=/trunk/; revision=25380
* Now takes a pattern argument to limit files that get copied over (so weJeffrey Stedfast2004-04-092-4/+8
| | | | | | | | | | 2004-04-08 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp_r): Now takes a pattern argument to limit files that get copied over (so we can limit imap cache to only the summary files - makes it faster). svn path=/trunk/; revision=25378
* Fixed up a bit to look nicer and make it closer to HIG compliant.Jeffrey Stedfast2004-04-093-155/+189
| | | | | | | | | 2004-04-08 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_build_extra_conf): Fixed up a bit to look nicer and make it closer to HIG compliant. svn path=/trunk/; revision=25377
* We need to recursively copy the dragged folder tree over to the dropJeffrey Stedfast2004-04-092-9/+61
| | | | | | | | | | | 2004-04-08 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_drop_folder): We need to recursively copy the dragged folder tree over to the drop location, not just the parent folder. We also need to subscribe to the newly created folder in some cases. svn path=/trunk/; revision=25375
* add the monkey button if we're from evolution. See #52977. (emfh_gethttp):Not Zed2004-04-082-7/+29
| | | | | | | | | | 2004-04-08 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_format_headers): add the monkey button if we're from evolution. See #52977. (emfh_gethttp): cast away a warning. svn path=/trunk/; revision=25372
* VJUNK_FOLDER's dont exist, they're VTRASH folders now.Not Zed2004-04-086-61/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-08 Not Zed <NotZed@Ximian.com> * mail-folder-cache.c: (update_1folder): VJUNK_FOLDER's dont exist, they're VTRASH folders now. * em-folder-view.c: remove message_changed stuff from camel folder stuff. * mail-component.c (mail_component_init): don't setup the search context here, wait till its requested. Fixes #56672. 2004-04-07 Not Zed <NotZed@Ximian.com> * mail-component.c (view_changed_cb): hook to update the info label when the folderview changes. * em-folder-view.c (emfv_class_init): added 2 signals 'loaded' and 'changed'. For when a folder is set/cleared or when some state changes. (emfv_set_folder): emit LOADED signal when we set the folder. (emfv_list_message_selected): emit changed event. (emfv_gui_folder_changed): emit changed event. svn path=/trunk/; revision=25369
* Check that emft_selection_get_selected() returns TRUE before we try to useJeffrey Stedfast2004-04-082-5/+23
| | | | | | | | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_tree_button_press): Check that emft_selection_get_selected() returns TRUE before we try to use the iter. Fixes bug #56652. (emft_popup_delete_response): Same idea here. (emft_popup_delete_folder): Same. (emft_popup_rename_folder): Same. (emft_popup_properties): Same. svn path=/trunk/; revision=25366
* moved a comment to a more appropriate locationJeffrey Stedfast2004-04-081-1/+1
| | | | svn path=/trunk/; revision=25365
* Fix for bug #56538Jeffrey Stedfast2004-04-082-20/+33
| | | | | | | | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #56538 * em-folder-view.c (emfv_set_folder_uri): Don't set the preview empty here. (emfv_set_folder): If the folder is the same as the folder already on the emfv, just return. Otherwise clear the preview and continue setting the folder as normal. svn path=/trunk/; revision=25364
* Removed.Jeffrey Stedfast2004-04-087-26/+6
| | | | | | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> * em-account-prefs.c (em_account_prefs_apply): Removed. * em-mailer-prefs.c (em_mailer_prefs_apply): Removed. * em-composer-prefs.c (em_composer_prefs_apply): Removed. svn path=/trunk/; revision=25362
* No longer need the Apply stuff.Jeffrey Stedfast2004-04-084-49/+3
| | | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> * mail-config-factory.c (mail_config_control_factory_cb): No longer need the Apply stuff. svn path=/trunk/; revision=25356
* Don't call a function that doesn't exist anymore.Jeffrey Stedfast2004-04-072-1/+6
| | | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> * em-mailer-prefs.c (em_mailer_prefs_construct): Don't call a function that doesn't exist anymore. svn path=/trunk/; revision=25351
* Changed to save the settings in the signal callbacks.Jeffrey Stedfast2004-04-075-705/+483
| | | | | | | | | | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * em-mailer-prefs.c (em_mailer_prefs_construct): Changed to save the settings in the signal callbacks. (em_mailer_prefs_apply): Don't save the settings here. * em-composer-prefs.c (em_composer_prefs_apply): Don't save the settings here. (em_composer_prefs_construct): Changed to save the settings in the signal callbacks. svn path=/trunk/; revision=25344
* ref the emfoldertree in our thread message. (em_folder_tree_set_selected):Not Zed2004-04-064-2/+18
| | | | | | | | | | | | | | | | | 2004-04-06 Not Zed <NotZed@Ximian.com> * em-folder-tree.c (emft_tree_row_expanded): ref the emfoldertree in our thread message. (em_folder_tree_set_selected): same. (emft_get_folder_info__free): unref it. * mail-folder-cache.c (ping_store): use thread_queued_slow not thread_queued - we dont care when it runs. * em-folder-view.c (emfv_set_folder_uri): use thread_new for getting the folder, we do elsewhere, and it aids interactivity. svn path=/trunk/; revision=25330
* fixedJeffrey Stedfast2004-04-061-4/+4
| | | | svn path=/trunk/; revision=25320
* Migrate the thread_list setting. Fixes bug #56297.Jeffrey Stedfast2004-04-062-51/+111
| | | | | | | | | 2004-04-05 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_dir): Migrate the thread_list setting. Fixes bug #56297. svn path=/trunk/; revision=25318
* if we have no sign status, use signed-nokey, rather than no icon.Not Zed2004-04-052-3/+37
| | | | | | | | | | | | | | | | | | 2004-04-05 Not Zed <NotZed@Ximian.com> * em-format-html-display.c (efhd_xpkcs7mime_button): if we have no sign status, use signed-nokey, rather than no icon. (efhd_xpkcs7mime_viewcert_clicked): show the certificate viewer since certificate_viewer_show doesn't show it. (efhd_xpkcs7mime_viewcert_foad): foad foad foad. The api changed and we need to foad it ourselves. ** See bug #52822. * em-format-html-display.c (efhd_xpkcs7mime_add_cert_table): if we can't find the cert, then desensitise the cert button. svn path=/trunk/; revision=25313
* ** See bug # 56402.Not Zed2004-04-053-4/+12
| | | | | | | | | | | | | | 2004-04-05 Not Zed <NotZed@Ximian.com> ** See bug # 56402. * mail-folder-cache.c (update_folders): if we're cancelled, noop. (mail_note_store_remove): mark the update data cancelled. * mail-ops.c (get_folderinfo_got): Removed the meaningless comment here. svn path=/trunk/; revision=25312
* removed, this is done in camel now. (fix_unmatched_info): renamed fromNot Zed2004-04-052-68/+9
| | | | | | | | | | 2004-04-05 Not Zed <NotZed@Ximian.com> * mail-ops.c (add_special_info): removed, this is done in camel now. (fix_unmatched_info): renamed from add_unmatched_info. svn path=/trunk/; revision=25311
* Revert my "fix" from yesterday. We can't necessarily show progressJeffrey Stedfast2004-04-032-2/+5
| | | | | | | | | | 2004-04-02 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp_r): Revert my "fix" from yesterday. We can't necessarily show progress (progress window may have been destroyed already). svn path=/trunk/; revision=25307
* Fixes bug #53851Jeffrey Stedfast2004-04-033-8/+26
| | | | | | | | | | | | | | | | 2004-04-02 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #53851 * em-folder-view.c (emfv_popup_move_cb): Save the uri as the default for copy/move. (emfv_popup_move): Use the default copy/move uri. (emfv_popup_copy): Same. * em-folder-selection.c (em_select_folder): Select the uri *after* the dialog gets shown. svn path=/trunk/; revision=25306
* Fixes bug #37416Jeffrey Stedfast2004-04-033-5/+32
| | | | | | | | | | | | | | | | 2004-04-02 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #37416 * mail-folder-cache.c (update_1folder): Same as below. Also add vJunk fodlers to the list of folders that we display the total count for (as discussed on the mailing lists). * em-folder-tree-model.c (em_folder_tree_model_set_folder_info): Use 'total - deleted' as the count for Outbox rather than just the total count. svn path=/trunk/; revision=25305
* do a per-line validation of the uuencoded stuff, based on the length byte.Not Zed2004-04-022-0/+20
| | | | | | | | | 2004-04-02 Not Zed <NotZed@Ximian.com> * em-inline-filter.c: do a per-line validation of the uuencoded stuff, based on the length byte. svn path=/trunk/; revision=25297
* ** See bug #56338.Not Zed2004-04-022-6/+15
| | | | | | | | | | | | | 2004-04-02 Not Zed <NotZed@Ximian.com> ** See bug #56338. * em-format-html.c (emfh_gethttp): fix the fugly "load http if" that doesn't work to be a fugly "load http if" that does work. (efh_format_timeout): dont set load_http_now here, its only an override now. svn path=/trunk/; revision=25296
* Report progress. "Fixes" bug #56355.Jeffrey Stedfast2004-04-022-3/+7
| | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (cp_r): Report progress. "Fixes" bug #56355. svn path=/trunk/; revision=25290
* simplify menu_item_set_label()Jeffrey Stedfast2004-04-021-10/+5
| | | | svn path=/trunk/; revision=25289
* Set the updated sig->name on the menu item.Jeffrey Stedfast2004-04-022-3/+23
| | | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (signature_changed): Set the updated sig->name on the menu item. svn path=/trunk/; revision=25286
* Updated for signature API changes.Jeffrey Stedfast2004-04-0212-699/+443
| | | | | | | | | | | | | | | | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * importers/netscape-importer.c (netscape_import_accounts): Updated for signature API changes. * mail-account-gui.c: Same. * mail-signature-editor.c: Same. * em-composer-prefs.c: Same. * mail-config.c: Rewrote the signature stuff to use ESignatureList instead. Much cleaner and less broken. * em-mailer-prefs.c (em_mailer_prefs_construct): Always make the Add/Remove Header buttons de-sensitised at the start. Fixes bug #56284. svn path=/trunk/; revision=25282
* Commented grabbing focus on hostname edit, fix the focus issue of AccountEric Zhao2004-04-012-1/+5
| | | | | | | | | 2004-04-01 Eric Zhao <eric.zhao@sun.com> * mail-account-gui.c: (transport_type_changed): Commented grabbing focus on hostname edit, fix the focus issue of Account Assistant. svn path=/trunk/; revision=25278
* Only do citation colouring if the user has specified to do so and use theJeffrey Stedfast2004-04-012-3/+31
| | | | | | | | | | 2004-03-31 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (efh_text_plain): Only do citation colouring if the user has specified to do so and use the user's specified colour when appropriate. Fixes bug #56290. svn path=/trunk/; revision=25269
* Save/restore the subscribe dialog's window size. Fixes bug #56230.Jeffrey Stedfast2004-04-014-5/+82
| | | | | | | | | 2004-03-31 Jeffrey Stedfast <fejj@ximian.com> * em-subscribe-editor.c (em_subscribe_editor_new): Save/restore the subscribe dialog's window size. Fixes bug #56230. svn path=/trunk/; revision=25266
* REMOVED! And there was much rejoicing.Not Zed2004-03-313-32/+3
| | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * mail.h: REMOVED! And there was much rejoicing. svn path=/trunk/; revision=25262
* Cleaned up header inclusions and added plenty of forward declarations.Not Zed2004-03-3130-168/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * *.[ch]: Cleaned up header inclusions and added plenty of forward declarations. Sped up complete re-compilation by upto 20%. ** See bug #55950. * em-utils.c (em_utils_in_addressbook): utility for checking if an email address is in the addressbook. I can't tell if it works 'cause it crashes eds. * em-format-html.c (emfh_gethttp): handle addressbook checking. 2004-03-30 Not Zed <NotZed@Ximian.com> * mail-config.h: clean up the headers and use some forward decl's instead. * em-format-html.c (em_format_html_set_load_http): change state to an int 'style' instead. * em-folder-view.c (emfv_setting_notify): set the format load http option to the config value directly. ** See bug #56147. * message-list.c (clear_info): set the node data to NULL when we unref its data. (ml_get_save_id): use a different test for the root node, and return NULL if we don't have any data on the node (because we're cleaing it). ** See bug #54962. * em-folder-tree.c (emft_popup_new_folder_response): put back the old hack to open the vfolder editor if you try to create a folder under vfolders. ** See bug #55940. * mail-autofilter.c (mail_filter_rename_uri): map the uri to an email uri before passing to filter code. (mail_filter_delete_uri): same here. svn path=/trunk/; revision=25261
* add spellLiveToggled signalRadek Doulik2004-03-303-2/+156
| | | | | | | | | | | | | | | 2004-03-30 Radek Doulik <rodo@ximian.com> * mail-config.glade: add spellLiveToggled signal * em-composer-prefs.c (em_composer_prefs_construct): fix typo, call toggle_button_init on prefs->spell_check instead of againg on prefs->auto_smileys (spell_setup): connect spellLiveToggled signal Fixes #55964 svn path=/trunk/; revision=25241
* Free the folder-info.Jeffrey Stedfast2004-03-302-2/+4
| | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree.c (emft_create_folder__free): Free the folder-info. svn path=/trunk/; revision=25233
* Instead of comparing sstate[0] to '1', compare it against '0' like all theJeffrey Stedfast2004-03-302-1/+7
| | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * em-folder-browser.c (emfb_activate): Instead of comparing sstate[0] to '1', compare it against '0' like all the other code does. svn path=/trunk/; revision=25227
* remove local-config.glade form Makefile.am as it is removed form CVSSivaiah Nallagatla2004-03-252-1/+6
| | | | svn path=/trunk/; revision=25184
* Use gtk_window_present instead of doing a show then raise, as this alsoRodney Dawes2004-03-2513-3579/+5393
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-25 Rodney Dawes <dobey@ximian.com> * em-composer-prefs.c (sig_edit_cb): (sig_add_script_cb): Use gtk_window_present instead of doing a show then raise, as this also puts the window on the current workspace (em_composer_prefs_construct): Fix the border widths for the dialog vbox and action area to be HIG-compliant, and realize the window Remove the dialog separator Use a box_pack_start, rather than box_pack_start_defaults which causes some weird behaviour when changing the border widths * em-subscribe-editor.c (em_subscribe_editor_new): Realize the dialog and set the border widths for its vbox and action area to be compliant with the HIG * local-config.glade: Removed this file as it is no longer used * mail-account-editor.c (construct): Realize the dialog, remove its separator, and set the border widths for its vbox and action area to be HIG-compliant * mail-account-editor.c (source_type_changed): (transport_type_changed): Fix the showing and hiding of the widgets related to the SSL options (mail_account_gui_new): Get the transport/source frames for the SSL options, and hide them by default Show the default folder buttons by default here (mail_account_gui_setup): Only call _show not _show_all here, so we don't mess up the shown/hidden state of things * mail-account-gui.h: Add ssl_frame widget to the MailAccountGuiService * mail-config.glade: * mail-search.glade: * mail-security.glade: HIG-compliance fixes for the glade dialogs * message-tag-followup.c (construct): Don't set border_width on the dialog itself Remove the separator from the dialog Set the border_widths for the dialog's vbox and action areas to be compliant with the HIG * message-tags.glade: * subscribe-dialog.glade: HIG-compliance fixes for these dialogs Original patch from Martyn Russell svn path=/trunk/; revision=25183
* Use ngettext for handling plural forms throughout (fixes bug 53464).Danilo Å egan2004-03-242-2/+11
| | | | svn path=/trunk/; revision=25168
* Use sizeof() to decide how big buffer is so that in the future, if weJeffrey Stedfast2004-03-242-1/+5
| | | | | | | | | | 2004-03-23 Jeffrey Stedfast <fejj@ximian.com> * em-format-html.c (emfh_gethttp): Use sizeof() to decide how big buffer is so that in the future, if we change the length of bufefr, things will Just Work (tm). svn path=/trunk/; revision=25166
* Fixed the key to fetch the value from the correct location. It'sJeffrey Stedfast2004-03-242-2/+6
| | | | | | | | | | 2004-03-23 Jeffrey Stedfast <fejj@ximian.com> * em-mailer-prefs.c (em_mailer_prefs_construct): Fixed the key to fetch the value from the correct location. It's junk/check_incoming, not junk/sa/check_incoming. Fixes bug #55903. svn path=/trunk/; revision=25165
* Fixed some logic bugs.Jeffrey Stedfast2004-03-242-10/+12
| | | | | | | | | 2004-03-23 Jeffrey Stedfast <fejj@ximian.com> * em-folder-tree-model.c (em_folder_tree_model_set_expanded): Fixed some logic bugs. svn path=/trunk/; revision=25164
* use EM_FORMAT_HTML_VPADRadek Doulik2004-03-234-3/+16
| | | | | | | | | | | | | | | 2004-03-23 Radek Doulik <rodo@ximian.com> * em-format-html-display.c (efhd_format_attachment): use EM_FORMAT_HTML_VPAD * em-format-html.h (EM_FORMAT_HTML_VPAD): added new define for vertical padding * em-format-html.c (efh_format_message): change padding table so that it works OK with fixed gtkhtml svn path=/trunk/; revision=25156
* dont add the show/hide menu items if we can't ever show it inline.Not Zed2004-03-232-6/+17
| | | | | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * em-format-html-display.c (efhd_attachment_popup): dont add the show/hide menu items if we can't ever show it inline. (efhd_attachment_button): disable the ">" button if we can't view the content inline. See #52086. svn path=/trunk/; revision=25155
* format inline(d) parts automatically into the reply. Part of #55702.Not Zed2004-03-232-1/+20
| | | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * em-format-quote.c (emfq_format_attachment): format inline(d) parts automatically into the reply. Part of #55702. svn path=/trunk/; revision=25152
* if we get an email uri passed in, just pass it out again, without firstNot Zed2004-03-232-0/+9
| | | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * em-utils.c (em_uri_from_camel): if we get an email uri passed in, just pass it out again, without first going to camel to do it. svn path=/trunk/; revision=25150
* Add Newsgroups to the default header list.Not Zed2004-03-224-23/+55
| | | | | | | | | | | | | 2004-03-22 Not Zed <NotZed@Ximian.com> * em-format.c: * em-mailer-prefs.c: Add Newsgroups to the default header list. * em-format-html.c (efh_format_header): handle the newsgroups header, output news: url's. For bug #??? i can't recall, i closed it already! svn path=/trunk/; revision=25141
* Fixes bug #54800.Jeffrey Stedfast2004-03-202-2/+73
| | | | | | | | | | | | | | | 2004-03-19 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #54800. * em-folder-tree.c (tree_drag_drop): Remove the autoscroll timeout. (tree_drag_leave): Remove the autoscroll timeout. (tree_autoscroll): New autoscroll timeout callback - automagically scrolls the treeview if appropriate. (tree_drag_motion): Setup the autoscroll timeout. svn path=/trunk/; revision=25134
* ref the store before running the async disconnect, otherwise we unref oneNot Zed2004-03-192-1/+8
| | | | | | | | | | 2004-03-19 Not Zed <NotZed@Ximian.com> * mail-component.c (mail_component_remove_store): ref the store before running the async disconnect, otherwise we unref one too many times. svn path=/trunk/; revision=25124
* 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