aboutsummaryrefslogtreecommitdiffstats
path: root/mail
Commit message (Collapse)AuthorAgeFilesLines
* change va_copy to G_VA_COPYDan Winship2001-10-192-4/+7
| | | | svn path=/trunk/; revision=13753
* Use va_copy to make this compile on ppc again.Dan Winship2001-10-192-1/+6
| | | | | | | * mail-mt.c (mail_call_main): Use va_copy to make this compile on ppc again. svn path=/trunk/; revision=13749
* Clone the folderinfo before passing to async event. (real_folder_created):72001-10-183-3/+18
| | | | | | | | | | | | | | | 2001-10-17 <NotZed@Ximian.com> * mail-folder-cache.c (store_folder_subscribed): Clone the folderinfo before passing to async event. (real_folder_created): Free when done. (store_folder_unsubscribed): (real_folder_deleted): And same here. * mail-ops.c (mail_expunge_folder): Use the queued thread for expunging folders. svn path=/trunk/; revision=13741
* No longer need to copy the description now that camel-exceptions have beenJeffrey Stedfast2001-10-182-8/+5
| | | | | | | | | 2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): No longer need to copy the description now that camel-exceptions have been fixed. svn path=/trunk/; revision=13738
* Helper macro.Jeffrey Stedfast2001-10-185-30/+30
| | | | | | | | | | | | | | | | | 2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * subscribe-dialog.h (subscribe_dialog_show): Helper macro. * subscribe-dialog.c (subscribe_dialog_run_and_close): Removed. * mail-callbacks.c (check_send_configuration): Don't use gnome_dialog_run_and_close() here, we can easily get away with just using a gtk_widget_show(). (providers_config): Don't use a gnome_dialog_run_and_close() here either. No longer need to use e_gnome_dialog utils. (manage_subscriptions): Don't run_and_close(). svn path=/trunk/; revision=13732
* Don't use gnome_dialog_run_and_close() here, we can easily get away withJeffrey Stedfast2001-10-182-19/+43
| | | | | | | | | | | | 2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (check_send_configuration): Don't use gnome_dialog_run_and_close() here, we can easily get away with just using a gtk_widget_show(). (providers_config): Don't use a gnome_dialog_run_and_close() here either. svn path=/trunk/; revision=13727
* Only empty trash on enabled accounts, fixes #12821.72001-10-182-1/+6
| | | | | | | | | 2001-10-17 <NotZed@Ximian.com> * mail-callbacks.c (empty_trash): Only empty trash on enabled accounts, fixes #12821. svn path=/trunk/; revision=13724
* Make Reply-To bold too since no one ever figures out why it's notDan Winship2001-10-182-1/+6
| | | | | | | * mail-format.c (write_default_header): Make Reply-To bold too since no one ever figures out why it's not currently. svn path=/trunk/; revision=13723
* Fix typoIain Holmes2001-10-172-1/+5
| | | | svn path=/trunk/; revision=13718
* Lets put the UID cache in ~/evolution/mail/pop3 as this makes more senseJeffrey Stedfast2001-10-172-2/+27
| | | | | | | | | | | 2001-10-16 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (uid_cachename_hack): Lets put the UID cache in ~/evolution/mail/pop3 as this makes more sense than ~/mail/config does. Perform checking to see what flavor cache-path the user is on and compensate. svn path=/trunk/; revision=13708
* Check that the cursor_uid is non-NULL before emitting a "message_selected"Jeffrey Stedfast2001-10-172-1/+7
| | | | | | | | | | 2001-10-16 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (on_cursor_activated_idle): Check that the cursor_uid is non-NULL before emitting a "message_selected" signal. Fixes bug #6015. svn path=/trunk/; revision=13706
* Always explicitly clear out the SearchInfo.Jon Trowbridge2001-10-172-4/+13
| | | | | | | | | 2001-10-16 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_begin): Always explicitly clear out the SearchInfo. svn path=/trunk/; revision=13704
* folder-browser.c: (folder_browser_set_message_preview): Return do nothingMichael Zucci2001-10-172-6/+24
| | | | | | | | | | | | | | folder-browser.c: (folder_browser_set_message_preview): Return do nothing if we're destroyed (message_list == NULL). (folder_browser_search_query_changed): " (folder_browser_toggle_preview): " (folder_browser_toggle_threads): " (folder_browser_toggle_hide_deleted): " (folder_browser_set_message_display_style): " (folder_browser_charset_changed): " All for #12613. svn path=/trunk/; revision=13703
* Added an async_event handler to store_info. (mail_note_store): Setup asyncMichael Zucci2001-10-179-169/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-folder-cache.c: Added an async_event handler to store_info. (mail_note_store): Setup async event handler here. (store_finalised): Flush out async events here. (folder_changed): Use async event handler to emit event. (mail_note_folder): Chagned, do most of the work in the calling context, only do the corba stuff in main. (store_folder_subscribed): Use async event, and do more work locally. (store_folder_unsubscribed): Same. (store_folder_deleted): Call store_folder_unsubscribed if we have to do any work. (store_folder_created): Call store_folder_subscribed if we have to do any work. (store_folder_unsubscribed): Ref store while busy. (real_folder_deleted): And unref here. (store_folder_subscribed): Reg store while busy. (real_folder_created): Unref here. (mail_note_folder): Ref folder while busy. (real_note_folder): And unref here. (mail_note_folder): Hook onto folder_deleted event. (folder_deleted): Just mark this folder as no longer available. * mail-session.c (register_timeout): Use mail_call_main instead of proxy_event. (remove_timeout): Same here. * folder-browser.c (folder_changed): use the new mail_async_event stuff. (folder_changed_main): Remove old async event handling stuff. (FOLDER_BROWSER_LOCK/UNLOCK): Removed. (FolderBrowserPrivate): Removed too, sigh. * mail-mt.c (mail_async_event_new, mail_async_event_emit, mail_async_event_destroy): New functions to handle async events. (mail_proxy_event, mail_proxy_event_id): Removed old functions for async events. (do_call): Add suport for MAIL_CALL_p_pp. (mail_msg_free): Use mail_async_event instead of proxy_event. * message-list.c (message_changed): Promote the message_changed to a folder_changed and use main_folder_changed to process it. (main_message_changed): Remove.d (message_list_init): Setup async event handler. (message_list_destroy): Remove async handler. (folder_changed): Use async hanler to emit event in main loop. (message_changed): Same. svn path=/trunk/; revision=13698
* New function to return the id of the currently executing proxied event.62001-10-175-8/+116
| | | | | | | | | | | | | | | | | | | | | 2001-10-16 <NotZed@Ximian.com> * mail-mt.c (mail_proxy_event_id): New function to return the id of the currently executing proxied event. * folder-browser.h: Added private field. * folder-browser.c (folder_changed): Keep track of tasks outstanding in the tasks list, locked access. (FOLDER_BROWSER_LOCK, UNLOCK): Macros to lock the folder browser for poking about in diff threads. (folder_browser_finalise): Wait for any outstanding takss to finish before cleaning ourself up. (folder_browser_destroy): Move the seen_id handling to finalise, also add a loading_id handling code. (main_folder_changed): Remove our running task when done. svn path=/trunk/; revision=13695
* don't write strings longer than they actually are.Larry Ewing2001-10-162-4/+12
| | | | | | | | | 2001-10-15 Larry Ewing <lewing@ximian.com> * mail-display.c (mail_error_write): don't write strings longer than they actually are. svn path=/trunk/; revision=13693
* Remove the mark_seen timeout.Jeffrey Stedfast2001-10-162-3/+13
| | | | | | | | | 2001-10-15 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_destroy): Remove the mark_seen timeout. svn path=/trunk/; revision=13689
* conflict droppingsLarry Ewing2001-10-161-1/+0
| | | | svn path=/trunk/; revision=13684
* don't apply the body text in replys since we will just replace it anyway.Larry Ewing2001-10-162-1/+7
| | | | | | | | | 2001-10-15 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (mail_generate_reply): don't apply the body text in replys since we will just replace it anyway. svn path=/trunk/; revision=13683
* Call mail_vfolder_shutdown.Jeffrey Stedfast2001-10-165-7/+57
| | | | | | | | | | | | | | | 2001-10-15 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (owner_unset_cb): Call mail_vfolder_shutdown. * mail-vfolder.c (mail_vfolder_shutdown): Unref all of our VFolders. * mail-folder-cache.c (real_note_folder): Remember to unref the folder before returning if we have already noted this folder. svn path=/trunk/; revision=13682
* Proxy get-password call to main thread. (forget_password): same for52001-10-164-5/+182
| | | | | | | | | | | | | | | 2001-10-15 <NotZed@Ximian.com> * mail-session.c (get_password): Proxy get-password call to main thread. (forget_password): same for forget_password. (get_filter_driver): and same for get_filter_driver, since it uses gtk objects. * mail-mt.c (mail_call_main): new generic interface for calling stuff/proxying in the gui thread. svn path=/trunk/; revision=13679
* fixed a typoJeffrey Stedfast2001-10-161-1/+1
| | | | svn path=/trunk/; revision=13676
* Share more state between the parent and its clones, so that our multipleJon Trowbridge2001-10-152-29/+78
| | | | | | | | | | | 2001-10-14 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_clone): Share more state between the parent and its clones, so that our multiple tokenizers don't get out of sync when we are rendering frames and iframes. (Bug #11638) svn path=/trunk/; revision=13671
* Bad hacker! Don't implicitly assume that utf8 characters are one byte inJon Trowbridge2001-10-142-3/+16
| | | | | | | | | | | | | 2001-10-13 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (search_info_compare): Bad hacker! Don't implicitly assume that utf8 characters are one byte in size! (Bug #9520) (e_searching_tokenizer_begin): As long as I'm touching those code: don't increase the size of search matches. I'll fix the colors later. (part of bug #11589) svn path=/trunk/; revision=13667
* Don't emit a gtk warning if the composer creation fails.Dan Winship2001-10-142-3/+8
| | | | | | | * mail-callbacks.c (create_msg_composer): Don't emit a gtk warning if the composer creation fails. svn path=/trunk/; revision=13660
* Revert the change to remove the Score column until Chris can fix ETable soDan Winship2001-10-134-11/+70
| | | | | | | | | * message-list.c, message-list.h, message-list.etspec: Revert the change to remove the Score column until Chris can fix ETable so it's possible to remove a column without breaking everyone's exisiting settings. svn path=/trunk/; revision=13646
* Fix race conditions in creating foldersIain Holmes2001-10-132-2/+12
| | | | svn path=/trunk/; revision=13645
* call e_passwords_init and e_passwords_shutdown.Chris Toshok2001-10-135-107/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-12 Chris Toshok <toshok@ximian.com> * main.c (main): call e_passwords_init and e_passwords_shutdown. * mail-session.h: add prototypes for mail_session_{get,add}_password. * mail-session.c (init): empty this out - we use e_passwords instead of a local hashtable. (get_password): use e_passwords_get_password and e_passwords_add_password. (forget_password): use e_passwords_forget_password. (mail_session_remember_password): use e_passwords_remember_password. (mail_session_forget_password): use e_passwords_forget_password. (mail_session_get_password): new function, use e_passwords_get_password. (mail_session_add_password): same, use e_passwords_add_password. (mail_session_forget_passwords): use e_passwords_forget_passwords. * mail-config.c (mail_config_write_on_exit): fix this up so it works as desired with the e_passwords stuff. svn path=/trunk/; revision=13640
* Convert URLS so we can get clickable links.Jeffrey Stedfast2001-10-132-1/+4
| | | | | | | | | 2001-10-12 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (mail_error_write): Convert URLS so we can get clickable links. svn path=/trunk/; revision=13628
* removed Score stuff from the message-listJeffrey Stedfast2001-10-134-63/+15
| | | | svn path=/trunk/; revision=13626
* Store our listener id. (popup_info_free): Disconnect our listener when weJon Trowbridge2001-10-122-3/+14
| | | | | | | | | | 2001-10-12 Jon Trowbridge <trow@ximian.com> * mail-display.c (html_button_press_event): Store our listener id. (popup_info_free): Disconnect our listener when we free the popup. (Bug #11040) svn path=/trunk/; revision=13619
* Listen for "destroy" events from the control, so that we don't leave strayJon Trowbridge2001-10-122-0/+25
| | | | | | | | | | 2001-10-11 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (addrbook_sender): Listen for "destroy" events from the control, so that we don't leave stray windows laying around. (Bug #9101) svn path=/trunk/; revision=13609
* Added a checkbox for body indexing.12001-10-124-4/+85
| | | | | | | | | | | | | | | 2001-10-11 <NotZed@Ximian.com> * local-config.glade: Added a checkbox for body indexing. * mail-local.c (mail_local_reconfigure_folder): Get index_body widget. (mail_local_folder_reconfigure): Add an 'index_body' argument & implement. Dont do anything if nothing changed. * openpgp-utils.c (openpgp_verify): Use e_iconv_open. svn path=/trunk/; revision=13603
* oops, and here tooJeffrey Stedfast2001-10-121-2/+2
| | | | svn path=/trunk/; revision=13597
* pass FALSE along to the add_message_attachments callJeffrey Stedfast2001-10-121-1/+1
| | | | svn path=/trunk/; revision=13596
* Attach the message attachments. Fixes bug #5439.Jeffrey Stedfast2001-10-122-1/+13
| | | | | | | | | 2001-10-11 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_forward_non_attached): Attach the message attachments. Fixes bug #5439. svn path=/trunk/; revision=13594
* No longer need to pass folder display name to storage update_folderDan Winship2001-10-126-588/+14
| | | | | | | | | | | | * mail-folder-cache.c (update_1folder): No longer need to pass folder display name to storage update_folder methods. (setup_folder, free_folder_info): Meaning we no longer need to keep track of it. * evolution-outlook-importer.[ch], evolution-mbox-importer.[ch]: These copies are cruft. The real ones are in importers/. svn path=/trunk/; revision=13589
* blahJeffrey Stedfast2001-10-121-1/+0
| | | | svn path=/trunk/; revision=13584
* Make sure the service/storage are non-NULL.Jeffrey Stedfast2001-10-123-49/+61
| | | | | | | | | | | | | | | | | | | | | | | 2001-10-11 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (free_storage): Make sure the service/storage are non-NULL. * mail-callbacks.c (e_gnome_dialog_parent_destroyed): Call gtk_main_quit. (send_receive_mail): Don't use e_gnome stuff since this doesn't need to be run using gnome_dialog_run_and_close(). (composer_send_cb): Same. (edit_msg): Here too. (resend_msg): And here. (search_msg): Same. (filter_edit): Here too. (filter_edit): Don't use e_gnome_dialog_set_parent() because we don't do gnome_dialog_run_and_close on this dialog. (e_gnome_error_dialog_parented): Removed. (e_gnome_ok_dialog_parented): Removed. svn path=/trunk/; revision=13583
* Fix up the logic here.Dan Winship2001-10-112-5/+8
| | | | | | * mail-config.c (new_source_created): Fix up the logic here. svn path=/trunk/; revision=13576
* use new function to copy the attachments from the source message. ThisLarry Ewing2001-10-112-0/+7
| | | | | | | | | | | 2001-10-10 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (mail_generate_reply): use new function to copy the attachments from the source message. This still isn't perfect but it should avoid the problems with headers being transfered. This makes images in replies work again. svn path=/trunk/; revision=13564
* copy the data. We can't ref the byte array and we can't free it so we haveLarry Ewing2001-10-102-2/+10
| | | | | | | | | 2001-10-10 Larry Ewing <lewing@ximian.com> * mail-display.c (save_url): copy the data. We can't ref the byte array and we can't free it so we have to copy it. svn path=/trunk/; revision=13546
* IF the source and destination folders are the same, do nothing. Oh, and02001-10-103-52/+89
| | | | | | | | | | | | | | | | | | | | 2001-10-10 <NotZed@Ximian.com> * mail-ops.c (transfer_messages_transfer): IF the source and destination folders are the same, do nothing. Oh, and return an error, otherwise the shell goes and removes it anyway. Fixes a rather serious bug with dnd of folders onto their current location. 2001-10-09 <NotZed@Ximian.com> * component-factory.c (owner_unset_cb): Disconnect from all the signals we were listening to, so we dont try and do shit twice on exit (one on unset_cb, one on destroy). (create_component): Setup the signal handlers using a table, so they're easier to disconnect on finish. svn path=/trunk/; revision=13545
* ref the part. (save_destroy_cb): new function to unref the part when weLarry Ewing2001-10-102-11/+69
| | | | | | | | | | | | | 2001-10-09 Larry Ewing <lewing@ximian.com> * mail-display.c (save_part): ref the part. (save_destroy_cb): new function to unref the part when we have closed the dialog. (save_url): fake a mime part so that we can save data urls without extra effort. This is less sucky than it seems since it handles filenames and ref counting with minimal fuss. svn path=/trunk/; revision=13544
* Ref folder so it hangs around till we're done with it.92001-10-102-0/+9
| | | | | | | | | | | 2001-10-09 <NotZed@Ximian.com> * mail-folder-cache.c (folder_changed): Ref folder so it hangs around till we're done with it. (real_folder_changed): Unref folder when we are done with it. Should fix #11981. svn path=/trunk/; revision=13543
* Make sure the mail-display is non-NULL.Jeffrey Stedfast2001-10-102-1/+6
| | | | | | | | | 2001-10-09 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (done_message_selected): Make sure the mail-display is non-NULL. svn path=/trunk/; revision=13535
* Implement.92001-10-102-0/+23
| | | | | | | | 2001-10-09 <NotZed@Ximian.com> * mail-local.c (mlf_search_by_uids): Implement. svn path=/trunk/; revision=13533
* Create a chaqrset picker submenu in the View menu.Jeffrey Stedfast2001-10-108-30/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-09 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c (folder_browser_ui_add_message): Create a chaqrset picker submenu in the View menu. * mail-format.c (mail_format_raw_message): Pass the mail-display to get_data_wrapper_text. (get_data_wrapper_text): Use the user's override charset if one is provided, otherwise user the user's default charset. (handle_text_plain): Pass along the mail-display to get_data_wrapper_text. (handle_application_pgp): Same. (handle_text_enriched): Here too. (mail_get_message_body): Pass NULL as the mail-display to get_data_wrapper_text since we don't have access to a mail-display. * mail-display.c (mail_display_set_charset): New function to set a charset on the maildisplay. Once set, the message is redisplayed using the new charset. (mail_display_destroy): Free the charset. * folder-browser.c (folder_browser_charset_changed): New callback for when a user overrides the message charset. svn path=/trunk/; revision=13530
* Use gtk_signal_connect_while_alive here so e_gnome_dialog_parent_destroyedDan Winship2001-10-103-25/+60
| | | | | | | | | | | | | | | * mail-callbacks.c (e_gnome_dialog_set_parent): Use gtk_signal_connect_while_alive here so e_gnome_dialog_parent_destroyed doesn't get called on an already-destroyed dialog. * mail-config-druid.c (*_prepare): Record which page we're currently in. (*_changed): Only update the druid buttons if we're the current page. Fixes a problem that could make it impossible to get beyond the first page of the setup wizard. svn path=/trunk/; revision=13522
* Oops.Jon Trowbridge2001-10-101-1/+1
| | | | svn path=/trunk/; revision=13519
* Revert the change to use e_msg_composer_new_with_message. That hasDan Winship2001-10-102-1/+8
| | | | | | | | | * mail-callbacks.c (mail_generate_reply): Revert the change to use e_msg_composer_new_with_message. That has unwanted side effects. (This commit re-breaks replying to HTML messages with inline images.) svn path=/trunk/; revision=13518
* Update for folder_flags.Dan Winship2001-10-096-18/+23
| | | | | | | | | | | | | | | | * mail-local.c (mlf_set_folder, mlf_unset_folder): Update for folder_flags. * folder-browser-ui.c (folder_browser_ui_add_list): Check CAMEL_FOLDER_IS_TRASH flag rather than checking CAMEL_IS_VTRASH_FOLDER. * folder-browser.c (folder_browser_toggle_hide_deleted): Likewise * message-list.c (message_list_set_folder): Likewise. (message_list_set_hidedeleted): Remove redundant trash check. svn path=/trunk/; revision=13510
* Write out the Bcc: header when applicable. Fixes bug #5823.Jon Trowbridge2001-10-092-2/+11
| | | | | | | | | 2001-10-08 Jon Trowbridge <trow@gnu.org> * mail-format.c (write_default_header): Write out the Bcc: header when applicable. Fixes bug #5823. svn path=/trunk/; revision=13508
* Convert the htmlinfo into utf8. Fixes bug #11966.Jeffrey Stedfast2001-10-092-5/+11
| | | | | | | | | 2001-10-08 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (attachment_header): Convert the htmlinfo into utf8. Fixes bug #11966. svn path=/trunk/; revision=13506
* For mailstorage folders, connect to the control's "activate" signal, andDan Winship2001-10-092-17/+47
| | | | | | | | | | | * component-factory.c (create_view): For mailstorage folders, connect to the control's "activate" signal, and don't try to connect to the store. (storage_activate): Instead, do it here, so if the connection fails, or the user cancels, or whatever else, he can try again later. svn path=/trunk/; revision=13503
* Remove #ifndef MOVEMAIL_PATH code, since the setting of that variable hasDan Winship2001-10-092-19/+8
| | | | | | | | | * mail-tools.c (mail_tool_do_movemail): Remove #ifndef MOVEMAIL_PATH code, since the setting of that variable has been meaningless for a while now, and the rest of the code DTRT whether that code executes or not. svn path=/trunk/; revision=13500
* Fix a merge-conflict leftover.Jeffrey Stedfast2001-10-062-4/+5
| | | | | | | | 2001-10-05 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (pass_got): Fix a merge-conflict leftover. svn path=/trunk/; revision=13474
* reformatted the menu tables so they're a bit more bloody readable.52001-10-064-82/+66
| | | | | | | | | | | | | | 2001-10-05 <NotZed@Ximian.com> * folder-browser.c: reformatted the menu tables so they're a bit more bloody readable. * mail-folder-cache.c (mail_note_store): Hook into subscribed/unsubscribed events. Only 'add/remove' folders from the add/removed events if we aren't subscribed, otherwise use the subscribed events. Rest of fix for #11831 svn path=/trunk/; revision=13472
* Add toggle button to config menu to turn the "confirm sending unwantedJon Trowbridge2001-10-065-0/+35
| | | | | | | | | | | | 2001-10-05 Jon Trowbridge <trow@ximian.com> * mail-config.glade: Add toggle button to config menu to turn the "confirm sending unwanted HTML" dialog on/off. (Bug 10794) * mail-accounts.c (construct): Make said toggle button actually work. svn path=/trunk/; revision=13466
* New convenience function that not only sets the gnome-dialog's parentJeffrey Stedfast2001-10-062-28/+107
| | | | | | | | | | | | | | | | | 2001-10-05 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (e_gnome_dialog_set_parent): New convenience function that not only sets the gnome-dialog's parent window but also makes sure that the gnome-dialog closes when it's parent closes. (e_gnome_warning_dialog_parented): New conmvenience wrapper around the libgnomeui version that also does the same thing as e_gnome_dialog_set_parent. (e_gnome_error_dialog_parented): Same. (e_gnome_ok_dialog_parented): And again... (e_gnome_ok_cancel_dialog_parented): And once again. svn path=/trunk/; revision=13464
* added in the ssl-not-supported label that the code was referencing but which ↵Jeffrey Stedfast2001-10-061-1/+28
| | | | | | didn't actually exist in the glade file...interesting svn path=/trunk/; revision=13455
* use e_msg_composer_new_with_message rather than e_msg_composer_new. ThisLarry Ewing2001-10-062-1/+8
| | | | | | | | | | | 2001-10-05 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (mail_generate_reply): use e_msg_composer_new_with_message rather than e_msg_composer_new. This way we bring in all the attachment of the message we are replying to. svn path=/trunk/; revision=13444
* Turn on "uniform_row_height" argument.Christopher James Lahey2001-10-052-0/+9
| | | | | | | | | 2001-10-05 Christopher James Lahey <clahey@ximian.com> * message-list.c (message_list_setup_etree): Turn on "uniform_row_height" argument. svn path=/trunk/; revision=13442
* Show "nn sent" as total in sent folder, rather than just 'total'.42001-10-053-3/+11
| | | | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * folder-browser.c (update_status_bar): Show "nn sent" as total in sent folder, rather than just 'total'. * mail-folder-cache.c (update_1folder): Also show total message count for sent_folder. svn path=/trunk/; revision=13429
* Do a better job of setting up the name. Also de-sensitise when we can't42001-10-052-2/+24
| | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * folder-browser-ui.c (folder_browser_setup_property_menu): Do a better job of setting up the name. Also de-sensitise when we can't configure the folder. svn path=/trunk/; revision=13427
* Set the parent window as the fb. This fixes bug #11723. (filter_edit): DoJeffrey Stedfast2001-10-052-9/+28
| | | | | | | | | | | | | | | | 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (providers_config): Set the parent window as the fb. This fixes bug #11723. (filter_edit): Do the same thing here too and also to the warning dialog. (edit_msg): Set the parent on the warning dialog. (resend_msg): And here. (search_msg): Here too. (confirm_expunge): Set the parent window on the dialog here too. (save_msg_ok): Same here. svn path=/trunk/; revision=13425
* Ignore the signal if the radio button is not "on". This fixes bug #10532Jeffrey Stedfast2001-10-055-34/+42
| | | | | | | | | | | | 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (images_radio_toggled): Ignore the signal if the radio button is not "on". This fixes bug #10532 because the on/off signals don't always come in the off->on order. * mail-ops.c (mail_send_message): Reduced some redundancy. svn path=/trunk/; revision=13424
* Fix so that an email address with no name is once again justDan Winship2001-10-052-6/+14
| | | | | | | * mail-format.c (write_address): Fix so that an email address with no name is once again just "foo@bar.com", not "<foo@bar.com>". svn path=/trunk/; revision=13423
* Only create the folder when the shell has created it.Iain Holmes2001-10-053-3/+9
| | | | svn path=/trunk/; revision=13420
* If we're accessing a vfolder uri, then popup the vfolder editor instead of42001-10-054-1/+78
| | | | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * mail-callbacks.c (configure_folder): If we're accessing a vfolder uri, then popup the vfolder editor instead of trying the mail local one. * mail-vfolder.c (vfolder_edit_rule): Edit a vfolder by name. svn path=/trunk/; revision=13419
* Added some more NULL checks.Jeffrey Stedfast2001-10-052-2/+6
| | | | | | | | 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Added some more NULL checks. svn path=/trunk/; revision=13418
* Do the url fragment/path -> folder name hack. Removing vfolders from shell42001-10-052-27/+17
| | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * component-factory.c (storage_remove_folder): Do the url fragment/path -> folder name hack. Removing vfolders from shell works now? svn path=/trunk/; revision=13416
* Only build destination data if we have destination != NULL. Fixes crash of32001-10-042-1/+4
| | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * mail-send-recv.c (build_dialogue): Only build destination data if we have destination != NULL. Fixes crash of bug #10835. svn path=/trunk/; revision=13400
* Set 'to' -> 'recipient' data for search object. #6199.32001-10-042-0/+7
| | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * folder-browser.c (folder_browser_config_search): Set 'to' -> 'recipient' data for search object. #6199. svn path=/trunk/; revision=13399
* Handle vtrash case, emit 'folder_created' event for the folder-cache to32001-10-043-8/+40
| | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * mail-local.c (local_storage_new_folder_cb): Handle vtrash case, emit 'folder_created' event for the folder-cache to work, etc. svn path=/trunk/; revision=13387
* Don't use the wax-seal icons for the pgp stuff anymore, use Jimmac's newJeffrey Stedfast2001-10-042-2/+7
| | | | | | | | | 2001-10-03 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_write_authenticity): Don't use the wax-seal icons for the pgp stuff anymore, use Jimmac's new icons instead. svn path=/trunk/; revision=13383
* Dont wait for event to finish before returning. This could however mean we32001-10-043-1/+11
| | | | | | | | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * mail-folder-cache.c (folder_changed): Dont wait for event to finish before returning. This could however mean we process it after things have vanished below us? Fixes another case of ctrl-d deadlock. * mail-ops.c (remove_folder_get): Freeze/thaw around deleting all messages in folder. svn path=/trunk/; revision=13382
* If we have hide deleted set, then dont count deleted messages in the32001-10-042-1/+23
| | | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * folder-browser.c (update_status_bar): If we have hide deleted set, then dont count deleted messages in the 'total' messages count. Fixes #6591. svn path=/trunk/; revision=13381
* If we have a fragment, override that, rather than the path. Fixes #5251.32001-10-042-1/+9
| | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * mail-ops.c (add_vtrash_info): If we have a fragment, override that, rather than the path. Fixes #5251. svn path=/trunk/; revision=13379
* add $BONOBO_GNOME_CFLAGS to make it work with latest BonoboRodrigo Moya2001-10-042-0/+6
| | | | | | | | | 2001-10-03 Rodrigo Moya <rodrigo@ximian.com> * importers/Makefile.am: add $BONOBO_GNOME_CFLAGS to make it work with latest Bonobo svn path=/trunk/; revision=13376
* Pass an empty flags argument to mail_transfer_messages - destinationJeffrey Stedfast2001-10-036-6/+28
| | | | | | | | | | | | | | | | | | | | | | 2001-10-02 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (transfer_msg): Pass an empty flags argument to mail_transfer_messages - destination folder should already be created by this point. * folder-browser.c (message_list_drag_data_received): Pass an empty flags argument to mail_transfer_messages. (selection_received): Same. * component-factory.c (xfer_folder): Pass the CREATE flag to mail_transfer_messages() so that the dest folder gets created. (destination_folder_handle_drop): Update for mail-ops API change. * mail-ops.c (mail_transfer_messages): Now takes a dest_flags argument that it passes along to mail_tool_uri_to_folder when opening the destination folder. svn path=/trunk/; revision=13357
* Pass an empty flags argument to mail_tool_uri_to_folder.Jeffrey Stedfast2001-10-0314-29/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-02 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (vfolder_setup_do): Pass an empty flags argument to mail_tool_uri_to_folder. (vfolder_adduri_do): Same. * mail-session.c (get_folder): Pass an empty flags argument to mail_tool_uri_to_folder. * mail-send-recv.c (receive_get_folder): Pass an empty flags argument to mail_tool_uri_to_folder. * mail-ops.c (get_folder_get): Pass the flags to mail_tool_uri_to_folder. (mail_get_folder): Now takes a flags argument. (remove_folder_get): Pass an empty flags argument to mail_tool_uri_to_folder. (mail_send_message): Pass an empty argument flag to mail_tool_uri_to_folder. (transfer_messages_transfer): Same. Destination folder should already be created by this time. * folder-info.c (do_get_info): Pass an empty flags argument to mail_tool_uri_to_folder. * importers/evolution-mbox-importer.c (folder_created_cb): Pass the CREATE flag here too. (load_file_fn): And here. (load_file_fn): And here too. * importers/evolution-outlook-importer.c (load_file_fn): Pass the CREATE flag to mail_tool_uri_to_folder. * folder-browser.c (folder_browser_new): Pass an empty flags argument. (x_evolution_message_parse): Pass an empty flags argument to mail_tool_uri_to_folder. * component-factory.c (create_folder): Pass a CREATE flag to mail_get_folder here too. (owner_set_cb): And here. (xfer_folder): Shouldn't need the CREATE flag here, so not passing any flags. (destination_folder_handle_drop): Same. * mail-local.c (mail_local_store_add_folder): Pass a CREATE flag to mail_get_folder. (reconfigure_folder_reconfigure): Pass an empty flags argument to mail_tool_uri_to_folder. * mail-tools.c (mail_tool_uri_to_folder): Take a flags argument. (mail_tool_get_local_inbox): Pass an empty flags argument to mail_tool_uri_to_folder. svn path=/trunk/; revision=13353
* Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'.Ettore Perazzoli2001-10-032-1/+7
| | | | | | | | | | | | | | | | | | | | * e-shell-view.c (e_shell_view_construct): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * mail-account-gui.c (launch_signature_editor): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * e-msg-composer.c (setup_ui): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * gui/dialogs/comp-editor.c (setup_widgets): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. svn path=/trunk/; revision=13306
* Make sure we aren't dealing with a pathological message w/o a From:Jon Trowbridge2001-10-022-2/+11
| | | | | | | | | | | 2001-10-01 Jon Trowbridge <trow@ximian.com> * mail-display.c (on_url_requested): Make sure we aren't dealing with a pathological message w/o a From: header. (ebook_callback): Properly check that the address we queried matches the address on the current message. (Bug #10038) svn path=/trunk/; revision=13295
* Check for errorsIain Holmes2001-10-027-13/+34
| | | | svn path=/trunk/; revision=13292
* replace my_list_find() == NULL with my_list_find() != NULL.Jeffrey Stedfast2001-10-022-2/+7
| | | | | | | | | 2001-10-01 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (mail_vfolder_remove_uri): replace my_list_find() == NULL with my_list_find() != NULL. svn path=/trunk/; revision=13282
* create storages for providers that are STORAGE and aren't EXTERNAL, ratherDan Winship2001-10-026-62/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * component-factory.c (mail_load_storage_by_uri): create storages for providers that are STORAGE and aren't EXTERNAL, rather than "(STORAGE and REMOTE) or spool, maildir, or vfolder". (mail_remove_storage_by_uri): Use the same rule here (which makes it possible now to remove maildir and spool stores now, which weren't properly special-cased before). Remove some CamelException misuse. * mail-config.c (new_source_created): Fix up the broken INBOX- shortcut-generating assumption a little by only assuming that if you call camel_store_get_inbox(), that its full_name is the same as its path. (This happens to always be true for inboxes now, and will be always true by definition at some point in the future.) Now maildir stores get working Inbox shortcuts. * mail-send-recv.c (get_receive_type): If PROVIDER_IS_STORAGE then use SEND_UPDATE, if not, use SEND_RECEIVE. * mail-local.c (local_provider): The local provider is EXTERNAL. (The shell creates it.) (mail_local_reconfigure_folder): Allow reconfiguring between IS_LOCAL providers. * mail-accounts.c (news_delete): Don't need to check the provider flags here... we know nntp is a STORAGE. svn path=/trunk/; revision=13277
* Don't use mail_tool_get_folder_name here since that function only existedDan Winship2001-10-024-66/+32
| | | | | | | | | | | | | | | | | * mail-local.c (mail_local_reconfigure_folder): Don't use mail_tool_get_folder_name here since that function only existed to be clever in a certain case that this is not. (reconfigure_folder_free): Remove the dialog from the hash table here so that it gets removed in the successfully-reconfigured case too. Don't unref folder_out if it never got set. (reconfigure_clicked): Remove the hash table code from here; it's in reconfigure_folder_free now. * mail-tools.c (mail_tool_get_folder_name): No longer used by anything. (mail_tool_get_folder_from_urlname): Also not used anywhere. svn path=/trunk/; revision=13273
* Don't pass the CREATE flag, we shouldn't ever need this...Jeffrey Stedfast2001-10-022-2/+6
| | | | | | | | | 2001-10-01 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_uri_to_folder): Don't pass the CREATE flag, we shouldn't ever need this... svn path=/trunk/; revision=13268
* if gnome-vfs returns application/octet-stream with the magic check, useLarry Ewing2001-10-022-7/+21
| | | | | | | | | | 2001-10-01 Larry Ewing <lewing@ximian.com> * mail-identify.c (mail_identify_mime_part): if gnome-vfs returns application/octet-stream with the magic check, use the filename check instead since it at least has a chance of being useful. svn path=/trunk/; revision=13265
* wrap a bonobo_ui_component_freeze/thaw around all of the set_props so theyDan Winship2001-09-292-0/+10
| | | | | | | | * folder-browser-ui.c (fbui_sensitize_timeout): wrap a bonobo_ui_component_freeze/thaw around all of the set_props so they all update at once. svn path=/trunk/; revision=13245
* Don't create checkboxes for global Threaded or Preview options as they areJeffrey Stedfast2001-09-294-30/+13
| | | | | | | | | 2001-09-28 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Don't create checkboxes for global Threaded or Preview options as they are now removed. svn path=/trunk/; revision=13244
* Setup vfolder storage before all others.82001-09-292-2/+3
| | | | | | | | | 2001-09-28 <NotZed@Ximian.com> * component-factory.c (owner_set_cb): Setup vfolder storage before all others. svn path=/trunk/; revision=13243
* Emit folder_deleted event. (remove_find_path): Fix, compare against path,82001-09-298-114/+437
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-28 <NotZed@Ximian.com> * mail-local.c (mail_local_store_remove_folder): Emit folder_deleted event. (remove_find_path): Fix, compare against path, not full_name. * mail-tools.c (mail_tool_uri_to_folder): Dont vfolder_register_source anymore. * mail-vfolder.c (rule_changed): Changed to access mail_fodler_cahce to find out if the folder exist yet before trying to open them, also use the cache as a cache so we dont have to open the folder if its already been opened. (vfolder_register_source, register_source): Removed. (source_finalise): Removed, (check_source): Removed. All handled through diff mechanism. (mail_vfolder_add_uri): New function, records uri's of available folders, and adds them to any active vfolders if required. (mail_vfolder_remove_uri): New function, removes a uri from available folders, and checks any rules to see fi they need updating. (vfolder_adduri): New async function to add a uri to all vfolders that need it. (store_folder_deleted): oops! free user, not rule!! * mail-folder-cache.c: Add uri->folderinfo hashtable, and the store from which they come into the store info struct. Add uri to the folder_info. (setup_folder): Store the uri in the folderinfo. (setup_folder): And the uri in the folder_uri hashtable. (mail_note_store): Store the store in the storeinfo, and setup the folders_uri hashtable via the store's hash functions. (setup_folder): Call mail_vfolder_add_uri to note this newly setup folder uri. (store_folder_deleted): Proxy call to main thread. (real_folder_deleted): And tell the vfolder to remove this uri from its folder list. (setup_folder): Dont call vfolder_add_uri if noselect is set on the uri. 2001-09-27 <NotZed@Ximian.com> * mail-vfolder.c: Removed vfolder_info struct, vfolder_storage. Neither used anymore. svn path=/trunk/; revision=13242
* Use Camel to compare the urls rather than using e_url_equal which does allJeffrey Stedfast2001-09-292-7/+34
| | | | | | | | | | 2001-09-28 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_get_account_by_transport_url): Use Camel to compare the urls rather than using e_url_equal which does all sorts of funky shit that may not work in every case. svn path=/trunk/; revision=13239
* Setup the url_hash and url_equal functions for the local provider.Jeffrey Stedfast2001-09-294-29/+110
| | | | | | | | | | | | | | | | | | | | | 2001-09-28 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (mail_local_provider_init): Setup the url_hash and url_equal functions for the local provider. * mail-account-gui.c (mail_account_gui_save): Add code here to check to make sure that the Drafts and Sent folders are pointing to valid urls. This is kinda nasty and only really solves the case where the user changes, say, his imap server or something. Unfortunately we still have the problem where if account A's sent/drafts folders point to account B's store and the user changes the url for account B. * mail-config.c (mail_config_get_account_by_source_url): Use Camel to compare the urls rather than using e_url_equal which does all sorts of funky shit that may not work in every case. svn path=/trunk/; revision=13238
* Don't call mail_config_service_set_save_passwd if we didn't find aDan Winship2001-09-292-1/+7
| | | | | | | * mail-mt.c (pass_got): Don't call mail_config_service_set_save_passwd if we didn't find a service. svn path=/trunk/; revision=13231
* Just add the shortcut to the first group.Ettore Perazzoli2001-09-292-53/+12
| | | | | | | * mail-config.c (add_shortcut_entry): Just add the shortcut to the first group. svn path=/trunk/; revision=13229
* Call folder_browser_toggle_threads() here after setting the value. ThisJeffrey Stedfast2001-09-292-3/+10
| | | | | | | | | | | 2001-09-28 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c (folder_browser_ui_add_list): Call folder_browser_toggle_threads() here after setting the value. This should fix bug #6415 and if it doesn't, then this whole deal is just a lost cause. svn path=/trunk/; revision=13226
* removed mail-vtrash.cJeffrey Stedfast2001-09-291-1/+1
| | | | svn path=/trunk/; revision=13221
* Added mail_msg_cleanup() prototype.Jeffrey Stedfast2001-09-293-1/+5
| | | | | | | | 2001-09-28 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.h: Added mail_msg_cleanup() prototype. svn path=/trunk/; revision=13219
* Deal with camel_mime_filter_charset_new_convert returning NULL. (EveryDan Winship2001-09-282-2/+11
| | | | | | | | | * mail-format.c (get_data_wrapper_text): Deal with camel_mime_filter_charset_new_convert returning NULL. (Every other call to it does, and something's wrong with iconv on the Sun right now so it keeps failing.) svn path=/trunk/; revision=13214
* Always make the Cancel button the last one.Ettore Perazzoli2001-09-282-5/+14
| | | | | | | * mail-mt.c (do_user_message): Always make the Cancel button the last one. svn path=/trunk/; revision=13207
* No such event finalized! Its finalize. (mail_note_store): "72001-09-283-9/+41
| | | | | | | | | | | | | | | | | | | 2001-09-27 <NotZed@Ximian.com> * mail-folder-cache.c (real_note_folder): No such event finalized! Its finalize. (mail_note_store): " Fixed dan's comment a bit, info != NULL for folder_created, info== NULL for changed. 2001-09-26 <NotZed@Ximian.com> * mail-local.c (mlf_set_message_flags): Proxy the set_message_flags call too. Doesn't fix the 'local folder counts dont update' problem, but its more correct. svn path=/trunk/; revision=13200
* Perform a NULL-check. Hopefully fixes bug #7874.Jeffrey Stedfast2001-09-282-0/+8
| | | | | | | | | 2001-09-27 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (mail_session_remember_password): Perform a NULL-check. Hopefully fixes bug #7874. svn path=/trunk/; revision=13198
* A service needs to be disconnected if it's remote, not already offline,Dan Winship2001-09-273-32/+68
| | | | | | | | | | | | | | | | | | | | * mail-offline-handler.c (service_is_relevant): A service needs to be disconnected if it's remote, not already offline, and either connected OR connecting. (storage_go_offline): Don't put non-relevant stores offline. (Eg, don't force an IMAP store which you hadn't already connected to to connect and sync.) (storage_go_online): Likewise, don't "reconnect" stores that weren't connected before. * mail-ops.c (set_offline_desc): Fix the message to say "reconnecting" instead of "disconnecting" when appropriate. (mail_store_set_offline): If offline is TRUE, call camel_service_cancel_connect on the store. (We do this here because we don't want the cancel_connect request to get queued up behind a hanging connection attempt.) svn path=/trunk/; revision=13192
* ChangeLog fix.Chris Lahey2001-09-271-0/+1
| | | | svn path=/trunk/; revision=13179
* Added a "Description:" label and moved the source_description andAnna Marie Dirks2001-09-272-83/+124
| | | | | | | | | | 2001-09-26 Anna Marie Dirks <anna@ximian.com> * mail-config.glade: Added a "Description:" label and moved the source_description and transport_description labels to a more appropriate place. svn path=/trunk/; revision=13178
* Check for the root node here.Christopher James Lahey2001-09-272-0/+7
| | | | | | | | 2001-09-26 Christopher James Lahey <clahey@ximian.com> * message-list.c (mlfe_callback): Check for the root node here. svn path=/trunk/; revision=13177
* Change the wording of the password dialog if we are getting a pgpJeffrey Stedfast2001-09-272-1/+8
| | | | | | | | | | 2001-09-26 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (do_get_pass): Change the wording of the password dialog if we are getting a pgp passphrase so that users don't misinterpret it to mean saving the passphrase forever. svn path=/trunk/; revision=13176
* strdup our "This message contains invalid recipients" string, since itJon Trowbridge2001-09-272-1/+6
| | | | | | | | | | 2001-09-26 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (composer_get_message): strdup our "This message contains invalid recipients" string, since it gets freed later. And then don't leak the message string. (Bug #10877) svn path=/trunk/; revision=13175
* Use camel_address_format, not camel_address_encode.Jon Trowbridge2001-09-272-2/+5
| | | | | | | | | 2001-09-26 Jon Trowbridge <trow@ximian.com> * mail-format.c (write_address): Use camel_address_format, not camel_address_encode. svn path=/trunk/; revision=13174
* Decode our URL before extracting the address to pop up contact info.Jon Trowbridge2001-09-274-16/+32
| | | | | | | | | | | | | 2001-09-26 Jon Trowbridge <trow@ximian.com> * mail-display.c (html_button_press_event): Decode our URL before extracting the address to pop up contact info. * mail-format.c (write_address): When writing out a mailto: link, make sure we construct a valid URL w/ correct encoding. Make sure our address is properly quoted, if necessary. svn path=/trunk/; revision=13160
* Add a big comment explaining unread message counts so no one can mess themDan Winship2001-09-273-3/+41
| | | | | | | | | | | | * mail-folder-cache.c: Add a big comment explaining unread message counts so no one can mess them up again in the future. :-) (update_1folder): If info->unread_message_count is -1, don't do anything. * component-factory.c (component_factory_init): warn and exit if oaf_active_server_register returns OAF_REG_ALREADY_ACTIVE. svn path=/trunk/; revision=13155
* Oops, translate the fake account name to UTF-8.Jeffrey Stedfast2001-09-272-1/+6
| | | | | | | | | 2001-09-26 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (config_read): Oops, translate the fake account name to UTF-8. svn path=/trunk/; revision=13152
* Use e_tree_selected_path_foreach instead of e_tree_selected_row_foreachChristopher James Lahey2001-09-262-4/+10
| | | | | | | | | | 2001-09-26 Christopher James Lahey <clahey@ximian.com> * message-list.c (message_list_foreach): Use e_tree_selected_path_foreach instead of e_tree_selected_row_foreach here. svn path=/trunk/; revision=13145
* refactor to allow syslogging; hmm.Michael Meeks2001-09-262-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-27 Michael Meeks <michael@ximian.com> * bonobo/bonobo-moniker-util.c (bonobo_get_object): refactor to allow syslogging; hmm. * bonobo/bonobo-ui-util.c: prune stuff, give up hope of libxml1 ever coping with utf-8 properly - cut confusing dup'd routines. 2001-09-26 Michael Meeks <michael@ximian.com> * bonobo/bonobo-ui-component.c (bonobo_ui_component_remove_verb), (bonobo_ui_component_remove_verb_by_func), (bonobo_ui_component_remove_verb_by_data), (bonobo_ui_component_add_listener_full), (bonobo_ui_component_remove_listener), (bonobo_ui_component_remove_listener_by_func), (bonobo_ui_component_remove_listener_by_data), (impl_xml_get, impl_xml_set, impl_xml_rm), (bonobo_ui_component_object_set), (bonobo_ui_component_object_get), (impl_freeze, impl_thaw, impl_get_prop), (impl_exists, bonobo_ui_component_unset_container), (bonobo_ui_component_set_container), (bonobo_ui_component_get_container), (ui_event, bonobo_ui_component_add_verb_full), (impl_Bonobo_UIComponent_execVerb): add preconditions that priv != NULL on every deref path; it seems people like to work with destroyed obejcts. svn path=/trunk/; revision=13140
* Update to not send the remember-passphrase option to the context, itJeffrey Stedfast2001-09-268-60/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-25 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (decode_pgp): Update to not send the remember-passphrase option to the context, it doesn't need it anymore. (try_inline_pgp_sig): Same. * mail-accounts.c (construct): The remember-passphrase option is no longer there. This can now be set on the passphrase prompt dialog. (construct): Add confirm expunge options. * mail-config.c (config_read): We no longer read-in the remember-passphrase state because we no longer need it. (mail_config_write_on_exit): We no longer save it either. (mail_config_get_remember_pgp_passphrase): Removed. (mail_config_set_remember_pgp_passphrase): Removed. * mail-crypto.c (mail_crypto_pgp_mime_part_sign): No longer do we need to send the remember passphrase state to the pgp context. (mail_crypto_pgp_mime_part_verify): Same. (mail_crypto_pgp_mime_part_encrypt): Here too. (mail_crypto_pgp_mime_part_decrypt): And here. svn path=/trunk/; revision=13139
* [Patch for Automake 1.5 compatibility pointed out by RichardEttore Perazzoli2001-09-262-1/+8
| | | | | | | | Boulton <richard@tartarus.org>, as per #9258.] * Makefile.am (CLEANFILES): Assign directly, not with `+='. svn path=/trunk/; revision=13135
* The folder-info needs to take priority over the folder because of the wayJeffrey Stedfast2001-09-262-3/+15
| | | | | | | | | | | | 2001-09-25 Jeffrey Stedfast <fejj@ximian.com> * mail-folder-cache.c (update_1folder): The folder-info needs to take priority over the folder because of the way IMAP works (which is that it doesn't actually update the folders until you SELECT them and so when you do get_folder_info(), it doesn't actually SELECT the folders, it just STATUS's them). svn path=/trunk/; revision=13133
* Deal with destroy vs finalise semantics. Only destroy widgets here.52001-09-266-23/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-25 <NotZed@Ximian.com> * folder-browser.c (folder_browser_destroy): Deal with destroy vs finalise semantics. Only destroy widgets here. (folder_browser_finalise): object finalise function, actually unref/free all other objects here. (folder_browser_class_init): Init the finalise hook. (got_folder): Check if message_list == NULL -> we've been destroyed before the thread got a chance to finish loading the folder. (folder_browser_is_drafts): Dont use a g_return_if_fail to return in what could be a valid state of the object. (folder_browser_is_sent): Likewise. (folder_browser_copy): Do nothing if message_list == NULL. * main.c (main): call mail_msg_cleanup() before leaving threads. * component-factory.c (owner_unset_cb): Wait for all outstanding operations to finish before setting up to quit. (idle_quit): Wait for all outstanding ops to finish before cleanup. (unref_standard_folders): NULL out the standard folder before unreffing it. * mail-mt.c (mail_msg_wait_all): New function to wait for all outstanding thread operations. (mail_msg_cleanup): Destroy the io channels before we're finished. Also wait for all outstanding threads first. Made public. (mail_msg_init): Dont call mail_msg_cleanup atexit automatically. svn path=/trunk/; revision=13129
* If the data wrapper contains raw text, treat the contents as if they wereJeffrey Stedfast2001-09-262-1/+21
| | | | | | | | | | 2001-09-25 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (get_data_wrapper_text): If the data wrapper contains raw text, treat the contents as if they were in the user's default charset and convert them to UTF-8. svn path=/trunk/; revision=13119
* Throw up a warning dialog if we suspect the config database is corrupt.Jeffrey Stedfast2001-09-264-9/+53
| | | | | | | | | | | | | | | 2001-09-25 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (owner_set_cb): Throw up a warning dialog if we suspect the config database is corrupt. * mail-config.c (config_read): If the account name is NULL, then we have a corrupt config database most likely - so generate a fake account name and set the corrupt but to TRUE. (mail_config_is_corrupt): New function to find out if the config is suspected of being corrupted. svn path=/trunk/; revision=13116
* Check if the transport is NULLIain Holmes2001-09-262-0/+10
| | | | svn path=/trunk/; revision=13113
* Remove the FIXME menu itemIain Holmes2001-09-262-0/+6
| | | | svn path=/trunk/; revision=13112
* Only cache the password for the service if it has an entry in the accountJeffrey Stedfast2001-09-263-18/+33
| | | | | | | | | 2001-09-25 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (pass_got): Only cache the password for the service if it has an entry in the account database. Fixes bug #10875. svn path=/trunk/; revision=13111
* Use e_strftime_fix_am_pm instead of strftime.Christopher James Lahey2001-09-252-5/+10
| | | | | | | | | 2001-09-24 Christopher James Lahey <clahey@ximian.com> * message-list.c (filter_date): Use e_strftime_fix_am_pm instead of strftime. svn path=/trunk/; revision=13104
* Removed unused variables.42001-09-254-42/+81
| | | | | | | | | | | | | | | | | | | | | 2001-09-24 <NotZed@Ximian.com> * mail-local.c (mls_get_folder): Removed unused variables. * component-factory.c (storage_create_folder): Remove unused variable. * mail-format.c (write_default_header): Used to write a header that we know about/normally print. Use a static header table to index these. (write_header): removed. (default_header_index): Return the index of the default header. (write_headers): Changed the way it writes headers a bit. Use write_default_header or write_text_header directly. Also try and use the header charset as a fallback if the header can't be decoded using the locale charset. svn path=/trunk/; revision=13097
* Always cache POP and IMAP passwords, even if the user didn't tell us to.Jeffrey Stedfast2001-09-242-0/+10
| | | | | | | | | 2001-09-23 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (pass_got): Always cache POP and IMAP passwords, even if the user didn't tell us to. Fixes bug #10569. svn path=/trunk/; revision=13089
* If we have an operation that failed before, dont show the dialogue for the12001-09-222-1/+32
| | | | | | | | | | | | 2001-09-21 <NotZed@Ximian.com> * mail-mt.c (mail_msg_check_error): If we have an operation that failed before, dont show the dialogue for the the new error. Also use gtk_widget_show rather than invoking another main loop. Fix for lazy people who like to leave their mailers running and go home. svn path=/trunk/; revision=13075
* Use the mail-tools convenience functions to remove and restore theJeffrey Stedfast2001-09-223-74/+14
| | | | | | | | | | 2001-09-21 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): Use the mail-tools convenience functions to remove and restore the X-Evolution headers. (mail_update_subfolders): Removed. svn path=/trunk/; revision=13064
* All made redundant by new mail-folder-cache code. (delete_folders,Michael Zucci2001-09-224-113/+11
| | | | | | | | | | | | | | | * mail-callbacks.c (mail_storage_create_folder, folder_created, create_folders): All made redundant by new mail-folder-cache code. (delete_folders, folder_deleted): Uh, code that isn't used anywhere. Removed. * component-factory.c (storage_create_folder): Dont call folder_created, let the folder_created event handle the update. * mail-ops.c (mail_scan_subfolders): Remove, no longer used. svn path=/trunk/; revision=13059
* Use url path as full_name, not shell path. (mail_local_folder_construct):12001-09-222-23/+13
| | | | | | | | | | | | | 2001-09-21 <NotZed@Ximian.com> * mail-local.c (mail_local_store_add_folder): Use url path as full_name, not shell path. (mail_local_folder_construct): Remove path argument, and use the full_name instead. (mls_get_folder): Dont lookup folderinfo in cache. Like duh the shell hasn't told me its there yet, smaaaart. svn path=/trunk/; revision=13053
* Take a new argument 'done' that can callback when complete. Fixed callers12001-09-217-17/+46
| | | | | | | | | | | | | | | | 2001-09-21 <NotZed@Ximian.com> * mail-folder-cache.c (mail_note_store): Take a new argument 'done' that can callback when complete. Fixed callers appropriately. * mail-ops.c (mail_update_subfolders): Removed. Isn't used anymore. * mail-send-recv.c (receive_update_got_store): Remove call to mail_update_subfolders. svn path=/trunk/; revision=13044
* Dont let drafts/outbox/sent be added via a generic 'all local folders'02001-09-212-0/+8
| | | | | | | | | 2001-09-20 <NotZed@Ximian.com> * mail-vfolder.c (check_source): Dont let drafts/outbox/sent be added via a generic 'all local folders' rule. svn path=/trunk/; revision=13042
* trigger a folder changed event, so the folderinfocache stuff has a chance02001-09-213-10/+29
| | | | | | | | | | | | | | 2001-09-20 <NotZed@Ximian.com> * component-factory.c (got_folder): trigger a folder changed event, so the folderinfocache stuff has a chance to see if this is the outbox_folder or not. * mail-folder-cache.c (update_1folder): If we have -1 unread count, pass that as 0 to the shell so it doesn't go bolding. (setup_folder): Same. svn path=/trunk/; revision=13041
* Only add the account if it doesn't already exist in the config db.Jeffrey Stedfast2001-09-214-3/+17
| | | | | | | | | | | | 2001-09-20 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Only add the account if it doesn't already exist in the config db. * mail-config.c (mail_config_find_account): New convenience function. svn path=/trunk/; revision=13039
* Do not add the account here as this is taken care of inJeffrey Stedfast2001-09-215-38/+48
| | | | | | | | | | | | | | | | 2001-09-20 Jeffrey Stedfast <fejj@ximian.com> * mail-config-druid.c (wizard_finish_cb): Do not add the account here as this is taken care of in mail_account_gui_save() since it has to be able to set the default account. * mail-config.c (mail_config_set_default_account): Don't allow the index to become invalid. * mail-account-gui.c (mail_account_gui_save): Add the account before setting it as the default. svn path=/trunk/; revision=13037
* Update the status bar here, assuming we've just been activated.02001-09-216-22/+49
| | | | | | | | | | | | | | | | | | | | | 2001-09-20 <NotZed@Ximian.com> * folder-browser.c (folder_browser_set_shell_view): Update the status bar here, assuming we've just been activated. * mail-ops.c (add_vtrash_info): Scan whole list, rather than missing the last one. Also dont assume its always the last, otherwise we could lose following folders. * mail-vfolder.c (all): d(x) out debug printfs * mail-folder-cache.c (update_1folder): If its a vtrash folder, or the outbox_folder, and we have a folder, then make the 'count' the total message count, not unread messages count. svn path=/trunk/; revision=13036
* Don't "note" the folder if we failed to get it.Jeffrey Stedfast2001-09-212-10/+10
| | | | | | | | | 2001-09-20 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_uri_to_folder): Don't "note" the folder if we failed to get it. svn path=/trunk/; revision=13030
* Set the sensitivity of the buttons correctlyIain Holmes2001-09-212-1/+8
| | | | svn path=/trunk/; revision=13029
* Lock around hashtable/list manipulation. Also dont try scan vfolder_hash02001-09-219-102/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-20 <NotZed@Ximian.com> * mail-vfolder.c (vfolder_register_source): Lock around hashtable/list manipulation. Also dont try scan vfolder_hash if it hasn't been setup yet. (source_finalise): Lock around list access. (rule_changed): Lock around hash access. (context_rule_added): Lock around hash access. (context_rule_removed): " (rule_changed): Lock around list access. * mail-local.c (storage_listener_startup): Fix for api change. (local_storage_new_folder_cb): Dont skip over leading / in path. (local_storage_removed_folder_cb): ditto. * mail-folder-cache.c (create_folders): No longer pass prefix between recursive calls - we have the path in the folderinfo. (setup_folder): No longer take path arg, we get it from folderinfo. (mail_note_folder): No longer take path arg, we use folder->full_name to key the folder table. (mail_note_store): Consolidate note_store interface, pass storage or corba_storage to it. (mail_note_local_store): Removed. * mail-ops.c (add_unmatched_info): Scan for unmatched name and re-title. svn path=/trunk/; revision=13023
* Set the folder info path.Jeffrey Stedfast2001-09-212-9/+13
| | | | | | | | | 2001-09-20 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (mail_local_store_add_folder): Set the folder info path. svn path=/trunk/; revision=13020
* Register vfolder sources here.02001-09-2111-12/+49
| | | | | | | | | | | | | | | | | | | | | 2001-09-20 <NotZed@Ximian.com> * mail-tools.c(mail_tool_uri_to_folder): Register vfolder sources here. * folder-browser.c (got_folder): Dont register vfolder sources here. * mail-ops.c (mail_get_folder): Add thread parameter. Fix callers. * mail-vfolder.c (vfolder_setup): Use the 'slow' queue for setting up vfolders. * mail-mt.c (mail_msg_init): Limit the maximum number of threads on the 'new' thread to 10. (mail_msg_init): Create a new queue 'slow' for doing slow operations. svn path=/trunk/; revision=13017
* Make a neater error reportIain Holmes2001-09-213-3/+8
| | | | svn path=/trunk/; revision=13016
* Dont special case file: url's anymore.02001-09-214-41/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-20 <NotZed@Ximian.com> * mail-tools.c (mail_tool_uri_to_folder): Dont special case file: url's anymore. * mail-local.c: Add real_path to MailLocalFolder. (mail_local_folder_construct): Added path argument, setup full_name == path, and real_path == full_name. (mls_get_folder): First lookup folderinfo to confirm this folder exists, then use that to properly construct the folder paths. (mail_local_folder_reconfigure): Use real_path not full_name to create the store uri. (mlf_set_folder): Use real_path not folder_name to get real uri path. 2001-09-19 <NotZed@Ximian.com> * mail-folder-cache.c (setup_store): Use the wrong spelling of finalised for the event hook. (real_note_folder): Use the wrong spelling of finalised for the event hook. (free_folder_info): Free the full_name parameter. (setup_folder): (real_note_folder): Key the folderinfo table on full_name, not path. svn path=/trunk/; revision=13014
* Convert all textual parts to 8bit before saving. Fixes bug #10388.Jeffrey Stedfast2001-09-213-2/+39
| | | | | | | | | | | | 2001-09-20 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (save_messages_save): Convert all textual parts to 8bit before saving. Fixes bug #10388. * mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Oops, don't free memory that we don't own. svn path=/trunk/; revision=13013
* don't free memory that we don't own.Jeffrey Stedfast2001-09-212-5/+11
| | | | svn path=/trunk/; revision=13011
* No need to have g_warnings here. If it's done properly, therapeutically,Dan Winship2001-09-212-2/+6
| | | | | | | | * mail-config.c (evolution_mail_config_factory_init): No need to have g_warnings here. If it's done properly, therapeutically, there's no danger involved. svn path=/trunk/; revision=13010
* Truncate extremely long subjects. (inspired by bug #9158)Jon Trowbridge2001-09-203-4/+22
| | | | | | | | | | | | 2001-09-19 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (mail_generate_reply): Truncate extremely long subjects. (inspired by bug #9158) * mail-tools.c (mail_tool_generate_forward_subject): Truncate extremely long subjects. (bug #9158) svn path=/trunk/; revision=13007
* Here too.Jeffrey Stedfast2001-09-203-2/+11
| | | | | | | | | | | | 2001-09-19 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (receive_update_got_store): Here too. * component-factory.c (create_view): Call mail_note_store() instead of mail_scan_subfolders() here so that these folders get hooked up with the unread count code. svn path=/trunk/; revision=12999
* const fixIain Holmes2001-09-201-2/+2
| | | | svn path=/trunk/; revision=12998
* Fix memory leakIain Holmes2001-09-202-0/+5
| | | | svn path=/trunk/; revision=12997
* Convert the names to the locale charset.Jeffrey Stedfast2001-09-202-14/+24
| | | | | | | | | 2001-09-19 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Convert the names to the locale charset. svn path=/trunk/; revision=12994
* Pass the actual unread message count, not just whether or not it's > 0.Dan Winship2001-09-202-2/+8
| | | | | | | | * mail-callbacks.c (create_folders): Pass the actual unread message count, not just whether or not it's > 0. Fixes ximian 9089. svn path=/trunk/; revision=12979
* Added missing header.92001-09-194-4/+17
| | | | | | | | | | | | | | | 2001-09-19 <NotZed@Ximian.com> * component-factory.c: Added missing header. * mail-local.c (mail_local_store_add_folder): Async load the folder we just added, so it can update the folder counts in the display. We just discard the folder afterwards? * mail-ops.c (mail_get_folder): Use the queued thread to get folders. svn path=/trunk/; revision=12976
* General cleanup of mail debug printfs.92001-09-1915-1005/+544
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-19 <NotZed@Ximian.com> * General cleanup of mail debug printfs. * mail-folder-cache.[ch]: Completely rewritten. Removed all calls to the old code everywhere they were used. Nuff said. * folder-browser.h: Add shell_view to folder_browser & api to set it. * folder-browser-factory.c (control_activate): Set the shell-view on the folder_browser. (control_deactivate): And clear it here. * folder-browser.c (folder_browser_destroy): Unhook from changed events on the folder before giving it away. (got_folder): Hook onto the folder-changed events. (folder_changed): Event hook proxy for folder_changed events (main_folder_changed): And the main code version. (update_status_bar): And the one that actually does the work. (on_selection_changed): Also call update_status_bar() to update the selection count. (folder_browser_set_shell_view): Implement function to set the shell_view on the folder_browser. (folder_browser_destroy): Release the shell_view here too. * mail-tools.c (mail_tool_uri_to_folder): Dont 'note' the new folder if its from a file: url, this is handled by hte local store (yeeruughck). * mail-local.c (mls_init): (free_info): (mls_finalise): Setup init/finalise funcs for the folderinfo hash. (local_storage_removed_folder_cb): re-enable. 2001-09-18 <NotZed@Ximian.com> * mail-local.c (MailLocalStore): Add a hash table to store uri<>folderinfo data. (mail_local_store_add_folder): Add a new folderinfo to our hash. (mail_local_store_remove_folder): Remove a folder by uri. (storage_listener_startup): Add this store to those monitored by the folder tree. svn path=/trunk/; revision=12974
* Make the title translatable, and also use the account name when possible.Jeffrey Stedfast2001-09-192-2/+20
| | | | | | | | | 2001-09-18 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (do_get_pass): Make the title translatable, and also use the account name when possible. Sorta fixes bug #6277. svn path=/trunk/; revision=12964
* Function to get the real receive tpe for ag iven url. IMAP/SPOOL/MAILDIR72001-09-192-9/+21
| | | | | | | | | | | | | 2001-09-17 <NotZed@Ximian.com> * mail-send-recv.c (get_receive_type): Function to get the real receive tpe for ag iven url. IMAP/SPOOL/MAILDIR types just update their info, dont download. (build_dialogue): (mail_receive_uri): Use function above to get the right receive type. svn path=/trunk/; revision=12957
* Oops, forgot about X-Evolution-Format.Jeffrey Stedfast2001-09-193-1/+12
| | | | | | | | | | 2001-09-18 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_remove_xevolution_headers): Oops, forgot about X-Evolution-Format. (mail_tool_restore_xevolution_headers): Same. svn path=/trunk/; revision=12955
* Merged into folder_browser_new: nothing ever changes the URI of anDan Winship2001-09-196-41/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | * folder-browser.c (folder_browser_set_uri): Merged into folder_browser_new: nothing ever changes the URI of an existing folder browser any more. (folder_browser_new): Make this take a uri argument and do the work folder_browser_set_uri used to do, except that we set fb->uri right away, so that if the folder browser's control is activated before got_folder() gets called, then folder_browser_ui_add_list() will have access to the correct uri for purposes of setting ViewThreaded, etc. Fixes #4913. (got_folder): Don't set fb->uri here since it will already have been set. Don't call message_list_set_threaded, since it should be a noop now (and if it's not, it would make the message list not match the menu item). * folder-browser-ui.c (folder_browser_ui_add_list): Remove some code that was failing to work around the problems above. * message-browser.c (message_browser_new): Pass uri to folder_browser_new, remove call to set_uri. * folder-browser-factory.c (folder_browser_factory_new_control): Likewise. Also fix a s/destroy/unref/ in an error cleanup. svn path=/trunk/; revision=12954
* Pass a 'cache-me' argument to mail_get_password.Jeffrey Stedfast2001-09-194-30/+52
| | | | | | | | | | | | | | | 2001-09-18 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (get_password): Pass a 'cache-me' argument to mail_get_password. * mail-mt.c (pass_got): Make less confusing... (mail_get_password): Now takes an argument 'cache' that allows our caller to determine if the user wanted to cache his/her password or not. (pass_got): Set the cache option. svn path=/trunk/; revision=12950
* Call mail_content_loaded here rather than blocking if the message dataDan Winship2001-09-192-0/+10
| | | | | | | | * mail-format.c (mail_format_raw_message): Call mail_content_loaded here rather than blocking if the message data isn't available. svn path=/trunk/; revision=12949
* Unsubscribe from the folder before deleting it. Also, use the url's pathJeffrey Stedfast2001-09-183-33/+36
| | | | | | | | | | | | | | | 2001-09-17 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (storage_remove_folder): Unsubscribe from the folder before deleting it. Also, use the url's path instead of the shell's path since IMAP doesn't necessarily have to use "/" as the dir sep. * mail-ops.c (remove_folder_get): If the store supports subscriptions, make sure to unsubscribe from the folder before deleting it. svn path=/trunk/; revision=12931
* Get folderinfo 1 at a time rather than all at once.72001-09-182-1/+6
| | | | | | | | | 2001-09-17 <NotZed@Ximian.com> * mail-ops.c (mail_get_folderinfo): Get folderinfo 1 at a time rather than all at once. svn path=/trunk/; revision=12929
* Unsubscribe from the folder before deleting it.Jeffrey Stedfast2001-09-183-20/+27
| | | | | | | | | | | | | 2001-09-17 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (storage_remove_folder): Unsubscribe from the folder before deleting it. * mail-ops.c (remove_folder_get): If the store supports subscriptions, make sure to unsubscribe from the folder before deleting it. svn path=/trunk/; revision=12921
* Setup global corba_storage variable. (mls_get_folder): Set 'update72001-09-182-4/+21
| | | | | | | | | | | 2001-09-17 <NotZed@Ximian.com> * mail-local.c (storage_listener_startup): Setup global corba_storage variable. (mls_get_folder): Set 'update lstorage' on the newly opened folder. svn path=/trunk/; revision=12915
* Do nothing if the selection is NULL? Maybe this is the cause of bug #6817.Jeffrey Stedfast2001-09-182-1/+7
| | | | | | | | | 2001-09-17 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (invisible_selection_get_callback): Do nothing if the selection is NULL? Maybe this is the cause of bug #6817. svn path=/trunk/; revision=12910
* Go back to generating the cachename ourselves, but continue doing it theJeffrey Stedfast2001-09-182-3/+12
| | | | | | | | | | 2001-09-17 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_folder_to_cachename): Go back to generating the cachename ourselves, but continue doing it the way the dfault implementation of camel_folder_get_uri worked. svn path=/trunk/; revision=12908
* Updated required version of gal to 0.11.99.4.Christopher James Lahey2001-09-172-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-16 Christopher James Lahey <clahey@ximian.com> * configure.in: Updated required version of gal to 0.11.99.4. From calendar/ChangeLog: 2001-09-16 Christopher James Lahey <clahey@ximian.com> * gui/dialogs/meeting-page.c (build_etable): Updated this to match the new ETableSimple interface. From mail/ChangeLog: 2001-09-16 Christopher James Lahey <clahey@ximian.com> * message-list.c (ml_get_node_by_id): Made save_id const here. From shell/ChangeLog: 2001-09-16 Christopher James Lahey <clahey@ximian.com> * e-storage-set-view.c (etree_get_node_by_id): Made save_id const here. svn path=/trunk/; revision=12870
* Don;t destroy the pixbuf loader, unref it instead.Jeffrey Stedfast2001-09-173-10/+13
| | | | | | | | | | | | 2001-09-16 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (pixbuf_gen_idle): Don;t destroy the pixbuf loader, unref it instead. * mail-config.c (mail_config_folder_to_cachename): Use camel_folder_get_uri(). svn path=/trunk/; revision=12863
* Use camel_folder_get_uri().Jeffrey Stedfast2001-09-172-17/+8
| | | | | | | | | 2001-09-16 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_folder_to_cachename): Use camel_folder_get_uri(). svn path=/trunk/; revision=12861
* Major rewrite of most of the guts, handle changes based on signals and52001-09-156-324/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-15 <NotZed@Ximian.com> * mail-vfolder.c: Major rewrite of most of the guts, handle changes based on signals and events, etc. Use the main storage handling code that imap uses, etc. * mail-tools.c (mail_tool_uri_to_folder): Dont special case vfolder: anymore. * component-factory.c (owner_set_cb): use vfolder_load_storage(), new function to setup vfolder storage, after interaction has been enabled only. This might need some tweaking ... (storage_remove_folder): Removed all the folder lookup stuff. Just delete the folder based on the path passed in. There should be no reason this wouldn't work, right? 2001-09-14 <NotZed@Ximian.com> * mail-ops.c (get_folderinfo_get): Only add vtrash folder info, if store supports vtrash. * component-factory.c (mail_load_storage_by_uri): Let 'vfolder' stores show up too. 2001-09-13 <NotZed@Ximian.com> * mail-vfolder.c (vfolder_uri_to_folder): Open a vfolder then set its expression, since name?query open method is removed. svn path=/trunk/; revision=12856
* Return the cached value of camel_service_get_name so that we don't leakJeffrey Stedfast2001-09-152-16/+30
| | | | | | | | | | | | 2001-09-14 Jeffrey Stedfast <fejj@ximian.com> * subscribe-dialog.c (fe_root_value_at): Return the cached value of camel_service_get_name so that we don't leak memory. (fe_real_value_at): Don't strdup the node's name. (folder_etree_construct): Set the service_name. (fe_destroy): Free the service_name. svn path=/trunk/; revision=12849
* fixed a small memory leakJeffrey Stedfast2001-09-152-0/+4
| | | | svn path=/trunk/; revision=12848
* Added a refcount variable so set the refcount to 1. (sd_got_store): UnrefJeffrey Stedfast2001-09-152-46/+86
| | | | | | | | | | | | | | | | | 2001-09-14 Jeffrey Stedfast <fejj@ximian.com> * subscribe-dialog.c (store_data_new): Added a refcount variable so set the refcount to 1. (sd_got_store): Unref the store-data. (store_data_async_get_store): Ref the store-data. (store_data_ref): New function. (store_data_unref): New function. (subscribe_dialog_destroy): Instead of freeing the store-data here, unref it instead. We may just have an async function running. Set the callback function to NULL so that when the (remaining) async functions finish, they become no-ops. svn path=/trunk/; revision=12847
* Revert my bar_destroy code and replace it with dialog_destroy instead.Jeffrey Stedfast2001-09-152-3/+7
| | | | | | | | | 2001-09-14 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (build_dialogue): Revert my bar_destroy code and replace it with dialog_destroy instead. svn path=/trunk/; revision=12832
* Append a message to any exception we get appending to any folders afterJeffrey Stedfast2001-09-152-0/+27
| | | | | | | | | | | 2001-09-14 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): Append a message to any exception we get appending to any folders after having sent the message successfully saying that the message was sent successfully so the user doesn't misinterpret the error. svn path=/trunk/; revision=12830
* Fixed double-freeing of EDestination vector when sending html mail toJon Trowbridge2001-09-142-1/+6
| | | | | | | | | | 2001-09-13 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (composer_get_message): Fixed double-freeing of EDestination vector when sending html mail to people who don't necessarily want it. Fixes bug #9848. svn path=/trunk/; revision=12821
* Modified to take a FolderETree instead of a CamelStore (since theJeffrey Stedfast2001-09-142-92/+100
| | | | | | | | | | | | | | | 2001-09-13 Jeffrey Stedfast <fejj@ximian.com> * subscribe-dialog.c (get_short_folderinfo_desc): (get_short_folderinfo_get): (get_short_folderinfo_got): (get_short_folderinfo_free): (subscribe_get_short_folderinfo): Modified to take a FolderETree instead of a CamelStore (since the CamelStore is inside the FolderETree anyway) so that we could ref the ETree to prevent a race condition. Should fix bug #9827. svn path=/trunk/; revision=12808
* Make sure that the charset_filter is non-NULL before using it since iconvJeffrey Stedfast2001-09-142-2/+10
| | | | | | | | | 2001-09-13 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (try_inline_pgp_sig): Make sure that the charset_filter is non-NULL before using it since iconv may fail. svn path=/trunk/; revision=12801
* free the credits string.Larry Ewing2001-09-132-0/+5
| | | | | | | | 2001-09-13 Larry Ewing <lewing@ximian.com> * mail-tools.c (mail_tool_quote_message): free the credits string. svn path=/trunk/; revision=12795
* Fixed the remove callback prototype, and return the result properly using22001-09-132-3/+26
| | | | | | | | | 2001-09-12 <NotZed@Ximian.com> * mail-vfolder.c (vfolder_remove_cb): Fixed the remove callback prototype, and return the result properly using the listener. svn path=/trunk/; revision=12786
* Save transport passwords too. This fixes bug #3020.Jeffrey Stedfast2001-09-132-8/+15
| | | | | | | | | 2001-09-12 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_write_on_exit): Save transport passwords too. This fixes bug #3020. svn path=/trunk/; revision=12777
* Don't set the folderinfo's unread count to 0 when camel reports -1, sinceDan Winship2001-09-122-6/+10
| | | | | | | | | | | * mail-folder-cache.c (mail_folder_cache_note_folderinfo): Don't set the folderinfo's unread count to 0 when camel reports -1, since that may overwrite a valid unread count from before. (get_folder_info): Do it here instead when first creating a new folderinfo structure. Should fix bug #1756. svn path=/trunk/; revision=12768
* call menu_file_save_error when there is an exception while saving.Larry Ewing2001-09-112-7/+27
| | | | | | | | | | | 2001-09-11 Larry Ewing <lewing@ximian.com> * mail-account-gui.c (menu_file_save_cb): call menu_file_save_error when there is an exception while saving. (menu_file_save_error): pop up a dialog telling the user the file has not been saved. svn path=/trunk/; revision=12765
* Dynamically create the folder type list from camel. (reconfigure_clicked):02001-09-119-760/+831
| | | | | | | | | | | | | | 2001-09-10 <NotZed@Ximian.com> * mail-local.c (mail_local_reconfigure_folder): Dynamically create the folder type list from camel. (reconfigure_clicked): And change code to handle changes. 2001-09-10 <NotZed@Ximian.com> * merged mail_local patch from peterw. Many changes. svn path=/trunk/; revision=12759
* Handle empty accountsIain Holmes2001-09-112-2/+11
| | | | svn path=/trunk/; revision=12756
* Don't use new_with_sig_file, that function no longer exists.Jeffrey Stedfast2001-09-114-11/+19
| | | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Don't use new_with_sig_file, that function no longer exists. (forward_get_composer): Same here. svn path=/trunk/; revision=12754
* Marked string for translation. (new_source_created): Ditto.Chyla Zbigniew2001-09-113-7/+19
| | | | | | | | | | | | * mail-config.c (add_shortcut_entry): Marked string for translation. (new_source_created): Ditto. * mail-send-recv.c (format_url): Marked strings for translation. (build_dialogue): Ditto. svn path=/trunk/; revision=12752
* Hide the S/MIME frame if we don't support S/MIME.Jeffrey Stedfast2001-09-112-1/+4
| | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Hide the S/MIME frame if we don't support S/MIME. svn path=/trunk/; revision=12743
* Attach to the destroy event for each progressbar using bar_destroyed asJeffrey Stedfast2001-09-112-2/+21
| | | | | | | | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (build_dialogue): Attach to the destroy event for each progressbar using bar_destroyed as the callback. (bar_destroyed): New callback to unregister the timeout and set the send-info's bar member to NULL so we don't try to update a destroyed progressbar. * mail-callbacks.c (mail_generate_reply): Pass along the right string, this fixes bug #9518. svn path=/trunk/; revision=12738
* Pass along the right string, this fixes bug #9518.Jeffrey Stedfast2001-09-112-1/+4
| | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Pass along the right string, this fixes bug #9518. svn path=/trunk/; revision=12736
* Don't save the authmech if the username doesn't exist. Fixes bug #9474.Jeffrey Stedfast2001-09-112-1/+4
| | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (save_service): Don't save the authmech if the username doesn't exist. Fixes bug #9474. svn path=/trunk/; revision=12735
* Remove some mailer-set headers. Fixes bug #9462.Jeffrey Stedfast2001-09-112-3/+13
| | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_edit_messages): Remove some mailer-set headers. Fixes bug #9462. svn path=/trunk/; revision=12734
* Fix obvious dumb mistake in previous commit that made it *always* complainDan Winship2001-09-112-16/+24
| | | | | | | | * mail-callbacks.c (composer_get_message): Fix obvious dumb mistake in previous commit that made it *always* complain you had invalid recipients. svn path=/trunk/; revision=12733
* Complain if we are trying to send to invalid recipients. (Bug #8875)Jon Trowbridge2001-09-102-6/+51
| | | | | | | | | 2001-09-09 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (composer_get_message): Complain if we are trying to send to invalid recipients. (Bug #8875) svn path=/trunk/; revision=12721
* We need to initialize all of the struct fields or else god knows what willJeffrey Stedfast2001-09-102-6/+29
| | | | | | | | | | | 2001-09-09 Jeffrey Stedfast <fejj@ximian.com> * mail-config-druid.c (evolution_mail_config_wizard_factory_fn): We need to initialize all of the struct fields or else god knows what will happen later when we try to use 'em. Also set a destroy function for the MailConfigWizard so we don't leak it. svn path=/trunk/; revision=12719
* s/gnu.org/ximian.com/. I should change that default at some point...Jon Trowbridge2001-09-091-1/+1
| | | | svn path=/trunk/; revision=12713
* Added. Shows a (hopefully) informative dialog warning you that someJon Trowbridge2001-09-094-31/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-08 Jon Trowbridge <trow@gnu.org> * mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Added. Shows a (hopefully) informative dialog warning you that some recipients might not want HTML mail (who are listed), and gives the option to cancel sending. (FIXME: The wording of this dialog could use some work.) (composer_get_message): Check if we are sending HTML to someone who might not want it, and raise the dialog if we are. Use our new destination-vector based api when talking to the composer. Touch our destinations here, boosting their use scores. This is the right place for this to happen --- closer to the end of the sending process, where incorrect/artificial use score inflation is less likely to occur. * mail-config.c (config_read): Added /Mail/Format/confirm_unwanted_html key. This flag determines whether or not we want to see the warning dialog when we send HTML mail to contacts who don't want it. Default is TRUE. (mail_config_write_on_exit): Write out the confirm_unwanted_html key. (mail_config_get_confirm_unwanted_html): Added. (mail_config_set_confirm_unwanted_html): Added. svn path=/trunk/; revision=12712
* Unref the invisible, don't just destroy it.Dan Winship2001-09-092-1/+6
| | | | | | | * mail-display.c (mail_display_destroy): Unref the invisible, don't just destroy it. svn path=/trunk/; revision=12704
* Change some words.Michael Zucci2001-09-081-1/+1
| | | | svn path=/trunk/; revision=12698
* kill off some warningsJeffrey Stedfast2001-09-081-2/+1
| | | | svn path=/trunk/; revision=12697
* Give the full path of the wax-seal icons. (try_inline_pgp_sig): ConvertJeffrey Stedfast2001-09-082-22/+48
| | | | | | | | | | | | | | | | 2001-09-07 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_write_authenticity): Give the full path of the wax-seal icons. (try_inline_pgp_sig): Convert the charset from UTF-8 to whatever charset it should be. Now takes a CamelMimePart argument as well. (try_uudecoding): Now takes a part argument as well. (try_inline_pgp): Here too. (try_binhex): And finally here. (handle_text_plain): Pass along the mime part to the try_* functions. svn path=/trunk/; revision=12688
* Give the full path of the wax-seal icons.Jeffrey Stedfast2001-09-082-2/+7
| | | | | | | | | 2001-09-07 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_write_authenticity): Give the full path of the wax-seal icons. svn path=/trunk/; revision=12684
* new function, to notify the bonobo listener inChris Toshok2001-09-072-18/+60
| | | | | | | | | | | | | 2001-09-06 Chris Toshok <toshok@ximian.com> * component-factory.c (notify_listener): new function, to notify the bonobo listener in remove_folder/create_folder. (storage_create_folder): match EvolutionStorage create_folder signal's signature. (storage_remove_folder): match EvolutionStorage remove_folder signal's signature. svn path=/trunk/; revision=12671
* Fix a bunch of replying/forwarding-related formatting bugs.Dan Winship2001-09-076-191/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2749 - Message text not included in reply, but html attachment is 4294 - "forward inline" should quote the same headers as the normal mail display 6100 - Reply to a forwarded email displays email headers 7255 - Replying to HTML message 7527 - replying to forwarded message w/ attachments does the wrong thing * mail-format.c (mail_get_message_rfc822): New function to get message headers and body together, for inline forwards, or replies containing attached messages. (mail_get_message_body): Redo this to always return HTML, but keep the "want_plain" flag, to decide whether to return HTML that looks like HTML or HTML that looks like plain text. Use mail_get_message_rfc822 to handle attached message/rfc822 parts. Don't include the text of vcard or icalendar attachments. Don't fail to include text parts just because we found an HTML part. (Since we're always returning HTML now, this doesn't cause problems any more.) * mail-tools.c (mail_tool_quote_message): Simplify greatly. mail_get_message_body always returns HTML now, and we let it take care of prepending "> "s too. We then let GtkHTML deal with converting the HTML to plain text if the user wants to reply in plain text. (mail_tool_forward_message): Simplify this a ton too: parts of it are moved into mail_get_message_rfc822 and parts are now unnecessary. * mail-callbacks.c (do_forward_non_attached): Call mail_tool_forward_message here always, and let it do the "> " quoting in the "quoted" case, so that we get the headers too when forwarding quoted. Related to bug #4294. svn path=/trunk/; revision=12657
* the "command" of a GnomeVFSMimeApplication can include arguments as well.Dan Winship2001-09-062-11/+12
| | | | | | | | * mail-display.c (launch_cb): the "command" of a GnomeVFSMimeApplication can include arguments as well. Deal with that. Fixes support for CodeWeavers' CrossOver Plugin. svn path=/trunk/; revision=12643
* removed conflict stuffJeffrey Stedfast2001-09-061-1/+0
| | | | svn path=/trunk/; revision=12641
* Adjust the default_account index correctly.Jeffrey Stedfast2001-09-063-7/+31
| | | | | | | | | | | | | | | | | | 2001-09-05 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_remove_account): Adjust the default_account index correctly. 2001-09-05 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_get_accounts): Added a g_assert to make sure that config wasn't NULL. This is meant to help debug bug #4911 and friends. * component-factory.c (owner_set_cb): Do not mail_config_init() here as we've already called this in main() in main.c. svn path=/trunk/; revision=12640
* [Fix #958, ShellComponents should not be created by factories, forEttore Perazzoli2001-09-063-25/+30
| | | | | | | | | | | | | | | | | the mailer case.] * GNOME_Evolution_Mail.oaf.in: Remove the GNOME_Evolution_Mail_ShellComponentFactory. * component-factory.c: Changed to not use a factory. (COMPONENT_FACTORY_ID): Removed. (COMPONENT_ID): New. (idle_quit): Don't unref the component_factory. (create_component): Renamed from `component_fn'. Take no args. (component_factory_init): Create the component with `create_component' and register it on OAF. svn path=/trunk/; revision=12637
* This patch should avoid flashing when loading images into mail view, creditsRadek Doulik2001-09-066-33/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | go to Dan, Larry and me ;) (fixes ximian #6680) 2001-09-06 Radek Doulik <rodo@ximian.com> * everywhere updated for new mail_content_loaded definition (prototype) 2001-09-05 Radek Doulik <rodo@ximian.com> * mail-display.c (mail_display_redisplay): increase redisplay_counter (try_part_urls): new helper function (try_data_urls): ditto (load_content_loaded): if it has stream handle available and if it's still valid, it writes to this stream instead of redisplaying, uses try_part_urls and try_data_urls * mail-display.h: added redisplay_counter to MailDisplay, I use it in load_content_loaded to be sure that there wasn't any redisplay and that remembered handle is still valid * mail-display.c (on_url_requested): don't end stream with error if part is not loaded yet (on_url_requested): don't end stream in cases when we are going to load image using http (stream_write_or_redisplay_when_loaded): new helper function, which is extracted from mail_display_redisplay_when_loaded. it's extended to handle gtkhtml stream writting (mail_display_redisplay_when_loaded): use stream_write_or_redisplay_when_loaded (mail_display_stream_write_when_loaded): new function, uses stream_write_or_redisplay_when_loaded struct _load_content_msg: added handle, url and redisplay_counter fields * mail-format.c (mail_content_loaded): added redisplay, url and handle parameter for case when we are loading image content and want it write to stream instead of redisplaying svn path=/trunk/; revision=12633
* Replace "Evolution" with "Ximian Evolution" in a bunch of user-visibleEttore Perazzoli2001-09-062-1/+6
| | | | | | places. svn path=/trunk/; revision=12625
* [Fix #7542, "Crash Afer Closing".]Ettore Perazzoli2001-09-052-0/+12
| | | | | | | | | | * component-factory.c (owner_unset_cb): NULL the global_shell_client as the first thing here. Otherwise we might get into a slight race that causes the shell to crash. [Still, of course the shell shouldn't crash, but I haven't been able to track that down yet.] svn path=/trunk/; revision=12605
* Fixes #7251Chyla Zbigniew2001-09-052-2/+9
| | | | | | * mail-ops.c (add_vtrash_info): Mark "Trash" with U_(), not _(). svn path=/trunk/; revision=12604
* Unref the source folder here because it might be a POP folder. We do thisJeffrey Stedfast2001-09-052-2/+13
| | | | | | | | | | | 2001-09-04 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (fetch_mail_fetch): Unref the source folder here because it might be a POP folder. We do this because on store finalize, we now try to disconnect cleanly which means that we may block. svn path=/trunk/; revision=12602
* Fix capitalization. Fixes bug #7486.Jeffrey Stedfast2001-09-052-17/+22
| | | | | | | | | 2001-09-04 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (build_dialogue): Fix capitalization. Fixes bug #7486. svn path=/trunk/; revision=12591
* Marked string for translation (with U_).Chyla Zbigniew2001-09-012-1/+8
| | | | | | | * mail-vfolder.c (vfolder_create_storage): Marked string for translation (with U_). svn path=/trunk/; revision=12544
* Use g_utf8_collate instead of g_strcasecmp for comparing names.Chyla Zbigniew2001-09-012-9/+21
| | | | | | | | | | * message-list.c (e_mail_address_compare): Use g_utf8_collate instead of g_strcasecmp for comparing names. (subject_compare): Replaced g_strcasecmp, isspace, var++ with UTF-8 counterparts. svn path=/trunk/; revision=12541
* Fix the Pine and Netscape importers. Give them a nice progress reporting GUI.Iain Holmes2001-08-314-16/+59
| | | | | | Revert Jason's changes so that creating a folder works again. svn path=/trunk/; revision=12536
* Due to the introduction of mail_folder_cache_remove(), we can no longerPeter Williams2001-08-312-38/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-30 Peter Williams <peterw@ximian.com> Due to the introduction of mail_folder_cache_remove(), we can no longer assume that mail_folder_info's always exist, so we need to robustify a lot of this. * mail-folder-cache.c (folder_browser_destroyed): New function. Called when the folder browser is destroyed -- analogous to camel_folder_finalized. (mail_folder_cache_note_fb): Hook it up here. (struct _mail_folder_info): Add a member, mail_info_id, that records the get_mail operation's id, so that we can cancel it if we need to. (get_folder_info): Initialize it here. (get_mail_info_reply): Clear it here. (mail_folder_cache_remove_folder): If necessary, cancel it here. (mail_folder_cache_note_folder): Check it here before starting a new operation, just in case. (update_message_counts_main): Take a URI instead of a mail_folder_info *, in case the MFI has gotten destroyed. (update_message_counts): Take a quark of the URI instead of a mail_folder_info *, for the same reason. We use a quark instead of an allocated gchar * because figuring out when to free the string gets tricky. Then go from quark -> URI string -> MFI. Return if the folder is no longer valid, because this indicates that the MFI was removed before this signal got called. Pass a string to update_message_counts_main instead of an MFI. (camel_folder_finalized): Don't bother unhooking the signals here. Same change as above, but don't bother checking for a valid folder because we're about to make it invalid anyway. (message_list_built): Analogous to the above, except with the FolderBrowser instead of the CamelFolder. (selection_changed): As above. (folder_browser_destroyed): As above. (struct get_mail_info_msg): Instead of taking a mail_folder_info *, take a URI, for reasons explained above. (get_mail_info_receive): Go from URI -> MFI before doing anything. (get_mail_info_reply): Same. (get_mail_info_destroy): Free the URI. (get_mail_info): Take a URI and return the message id so that it can be cancelled if necessary. (mail_folder_cache_remove_folder): Disconnect from signals and events before removing. (mail_folder_cache_note_folder): Use a GQuark instead of the mail_folder_info * as the user_data. (mail_folder_cache_note_fb): Same. (mail_folder_cache_note_folderinfo): Little formatting change. svn path=/trunk/; revision=12532
* Fixed a memory leak. (message_browser_new): Added a comment as to why ,Jeffrey Stedfast2001-08-313-21/+27
| | | | | | | | | | | | | 2001-08-30 Jeffrey Stedfast <fejj@ximian.com> * message-browser.c (message_browser_message_loaded): Fixed a memory leak. (message_browser_new): Added a comment as to why , after reparenting, we do not unref the mail_display. (message_browser_destroy): Don't call gtk_widget_destroy() on the message_list here. svn path=/trunk/; revision=12531
* Instead of removing the folder from the folder cache here...Peter Williams2001-08-312-4/+12
| | | | | | | | | | 2001-08-30 Peter Williams <peterw@ximian.com> * mail-ops.c (remove_folder_get): Instead of removing the folder from the folder cache here... (remove_folder_got): ... do it here, in the main thread. svn path=/trunk/; revision=12529
* Pass in FALSE as the 'sending' arg to e_msg_composer_get_message.Jon Trowbridge2001-08-302-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-29 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (e_msg_composer_get_message_draft): Pass in FALSE as the 'sending' arg to e_msg_composer_get_message. (build_message): Added a 'sending' arg, which is passed to e_msg_composer_get_message. (e_msg_composer_get_message): Added a 'sending' arg, which gets passed directly on to build_message. * e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message): Added a "sending" arg, which should be TRUE if the message is being sent now (rather than being autosaved, etc.). The address use scores are only updated when sending. (Bug #8332) Removed obsolete (#if 0/#endif-ed) code. 2001-08-29 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (composer_get_message): When calling e_msg_composer_get_message, pass in TRUE for the 'sending' arg. (Part of the fix for bug #8332) svn path=/trunk/; revision=12518
* in mail:Peter Williams2001-08-302-1/+3
| | | | | | | | | | | | | | | 2001-08-29 Peter Williams <peterw@ximian.com> * folder-browser-ui.c: Fix the pixmap for /commands/MessageUndelete. in ui: 2001-08-29 Peter Williams <peterw@ximian.com> * evolution-mail-message.xml: Add a pixtype to /Commands/MessageUndelete so that people can see the icon. svn path=/trunk/; revision=12515
* Toss in a call to mail_config_init () cause it might contribute to solvingPeter Williams2001-08-302-1/+8
| | | | | | | | | | 2001-08-29 Peter Williams <peterw@ximian.com> * component-factory.c (owner_set_cb): Toss in a call to mail_config_init () cause it might contribute to solving bug 4911, and it won't hurt. svn path=/trunk/; revision=12514
* Instead of folder_browser_factory_new_control ("", corba_shell) whenPeter Williams2001-08-292-1/+4
| | | | | | | | | | | 2001-08-28 Peter Williams <peterw@ximian.com> * component-factory.c (create_view): Instead of folder_browser_factory_new_control ("", corba_shell) when looking at a mailstorage folder, use create_noselect_control(). svn path=/trunk/; revision=12504
* Disable interaction once the shell has quit.Peter Williams2001-08-292-0/+6
| | | | | | | | | 2001-08-28 Peter Williams <peterw@ximian.com> * component-factory.c (owner_unset_cb): Disable interaction once the shell has quit. svn path=/trunk/; revision=12500
* Studlycapsize all the IDs that are not. Likewise. Updated accordingly.Ettore Perazzoli2001-08-285-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Evolution-ShellComponent.idl: Studlycapsize all the IDs that are not. * Evolution-common.idl: Likewise. * evolution-activity-client.c: Updated accordingly. * evolution-shell-component.c: Likewise. * evolution-storage.c: Likewise. * e-activity-handler.c: Likewise. * e-component-registry.c: Likewise. * e-corba-storage.c: Likewise. * e-shell-user-creatable-items-handlers.c: Likewise. * e-local-storage.c (remove_folder): Remove unused variable. * e-shell-view.c (update_for_current_uri): Assign zero to `unread_count', not NULL. * e-shell-importer.c (import_druid_finish): Remove unused variable. * e-shell-user-creatable-items-handler.c: #include "e-corba-utils.h". * e-shell-startup-wizard.c: #include "e-shell-startup-wizard.h". * e-shell-startup-wizard.h: #include <glib.h> * e-summary-weather.c (weather_make_html): Make local variable `icon_name' const. Remove unused variable `uri'. * e-summary.h: Reformatted in GTK+ style. (e_summary_remove_online_connection): Added prototype. * e-summary-preferences.c (fill_mail_shown_clist): Constify local variable `name'. * e-summary-mail.c: #include "e-util/e-path.h". Updated to match the new studlyCapsification in shell/Evolution*.idl. * mail-local.c: Match the studlyCapsification of shell/Evolution*.idl. * mail-config-druid.h: Change type of `event_source' from `Bonobo_EventSource *' to `Bonobo_EventSource'. * mail-accounts.c (mail_delete): Remove unused local variable `label'. * folder-info.c (do_get_info): `#if 0' unused variables. * gui/component/addressbook-component.c: Get rid of a warning by initializing the closing NULL element in folder_types correctly. * gui/component/select-names/e-select-names.c: Updated to match the studlyCapsification of attributes in shell/Evolution*.idl. svn path=/trunk/; revision=12495
* Check if we are trying to reply to a message with no From: field, and tryJon Trowbridge2001-08-283-5/+22
| | | | | | | | | | | | | 2001-08-27 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (mail_generate_reply): Check if we are trying to reply to a message with no From: field, and try to do something graceful in that case. (Bug #7028) * mail-display.c (ebook_callback): Add paranoid checks for the case of a message with a From: field. (Also maybe bug #7028) svn path=/trunk/; revision=12490
* Destroy lists and hashes when needed, so that old data isn't left behind.Iain Holmes2001-08-282-1/+26
| | | | svn path=/trunk/; revision=12488
* Set the source and transport description labels. (transport_type_changed):Jeffrey Stedfast2001-08-285-13/+65
| | | | | | | | | | | | | | | | | | | | | | 2001-08-27 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Set the source and transport description labels. (transport_type_changed): Set the transport description label. (source_type_changed): Set the source description label. * mail-tools.c (mail_tool_make_message_attachment): Remove X-Evolution* headers. (mail_tool_remove_xevolution_headers): New function to convenience removing the X-Evolution headers. (mail_tool_restore_xevolution_headers): New convenience function to restore the X-Evolution headers. (mail_tool_destroy_xevolution): New function to cleanup the structure. (mail_tool_forward_message): Remove and restore the X-Evolution headers here too. svn path=/trunk/; revision=12487
* Remove X-Evolution* headers. (mail_tool_remove_xevolution_headers): NewJeffrey Stedfast2001-08-284-1/+85
| | | | | | | | | | | | | | | | | 2001-08-27 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_make_message_attachment): Remove X-Evolution* headers. (mail_tool_remove_xevolution_headers): New function to convenience removing the X-Evolution headers. (mail_tool_restore_xevolution_headers): New convenience function to restore the X-Evolution headers. (mail_tool_destroy_xevolution): New function to cleanup the structure. (mail_tool_forward_message): Remove and restore the X-Evolution headers here too. svn path=/trunk/; revision=12484
* If the store is not connected, scan it's subfolders first.Jeffrey Stedfast2001-08-274-134/+143
| | | | | | | | | | | | 2001-08-26 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (receive_update_got_store): If the store is not connected, scan it's subfolders first. * mail-ops.c (report_status): Call va_end() so LinuxPPC doesn't have a caniption. svn path=/trunk/; revision=12479
* Call va_end() so LinuxPPC doesn't have a caniption.Jeffrey Stedfast2001-08-272-5/+11
| | | | | | | | | 2001-08-26 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (report_status): Call va_end() so LinuxPPC doesn't have a caniption. svn path=/trunk/; revision=12478
* Use the new e_mkdtemp function.Jeffrey Stedfast2001-08-254-80/+70
| | | | | | | | | | | 2001-08-24 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (launch_cb): Use the new e_mkdtemp function. * folder-browser.c (message_list_drag_data_get): Use the new e_mkdtemp function. svn path=/trunk/; revision=12462
* Don't mark empty strings for translation. Rather, give descriptions andEttore Perazzoli2001-08-252-2/+10
| | | | | | | | * component-factory.c: Don't mark empty strings for translation. Rather, give descriptions and display names to types "mailstorage" and "vtrash". svn path=/trunk/; revision=12453
* Save the folder's full_name, unref it, and *then* unref the store, so thatPeter Williams2001-08-252-1/+14
| | | | | | | | | | 2001-08-24 Peter Williams <peterw@ximian.com> * mail-ops.c (remove_folder_get): Save the folder's full_name, unref it, and *then* unref the store, so that the folder has been closed before it gets deleted. svn path=/trunk/; revision=12446
* Instead of using the length of the shortcuts list as the index for thePeter Williams2001-08-254-13/+40
| | | | | | | | | | | | | | | | | | | | | | 2001-08-24 Peter Williams <peterw@ximian.com> * mail-config.c (add_shortcut_entry): Instead of using the length of the shortcuts list as the index for the shortcut, use -1, which means "last". * mail-config-druid.c (druid_finish): Remove the account adding stuff since that happens in wizard_finish now. * mail-config.c (add_new_storage): New function. Add a MailConfigAccount to the shell as a storage. (maybe_add_shortcut): Renamed to new_source_created. (new_source_created): Call add_new_storage here. * component-factory.c (mail_remove_storage_by_uri): Don't warn if the storage isn't remote... no point in making the caller do extra work. svn path=/trunk/; revision=12445
* Don't let the uri be an empty string (how the fuck is this even happeningJeffrey Stedfast2001-08-252-12/+17
| | | | | | | | | | | | | 2001-08-24 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_set_thread_list): Don't let the uri be an empty string (how the fuck is this even happening in the first place??). (mail_config_get_thread_list): Same. (mail_config_set_show_preview): And here. (mail_config_get_show_preview): And finally here. svn path=/trunk/; revision=12443
* attach to the destroy handler to reset the tokenizer. (dialog_destroy_cb):Larry Ewing2001-08-242-5/+23
| | | | | | | | | | | | 2001-08-23 Larry Ewing <lewing@ximian.com> * mail-search.c (mail_search_construct): attach to the destroy handler to reset the tokenizer. (dialog_destroy_cb): reset the tokenizer here so that destroying the dialog with the window manager still clears the hilighted items. svn path=/trunk/; revision=12431
* Eek, let the user create new accounts if old_account == NULL.Peter Williams2001-08-242-1/+6
| | | | | | | | | 2001-08-23 Peter Williams <peterw@ximian.com> * mail-account-gui.c (mail_account_gui_save): Eek, let the user create new accounts if old_account == NULL. svn path=/trunk/; revision=12425
* Check to make sure we actually have drag data.Jeffrey Stedfast2001-08-244-6/+22
| | | | | | | | | | | | 2001-08-23 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (destination_folder_handle_drop): Check to make sure we actually have drag data. * folder-browser.c (message_list_drag_data_received): Check to make sure we have valid data. svn path=/trunk/; revision=12424
* Revert fix for Ximian bug #6995.Christopher James Lahey2001-08-242-29/+11
| | | | | | | | 2001-08-21 Christopher James Lahey <clahey@ximian.com> * Revert fix for Ximian bug #6995. svn path=/trunk/; revision=12418
* Record the timeout_id so we can cancel it if the mail_folder_info is laterPeter Williams2001-08-232-15/+39
| | | | | | | | | | | | | | 2001-08-23 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (maybe_update): Record the timeout_id so we can cancel it if the mail_folder_info is later freed. Also obviates the use of the _UPDATE_QUEUED flag. (mail_folder_cache_remove_folder): Cancel the timeout if we need to. Lock around the hash table operations. Free mfi itself. Add debugging spew. (get_folder_info): Initialiae the timeout_id to 0. svn path=/trunk/; revision=12417
* In the GUI, the toggle is labelled "hide addresses", not "show addresses"Jon Trowbridge2001-08-232-7/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-22 Jon Trowbridge <trow@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c (extract_info): In the GUI, the toggle is labelled "hide addresses", not "show addresses" -- so we have to reverse the boolean value we read in. (fill_in_info): Same bug as before: since the GUI reads "hide", we have to initialize the toggle to '!show_addresses', not 'show_addresses'. * backend/ebook/e-destination.c (e_destination_list_show_addresses): Added. (e_destination_xml_encode): Encode the value of e_destination_list_show_addresses into the XML. (e_destination_xml_decode): Read and store the "show_addresses" flag. 2001-08-22 Jon Trowbridge <trow@ximian.com> * e-msg-composer-hdrs.c (set_recipients_from_destv): Added. Try to properly handle contact lists in which the addresses of the list members should be hidden. (e_msg_composer_hdrs_to_message): Changed to extract the destination data from the entries and pass it along to set_recipients_from_destv. 2001-08-22 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (ask_confirm_for_only_bcc): Provide alternative text for this dialog for the case when a message has only Bcc recipients because of a hidden contact list's addresses being moved from To/Cc to Bcc. (composer_get_message): Try to detect when our message has only Bcc recipients because of moving addresses around due to a hidden contact list, and show the dialog with the revised wording in this case. svn path=/trunk/; revision=12414
* Don't blindly make all vtrash folder types have a uri of vtrash:file:/,Jeffrey Stedfast2001-08-233-37/+47
| | | | | | | | | | 2001-08-22 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (create_view): Don't blindly make all vtrash folder types have a uri of vtrash:file:/, instead only make it use vtrash:file:/ if it's a file: uri, else use physical_uri. svn path=/trunk/; revision=12411
* emit an event from our event source (contact_editor_cb): emit a destroyjacob berkman2001-08-232-54/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-22 jacob berkman <jacob@ximian.com> * gui/component/e-address-popup.c (emit_event): emit an event from our event source (contact_editor_cb): emit a destroy event so our control frame can be destroyed. (edit_contact_info_cb): emit a hide event so our control frame can be hidden (e_address_popup_cardify): (add_contacts_cb): emit the destroy event (e_address_popup_factory_new_control): don't unref our object at widget destroy time as that was really really broken (e_address_popup_factory_new_control): create an event source and aggregate ourself with it * gui/contact-editor/e-contact-editor.c (enable_writable_fields): display a nicer warning when we can't find a widget for a given field (e_contact_editor_raise): only raise if there is a window * gui/contact-editor/contact-editor.glade: name some widgets that got unnamed, and set the first entry as defaultable * gui/contact-editor/e-contact-editor.c: envelope printing is disabled in 1.0 2001-08-22 jacob berkman <jacob@ximian.com> * mail-display.c: rework how the e-card-popup thing has its life managed. we now hide the window on the Hide event and destroy it on the Destroy event emitted from its event source svn path=/trunk/; revision=12402
* We don't need to escape this for printf'ing.Peter Williams2001-08-232-14/+6
| | | | | | | | | 2001-08-22 Peter Williams <peterw@ximian.com> * mail-send-recv.c (set_send_status): We don't need to escape this for printf'ing. svn path=/trunk/; revision=12394
* Prevent the user from creating two accounts with the same name.Peter Williams2001-08-225-50/+81
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-22 Peter Williams <peterw@ximian.com> Prevent the user from creating two accounts with the same name. * mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount): Abort if the account has the same name as another account. * mail-account-gui.c (mail_account_gui_save): Don't let the user save if the account has the same name as another account. * mail-config-druid.c (management_check): Disable the next button if the account name is the same as a preexisting account. (construct): The only part of 'pages' that was being used was the name. 'wizard_pages' now has the callbacks, while 'pages' is just an array of char *'s. (wizard_finish_cb): Save the account first because that's the right way, and try to honor mail_account_gui_save's return value. * mail-config.glade: Add a label noting that you're not allowed to create two accounts with the same name. svn path=/trunk/; revision=12384