aboutsummaryrefslogtreecommitdiffstats
path: root/mail
Commit message (Collapse)AuthorAgeFilesLines
* oops, I forgot to update the ChangeLog to be accurate for my last commitJeffrey Stedfast2002-04-091-4/+3
| | | | svn path=/trunk/; revision=16393
* Since bonobo doesn't seem to O_TRUNC the file stream before writing to it,Jeffrey Stedfast2002-04-092-26/+49
| | | | | | | | | | | | | 2002-04-08 Jeffrey Stedfast <fejj@ximian.com> * mail-signature-editor.c (menu_file_save_cb): Since bonobo doesn't seem to O_TRUNC the file stream before writing to it, write to a temp file first and then rename() it to the real filename. This also protects against losing data if the drive is full too. Also use a real mode, not 0, so that we can actually save/read the content ;-) svn path=/trunk/; revision=16392
* Re-added the config wizard interfaces. Ettore accidently removed themJeffrey Stedfast2002-04-094-47/+38
| | | | | | | | | | | | | | | | 2002-04-08 Jeffrey Stedfast <fejj@ximian.com> * GNOME_Evolution_Mail.oaf.in: Re-added the config wizard interfaces. Ettore accidently removed them thinking they were duplicates of the new mail-config interfaces. * mail-config.glade: Remove the OK, Apply, Cancel buttons from the keyboard shortcut tab in the composer_prefs dialog. * mail-account-gui.c: No need to check gui->source before using gui->source->url, since gui->source *has* to exist. svn path=/trunk/; revision=16391
* add config_item:typeJP Rosevear2002-04-072-1/+9
| | | | | | | | 2002-04-06 JP Rosevear <jpr@ximian.com> * GNOME_Evolution_Mail.oaf.in: add config_item:type svn path=/trunk/; revision=16377
* Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons.Dan Winship2002-04-059-170/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-account-gui.c (mail_account_gui_new): Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons. Remove the code to deal with drafts_folder_name and sent_folder_name, since they were only used to construct the button and aren't needed now. (mail_account_gui_save): Remove drafts/sent name references. (mail_account_gui_destroy): Likewise (folder_selected): Handle the "selected" signal on the folder selector button by updating the URI in the MailAccountGui. (mail_account_gui_folder_selector_button_new): Glade custom widget constructor. * mail-callbacks.c (transfer_msg): Update for evolution_shell_client_user_select_folder change. * message-browser.c (transfer_msg): Likewise. (Sigh. Why is this cut+pasted?) * mail-config.glade: Make the drafts/sent folder buttons custom widgets. * mail-config.c (account_copy): Remove drafts/sent folder name handling. (account_destroy): Likewise. (config_read): Likewise. (mail_config_write): Likewise. * Mail.idl (MailConfig:Account): remove drafts_folder_name and sent_folder_name. svn path=/trunk/; revision=16353
* Set the window title/icon here instead.Jeffrey Stedfast2002-04-0410-88/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-03 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (construct): Set the window title/icon here instead. * message-tag-editor.c (message_tag_editor_init): Don't set the title or window icon here, this is a generic class. * mail-format.c (handle_multipart_signed): Replace get_url_for_icon with the new mail_display_get_url_for_icon function. (handle_multipart_digest): Here too. (get_cid): Use mail_display_add_url instead. (get_location): Same. (handle_text_enriched): Here too. (handle_multipart_signed): And here. * message-tag-followup.c (message_tag_followup_i18n_name): Use the U_() macro, not the _() macro as it is what we really want. * mail-ops.c (mail_send_message): Don't cast the message into a CamelMedium before sending anymore. * mail-callbacks.c (expunge_folder): Set the followup argument to NULL here. (done_message_selected): Get the followup value here and pass it to the mail-display here. (do_mail_fetch_and_print): Again with the NULL followup here. * folder-browser.c (folder_browser_set_message_preview): Update to pass in NULL as the followup since we are setting the message to NULL here. (done_message_selected): Get and set the appropriate followup value here. (do_message_selected): Update to pass in NULL as the followup since we are setting the message to NULL here. * mail-display.c (mail_display_set_message): Now takes a followup tag value. (mail_display_init): Set md->followup to NULL. (mail_display_destroy): Free md->followup. (mail_display_add_url): New: replaces the static add_url function originally in mail-format.c (mail_display_get_url_for_icon): New: replaces get_url_for_icon which was originally in mail-format.c svn path=/trunk/; revision=16334
* Changes to allow combined store/transport providers (like exchange andDan Winship2002-04-043-15/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-account-gui.c: Changes to allow combined store/transport providers (like exchange and nntp). You can only select the transport if the account is also using that provider for the source. (source_type_changed): If changing away from a combined store/transport type, disable that provider on the transport page. If change to a combined store/transport type, enable and select that provider on the transport page. (mail_account_gui_setup): Do some additional bookkeeping here to make the above stuff work. (transport_type_changed): If the provider is a combined store/transport type, pretend it doesn't need any additional URL configuration. (mail_account_gui_transport_complete): if the transport provider is also a store provider, then as long as it matches the source for the account, it's considered complete. (mail_account_gui_save): If the selected transport is a combined store/transport provider, use the source page's information to fill in the transport url. * mail-local.c (mail_local_provider_init): Don't set up service_cache. svn path=/trunk/; revision=16331
* Pass the UID of the message being edited to the save-draft signal handler.Jeffrey Stedfast2002-04-032-9/+36
| | | | | | | | | | | | | | 2002-04-02 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_edit_messages): Pass the UID of the message being edited to the save-draft signal handler. (composer_save_draft_cb): Pass the old draft uid to our async append_message function and let the append_message callback worry about deleting the old draft message on success. (save_draft_done): Delete the old draft message if we successfully appended the new draft message. svn path=/trunk/; revision=16328
* Removed an unused pixmap from Tools/Settings to avoid a big nasty bonoboJeffrey Stedfast2002-04-022-1/+3
| | | | | | | | | 2002-04-01 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c: Removed an unused pixmap from Tools/Settings to avoid a big nasty bonobo warning. svn path=/trunk/; revision=16318
* Re-Implemented the signature editor stuff (mostly just copy/paste fromJeffrey Stedfast2002-04-027-46/+479
| | | | | | | | | | | | | 2002-04-01 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): Re-Implemented the signature editor stuff (mostly just copy/paste from Radeks original code). * mail-signature-editor.c (mail_signature_editor): Use the right oafiid for the html editor control. svn path=/trunk/; revision=16316
* Use -avoid-version -module. (From Max Horn <max@quendi.de>)Dan Winship2002-04-022-2/+8
| | | | | | | | * importers/Makefile.am (liboutlook_la_LDFLAGS, libmbox_la_LDFLAGS): Use -avoid-version -module. (From Max Horn <max@quendi.de>) svn path=/trunk/; revision=16306
* Don't shift the r, g and b values here either.Jeffrey Stedfast2002-03-303-6/+18
| | | | | | | | | | | | 2002-03-29 Jeffrey Stedfast <fejj@ximian.com> * mail-preferences.c (colorpicker_get_color): Don't shift the r, g and b values here either. * mail-composer-prefs.c (colorpicker_get_color): Don't shift the r, g, b values. svn path=/trunk/; revision=16297
* Restore the labels & colours options from the grave.Jeffrey Stedfast2002-03-304-3/+350
| | | | | | | | | | 2002-03-29 Jeffrey Stedfast <fejj@ximian.com> * mail-preferences.c (mail_preferences_construct): Restore the labels & colours options from the grave. (mail_preferences_apply): Save these labels & colours options. svn path=/trunk/; revision=16296
* Added priorities for all the configuration pagesEttore Perazzoli2002-03-302-0/+11
| | | | | | | * GNOME_Evolution_Mail.oaf.in: Added priorities for all the configuration pages [evolution:config_item:priority]. svn path=/trunk/; revision=16294
* Same here.Jeffrey Stedfast2002-03-303-8/+46
| | | | | | | | | | | | 2002-03-29 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): Same here. * mail-preferences.c (mail_preferences_construct): Do some gtk hackery action so we can detect if a option menu has changed. svn path=/trunk/; revision=16290
* Cleaned up a bunch [removing duplicates ;-)], set up icons for all theEttore Perazzoli2002-03-302-89/+8
| | | | | | | * GNOME_Evolution_Mail.oaf.in: Cleaned up a bunch [removing duplicates ;-)], set up icons for all the configuration pages. svn path=/trunk/; revision=16286
* (account_cursor_change): Make sure that event is non-NULL here.Jeffrey Stedfast2002-03-292-2/+3
| | | | svn path=/trunk/; revision=16279
* Use a GtkCList instead of an ETable, for some reason the etable wasJeffrey Stedfast2002-03-294-35/+183
| | | | | | | | | | | 2002-03-28 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c: Use a GtkCList instead of an ETable, for some reason the etable was getting into some infinite resize loop or something. I probably did something wrong but I can't figure out what so I'm using a clist for now. svn path=/trunk/; revision=16277
* Use gtk_container_add() to put the toplevel in the parent widget, insteadEttore Perazzoli2002-03-283-5/+4
| | | | | | | | | | * mail-accounts.c (mail_accounts_tab_construct): Use gtk_container_add() to put the toplevel in the parent widget, instead of just gtk_widget_set_parent(). * mail-preferences.c (mail_preferences_construct): Likewise. * mail-composer-prefs.c (mail_composer_prefs_construct): Likewise. svn path=/trunk/; revision=16271
* Use gtk_container_add() to put the toplevel in the parent widget, insteadEttore Perazzoli2002-03-282-2/+12
| | | | | | | | | | * mail-accounts.c (mail_accounts_tab_construct): Use gtk_container_add() to put the toplevel in the parent widget, instead of just gtk_widget_set_parent(). * mail-preferences.c (mail_preferences_construct): Likewise. * mail-composer-prefs.c (mail_composer_prefs_construct): Likewise. svn path=/trunk/; revision=16270
* Updated to respect the new mail-config options for default reply styleJeffrey Stedfast2002-03-282-1/+21
| | | | | | | | | | 2002-03-27 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Updated to respect the new mail-config options for default reply style that NotZed had started to implement before there was a gui. svn path=/trunk/; revision=16266
* unset GTK_CAN_FOCUS on the button so that it can't grab focus when youDan Winship2002-03-282-0/+9
| | | | | | | | * mail-display.c (do_attachment_header): unset GTK_CAN_FOCUS on the button so that it can't grab focus when you click it. (do_signature): Likewise on the signature button. #3904 svn path=/trunk/; revision=16261
* Sync with yet-another-mail-config branch.Jeffrey Stedfast2002-03-2724-1599/+3629
| | | | | | | | | | | | | | | | | | 2002-03-26 Jeffrey Stedfast <fejj@ximian.com> Sync with yet-another-mail-config branch. * mail-composer-prefs.c: Updated to get the right widgets and whatnot. Also updated to tell the evolution-config-control that stuff has changed. * mail-preferences.c: Updated to get the right widgets and whatnot. Also updated to tell the evolution-config-control that stuff has changed. * mail-accounts.etspec: New file needed by mail-accounts.c svn path=/trunk/; revision=16257
* Changed to get the address from the messageinfo of the current selectedNot Zed2002-03-266-79/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-26 Not Zed <NotZed@Ximian.com> * mail-callbacks.c (addrbook_sender): Changed to get the address from the messageinfo of the current selected message rather than from the current_message. (requeue_mail_reply): Only re-queue if we got a message, could potentially cause an infinite loop trying to get a message it can't. (reply_to_sender, reply_to_list, reply_to_all): Always pass NULL as the msg to mail_replay, this forces mail_reply to always load the message anew. Fixes FIXME's and popup behaviour. Basically this and stuff below fixes #8542. Its probably not the nicest way, but it works. (mark_as_important): Use the flags properly, we can set all flags to any combination of on or off as we want, so we just need to call set_flags once, thats why its set flags and not set_option. (toggle_flags): Fixed the logic here also, so we dont have to call set_message_flags more than once, and also implement a true toggle for any number of simultaneous flags (whilst simplifying code). * mail-vfolder.c (vfolder_gui_add_from_mlist): Removed the 'msg' parameter, its not used, fixed callers. * folder-browser.c (on_right_click): Lookup the mlist from messageinfo, and change the 'no selected' logic slightly, fixes most of #8542. (filter_data_free): Free filter data struct. (vfolder_type_got_message): Actually create vfolder once we have the message we need to use for it. Code could probably be changed to use messageinfo instead. (vfolder_type_uid): Lookup a message based on uid, and use that to create a vfolder based on type. (vfolder_subject_uid, vfolder_sender_uid, vfolder_receipient_uid, vfolder_mlist_uid): Callbacks for the popup menu, used to create rules based on the uid rather than the message, which it loads as required. (filter_type_got_message, filter_*_uid): Similar to vfolder stuff above. (filter_menu[]): Changed callbacks to popup specific ones, not folderbrowser specific ones used by bonobo. (on_right_click): Initialise callback data for the filter submenu so it can look up messages for callback implementation. svn path=/trunk/; revision=16253
* New version from anna, with fixed widget names.Not Zed2002-03-262-165/+214
| | | | | | | | | 2002-03-26 Not Zed <NotZed@Ximian.com> * local-config.glade: New version from anna, with fixed widget names. svn path=/trunk/; revision=16252
* Move the ComponentActionsPlaceholder into the Actions menu, instead of theEttore Perazzoli2002-03-216-43/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * evolution.xml: Move the ComponentActionsPlaceholder into the Actions menu, instead of the Actions menu being in the ComponentActionsPlaceholder. * evolution-addressbook.xml: Updated accordingly. * evolution-calendar.xml: Updated accordingly. * evolution-mail-global.xml: Updated accordingly. * evolution-mail-list.xml: Updated accordingly. * evolution-mail-message.xml: Updated accordingly. * evolution-mail-messagedisplay.xml: Updated accordingly. * evolution-tasks.xml: Updated accordingly. * evolution.xml: Add "SendReceive" verb, menu item and toolbar button. * evolution-mail-global.xml: Remove "MailGetSend" verb and menu item. * e-shell-view-menu.c (command_send_receive): New, implementation for the "SendReceive" verb. * e-shell.c (e_shell_send_receive): New. * evolution-shell-component.c (impl_sendReceive): Implementation of ShellComponent::sendReceive. (class_init): Add the "send_receive" signal. * evolution-shell-component.h: Added `send_receive' signal. * Evolution-ShellComponent.idl: Added ShellComponent::sendReceive. * component-factory.c (send_receive_cb): New, callback for the "send_receive" signal on the EvolutionShellComponent. (create_component): Connect. * folder-browser-ui.c: Remove verb "MailGetSend". * mail-callbacks.c (send_receive_mail): Removed. * mail-send-recv.c: Remove member current_folder from struct _send_data. (free_send_data): No need to unref here. (build_dialogue): Removed arg @current_folder. (mail_send_receive): Likewise. svn path=/trunk/; revision=16220
* Add accelerators for "Find Now" and "Clear".Ettore Perazzoli2002-03-212-2/+10
| | | | | | | | | | | | | * e-search-bar.c (update_bonobo_menus): Add accelerators for "Find Now" and "Clear". * e-filter-bar.h: Change search labels as suggested in Anna's redesign [#16246]. * folder-browser.c: Reorder folder_browser_search_menu_items according to #16246. svn path=/trunk/; revision=16219
* add missing NULL closure data to popup menu initialization.Larry Ewing2002-03-202-4/+9
| | | | | | | | | 2002-03-19 Larry Ewing <lewing@ximian.com> * mail-display.c: add missing NULL closure data to popup menu initialization. svn path=/trunk/; revision=16212
* more fixes for libversit.la -> libversit.aDan Winship2002-03-202-1/+5
| | | | svn path=/trunk/; revision=16211
* Report a message before entering bonobo_main() to simplify debugging.Ettore Perazzoli2002-03-192-0/+7
| | | | | | | * main.c (main): Report a message before entering bonobo_main() to simplify debugging. svn path=/trunk/; revision=16204
* [Search bar re-design implementation, Take 2.]Ettore Perazzoli2002-03-192-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-search-bar.c (clear_verb_cb): New. (setup_standard_verbs): New. (e_search_bar_set_ui_component): Call it if a new BonoboUIComponent is set. (append_xml_menu_item): New helper function. (update_bonobo_menus): Use it. Also add a "Clear" menu item. (e_search_bar_construct): @menu_items can be NULL now. (e_search_bar_new): Same here. (set_menu): Work with NULL items. * e-filter-bar.c (menubar_activated): Don't handle E_FILTERBAR_RESET_ID anymore. * e-filter-bar.h: Remove `E_FILTERBAR_RESET_ID' and `E_FILTERBAR_RESET'. * folder-browser.c: Remove E_FILTERBAR_RESET menu entry. * gui/cal-search-bar.c: Removed `search_menu_items'. (cal_search_bar_menu_activated): Removed. (cal_search_bar_class_init): Don't install. (cal_search_bar_construct): No menu items here. * gui/component/addressbook.c (addressbook_menu_activated): Removed. (addressbook_factory_new_control): Don't connect anymore, as this signal has been removed from the ESearchBar. (addressbook_factory_new_control): No more custom menu items here. svn path=/trunk/; revision=16194
* Draw colour rectangles for each of the colour items and set a closure onJeffrey Stedfast2002-03-164-15/+108
| | | | | | | | | | 2002-03-15 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (on_right_click): Draw colour rectangles for each of the colour items and set a closure on each. (colourise_msg): colourise the message, yo. svn path=/trunk/; revision=16187
* New callback to set a colour on a message.Jeffrey Stedfast2002-03-1612-78/+667
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-15 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (colour_msg): New callback to set a colour on a message. * folder-browser.c (on_right_click): Setup our popup icons and stuff. Also add a submenu for Labels. * mail-display.c (pixmap_press): Sync up with the new EPopupMenu API. Note: This code can probably now be fixed to use per-item closures - yay! * mail-accounts.c (construct): Connect to the label GtkEntry's and GnomeColorPickers and also to the Restore Defaults button. * mail-config.c (mail_config_get_label_name): New function to get a label's name. (mail_config_set_label_name): New function to set the label name. (mail_config_get_label_color): New function to get the label color. (mail_config_set_label_color): New function to set the label color. (config_read): Read in the config options for the labels and their colors. (mail_config_write_on_exit): Save the label options. svn path=/trunk/; revision=16186
* expand the relative urls of the object at the point so that relativeLarry Ewing2002-03-163-3/+17
| | | | | | | | | | | 2002-03-15 Larry Ewing <lewing@ximian.com> * mail-display.c: expand the relative urls of the object at the point so that relative images can be saved correctly. * folder-browser.c: add a closing quote in a comment. svn path=/trunk/; revision=16181
* Commit ChangeLog.Ettore Perazzoli2002-03-161-1/+0
| | | | svn path=/trunk/; revision=16179
* [Start implementing the new Search Bar design.]Ettore Perazzoli2002-03-162-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-search-bar.c (init): Init various members to NULL. (set_dropdown): Removed. (add_dropdown): Removed. (set_menu): New. (add_menu_items): New. (set_option): No need to setup the dropdown size here anymore. (verb_cb): Function implementing the search menu verbs. (update_bonobo_menus): New. (e_search_bar_set_ui_component): New. * e-search-bar.h: Remove the dropdown button stuff from struct ESearchBar. Add `uic' and `items' members. * e-filter-bar.c (e_filter_bar_new): Get a @uic arg. * folder-browser-factory.c (control_activate): Set the UI component on the search bar. * gui/tasks-control.c (tasks_control_activate): Call `e_tasks_set_ui_component()' here to give it the BonoboUIComponent. (tasks_control_deactivate): Likewise, call it here to unset the BonoboUIComponent. * gui/e-tasks.c (e_tasks_set_ui_component): New. * gui/calendar-commands.c (calendar_control_activate): Call gnome_calendar_set_ui_component() here. (calendar_control_deactivate): ...And here, with a NULL BonoboUIComponent. * gui/gnome-cal.c (gnome_calendar_set_ui_component): New. * gui/component/addressbook.c (control_activate): Call `e_search_bar_set_ui_component()' to set the BonoboUIComponent for the search bar. * gui/component/GNOME_Evolution_Addressbook.oaf.in: Add an icon for the LDAP sources configuration control. svn path=/trunk/; revision=16178
* Remove "mailstorage", since it's not needed any more. (storage_activate):Dan Winship2002-03-153-44/+47
| | | | | | | | | | | | | | | | | | | | | | * component-factory.c (folder_types): Remove "mailstorage", since it's not needed any more. (storage_activate): Gone, although some of it is moved to storage_connect. (create_view): Remove mailstorage code. (add_storage): Connect to the storage's open_folder signal. Instead of creating a "mailstorage" folder, call evolution_storage_has_subfolders to let the shell know we haven't finished filling it in yet. (storage_connect): Handler for the storage's asyncOpenFolder signal. Call mail_note_store() to try to connect. (storage_connected): Callback for above. If the connection attempt failed, call evolution_storage_has_subfolders again to make the shell re-close the storage. * mail-folder-cache.c (update_folders): Remove a piece of mailstorage legacy code from here. svn path=/trunk/; revision=16170
* create new signature file (delete_unused_signature_file): be more carefulRadek Doulik2002-03-152-3/+21
| | | | | | | | | | | 2002-03-14 Radek Doulik <rodo@ximian.com> * mail-config.c (get_new_signature_filename): create new signature file (delete_unused_signature_file): be more careful about signature file path before unlinking svn path=/trunk/; revision=16167
* Implemented.Jeffrey Stedfast2002-03-156-2/+57
| | | | | | | | | | | 2002-03-14 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (next_thread): Implemented. * message-list.c (message_list_select_next_thread): New function to select the next thread. svn path=/trunk/; revision=16165
* Set a default size of the window, so we don't get this itty-bitty windowJeffrey Stedfast2002-03-142-0/+34
| | | | | | | | | | 2002-03-13 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-window.c (folder_browser_window_new): Set a default size of the window, so we don't get this itty-bitty window the size of a quarter on the screen when it first gets shown. svn path=/trunk/; revision=16153
* Handle digest: urls.Jeffrey Stedfast2002-03-133-5/+64
| | | | | | | | | | | 2002-03-12 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (on_link_clicked): Handle digest: urls. * mail-format.c (setup_mime_tables): Add a handler for multipart/digest. (handle_multipart_digest): Handle multipart/digest parts. svn path=/trunk/; revision=16133
* Set the folder on a folder-browser object.Jeffrey Stedfast2002-03-138-5/+270
| | | | | | | | | | | | | | | 2002-03-12 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_set_folder): Set the folder on a folder-browser object. * folder-browser-window.c (folder_browser_window_new): Simple window to display a folder-browser. * mail-callbacks.c (view_digest): New callback to open a folder-browser-window with a digest folder. svn path=/trunk/; revision=16127
* removed forgotten FIXMERadek Doulik2002-03-131-2/+0
| | | | svn path=/trunk/; revision=16125
* truncate stream before savingRadek Doulik2002-03-092-2/+6
| | | | | | | | | 2002-03-08 Radek Doulik <rodo@ximian.com> * mail-signature-editor.c (menu_file_save_cb): truncate stream before saving svn path=/trunk/; revision=15997
* new functionRadek Doulik2002-03-095-3/+54
| | | | | | | | | | | | | 2002-03-08 Radek Doulik <rodo@ximian.com> * mail-config.c (mail_config_signature_set_html): new function * mail-accounts.c (sig_event_client): watch for HTML changed event * mail-signature-editor.c: added HTML check menu item to Format menu svn path=/trunk/; revision=15996
* Rewrite this to not use stpcpy, which isn't portable.Dan Winship2002-03-092-5/+11
| | | | | | | * mail-config-druid.c (management_prepare): Rewrite this to not use stpcpy, which isn't portable. svn path=/trunk/; revision=15991
* handle name changed event (sig_load_preview): don't run script before eachRadek Doulik2002-03-093-6/+57
| | | | | | | | | | | | | | 2002-03-08 Radek Doulik <rodo@ximian.com> * mail-accounts.c (sig_event_client): handle name changed event (sig_load_preview): don't run script before each reload (sig_script_activate): run script only if script entry is activated * mail-signature-editor.c (mail_signature_editor): added signature name entry svn path=/trunk/; revision=15989
* Re-focus the account name entry widget. (identity_prepare): If a name isJeffrey Stedfast2002-03-083-15/+73
| | | | | | | | | | | | | 2002-03-07 Jeffrey Stedfast <fejj@ximian.com> * mail-config-druid.c (management_changed): Re-focus the account name entry widget. (identity_prepare): If a name is not set, try and get the user's full name for them and set the text on the entry widget. (management_prepare): If the account name is already taken, generate a unique one by appending " (%d)". svn path=/trunk/; revision=15986
* make edit button sensitive after new signature is created (sig_new_text):Radek Doulik2002-03-082-0/+8
| | | | | | | | | | 2002-03-07 Radek Doulik <rodo@ximian.com> * mail-account-gui.c (sig_new_html): make edit button sensitive after new signature is created (sig_new_text): ditto svn path=/trunk/; revision=15984
* notify accounts dialog about signature content changeRadek Doulik2002-03-087-23/+60
| | | | | | | | | | | | 2002-03-07 Radek Doulik <rodo@ximian.com> * mail-signature-editor.c: notify accounts dialog about signature content change * mail-accounts.c (run_script): run script only if file regular file exists and has x flag svn path=/trunk/; revision=15979
* Made all the acclerators in the context menu on a message work. (There areAnna Marie Dirks2002-03-082-14/+19
| | | | | | | | 2002-03-07 Anna Marie Dirks <anna@ximian.com> * folder-browser.c: Made all the acclerators in the context menu on a message work. (There are 22 different menu items here, so picking a unique accelerator for each label was tricky, and some of the choices I made are different from the ones I would have made if there weren't so many stinking menu items.) svn path=/trunk/; revision=15978
* Don't use an uninitialized 'id'.Jeffrey Stedfast2002-03-082-4/+7
| | | | | | | | | 2002-03-07 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (config_import_old_signatures): Don't use an uninitialized 'id'. svn path=/trunk/; revision=15972
* set initial focus to editor (do_exit): use hasUndo to avoid questionRadek Doulik2002-03-082-4/+22
| | | | | | | | | | | 2002-03-07 Radek Doulik <rodo@ximian.com> * mail-signature-editor.c (mail_signature_editor): set initial focus to editor (do_exit): use hasUndo to avoid question dialog when content is unchanged svn path=/trunk/; revision=15970
* Update for storage changes: explicitly create a root folder.Dan Winship2002-03-085-14/+31
| | | | | | | | | | | | | | | | | * component-factory.c (add_storage): Update for storage changes: explicitly create a root folder. * mail-display.c (mail_display_render): Fix the "don't scroll back to the top of the HTML widget when opening an attachment" hack again by moving it here from mail_display_redisplay(). (It has to happen after the gtk_html_begin.) (mail_display_redisplay): Pass reset_scroll arg to mail_display_render. * mail-callbacks.c (do_mail_print): Pass reset_scroll (TRUE) to mail_display_render. svn path=/trunk/; revision=15967
* merge new signature handlingRadek Doulik2002-03-0716-425/+2288
| | | | svn path=/trunk/; revision=15960
* Don't try to set pixmap for /Toolbar/MailCompose, since it doesn't existDan Winship2002-03-062-1/+5
| | | | | | | * folder-browser-ui.c: Don't try to set pixmap for /Toolbar/MailCompose, since it doesn't exist any more. svn path=/trunk/; revision=15935
* "use_ssl" can now be 3 options, modify the code to handle this.Jeffrey Stedfast2002-03-064-46/+184
| | | | | | | | | | | | 2002-03-05 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (save_service): "use_ssl" can now be 3 options, modify the code to handle this. (setup_service): Toggle the correct ssl option. (source_type_changed): Show/hide the ssl hbox container widget. (transport_type_changed): Same. svn path=/trunk/; revision=15933
* Pull up assertion change from evolution-1-0-branch to allow externalDan Winship2002-03-062-1/+6
| | | | | | | * mail-folder-cache.c (mail_note_store): Pull up assertion change from evolution-1-0-branch to allow external storages. svn path=/trunk/; revision=15928
* If the clicked column was column 0, enable/disable it. (mail_select):Jeffrey Stedfast2002-03-052-7/+21
| | | | | | | | | | 2002-03-04 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (mail_unselect): If the clicked column was column 0, enable/disable it. (mail_select): Same. svn path=/trunk/; revision=15914
* Added more debugging code to help figure out why a certain image isn'tJeffrey Stedfast2002-03-053-6/+17
| | | | | | | | | | 2002-03-04 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (load_http): Added more debugging code to help figure out why a certain image isn't loading - looks like gnome-vfs is getting a premature EOF? svn path=/trunk/; revision=15910
* Connect to the focus-in/out events on the message-list so that we canJeffrey Stedfast2002-03-056-7/+78
| | | | | | | | | | | | | | | | | | | | | | | 2002-03-04 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (my_folder_browser_init): Connect to the focus-in/out events on the message-list so that we can disable the EditInvertSelection and EditSelectThread menu items when the message-list is not in focus. * folder-browser-ui.c (folder_browser_ui_message_list_unfocus): New function to de-sensitize some items if the message-list is not in focus. (folder_browser_ui_message_list_focus): New function to sensitize some items if the message-list is not in focus. * mail-callbacks.c (invert_selection): Only invert the selection of the message-list if it is the widget in focus. * message-list.c (message_list_select): Do not explicitly grab the focus here. svn path=/trunk/; revision=15909
* Set X-Mailer to say "Ximian Evolution", not just "Evolution".Ettore Perazzoli2002-03-052-1/+8
| | | | | | | * mail-ops.c (mail_send_message): Set X-Mailer to say "Ximian Evolution", not just "Evolution". svn path=/trunk/; revision=15901
* Forward all selected messages. Fixes bug #21190.Jeffrey Stedfast2002-03-022-7/+18
| | | | | | | | | 2002-03-01 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (forward_message): Forward all selected messages. Fixes bug #21190. svn path=/trunk/; revision=15882
* Get the Content-Base if the header exists and use gtk_html_set_base to setJeffrey Stedfast2002-02-274-44/+33
| | | | | | | | | | | | | | | | | | 2002-02-26 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_text_html): Get the Content-Base if the header exists and use gtk_html_set_base to set this base url. * mail-display.c (on_link_clicked): No longer need to calculate the full url. This is now handled by GtkHTML. (on_set_base): Removed. (on_url_requested): No longer need to calculate the full url. (mail_display_initialize_gtkhtml): Don't connect to the set_base signal anymore. We don't care. * mail-display.h: No longer need base_url (it was broken anyway). svn path=/trunk/; revision=15850
* If a related part is requested, remove it from the related undisplayedNot Zed2002-02-265-6/+49
| | | | | | | | | | | | 2002-02-26 Not Zed <NotZed@Ximian.com> * mail-display.c (on_url_requested): If a related part is requested, remove it from the related undisplayed list. * mail-format.c (handle_multipart_related): Check if related parts are displayed, if not, remove them. For #2741. svn path=/trunk/; revision=15837
* rename folder_browser_search_query_changed to this.Chris Toshok2002-02-252-2/+12
| | | | | | | | | | | | 2002-02-24 Chris Toshok <toshok@ximian.com> * folder-browser.c (folder_browser_search_do_search): rename folder_browser_search_query_changed to this. (folder_browser_gui_init): hook both query_changed and search_activated up to folder_browser_search_do_search, preserving current behavior. svn path=/trunk/; revision=15829
* Removed, this wasn't working as intended and seemed to break otherJeffrey Stedfast2002-02-233-32/+6
| | | | | | | | | 2002-02-22 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (on_message_list_built): Removed, this wasn't working as intended and seemed to break other features. svn path=/trunk/; revision=15801
* Add an icon for the "New message" user creatable item.Ettore Perazzoli2002-02-222-2/+11
| | | | | | | * component-factory.c (create_component): Add an icon for the "New message" user creatable item. svn path=/trunk/; revision=15791
* Connect to our own message_list_built signal. Focus the list and selectJeffrey Stedfast2002-02-222-3/+35
| | | | | | | | | | 2002-02-21 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (on_message_list_built): Connect to our own message_list_built signal. Focus the list and select the first unread message (or frst message depending). Fixes bug #3900. svn path=/trunk/; revision=15784
* Gave the editor window a title and an icon.Anna Marie Dirks2002-02-212-0/+13
| | | | | | | | | 2002-02-20 Anna Marie Dirks <anna@ximian.com> * message-tag-editor.c (message_tag_editor_init): Gave the editor window a title and an icon. svn path=/trunk/; revision=15777
* Changed the policy for table2 so that it does not expand/fill. This wasAnna Marie Dirks2002-02-212-2/+10
| | | | | | | | | | | 2002-02-20 Anna Marie Dirks <anna@ximian.com> * message-tags.glade: Changed the policy for table2 so that it does not expand/fill. This was necessary to allow the message list as much growing room as possible. (And besides, there's no reason for table2 to expand/fill; its child widgets can't change size. svn path=/trunk/; revision=15771
* Prompt the user to find out if he/she wants to go to the next folder withJeffrey Stedfast2002-02-207-15/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-19 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (confirm_goto_next_folder): Prompt the user to find out if he/she wants to go to the next folder with unread mail in it. (find_current_folder): Find a given CamelFolderInfo node based on a given uri. (find_next_folder_r): Recursively look for a CamelFOlderInfo node which has unread messages. (find_next_folder): Given a currently selected CamelFolderInfo node, look for the next node containing unread messages. (do_evil_kludgy_goto_next_folder_hack): Find the currently selected folder and then find the very next folder after it that contains unread messages and then select it via a CORBA call to the shell. (next_unread_msg): If we fail to find an unread message in the message-list, prompt the user to find out if we should jump to the next fodler containing unread messages. If so, call do_evil_kludgy_goto_next_folder_hack(). * message-list.c (message_list_select): Return a boolean value based on whether the call was successfull or not. * mail-config.c (mail_config_get_confirm_goto_next_folder): (mail_config_set_confirm_goto_next_folder): (mail_config_get_goto_next_folder): (mail_config_set_goto_next_folder): All new functions, yay. (config_read): Read in the confirm_goto_next_folder and goto_next_folder config options. (mail_config_write_on_exit): Same the options here. svn path=/trunk/; revision=15770
* Ack, strip off the leading '/' char and also only translate if it is aJeffrey Stedfast2002-02-162-2/+2
| | | | | | | | | | | 2002-02-15 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (basename_from_uri): Ack, strip off the leading '/' char and also only translate if it is a local uri, imap folders and other external folders will be named by the user so no need to translate those. svn path=/trunk/; revision=15751
* Ack, strip off the leading '/' char and also only translate if it is aJeffrey Stedfast2002-02-162-2/+7
| | | | | | | | | | | 2002-02-15 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (basename_from_uri): Ack, strip off the leading '/' char and also only translate if it is a file: uri, imap folders and other external folders will be named by the user so no need to translate those. svn path=/trunk/; revision=15750
* Ack, strip off the leading '/' char.Jeffrey Stedfast2002-02-162-1/+4
| | | | | | | | | 2002-02-15 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (basename_from_uri): Ack, strip off the leading '/' char. svn path=/trunk/; revision=15749
* Don't display a down-arrow if the attachment is undisplayable. Fixes bugJeffrey Stedfast2002-02-162-4/+10
| | | | | | | | | | | 2002-02-15 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (do_attachment_header): Don't display a down-arrow if the attachment is undisplayable. Fixes bug #6919. (launch_cb): Some programs are buggy when it comes to parsing file: uris, so make sure we do file://%s. Fixes bug #20456. svn path=/trunk/; revision=15747
* Don't display a down-arrow if the attachment is undisplayable. Fixes bugJeffrey Stedfast2002-02-162-7/+12
| | | | | | | | | 2002-02-15 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (do_attachment_header): Don't display a down-arrow if the attachment is undisplayable. Fixes bug #6919. svn path=/trunk/; revision=15746
* Replacement for using g_basename and also translates the basename stringJeffrey Stedfast2002-02-152-3/+21
| | | | | | | | | | | | 2002-02-14 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (basename_from_uri): Replacement for using g_basename and also translates the basename string to fix bug #7160. (mail_account_gui_save): Use basename_from_uri(). (folder_picker_clicked): Here too. svn path=/trunk/; revision=15733
* Default the from-account to the source account. If that fails, then guessJeffrey Stedfast2002-02-153-14/+20
| | | | | | | | | | 2002-02-14 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Default the from-account to the source account. If that fails, then guess the from-account based on the recipients. Fixes bug #20479. svn path=/trunk/; revision=15728
* oops, Ximian is spelled Ximian, not Ximain. :-)Jeffrey Stedfast2002-02-157-7/+7
| | | | svn path=/trunk/; revision=15725
* added a kludge around a Nautilus bug that calls drag_data_get multiple times ↵Jeffrey Stedfast2002-02-141-1/+8
| | | | | | witht he same drag. svn path=/trunk/; revision=15722
* Implement. (drag_data_delete_cb): Implement. (do_attachment_header): SetupJeffrey Stedfast2002-02-143-22/+111
| | | | | | | | | | | 2002-02-13 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (drag_data_get_cb): Implement. (drag_data_delete_cb): Implement. (do_attachment_header): Setup Drag & Drop. This implements bugzilla bug #1066. svn path=/trunk/; revision=15721
* Set the followup icon to use the new flag icon rather than the exclamationJeffrey Stedfast2002-02-148-24/+124
| | | | | | | | | | | | | | | | | | | 2002-02-13 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c: Set the followup icon to use the new flag icon rather than the exclamation mark icon. * mail-callbacks.c (flag_for_followup): Append the selected messages to the clist in the followp editor. * message-list.c: Include the new flag-for-followup icon. * message-tag-followup.c (message_tag_followup_append_message): New method to add a message to the message-list. (construct): Get the message_list widget and load the flag icon pixmap. svn path=/trunk/; revision=15720
* Fixed a bug.Jeffrey Stedfast2002-02-136-14/+39
| | | | | | | | | | | | | | | | | | | | | 2002-02-12 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (set_widget_values): Fixed a bug. * mail-callbacks.c (flag_for_followup): If only 1 message is selected and it happens to already be marked for follow-up, set the value of the flag on the editor so the settings are restored. * folder-browser-ui.c: Set the pixmaps on MarkAsRead, MarkAsUnread and MarkAsImportant bonobo verbs. Also connect to flag-for-followup verb. (folder_browser_ui_set_selection_state): Added MessageFollowUpFlag verb to the array of verb strings. * folder-browser.c: Set key accelerators on the follow-up right-click menu items to match Outlook. svn path=/trunk/; revision=15702
* No longer need to call e_msg_composer_show_sig_file(). This gets handledJeffrey Stedfast2002-02-132-2/+10
| | | | | | | | | | | | | | 2002-02-12 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (create_msg_composer): No longer need to call e_msg_composer_show_sig_file(). This gets handled auto-magically by a signal emition when the default From address chooser gets created. (do_forward_non_attached): No longer need to call it here either because e_msg_composer_set_body_text() now makes sure to re-show the signature. svn path=/trunk/; revision=15693
* Show the signature.Jeffrey Stedfast2002-02-132-0/+5
| | | | | | | | 2002-02-12 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_forward_non_attached): Show the signature. svn path=/trunk/; revision=15689
* Get followup-up message-list values. Also highlight the message in red ifJeffrey Stedfast2002-02-126-107/+219
| | | | | | | | | | | | | | | | | | 2002-02-11 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (ml_tree_value_at): Get followup-up message-list values. Also highlight the message in red if the due-by date is past due (this is what Outlook does). (ml_duplicate_value): Handle follow-up columns. (ml_free_value): Same. (ml_initialize_value): Here too. (ml_value_is_empty): And here. (ml_value_to_string): And finally here. * message-tag-followup.c (message_tag_followup_i18n_name): New convenience function. svn path=/trunk/; revision=15680
* added entries for latest changesRadek Doulik2002-02-121-0/+9
| | | | svn path=/trunk/; revision=15679
* use reset undo in editorRadek Doulik2002-02-121-0/+7
| | | | svn path=/trunk/; revision=15678
* Implemented. (on_right_click): Do better enabling/hiding of unwantedJeffrey Stedfast2002-02-123-15/+39
| | | | | | | | | | 2002-02-11 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (followup_tag_complete): Implemented. (on_right_click): Do better enabling/hiding of unwanted flag-for-followup options. svn path=/trunk/; revision=15675
* Set the correct drop-down menu item. (message_tag_followup_encode): ReturnJeffrey Stedfast2002-02-103-4/+34
| | | | | | | | | | | | | 2002-02-09 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.c (set_widget_values): Set the correct drop-down menu item. (message_tag_followup_encode): Return NULL if the type is NONE. (clear_clicked): Set the drop-down menu to None. (type_changed): Hide the None menu item. (construct): Create a None menu item and set it as the default. svn path=/trunk/; revision=15637
* New flag-for-followup tag editor dialog.Jeffrey Stedfast2002-02-098-11/+892
| | | | | | | | | | | | | | | | | | 2002-02-08 Jeffrey Stedfast <fejj@ximian.com> * message-tag-followup.[c,h]: New flag-for-followup tag editor dialog. * mail-callbacks.c (flag_for_followup): New callback that pops up a flag-for-followup editor dialog. (flag_followup_completed): Marks all flag-for-followup'd messages as 'complete'. (flag_followup_clear): Clears all flag-for-followup tags from the selected messages. * message-tags.glade: glade file for tag editors. svn path=/trunk/; revision=15632
* Base class for a message tag editor.Jeffrey Stedfast2002-02-097-19/+304
| | | | | | | | | | | | | | | | | 2002-02-08 Jeffrey Stedfast <fejj@ximian.com> * message-tag-editor.[c,h]: Base class for a message tag editor. * folder-browser.c (on_right_click): Setup the hide/enable masks for "Flag for Follow-up" * mail-callbacks.c (confirm_expunge): Instead of hiding deleted messages and then expunging, disable the use of the message-list completely during the expunge operation. (expunged_folder): Re-enable the use of the message-list widget here. svn path=/trunk/; revision=15626
* removed more needs-reply cruftJeffrey Stedfast2002-02-081-6/+0
| | | | svn path=/trunk/; revision=15604
* call set_body later to allow ignored words to be sent to gtkhtml controlRadek Doulik2002-02-082-22/+27
| | | | | | | | | 2002-02-07 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (mail_generate_reply): call set_body later to allow ignored words to be sent to gtkhtml control ahead svn path=/trunk/; revision=15598
* remove "New" from user creatable menu itemJP Rosevear2002-02-082-1/+6
| | | | | | | | | 2002-02-07 JP Rosevear <jpr@ximian.com> * component-factory.c (create_component): remove "New" from user creatable menu item svn path=/trunk/; revision=15597
* Bumped the required version of gal.Christopher James Lahey2002-02-0711-188/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-07 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the required version of gal. From addressbook/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-addressbook-view.c (e_addressbook_view_setup_menus): Changed this function to use the new GalViewMenus which takes a GalViewInstance, instead of a GalViewCollection. From calendar/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * gui/e-tasks.c (e_tasks_setup_view_menus), gui/gnome-cal.c (gnome_calendar_setup_view_menus): Made these use the new GalViewMenus stuff. From mail/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * folder-browser.c, folder-browser.h, folder-browser-ui.c, folder-browser-ui.h (folder_browser_ui_setup_view_menus, folder_browser_ui_discard_view_menus): Changed this to use the new GalViewMenus stuff. Made these exported functions. * mail-callbacks.c, message-browser.c: Changed these to not pass the now removed row parameter to message_list_select. * mail-config.c, mail-config.h (mail_config_folder_to_safe_url): Refactored this out of mail_config_folder_to_cachename. * message-list.c, message-list.h (message_list_select): Removed the row argument. Changed this to use the new function in ETree for finding the next cursor row that matches a test. (message_list_construct): Handle a failed construction of the ETree here. (message_list_setup_etree, save_tree_state): Don't load or save the header state. folder-browser-ui.c deals with this now. From views/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * addressbook/galview.xml, calendar/galview.xml, mail/galview.xml, tasks/galview.xml: Added default-view parameters. * mail/As_Sent_Folder.galview: New galview. * mail/Makefile.am, mail/galview.xml: Added As_Sent_Folder galview. From widgets/ChangeLog: 2002-02-07 Christopher James Lahey <clahey@ximian.com> * menus/gal-view-menus.c, menus/gal-view-menus.h (gal_view_menus_new): Made this take a GalViewInstance instead of a GalViewCollection. Reworked most of this to utilize the interfaces provided by GalViewInstance. svn path=/trunk/; revision=15592
* Rearranged the #if checks so that we don't ever try to access any smimeJeffrey Stedfast2002-02-072-3/+12
| | | | | | | | | | | 2002-02-06 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Rearranged the #if checks so that we don't ever try to access any smime widgets (since they are now being destroyed) if smime isn't enabled. (mail_account_gui_save): Same here. svn path=/trunk/; revision=15587
* Removed references to NEEDS_REPLY.Jeffrey Stedfast2002-02-076-68/+12
| | | | | | | | | | | | | | | | 2002-02-06 Jeffrey Stedfast <fejj@ximian.com> * message-list.c: Removed references to NEEDS_REPLY. * mail-callbacks.c (mark_as_needing_reply): Removed. (mark_as_not_needing_reply): Removed. (toggle_need_reply): Removed. * folder-browser.c (on_right_click): Remove CAN_MARK_NEEDS_REPLY stuff, this is going to be implemented in an entirely different way. svn path=/trunk/; revision=15585
* Look for DOCTYPE XML comments too to decide if the message content isJeffrey Stedfast2002-02-073-2/+7
| | | | | | | | | 2002-02-06 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_text_plain): Look for DOCTYPE XML comments too to decide if the message content is really HTML. svn path=/trunk/; revision=15581
* Dont double-free the text body data.Not Zed2002-02-062-4/+5
| | | | | | | | | 2002-02-06 Not Zed <NotZed@Ximian.com> * mail-callbacks.c (mail_generate_reply): Dont double-free the text body data. svn path=/trunk/; revision=15574
* Add attachments after we've seen if the composer object is valid.Not Zed2002-02-043-18/+32
| | | | | | | | | | | 2002-01-31 Not Zed <NotZed@Ximian.com> * mail-callbacks.c (mail_generate_reply): Add attachments after we've seen if the composer object is valid. (mail_generate_reply): Support new flag REPLY_NO_QUOTE - if set, then dont quote any of the message in the reply. svn path=/trunk/; revision=15560
* Destroy the S/MIME frame if not available, instead of just graying it out.Ettore Perazzoli2002-02-032-1/+8
| | | | | | | | | * mail-account-gui.c (mail_account_gui_new): Destroy the S/MIME frame if not available, instead of just graying it out. [I would just hide it, but it looks like there is a show_all somewhere so that doesn't work.] svn path=/trunk/; revision=15554
* Some touchups from me and Anna.Ettore Perazzoli2002-02-032-189/+177
| | | | | | * mail-config.glade: Some touchups from me and Anna. svn path=/trunk/; revision=15553
* Don't bother setting the auto-cc/bcc recipients here. I'm moving the codeJeffrey Stedfast2002-02-022-25/+7
| | | | | | | | | | | 2002-01-31 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_get_message): Don't bother setting the auto-cc/bcc recipients here. I'm moving the code to add them in the GUI in the composer so they will already be in the recipient list by this point. svn path=/trunk/; revision=15549
* ignore spell checking of words in addresses, move set_body_text after allRadek Doulik2002-02-013-6/+37
| | | | | | | | | | | | 2002-01-31 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (mail_generate_reply): ignore spell checking of words in addresses, move set_body_text after all ignored words are set so we don't have to spell check whole document again (mail_ignore_address): helper function (mail_ignore): ditto svn path=/trunk/; revision=15541
* Pass the parent window to mail_account_editor_new().Jeffrey Stedfast2002-01-316-14/+28
| | | | | | | | | | | | | | | | | 2002-01-30 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (mail_edit): Pass the parent window to mail_account_editor_new(). * mail-account-editor.c (mail_account_editor_new): Set the parent window here because construct() inadvertantly gtk_widget_show_all's the editor. * mail-account-gui.c (mail_account_gui_save): Use g_basename() rather than strrchr for '/' especially since the strrchr code wasn't doing any NULL checks. svn path=/trunk/; revision=15533
* print quoted text in italicRadek Doulik2002-01-312-6/+10
| | | | | | | | | 2002-01-30 Radek Doulik <rodo@ximian.com> * mail-format.c (handle_text_plain_flowed): print quoted text in italic svn path=/trunk/; revision=15530
* re-enable popup menu. (populate_folder_context_menu): If we're on aNot Zed2002-01-302-8/+31
| | | | | | | | | | | | | 2002-01-30 Not Zed <NotZed@Ximian.com> * component-factory.c (create_component): re-enable popup menu. (populate_folder_context_menu): If we're on a vfolder, and its not UNMATCHED, create a change properties item, and set it up approriately. (change_prop_popup): Callback to edit the vfolder rule. For #3358. svn path=/trunk/; revision=15523
* Changed the function signature so that we can pass in whom we want toDave West2002-01-302-6/+27
| | | | | | | | | | | | | | 2002-01-29 Dave West <kat@unleashed.org> * mail-callbacks.c (create_msg_composer): Changed the function signature so that we can pass in whom we want to compose as. Should fix bug #10391. (compose_msg): Get the current profile account and pass it along to create_msg_composer. (send_to_url): Pass in a NULL profile account to cause create_msg_composer to use the default account. svn path=/trunk/; revision=15518
* Make X-Evolution-Account take priority over X-Evolution-Transport. ShouldJeffrey Stedfast2002-01-302-3/+8
| | | | | | | | | | | 2002-01-29 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): Make X-Evolution-Account take priority over X-Evolution-Transport. Should we just get rid of X-Evolution-Transport? Anyways, this ought to fix a number of complaints. svn path=/trunk/; revision=15516
* Don't pass NULL text to gtk_entry_set_text. Maybe this will fix bugJeffrey Stedfast2002-01-302-3/+12
| | | | | | | | | 2002-01-29 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Don't pass NULL text to gtk_entry_set_text. Maybe this will fix bug #18971. svn path=/trunk/; revision=15512
* New function that implements the Redirect feature.Jeffrey Stedfast2002-01-306-4/+143
| | | | | | | | | | | | | | | | | | | | 2002-01-29 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (redirect): New function that implements the Redirect feature. * mail-ops.c (mail_send_message): If we are redirecting a message, get the Resent-* recipients otherwise get the normal To/Cc/Bcc recipients and use them in the CamelTransport::send_to() method. * mail-session.c (main_get_filter_driver): Set the beep_func to the beep_cb, not the play_sound_func. Oops ;-) * folder-browser-ui.c: Add Redirect bonobo verb thingy here. (folder_browser_ui_set_selection_state): Add MessageRedirect to the proper string arrays. svn path=/trunk/; revision=15511
* (footer_info_free): unref footer fontRadek Doulik2002-01-302-1/+10
| | | | svn path=/trunk/; revision=15509
* (do_mail_print): get rid of static global variables, as they areRadek Doulik2002-01-302-21/+38
| | | | | | not thread safe (thanks to clahey for pointing this out) svn path=/trunk/; revision=15508
* initialize line to 0 to make everybody happy ;-) ops, set local_font toRadek Doulik2002-01-302-2/+8
| | | | | | | | | | 2002-01-29 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (do_mail_print): initialize line to 0 to make everybody happy ;-) ops, set local_font to NULL svn path=/trunk/; revision=15506
* Don't bother checking for invalid recipients anymore. If a recipient isJeffrey Stedfast2002-01-292-41/+12
| | | | | | | | | | 2002-01-28 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_get_message): Don't bother checking for invalid recipients anymore. If a recipient is invalid, the transport error message will specify that now. svn path=/trunk/; revision=15501
* print footer (footer_print_cb): print page number and number of pagesRadek Doulik2002-01-292-16/+35
| | | | | | | | | 2002-01-28 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (do_mail_print): print footer (footer_print_cb): print page number and number of pages svn path=/trunk/; revision=15499
* Final cleanup for the CFLAGS and LIBS in the Makefiles.Ettore Perazzoli2002-01-282-9/+12
| | | | svn path=/trunk/; revision=15486
* We need to return a value here. I think FALSE is fine (I hope).Jeffrey Stedfast2002-01-262-0/+5
| | | | | | | | | 2002-01-25 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (delete_event_cb): We need to return a value here. I think FALSE is fine (I hope). svn path=/trunk/; revision=15476
* Save the pathname. (save_part): Use the new mail_config cruft to get theJeffrey Stedfast2002-01-264-14/+58
| | | | | | | | | | | | | | | 2002-01-25 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (save_data_cb): Save the pathname. (save_part): Use the new mail_config cruft to get the last used save pathname. * mail-config.c (config_read): Read in last_filesel_dir string. (mail_config_write_on_exit): Save the last_filesel_dir setting. (mail_config_get_last_filesel_dir): New (mail_config_set_last_filesel_dir): New svn path=/trunk/; revision=15474
* Do some NULL checking on the url before using it.Jeffrey Stedfast2002-01-262-3/+13
| | | | | | | | | | | 2002-01-25 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (destination_folder_handle_motion): Do some NULL checking on the url before using it. (destination_folder_handle_drop): Make sure the uri is non-NULL before freeing. svn path=/trunk/; revision=15473
* Clean up some of the Makefiles so we dont' link every library multipleEttore Perazzoli2002-01-252-2/+7
| | | | | | times, causing big libtool 1.4 pain. svn path=/trunk/; revision=15461
* This wrapper for gdk_beep().Jeffrey Stedfast2002-01-252-2/+9
| | | | | | | | 2002-01-24 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (session_system_beep): This wrapper for gdk_beep(). svn path=/trunk/; revision=15460
* Don't bother trying to see if the domain looks like a FQDN.Jeffrey Stedfast2002-01-252-7/+7
| | | | | | | | | 2002-01-24 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (is_email): Don't bother trying to see if the domain looks like a FQDN. svn path=/trunk/; revision=15457
* If the mail-display is in focus, then select-all in the mail displayJeffrey Stedfast2002-01-252-3/+13
| | | | | | | | | | 2002-01-24 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (select_all): If the mail-display is in focus, then select-all in the mail display rather than the message-list. Fixes bug #19126. svn path=/trunk/; revision=15456
* Pass a NULL icon to `evolution_shell_component_add_user_creatable_item()'.Ettore Perazzoli2002-01-242-1/+8
| | | | | | | * component-factory.c (create_component): Pass a NULL icon to `evolution_shell_component_add_user_creatable_item()'. svn path=/trunk/; revision=15441
* Implements bug #15692Jeffrey Stedfast2002-01-242-11/+67
| | | | | | | | | | | | | | 2002-01-23 Jeffrey Stedfast <fejj@ximian.com> Implements bug #15692 * folder-browser.c (html_button_press_event): New callback that checks to make sure that the mouse isn't over a link or image in the html view and then calls the on_right_click handler after getting the appropriate args. (my_folder_browser_init): Connect to the button_press_event here. svn path=/trunk/; revision=15437
* Define CAMEL_PROVIDERDIR to be the configure.in-defined camel_providerdir.Dan Winship2002-01-242-2/+7
| | | | | | | | * Makefile.am (INCLUDES): Define CAMEL_PROVIDERDIR to be the configure.in-defined camel_providerdir. (Was supposed to have been committed a month ago... oops.) svn path=/trunk/; revision=15430
* Now takes a boolean notify argument. If this is *not* set, then remove theJeffrey Stedfast2002-01-233-3/+16
| | | | | | | | | | | | | 2002-01-22 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_filter_folder): Now takes a boolean notify argument. If this is *not* set, then remove the sound-notify filter rule that mail-session adds. Kinda kludgy, but good enough for the moment. * mail-callbacks.c (guess_me): Simplified. svn path=/trunk/; revision=15426
* Simplified.Jeffrey Stedfast2002-01-232-30/+34
| | | | | | | | 2002-01-22 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (guess_me): Simplified. svn path=/trunk/; revision=15424
* If the first "token" in the body is "<html>", then treat this as aJeffrey Stedfast2002-01-223-1/+19
| | | | | | | | | | | | | 2002-01-21 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_text_plain): If the first "token" in the body is "<html>", then treat this as a text/html part rather than a text/plain part. Fixes bug #16817. * component-factory.c (destination_folder_handle_drop): Removed some unused variables. svn path=/trunk/; revision=15420
* Update to match new uudecode interface (ie, no longer need a uulen stateJeffrey Stedfast2002-01-182-3/+8
| | | | | | | | | 2002-01-17 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (try_uudecoding): Update to match new uudecode interface (ie, no longer need a uulen state variable). svn path=/trunk/; revision=15350
* New callback to handle the set_base signal. (on_url_requested): If theJeffrey Stedfast2002-01-163-5/+60
| | | | | | | | | | | | | | | | 2002-01-15 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (on_set_base): New callback to handle the set_base signal. (on_url_requested): If the base_url is set, prepend it to the data url (we don't want to do this for cid urls or part urls tho). (mail_display_init): Initialize md->base_url to NULL. (mail_display_destroy): Free the base_url. (mail_display_initialize_gtkhtml): Connect to the set_base signal. (on_link_clicked): If the base_url is set, prepend it to the url string passed to us from gtkhtml. svn path=/trunk/; revision=15329
* Don't remove any X-Evolution* headers here, the composer already knows toJeffrey Stedfast2002-01-112-3/+6
| | | | | | | | | | 2002-01-10 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_edit_messages): Don't remove any X-Evolution* headers here, the composer already knows to ignore these. Besides, it needs to know the X-Evolution-Format header. svn path=/trunk/; revision=15287
* Do proper refcounting on the draft folder.Jeffrey Stedfast2002-01-092-2/+10
| | | | | | | | | 2002-01-08 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_save_draft_cb): Do proper refcounting on the draft folder. svn path=/trunk/; revision=15268
* When performing a wraparound, check to see if the first (or last dependingJeffrey Stedfast2002-01-092-4/+26
| | | | | | | | | | | | | | | 2002-01-08 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_select): When performing a wraparound, check to see if the first (or last depending on direction) message fits the selection criteria before telling etable to find the next/previous matching node. * mail-account-gui.c (mail_account_gui_new): When connecting to the transport username changed event, pass the gui->transport not the gui->source. svn path=/trunk/; revision=15267
* When connecting to the transport username changed event, pass theJeffrey Stedfast2002-01-093-1/+9
| | | | | | | | | | 2002-01-08 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): When connecting to the transport username changed event, pass the gui->transport not the gui->source. svn path=/trunk/; revision=15266
* Make the mbox importer check for Mozilla status headers and act on them.Iain Holmes2002-01-094-4/+124
| | | | svn path=/trunk/; revision=15265
* Renamed. (mail_config_get_new_mail_notify_sound_file): Renamed.Jeffrey Stedfast2002-01-0810-53/+102
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-07 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_set_new_mail_notify_sound_file): Renamed. (mail_config_get_new_mail_notify_sound_file): Renamed. * mail-accounts.c (notify_radio_toggled): Replace EXEC with PLAY_SOUND. (construct): renamed the exec_command stuff to play_sound. * main.c (main): Init and shutdown gnome_sound. * mail-ops.c (fetch_mail_fetch): Don't do any new-mail notification here. (filter_folder_filter): call camel_filter_driver_flush. * mail-session.c (main_get_filter_driver): Set the filter-driver exec_func here instead. * mail-ops.c (mail_fetch_mail): Don't set the filter-driver exec_func here. svn path=/trunk/; revision=15263
* Add an Organization header.Jeffrey Stedfast2002-01-043-1/+8
| | | | | | | | | 2002-01-03 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_get_message): Add an Organization header. svn path=/trunk/; revision=15242
* Simplified. Also no longer needs an "ignore_addr" argument as far as I canJeffrey Stedfast2002-01-032-38/+46
| | | | | | | | | | | | | | | 2002-01-02 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (list_add_addresses): Simplified. Also no longer needs an "ignore_addr" argument as far as I can tell so that has been removed. (mail_generate_reply): Don't pass an ignore_addr argument to list_add_addresses and also change to use g_strcase_hash and g_strcase_equal since addresses are not case snesitive (mostly). Also, Reply-To can contain multiple addresses, so handle this case too. svn path=/trunk/; revision=15231
* remove e_gnome_dialog util functions and use e-util ones insteadJP Rosevear2002-01-032-44/+6
| | | | | | | | | | | | | | | | | | | 2002-01-02 JP Rosevear <jpr@ximian.com> * mail-callbacks.c: remove e_gnome_dialog util functions and use e-util ones instead 2002-01-02 JP Rosevear <jpr@ximian.com> * e-dialog-utils.c (e_gnome_dialog_set_parent): util function moved from mail-callbacks, also destroys the dialog if the parent is destroyed (e_gnome_warning_dialog_parented): similarly (e_gnome_ok_cancel_dialog_parented): ditto * e-dialog-utils.h: new protos svn path=/trunk/; revision=15225
* The idea here is that if we consistantly name the movemail file betweenJeffrey Stedfast2002-01-033-24/+39
| | | | | | | | | | | | | | | | | | | | | 2001-12-21 Jeffrey Stedfast <fejj@ximian.com> The idea here is that if we consistantly name the movemail file between Send&Receive sessions that if the user cancells the "download" of a mbox spool that the next Send&Receive will not "lose" mail that didn't finish the previous session. Fixes bug #17759. Well, mostly. If you have 200 messages and cancel after the first 100, say, then the next time you hit Send&Receive, it will start over from 1 so you'll end up duplicating the first 100 messages, but at least you won't "lose" mail. * mail-tools.c (mail_tool_get_local_movemail_path): Now a static internal function, takes a char *uri argument and no longer generates movemail.%d filenames... they are now based on the uri provided. (mail_tool_do_movemail): Pass along the source_uri. svn path=/trunk/; revision=15224
* Makes the auto-undelete behavior when changing message flags a bit moreJon Trowbridge2001-12-212-3/+20
| | | | | | | | | 2001-12-20 Jon Trowbridge <trow@ximian.com> * message-list.c (on_click): Makes the auto-undelete behavior when changing message flags a bit more sane. (Fixes #17634) svn path=/trunk/; revision=15200
* -- Merge fix for #17377 from the evolution-1-0-branch.Ettore Perazzoli2001-12-202-0/+9
| | | | | | * main.c (main): Push GdkRGB visual and colormap. svn path=/trunk/; revision=15195
* Add the auto-cc/bcc recipients here. The problem with setting them in theJeffrey Stedfast2001-12-207-45/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-19 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_get_message): Add the auto-cc/bcc recipients here. The problem with setting them in the composer is that what if the user changes which account he wants to use? We'd either have to clear the cc/bcc lists *or* we'd have to leave them alone. Either way is bad. We can't just clear the entries because the user may have added addresses since the composer was opened. We don't want to leave any old auto-cc/bcc addresses there because that isn't desirable either. So we give up and add them here after the user has already hit the send button. * mail-config.c (account_copy): Update to copy the always-[b]cc options. (account_destroy): Update to destroy the above options. (config_read): Update to read in those values. (mail_config_write): Save those options. * mail-account-gui.c (mail_account_gui_new): Setup Always Cc/Bcc widgets. (mail_account_gui_save): Get the user-entered values for the always-cc/bcc stuff. svn path=/trunk/; revision=15189
* If the provider is NULL, don't do anything.Jeffrey Stedfast2001-12-203-4/+8
| | | | | | | | | | | | | | 2001-12-19 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (setup_service): If the provider is NULL, don't do anything. * mail-accounts.c (construct): Oops, no wonder the exec command thing never stuck around... I wasn't getting the right widget from libglade. Also connect to the GtkEntry's changed event since a GnomeFileEntry doesn't have that signal in its ancestry. svn path=/trunk/; revision=15188
* Oops, no wonder the exec command thing never stuck around... I wasn'tJeffrey Stedfast2001-12-203-2/+9
| | | | | | | | | | 2001-12-19 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Oops, no wonder the exec command thing never stuck around... I wasn't getting the right widget from libglade. svn path=/trunk/; revision=15187
* Argh, don't notify about new mail here. (fetch_mail_fetch): Notify aboutJeffrey Stedfast2001-12-192-18/+22
| | | | | | | | | | 2001-12-18 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (filter_folder_free): Argh, don't notify about new mail here. (fetch_mail_fetch): Notify about new mail here instead. svn path=/trunk/; revision=15170
* slight fixJeffrey Stedfast2001-12-191-3/+3
| | | | svn path=/trunk/; revision=15169
* Setup the new-mail-notification widgets. (notify_command_changed): UpdateJeffrey Stedfast2001-12-197-18/+213
| | | | | | | | | | | | | | | 2001-12-18 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Setup the new-mail-notification widgets. (notify_command_changed): Update the command-line for new mail notification. (notify_radio_toggled): Update the new-mail-notification type. * mail-ops.c (filter_folder_free): See if we got any new mail and "sound the alarm" if we did. svn path=/trunk/; revision=15168
* Set citation color to black when we are printing.Jon Trowbridge2001-12-182-0/+7
| | | | | | | | | 2001-12-17 Jon Trowbridge <trow@ximian.com> * mail-format.c (handle_text_plain_flowed): Set citation color to black when we are printing. svn path=/trunk/; revision=15140
* Avoid embedding <object> tags when we are printing.Jon Trowbridge2001-12-183-13/+34
| | | | | | | | | | | | | | | | 2001-12-17 Jon Trowbridge <trow@ximian.com> * mail-format.c (attachment_header): Avoid embedding <object> tags when we are printing. (handle_multipart_signed): Don't do the click-for-info signature stuff when we are printing. (handle_via_bonobo): Don't embed an <object> tag if we are printing. * folder-browser.c: Changed context_menu[] array so that we can print when the preview pane is closed. svn path=/trunk/; revision=15139
* Set the filter driver's shell-exec callback.Jeffrey Stedfast2001-12-153-2/+9
| | | | | | | | | 2001-12-14 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_fetch_mail): Set the filter driver's shell-exec callback. svn path=/trunk/; revision=15088
* Connect to the destroy signal on the popup dialog.Jeffrey Stedfast2001-12-153-11/+32
| | | | | | | | | | | | | | 2001-12-12 Jeffrey Stedfast <fejJ@ximian.com> * mail-config.c (mail_config_check_service): Connect to the destroy signal on the popup dialog. 2001-12-12 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_text_plain): Make sure i != num_specials after we check for any special text markers. Fixes bug #12265. svn path=/trunk/; revision=15085
* Connect to the save-draft signal. (send_to_url): Here too. (mail_reply):Jeffrey Stedfast2001-12-153-1/+107
| | | | | | | | | | | | 2001-12-14 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (compose_msg): Connect to the save-draft signal. (send_to_url): Here too. (mail_reply): And here... (forward_get_composer): Same. (do_edit_messages): And finally here. svn path=/trunk/; revision=15081
* Start reiplementing The Right Way and not danw's fucking half-assed kludgeJeffrey Stedfast2001-12-153-129/+40
| | | | | | | | | | 2001-12-14 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (try_inline_pgp): (try_inline_pgp_sig): Start reiplementing The Right Way and not danw's fucking half-assed kludge that doesn't work. svn path=/trunk/; revision=15076
* set the new-mail-notify command.Jeffrey Stedfast2001-12-135-6/+134
| | | | | | | | | | | | | | | | | | | | | | 2001-12-12 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_set_new_mail_notification_command): set the new-mail-notify command. (mail_config_get_new_mail_notification_command): get the new-mail-notify command. (mail_config_set_new_mail_notification): set the new-mail-notification action. (mail_config_get_new_mail_notification): get the new-mail-notification action. (mail_config_write_on_exit): save the new-mail-notification settings. (config_read): Read in the new-mail-notification settings. * mail-ops.c (mail_execute_shell_command): New function to execute a shell command async. Will be used for playing sounds on new mail or whatever. svn path=/trunk/; revision=15005
* Fixed for mail_content_loaded's new signature.Jon Trowbridge2001-12-129-96/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-11 Jon Trowbridge <trow@ximian.com> * mail-identify.c (mail_identify_mime_part): Fixed for mail_content_loaded's new signature. * mail-format.c (attachment_header): Don't convert URLs, etc. if we are printing. (write_address): Don't convert addresses to mailto: links if we are printing. (write_one_text_plain_chunk): Add a printing flag, that we pass along to mail_text_write. (handle_text_plain): Pass our printing flag to write_one_text_plain_chunk. (mail_get_message_rfc822): Don't unneccesarily convert URLs. (mail_content_loaded): Add a GtkHTML parameter. * mail-display.c (mail_display_initialize_gtkhtml): Added. Breaks all of the signal hookups out of mail_display_new. (mail_display_new): Call mail_display_initialize_gtkhtml. (mail_text_write): Don't convert URLs, etc., if we are printing. Lots of other changes to pass around GtkHTML/GtkHTMLStream objects. * mail-callbacks.c (do_mail_print): Call mail_display_initialize_gtkhtml on our GtkHTML object. * folder-browser.c (update_status_bar): Make the status bar more useful when you have a large number of hidden messages. svn path=/trunk/; revision=14997
* Add ETable magic for our new "Needs Reply" column. (The next few entriesJon Trowbridge2001-12-1210-230/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-11 Jon Trowbridge <trow@ximian.com> * message-list.etspec: Add ETable magic for our new "Needs Reply" column. (The next few entries are for bug #90) * message-list.h: Add COL_NEED_REPLY. * message-list.c: Move mail_need_reply_xpm to the end of states_pixmaps. (ml_duplicate_value): Handle COL_NEED_REPLY. (ml_free_value): Handle COL_NEED_REPLY. (ml_initialize_value): Handle COL_NEED_REPLY. (ml_value_is_empty): Handle COL_NEED_REPLY. Added needs_reply_map[] array. (ml_value_to_string): Handle COL_NEED_REPLY. (ml_tree_value_at): Fix magic numbers, undoing my changes from the otehr day. Add handler for COL_NEED_REPLY. (message_list_create_extras): Attach icons for COL_NEED_REPLY. (on_click): Undo my previous changes to display need-reply status in COL_MESSAGE_STATUS. Add handing for COL_NEED_REPLY. * mail.h: Change mail_format_mime_message, mail_format_raw_message and the MailMimeHandlerFn typedef to take GtkHTML and GtkHTMLStream args, as per our changes in mail-format.c. * mail-format.c: Giant refactoring. Remove the assumption throughout that we will always want to render into the GtkHTML object contained in the MailDisplay. Instead, always pass in the GtkHTML and GtkHTMLStream that we want to write to. Also, ignore theme work-arounds if the printing flag is set. (This and what follows fixes bug #82) * mail-display.h: Remove GtkHTMLStream *stream from MailDisplay. We don't need it anymore. * mail-display.c (mail_display_render): Added. Breaks the code that renders the message into the GtkHTML object out of mail_display_redisplay. (mail_display_redisplay): Call mail_display_render. (mail_display_init): Remove reference to ->stream. (mail_display_new): Remove reference to ->stream. * mail-callbacks.c (do_mail_print): Create a new GtkHTML to render our printed version into (via the new function mail_display_render. Set the MailDisplay's printing flag to TRUE before we render, and set it back to FALSE afterwards. (do_mail_fetch_and_print): If the preview pane isn't open when we try to print, fetch the message before printing. (print_msg): Call do_mail_fetch_and_print. (print_preview_msg): Call do_mail_fetch_and_print. * folder-browser-ui.c: Remove "PrintMessage" and "PrintPreviewMessage" from message_pane_enables... these now work when the preview pane is closed. Disable printing if multiple messages are selected. svn path=/trunk/; revision=14981
* Don't expunge when we sync anymore, this fixes bug #4472.Jeffrey Stedfast2001-12-112-2/+7
| | | | | | | | | 2001-12-10 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (filter_folder_filter): Don't expunge when we sync anymore, this fixes bug #4472. svn path=/trunk/; revision=14969
* Make sure that the message subject is non-NULL beforetrying to base aJeffrey Stedfast2001-12-114-29/+40
| | | | | | | | | | | | | | | | | | | 2001-12-04 Jeffrey Stedfast <fejj@ximian.com> * mail-autofilter.c (rule_from_message): Make sure that the message subject is non-NULL beforetrying to base a vfolder rule off it. Fixes bug #16284. 2001-12-07 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Connect to the dialog's "destroy" event and close any druids/editors that may be open when that signal is caught. Fixes bug #16501. * mail-vfolder.c (vfolder_edit): Set the window title to "Virtual Folders". Fixes bug #16695. svn path=/trunk/; revision=14966
* set paper size to _("US-Letter"), use gtk_html_print_set_masterRadek Doulik2001-12-112-2/+7
| | | | | | | | | 2001-12-05 Radek Doulik <rodo@ximian.com> * mail-callbacks.c (do_mail_print): set paper size to _("US-Letter"), use gtk_html_print_set_master svn path=/trunk/; revision=14953
* Don't just assume all of the GtkHTMLEmbedded's fields are filled in, sinceDan Winship2001-12-105-7/+35
| | | | | | | | | | | | | | | | | * mail-display.c (on_object_requested): Don't just assume all of the GtkHTMLEmbedded's fields are filled in, since HTML messages may have <object>s in them that we're not expecting. * mail-send-recv.c (mail_send_receive): Add a "current_folder" arg. (build_dialogue): Remember the current_folder (free_send_data): If current_folder is set, refresh it so it's guaranteed to be synced with the folder tree. Fixes #14770. * mail-callbacks.c (send_receive_mail): Pass current_folder to mail_send_receive(). svn path=/trunk/; revision=14950
* Implements marking messages as "Need Reply".Jon Trowbridge2001-12-105-48/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements marking messages as "Need Reply". 2001-12-09 Jon Trowbridge <trow@ximian.com> * mail-need-reply.xpm: Added a really, really ugly and awful icon to symbolize "message needs a reply". * Makefile.am (EXTRA_DIST): Added mail-need-reply.xpm. 2001-12-09 Jon Trowbridge <trow@ximian.com> * camel-folder-summary.c: Add "NeedsReply" to the flag_names array for CAMEL_MESSAGE_NEEDS_REPLY. * camel-folder-summary.h: Added CAMEL_MESSAGE_NEEDS_REPLY flag. 2001-12-09 Jon Trowbridge <trow@ximian.com> * vfoldertypes.xml: Add "Needs Reply" option to different status types. * filtertypes.xml: Add "Needs Reply" option to different status types. 2001-12-09 Jon Trowbridge <trow@ximian.com> * message-list.c: #include "art/mail-need-reply.xpm". (ml_tree_value_at): Adjust magic numbers, show "Need Reply" icon if the message needs reply. (message_list_create_extras): Adjust magic numbers to add new icon. (on_click): Changed to toggle between unread, read, and need reply when the status icon is clicked. * mail-callbacks.c (mark_as_needing_reply): Added. (mark_as_not_needing_reply): Added. Add "set" value to struct post_send_data. (composer_sent_cb): Use both "flags" and "set" elements of post_send_data when setting message flags. (mail_reply): Clear "Needs Reply" flag when we actually reply to a message. * folder-browser.c: Changed flag values to be given by bit-shifting (1<<5) vs. base-ten (32). Added CAN_MARK_DOESNT_NEED_REPLY flag. Added "Mark as Needing Reply" and "Mark as Not Needing Reply" elements to context menu. (on_right_click): Hide "Mark as (Not) Needing Reply" context menu elements as appropriate. svn path=/trunk/; revision=14946
* Check that the mail-display hasn't been destroyed.Jeffrey Stedfast2001-12-084-7/+42
| | | | | | | | | | | | | | | | | | | 2001-12-04 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (stream_write_or_redisplay_when_loaded): Check that the mail-display hasn't been destroyed. (mail_display_redisplay): Same here. 2001-12-07 Dan Winship <danw@ximian.com> * mail-send-recv.c (receive_update_got_store): If updating a store that we don't have an associated storage for, just request a folder tree and then free it. (For the Connector) * mail-callbacks.h: Add missing part of Jeff's 12-03 patch so this actually compiles. svn path=/trunk/; revision=14938
* s/PREVIEW_RELEASE/VERSION_COMMENTJeffrey Stedfast2001-12-072-1/+5
| | | | | | | | 2001-12-06 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): s/PREVIEW_RELEASE/VERSION_COMMENT svn path=/trunk/; revision=14924
* ack, forgot about this piece of the patchJeffrey Stedfast2001-12-071-1/+1
| | | | svn path=/trunk/; revision=14916
* Don't append "(Preview Version)" at the end of the version string. Use theJeffrey Stedfast2001-12-072-6/+9
| | | | | | | | | | 2001-12-03 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): Don't append "(Preview Version)" at the end of the version string. Use the PREVIEW_RELEASE #define instead. svn path=/trunk/; revision=14913
* fixed changelog merge conflictsJeffrey Stedfast2001-12-071-1/+0
| | | | svn path=/trunk/; revision=14906
* Setup the UI for the AddSenderToAddressbook ui verb thingy.Jeffrey Stedfast2001-12-074-39/+24
| | | | | | | | | | | | 2001-12-03 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c: Setup the UI for the AddSenderToAddressbook ui verb thingy. * mail-callbacks.c (add_sender_to_addrbook): New bonobo-ui callback that adds a sender to the addressbook. svn path=/trunk/; revision=14905
* Allow 'n' and 'p' to work when multiple messages are selected. FixesJon Trowbridge2001-12-052-6/+9
| | | | | | | | | | 2001-12-04 Jon Trowbridge <trow@ximian.com> * folder-browser-ui.c (folder_browser_ui_set_selection_state): Allow 'n' and 'p' to work when multiple messages are selected. Fixes #12062. svn path=/trunk/; revision=14874
* If the path exists, make sure it's a regular file (or we can't possiblyJeffrey Stedfast2001-12-043-24/+58
| | | | | | | | | | | | | | | | 2001-11-28 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (save_msg_ok): If the path exists, make sure it's a regular file (or we can't possibly save to it). Fix for #14127. 2001-11-28 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_select): Cleaned up the code. * mail-callbacks.c (previous_unread_msg): Pass wraparound as TRUE. svn path=/trunk/; revision=14850
* Fix the boolean check to be && and not ||.Jeffrey Stedfast2001-12-012-1/+6
| | | | | | | | | 2001-11-24 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (pgpopen): Fix the boolean check to be && and not ||. svn path=/trunk/; revision=14826
* Reverted the non-NULL mime-type patch from a little while back, didn'tJeffrey Stedfast2001-11-282-6/+8
| | | | | | | | | | 2001-11-27 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (format_mime_part): Reverted the non-NULL mime-type patch from a little while back, didn't mean to commit this. svn path=/trunk/; revision=14798
* merged from evoution-1-0-branchNot Zed2001-11-285-24/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-25 Not Zed <NotZed@Ximian.com> * mail-config.c (config_read): Enable news accounts that exist always, since no gui for it. 2001-11-20 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_select): 'n' shouldn't wrap if 'p' doesn't. * mail-format.c (format_mime_part): Make sure the mime-type is non-NULL before passing it off to mail_lookup_handler(). 2001-11-20 Not Zed <NotZed@Ximian.com> * folder-browser-ui.c: Disable search if no message loaded/viewed. Also for #14348. * folder-browser.c: Disable "Add sender to addressbook" if we dont have a message loaded (it wont work). For #14348. 2001-11-20 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (load_content_loaded): Make sure the mail-display object is still "alive" before accessing any of it's data. svn path=/trunk/; revision=14796
* Reverted my hide_save_state patch.Jeffrey Stedfast2001-11-222-6/+4
| | | | | | | | 2001-11-21 Jeffrey Stedfast <fejj@ximian.com> * message-list.c: Reverted my hide_save_state patch. svn path=/trunk/; revision=14775
* 'n' shouldn't wrap if 'p' doesn't.Jeffrey Stedfast2001-11-212-9/+5
| | | | | | | | | 2001-11-20 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_select): 'n' shouldn't wrap if 'p' doesn't. svn path=/trunk/; revision=14766
* Save hide state. (message_list_hide_uids): Save hide state.Jeffrey Stedfast2001-11-173-6/+25
| | | | | | | | | | | | | 2001-11-16 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_hide_clear): Save hide state. (message_list_hide_uids): Save hide state. (message_list_hide_add): Save hide state. * mail-format.c (format_mime_part): Make sure the mime-type is non-NULL before passing it off to mail_lookup_handler(). svn path=/trunk/; revision=14734
* Undo a really weird mangling of part of the ChangeLog from last AugustDan Winship2001-11-161-42/+42
| | | | svn path=/trunk/; revision=14728
* s/_/U_/ (filter_rule_set_name requires UTF-8 string)Chyla Zbigniew2001-11-152-4/+10
| | | | | | | * mail-autofilter.c (rule_match_recipients, rule_from_message, rule_from_mlist): s/_/U_/ (filter_rule_set_name requires UTF-8 string) svn path=/trunk/; revision=14707
* Instead of doing pthread_exit() after redirecting the SEGV, try to lock aDan Winship2001-11-152-1/+17
| | | | | | | | | * main.c (segv_redirect): Instead of doing pthread_exit() after redirecting the SEGV, try to lock a mutex we know is already locked. This will hopefully help debug a bunch of bugs where the crashed thread seems to be missing from the bug-buddy report. svn path=/trunk/; revision=14699
* Call e_passwords_remember_password() for account passwords if the user setJeffrey Stedfast2001-11-152-8/+23
| | | | | | | | | | 2001-11-13 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (pass_got): Call e_passwords_remember_password() for account passwords if the user set the "remember password" checkbox. svn path=/trunk/; revision=14696
* Add a NULL check for rule->name. (mail_vfolder_add_uri): Same here.Jeffrey Stedfast2001-11-132-6/+20
| | | | | | | | | | 2001-11-12 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (vfolder_load_storage): Add a NULL check for rule->name. (mail_vfolder_add_uri): Same here. svn path=/trunk/; revision=14677
* If we already have the message loaded in the mail-display, don't botherJeffrey Stedfast2001-11-112-3/+15
| | | | | | | | | | 2001-11-09 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (forward_message): If we already have the message loaded in the mail-display, don't bother re-loading. This happens to fix bug #14848. svn path=/trunk/; revision=14663
* Was x_evolution_message_parse from folder-browser.c. A space char is noJeffrey Stedfast2001-11-105-68/+69
| | | | | | | | | | | | | | | | | | | | 2001-11-08 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tools_x_evolution_message_parse): Was x_evolution_message_parse from folder-browser.c. A space char is no longer used to separate the folder URI and the first uid, instead this is now done with a nul-char so update to parse the newer/better format. * component-factory.c (destination_folder_handle_drop): Update to parse the new/better format. * folder-browser.c (x_evolution_message_parse): Moved to mail-tools.c (message_list_drag_data_get): Instead of placing a space char after the folder URI, instead use a nul-char. svn path=/trunk/; revision=14645
* Call mail_config_pgp_type_detect_from_path() instead of doing our own lameJeffrey Stedfast2001-11-094-20/+243
| | | | | | | | | | | | | | | | 2001-11-06 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (pgp_path_changed): Call mail_config_pgp_type_detect_from_path() instead of doing our own lame auto-detection that didn't even work ;-) * mail-config.c (auto_detect_pgp_variables): Execute the pgp binary and look at it's version string if we have a version string to compare to. (mail_config_pgp_type_detect_from_path): New function that takes a pgp path and attempts to figure out what pgp version it is. svn path=/trunk/; revision=14634
* Add a "x-inline-pgp-hack=true" paramter to the multipart's content-type.Jeffrey Stedfast2001-11-082-1/+7
| | | | | | | | | 2001-11-07 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (try_inline_pgp): Add a "x-inline-pgp-hack=true" paramter to the multipart's content-type. svn path=/trunk/; revision=14619
* Don't make the account editor modal either.Jeffrey Stedfast2001-11-067-62/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-05 Jeffrey Stedfast <fejj@ximian.com> * mail-account-editor.c (construct): Don't make the account editor modal either. * mail-accounts.c (mail_add): Use the new global account druid variable so that we can avoid having more than a single druid at a time. If a druid already exists, bring it to the top. (mail_edit): Same idea only for the account editor this time. (mail_editor_destroyed): Set the global editor to NULL. (mail_add_finished): Set the global druid to NULL. (mail_delete): Don't allow any deletes if an account editor is opened (we don't want to be able to delete the account we are editing...) (news_edit): Same thing for the news editor. (news_editor_destroyed): Set the news editor to NULL. (news_add): And again for the news add. * mail-account-gui.c (service_check_supported): Updated to pass a GtkWindow argument to mail_config_check_service(). * mail-config.c (mail_config_check_service): Now takes a GtkWindow argument so we can set our parent window. Also, don't make this dialog modal either. * mail-config-druid.c (construct): Don't make this druid modal. svn path=/trunk/; revision=14598
* Override the Move/Copy handlers setup by the folder_browser_ui code, and52001-11-063-1/+113
| | | | | | | | | | | | | | | | | | | | 2001-11-05 <NotZed@Ximian.com> * message-browser.c (set_bonobo_ui): Override the Move/Copy handlers setup by the folder_browser_ui code, and use our own, because we need to pass it a live window which we can't. (transfer_msg): Our own version of mail-callbacks.c:transfer_msg, so we can properly pass the parent to the user_select_folder. (transfer_msg_done): Also copy this so we can pass it diff args. All fix #13919. * mail-callbacks.c (transfer_msg): Set physical/uri to NULL before calling, because althought he shell client api call is supposed to null these out, it doesn't with its stupid assertion checks on entry. Also free physical to plug a memleak. Bugs exposed by #13919. svn path=/trunk/; revision=14597
* Renamed from mail_html_write_string.Jeffrey Stedfast2001-11-066-171/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-11-01 Jeffrey Stedfast <fejj@ximian.com> * mail-display.h (mail_html_write): Renamed from mail_html_write_string. * mail-display.c (mail_text_write): Don't bother with varargs since nothing used them, we were only passing strings anyway... (mail_error_printf): Renamed from mail_error_write, this makes more sense. (mail_html_write): Removed. * mail-format.c: Updated to use gtk_html_stream_printf directly and s/mail_html_write_string/mail_html_write. (mail_lookup_handler): Don't use %.*s here either... (handle_text_enriched): Same. (write_one_text_plain_chunk): And finally here (also update for new mail_text_write api). (handle_multipart_signed): Update for new mail_text_write api. (format_mime_part): Update for new mail_error_text/printf name change. (handle_multipart_encrypted): Same. * mail-tools.c (mail_tool_generate_forward_subject): Same as mail_generate_reply. * mail-callbacks.c (mail_generate_reply): Don't use %.*s in any *printf* functions. svn path=/trunk/; revision=14590
* Use GINT_TO_POINTER here for platforms where simply casting an int to voidChristopher James Lahey2001-11-032-3/+14
| | | | | | | | | | | 2001-11-02 Christopher James Lahey <clahey@ximian.com> * message-list.c (ml_tree_value_at): Use GINT_TO_POINTER here for platforms where simply casting an int to void * won't work. (build_flat_diff, main_folder_changed): Call e_tree_model_pre_change here. svn path=/trunk/; revision=14581
* Disconnect from the message_list_built function so we dont do it every22001-11-035-9/+49
| | | | | | | | | | | | | | | | | | | | | | | 2001-11-02 <NotZed@Ximian.com> * message-browser.c (message_browser_message_list_built): Disconnect from the message_list_built function so we dont do it every time the list is rebuilt. * mail-callbacks.c (composer_send_cb): Disable autosave when we're sending mail. (composer_sent_cb): Re-enable autosave. * folder-browser-ui.c (fbui_sensitize_timeout): Make sure we reset any data we're using on the folderbrowser before doing anything 'cause things could vanish while we're doing it, and also ref/unref the folderbrowser so it doesn't vanish while w'ere working. * folder-browser.c (folder_browser_set_ui_component): If we are changing the ui comp, remove any pending timeouts. For #13719. svn path=/trunk/; revision=14575
* fix cut & paste from the message body.Larry Ewing2001-11-022-2/+6
| | | | | | | | | 2001-11-01 Larry Ewing <lewing@ximian.com> * folder-browser.c (folder_browser_copy): fix cut & paste from the message body. svn path=/trunk/; revision=14568
* Write out the url before callind add_url since add_url may free it. FixesDan Winship2001-11-023-4/+9
| | | | | | | | | | * mail-format.c (handle_multipart_signed): Write out the url before callind add_url since add_url may free it. Fixes #13839. Remove debug printf. * mail-display.c (on_object_requested): Remove debug printf. svn path=/trunk/; revision=14564
* Don't use a case-sensitive comparison.Jeffrey Stedfast2001-11-012-2/+8
| | | | | | | | | 2001-10-31 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (list_add_addresses): Don't use a case-sensitive comparison. svn path=/trunk/; revision=14556
* Make this work again.Dan Winship2001-11-012-1/+4
| | | | | | * mail-format.c (try_inline_pgp_sig): Make this work again. svn path=/trunk/; revision=14545
* add delete_event_handler. (menu_file_save_close_cb): add save and closeLarry Ewing2001-10-312-5/+34
| | | | | | | | | | | 2001-10-30 Larry Ewing <lewing@ximian.com> * mail-account-gui.c (delete_event_cb): add delete_event_handler. (menu_file_save_close_cb): add save and close command. (launch_signature_editor): initial the editor as having changed and attach the delete event handler. svn path=/trunk/; revision=14499
* Turn it off.02001-10-312-1/+3
| | | | | | | | 2001-10-30 <NotZed@Ximian.com> * message-browser.c (d): Turn it off. svn path=/trunk/; revision=14483
* Added exception strings to some of the op logging.02001-10-313-23/+12
| | | | | | | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * mail-mt.c: Added exception strings to some of the op logging. * mail-format.c (elide_quotes): Remove, uh, what was this for, its not used anywhere? Also loops the instant it had a ", good one trow! :) (write_address): Remove name_arg/email_arg, these aren't used anywhere. svn path=/trunk/; revision=14482
* If we have a cancellation setup, destroy it immediately, to save fd's.02001-10-312-3/+15
| | | | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * mail-mt.c (mail_msg_received): If we have a cancellation setup, destroy it immediately, to save fd's. (mail_msg_cancel): Check cancel != NULL. (mail_msg_free): Same. svn path=/trunk/; revision=14470
* Comment out the Folder: and you've got mail prints.02001-10-303-21/+52
| | | | | | | | | | | | | | | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * folder-info.c: Comment out the Folder: and you've got mail prints. * mail-config-druid.c (wizard_next_cb): If we have a next function, honour if it tells us its going to set the page, and dont set it, otherwise, set it to the next page, unless we're at the end of our pages, and let the wizard do it itself. (wizard_back_cb): Same for going back. Rest of fix for #12127, see e-shell-startup-wizard for the rest. (next_func): If we're not on the last page, tell the druid we're gonna handle the next button, so we can sync properly with it, needed for above changes. (back_func): Similarly for going back past page 0. (wizard_listener_event): We want to set the page to the actual one asked for not, pagenum-1. svn path=/trunk/; revision=14449
* Oops, dont use the url storage path to offset the folder name we're02001-10-302-2/+7
| | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * mail-local.c (mls_rename_folder): Oops, dont use the url storage path to offset the folder name we're renaming/opening, etc. svn path=/trunk/; revision=14431
* Require gal 0.15.99.8Joe Shaw2001-10-306-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-29 Joe Shaw <joe@ximian.com> * configure.in: Require gal 0.15.99.8 * addressbook/backend/ebook/e-card-simple.c, addressbook/gui/component/addressbook-storage.c, addressbook/gui/widgets/e-addressbook-view.c, calendar/gui/e-calendar-table.c, calendar/gui/e-itip-control.c, calendar/gui/e-meeting-model.c, calendar/gui/itip-utils.c, calendar/gui/print.c, calendar/gui/alarm-notify/alarm-notify-dialog.c, filter/rule-editor.c, mail/mail-config.c, mail/mail-folder-cache.c, mail/mail-format.c, mail/mail-local.c, mail/mail-ops.c, mail/mail-vfolder.c, shell/e-local-storage.c, shell/e-summary-storage.c: Change includes of e-util/e-unicode-i18n.h to gal/util/e-unicode-i18n.h svn path=/trunk/; revision=14427
* Argh!!! Dont free the async op data here, the async op is still running02001-10-3010-43/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-30 <NotZed@Ximian.com> * subscribe-dialog.c (fe_cancel_op_foreach): Argh!!! Dont free the async op data here, the async op is still running and will access it! Just try to cancel it and mark it as cancelled (id == -1) (fe_done_subscribing): Only remove outselves from the hash table if we're not cancelled. The handle should always be set here, since this code runs in the gui thread. * message-list.c (on_cursor_activated_idle): If nothing selected/cursor not activated, then select no message. * mail-folder-cache.c (update_1folder): Make the trash count optional on EVOLUTION_COUNT_TRASH, becuase some lusers are just too stupid to understand what its for. * component-factory.c (storage_xfer_folder): Return slightly better error codes for copying folders, since its not implemented yet. * mail-vfolder.c, mail-local.c, mail-folder-cache.c, message-list.c component-factory.c, mail-ops.c, subscribe-dialog.c, mail-session.c: d() out some debug printfs, w() out some warnings. * folder-browser-ui.c (folder_browser_ui_add_message): Fix typo, Resent->Resend. svn path=/trunk/; revision=14412
* Don't warn the user if the source and destination folders are the same.Jeffrey Stedfast2001-10-303-4/+7
| | | | | | | | | 2001-10-29 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (transfer_messages_transfer): Don't warn the user if the source and destination folders are the same. svn path=/trunk/; revision=14410
* add some debug spew re 13839.Dan Winship2001-10-303-0/+10
| | | | | | | | | * mail-format.c (handle_multipart_signed): add some debug spew re 13839. * mail-display.c (on_object_requested): here too svn path=/trunk/; revision=14404
* Fixed a warning by #if 0ing out this function.Christopher James Lahey2001-10-305-2/+44
| | | | | | | | | | | | | | | 2001-10-29 Christopher James Lahey <clahey@ximian.com> * e-searching-tokenizer.c (search_info_set_match_size_increase): Fixed a warning by #if 0ing out this function. * folder-browser.c, folder-browser.h (on_selection_changed): Update status bar in an idle call. Fixes Ximian bug #13929. * mail-folder-cache.c (folder_renamed, store_folder_renamed): Fixed some warnings here. svn path=/trunk/; revision=14372
* Fix the focus check. It's not fb->message_list that has focus, it's one ofDan Winship2001-10-302-1/+7
| | | | | | | | * folder-browser.c (folder_browser_copy): Fix the focus check. It's not fb->message_list that has focus, it's one of its children. #13616. svn path=/trunk/; revision=14370
* Sort the folder updates first, since we dont seem to get them in the right92001-10-293-24/+37
| | | | | | | | | | | | | | 2001-10-29 <NotZed@Ximian.com> * mail-folder-cache.c (store_folder_renamed): Sort the folder updates first, since we dont seem to get them in the right order, or infact in any tree representation whatsoever when using IMAP ...? get_folder_info bugs? Unrelated note to self, the subscribe dialogue may interfere with the folder cache. svn path=/trunk/; revision=14328
* Copy the folder's full_name before trying to use it to rename.92001-10-297-26/+56
| | | | | | | | | | | | | | | | | | | | | 2001-10-29 <NotZed@Ximian.com> * mail-vfolder.c (rule_changed): Copy the folder's full_name before trying to use it to rename. (vfolder_edit_rule): Set 'orig' to be a reference of the original rule. (edit_rule_clicked): Dont lookup orig by name, copy it over instead. * folder-browser.c (got_folder): oops, emit signal before unreffing object, incase we got killded during getting folder. (got_folder): Reset get_id. (folder_browser_new): Set get_id of the get_folder task. (folder_browser_init): Init get_id. (folder_browser_destroy): IF we have outstanding 'get folder' op, cancel it. svn path=/trunk/; revision=14323
* Call mail_autoreceive_setup() instead of mail_autoreceive_setup_account()Jeffrey Stedfast2001-10-294-24/+15
| | | | | | | | | | | | | 2001-10-28 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Call mail_autoreceive_setup() instead of mail_autoreceive_setup_account() since that code was completely broken anyway. * mail-send-recv.c (mail_autoreceive_setup_account): Removed. svn path=/trunk/; revision=14318
* Move the message-list cursor to the next message. (transfer_msg): If weJeffrey Stedfast2001-10-292-2/+39
| | | | | | | | | | | | 2001-10-28 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (transfer_msg_done): Move the message-list cursor to the next message. (transfer_msg): If we are moving messages, then pass transfer_msg_done() to mail_transfer_messages() so when it finishes it can move the cursor to the next undeleted message. svn path=/trunk/; revision=14313
* Check that the special PGP lines begin and end with \n so as to avoidJeffrey Stedfast2001-10-292-17/+21
| | | | | | | | | | 2001-10-28 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (try_inline_pgp): Check that the special PGP lines begin and end with \n so as to avoid matching against quoted PGP lines. svn path=/trunk/; revision=14310
* fb = user_data, not fb = fb!, fixes 13844.82001-10-292-1/+4
| | | | | | | | | 2001-10-28 <NotZed@Ximian.com> * mail-callbacks.c (mark_all_as_seen): fb = user_data, not fb = fb!, fixes 13844. svn path=/trunk/; revision=14305
* add the folder name to the path when passing down to the subordinate82001-10-282-3/+10
| | | | | | | | | 2001-10-28 <NotZed@Ximian.com> * mail-local.c (mlf_rename): add the folder name to the path when passing down to the subordinate folder. svn path=/trunk/; revision=14295
* Remove uic, kill dumb warning.82001-10-288-44/+174
| | | | | | | | | | | | | | | | | | | | | | | | 2001-10-28 <NotZed@Ximian.com> * folder-browser-ui.c (fbui_sensitize_timeout): Remove uic, kill dumb warning. * mail-autofilter.c (mail_filter_rename_uri): Implement function for filters to keep track of uri's being renamed. (mail_filter_delete_uri): Similarly for deleting uri's. Note that these functions are just noops though. (real_flush_updates): Also rename and delete uri's from filters. (mls_delete_folder): Unref the store when done. (mls_rename_folder): Fix implementation, shell already created destination folder, so we can't just rename :( (xfer_folder): Manually call rename code, since the shell will do a remove/add later on, AND there's no way we can determine the new path from the crock of an api we have to work with. svn path=/trunk/; revision=14291
* Deactivate the Print right-click menu option if the message isn't loaded.Jeffrey Stedfast2001-10-282-8/+13
| | | | | | | | | 2001-10-28 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c: Deactivate the Print right-click menu option if the message isn't loaded. Fixes bug #10346. svn path=/trunk/; revision=14287
* Implemented. (mail_vfolder_rename_uri): We do want to check renamed uri's82001-10-286-96/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-28 <NotZed@Ximian.com> * mail-vfolder.c (mail_vfolder_rename_uri): Implemented. (mail_vfolder_rename_uri): We do want to check renamed uri's from vstores. (mail_vfolder_delete_uri): Same. (store_folder_renamed): Fix the folder hash at the same time. * mail-folder-cache.c (real_flush_updates): Pass the rename event to vfolder rename uri. * mail-local.c (mail_local_folder_reconfigure): Change the store path to be same as parent + mbox to be full path. (mls_delete_folder): Change store path to be parent path, and mbox to be full path. (mail_local_folder_reconfigure): Fix a leak of tmpname. * component-factory.c (xfer_folder): Only do a rename if we have remove set, cleaned up logic a bit. (idle_quit): Put the components still active check last last of all. (storage_create_folder): IF we have a fragment, use that as part part for parent. svn path=/trunk/; revision=14276
* Allow the user to shoot him/herself in the foot when overriding messageJeffrey Stedfast2001-10-282-1/+30
| | | | | | | | | | 2001-10-27 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_format_get_data_wrapper_text): Allow the user to shoot him/herself in the foot when overriding message charsets. Permanantly fixes bug #921. svn path=/trunk/; revision=14240
* More fixing of the license texts.Ettore Perazzoli2001-10-283-31/+31
| | | | svn path=/trunk/; revision=14220
* More fixing of the license texts.Ettore Perazzoli2001-10-2829-319/+319
| | | | svn path=/trunk/; revision=14217
* Changed to open the source store from '/', so we can do renames across62001-10-275-15/+342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-26 <NotZed@Ximian.com> * mail-local.c (mlf_set_folder): Changed to open the source store from '/', so we can do renames across directories. Of course, this doesn't quite work with different filesystems, but we'll assume this isn't a problem we're going to have. (mail_local_folder_get_type): Setup parent_class. (mlf_rename): Implement folder rename call, rename internal data. Is this a security issue? Well, not really, no more than anything else. * mail-folder-cache.c (mail_note_store): Listen to rename event. (store_folder_renamed): Function to handle it, empty. (mail_note_store_remove): Unhook from rename event. (mail_note_folder): Hook onto renamed event. (unset_folder_info): Unhook from renamed event. (folder_finalised): Lock around update. (folder_deleted): Lock around update. (real_flush_updates): If we have a path to remove remove it. (rename_folders): Scan folderinfo's, if we can find ones renamed, rename them, otherwise add them. * component-factory.c (owner_unset_cb): Use a timeout not an idle handler. (storage_xfer_folder): Implementation of xfer_folder signal handler, so we can rename imap/vfolders/etc. svn path=/trunk/; revision=14205
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-2726-78/+52
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14191
* Work around something that we think is a GtkHTML bug, where sometimes theDan Winship2001-10-274-2/+23
| | | | | | | | | | | | | | | | | | | * folder-browser.c (etree_key): Work around something that we think is a GtkHTML bug, where sometimes the adjustments have slightly bogus values and scrolling ends up working backwards. (Ximian 4939) * mail-display.c (do_signature, do_attachment_header): Set the icon to be 24x24 here so that (assuming it's not a thumbnail), no resizes will have to be queued later. (There's still a bug with the text to the left of the button being drawn twice for some reason though.) * mail-callbacks.c (delete_msg): Fix a bug here that makes deleting multiple messages cause a gratuitous message body fetch. (Ximian 12355) svn path=/trunk/; revision=14172
* Set the GdkWindow of the FolderBrowser, not the GtkWindow...Jeffrey Stedfast2001-10-273-4/+10
| | | | | | | | | 2001-10-25 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (providers_config): Set the GdkWindow of the FolderBrowser, not the GtkWindow... svn path=/trunk/; revision=14148
* Use a timeout not an idle handler.62001-10-264-4/+12
| | | | | | | | | | | | 2001-10-26 <NotZed@Ximian.com> * component-factory.c (owner_unset_cb): Use a timeout not an idle handler. * mail-callbacks.c (providers_config): Only set the parent window. * mail-accounts.c (mail_edit): Set the parent on the account editor. svn path=/trunk/; revision=14121
* s/iconv/e_iconv/.52001-10-261-0/+4
| | | | | | | | 2001-10-25 <NotZed@Ximian.com> * openpgp-utils.c (openpgp_verify): s/iconv/e_iconv/. svn path=/trunk/; revision=14114
* Don't forget to unref the filter driver here.Jeffrey Stedfast2001-10-262-3/+10
| | | | | | | | | 2001-10-25 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (send_mail_free): Don't forget to unref the filter driver here. svn path=/trunk/; revision=14103
* So apparently the uicomp can just 'vanish' while we're using it. Joy. Take52001-10-269-220/+450
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-25 <NotZed@Ximian.com> * folder-browser-ui.c (fbui_sensitize_timeout): So apparently the uicomp can just 'vanish' while we're using it. Joy. Take care of that case here, fixes #13482. (fbui_sensitise_item): Check here too just for kicks. * mail-folder-cache.c (store_finalised): If we can't destroy our async event, then queue another one to do it. (store_finalised_finish): And handle it here, until we can, then free it. (mail_note_store): Queue an async event to get folderinfo, dont use mail_get_folderinfo. (update_folders_get): thread-async event to retrieve the folderinfo, and build it, then queues gui-async event to update the gui. (add_unmatched_info): Taken from mail-ops, adds unmatched if required. (add_vtrash_info): From mail-ops, add trash if required. (update_folders): Thread async event to update gui. (mail_note_store): Ref the store and storage when created. (update_1folder): Changed to assume we have info_lock, and store updates in an updates list. (setup_folder): Same. (folder_changed): Changed to call update_1folder directly. (real_folder_changed): Removed. (mail_note_folder): Changed to call update_1folder directly. (real_note_folder): Removed. (store_folder_subscribed): Call setup_folder directly. (real_folder_created): Removed. (real_flush_update): Function that actually does the updates in the gui thread. (mail_note_store): Go back to using mail_get_folderinfo. (update_folders): Fixed upf ro changed api's. (unset_folder_info): Changed to queue pending updates. (real_folder_deleted): Removed. (store_folder_unsubscribed): Do the removal work directly. (mail_note_store): Dont link to finalised event of store - we now ref it. (mail_note_store_remove): If we have any pending updates, clear them out. Also cancel any pending folderinfo retrieve operations. (update_folders): Remove our update from the storeinfo list, if it still exists. (update_1folder): Make 'sent folder shows all counts' optional via an environmental variable EVOLUTION_COUNT_SENT for all those bloody whinging lusers out there. (mail_note_store_remove): Unref the storage when done. * mail-mt.c (mail_async_event_emit): If we're in main and have a gui task, set it to run via an idle function. (idle_async_event): Wrapper for calling do_async_event from idle function, and freeing the message when done. (idle_async_event): Call mail_msg_free not free on the finished message. * component-factory.c (mail_remove_storage): Destroy the storage async. (store_disconnect): This does the work. (free_storage): Un-note the store when we remove it, so the store noting code can unref things properly. (idle_quit): Return false when done, dont loop. 2001-10-24 <NotZed@Ximian.com> * component-factory.c (owner_set_cb): Setup an async_event handler. (idle_quit): Try to destroy the async_event, or keep dropping out if it can't (deadlock). * mail-mt.c (do_async_event): Set the threadid of the thread we're running in so we know its running/which thread its in. (mail_async_event_emit): Added new argument 'type' which is the type of thread to execute against, gui or another one. Fixed all callers. (mail_async_event_destroy): Return -1 if this operation will fail (deadlock possibility). If we're in the thread of the task we're going to wait for, then return a failure (since we will deadlock). (mail_async_event_emit): Chagned to use MailAsyncFunc type as the function type, which just takes 3 void args, change args to suit. * mail-folder-cache.c (mail_note_store): Record the pending update events in a pending list. We should really be able to use an async event for this, but that doesn't return to the gui loop when done :-/ (update_folders): Remove from pending update when done. svn path=/trunk/; revision=14101
* Check for a NULL provider. (build_dialogue): Check for invalid sourceJeffrey Stedfast2001-10-262-3/+32
| | | | | | | | | | 2001-10-25 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (get_receive_type): Check for a NULL provider. (build_dialogue): Check for invalid source urls. (mail_receive_uri): Same. svn path=/trunk/; revision=14096
* No longer need to pass a settext argument. (do_forward_non_attached):Jeffrey Stedfast2001-10-252-2/+6
| | | | | | | | | | 2001-10-24 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): No longer need to pass a settext argument. (do_forward_non_attached): Same. svn path=/trunk/; revision=14085
* oops, minor fixity fix.Jeffrey Stedfast2001-10-251-3/+6
| | | | svn path=/trunk/; revision=14082
* Fix to not always return NULL for html parts, doh!.Jeffrey Stedfast2001-10-253-10/+15
| | | | | | | | | 2001-10-24 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_get_message_body): Fix to not always return NULL for html parts, doh!. svn path=/trunk/; revision=14081
* Same.42001-10-254-10/+18
| | | | | | | | | | | | 2001-10-24 <NotZed@Ximian.com> * folder-browser-ui.c (ui_add): (fbui_sensitize_timeout): Same. * folder-browser-factory.c (control_activate): Comment out freeze/thaw. (control_deactivate): svn path=/trunk/; revision=13990
* Fixed some weird casting crack that got in here somehow, removedJon Trowbridge2001-10-252-3/+8
| | | | | | | | | | 2001-10-24 Jon Trowbridge <trow@ximian.com> * mail-search.c (mail_search_construct): Fixed some weird casting crack that got in here somehow, removed superfluous box-packing that was generating a gtk warning. svn path=/trunk/; revision=13988
* fixed changelogJeffrey Stedfast2001-10-241-1/+0
| | | | svn path=/trunk/; revision=13977
* Unref the global search_context. (owner_set_cb): create the globalJeffrey Stedfast2001-10-243-19/+43
| | | | | | | | | | | | | 2001-10-23 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (owner_unset_cb): Unref the global search_context. (owner_set_cb): create the global search_context. * folder-browser.c (folder_browser_gui_init): Pass along the global search_context to the e_filter_bar_new call. svn path=/trunk/; revision=13976
* all this crap just to make the print icon desensitive at the right time.42001-10-247-48/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix for #10346 2001-10-24 <NotZed@Ximian.com> * message-browser.c (message_browser_message_loaded): Call ui_message_loaded when we are. * folder-browser-factory.c (control_activate): Freeze/thaw around all updates. (control_deactivate): Freeze/thaw around all updates. * folder-browser.c (folder_browser_init): Setup a hashtable to keep track of *our* sensitise state, so we can optimise pushes to bonobo. (folder_browser_finalise): Free hash here. (folder_browser_set_message_preview): Call a ui_message_loaded, even though it isn't, so it updates sensitivities right. (done_message_selected): Call ui_message_loaded when it really is, rather than the very fucked up idea of reversing the loaded_uid check. * folder-browser-ui.c (folder_browser_ui_set_selection_state): Dont enable the message-enabled options if the message display is hidden, e.g. print, view headers, etc. (folder_browser_ui_rm_all): Forget sensitise state. (fbui_sensitise_item): Sensitise items via a current-state table, so we dont have to do bonobo calls every time. (folder_browser_setup_property_menu): Call sensitise_item. (folder_browser_ui_add_message): (folder_browser_ui_add_global): Leave current set_prop "sensitive" for the stop button, so it doesn't get lost by the stuff in mail-mt.c (fbui_real_sensitize_items): Removed. (fbui_sensitize_timeout): Cleaned up, use sensitise_item to do work. (folder_browser_ui_message_loaded): Setup sensitive based on preview_shown too. (folder_browser_ui_set_selection_state): And here too. svn path=/trunk/; revision=13972
* Don't allow an auth-type to be set when saving the service.Jeffrey Stedfast2001-10-243-20/+42
| | | | | | | | | | | | | 2001-10-23 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (service_check_supported): Don't allow an auth-type to be set when saving the service. (mail_account_gui_new): Initialize the source and transport provider_type's here so we don't forget to do it when it matters. (mail_account_gui_setup): Don't bother setting the provider_type's here, they are already set in mail_account_gui_new() now. svn path=/trunk/; revision=13968
* Remove the idle_id when we're destroyed so the idle func doesn't run on an32001-10-242-0/+6
| | | | | | | | | 2001-10-23 <NotZed@Ximian.com> * mail-display.c (mail_display_destroy): Remove the idle_id when we're destroyed so the idle func doesn't run on an invalid object. svn path=/trunk/; revision=13966
* Dont do anything if we're destroyed #13021.32001-10-242-0/+6
| | | | | | | | | 2001-10-23 <NotZed@Ximian.com> * message-list.c (regen_list_regened): Dont do anything if we're destroyed #13021. svn path=/trunk/; revision=13963
* (do_user_message): Setup the message_destroy_id when we setup theMichael Zucci2001-10-242-1/+3
| | | | | | destroy handler so it doesn't get called twice. svn path=/trunk/; revision=13955
* fixed a logic mistake from my last commitJeffrey Stedfast2001-10-242-9/+6
| | | | svn path=/trunk/; revision=13953
* Removed, all functionality moved to mail-session.32001-10-244-398/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-23 <NotZed@Ximian.com> * mail-mt.c (mail_user_message): (mail_get_password): Removed, all functionality moved to mail-session. * mail-config.c (mail_config_write_on_exit): Check threaded/preview hash is null before using it, its setup on demand so itmight nto be initialised here. * mail-session.c (request_password): Remove password_current stuff. (alert_user): Redont, similar to get_pass. Do things as async as possible, and dont even wait for a response if we're not asking for the cancel button (this may or may not be right behaviour - need to check). mail_user_message() code replaced from the stuff in mail-mt.c (MailSession): Added a lock field. (init): Setup lock. (finalise): fRee lock. (register_timeout): Redone. We now allocate our own 'timeoutid's, and <> to the real things asynchronously. Use async_event's so we can make sure we have no outstanding ones after shutdown. (mail_session_enable_interaction): If interaction has been disabled, and we have either a message-box open, or a password request open and/or any pending message boxes/passwords, blow 'em away. (main_register_timeout): If we have pending remove of this same timeout, dont do anything. (timeout_timeout): Properly honour the result, remove the timout if it returns false. svn path=/trunk/; revision=13952
* Make sure the fb and it's message-list exist. (reply_to_list): same.Jeffrey Stedfast2001-10-243-156/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-23 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (reply_to_sender): Make sure the fb and it's message-list exist. (reply_to_list): same. (reply_to_all): And here... (forward_message): Here too. (forward_attached): Again here. (transfer_msg): Here too. (apply_filters): Same. (select_all): Yet again here... (select_thread): And here. (invert_selection): Same. (flag_messages): Here too. (mark_as_unseen): and here... (mark_all_as_seen): ... (zoom_in): (zoom_out): (zoom_reset): (search_msg): (load_images): (save_msg): (next_msg): (next_flagged_msg): (next_unread_msg): (previous_msg): (previous_unread_msg): (expunge_folder): (configure_folder): (empty_trash): svn path=/trunk/; revision=13950
* Added missing errno.h (mail_msg_new): Fix the logic a bit, dont try to32001-10-242-18/+25
| | | | | | | | | | 2001-10-23 <NotZed@Ximian.com> * mail-mt.c: Added missing errno.h (mail_msg_new): Fix the logic a bit, dont try to open the log file unless logging is actually requested. svn path=/trunk/; revision=13944
* If the fopen() fails (eg, because evolution-mail was started by oafd withDan Winship2001-10-242-3/+14
| | | | | | | | * mail-mt.c (mail_msg_new): If the fopen() fails (eg, because evolution-mail was started by oafd with PWD=/), don't try to use the NULL file handle. svn path=/trunk/; revision=13943
* Completely re-done. We now hae a completely async dialogue when requested32001-10-238-116/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-23 <NotZed@Ximian.com> * mail-session.c (get_password): Completely re-done. We now hae a completely async dialogue when requested from antoehr thread, and dont use gtk_main() if we can avoid it (which is normally the case). This stuff is only partially finished, and will mena the removal of the same from mail-mt.c, and the mail_user_message() code will be moved here and changed to work in a similar way. * mail-callbacks.c (empty_trash): Dont try and connect to remote stores just to get the trash. Also, always run empty trash async, and make sure we unref the trash. (empty_trash): Hmm, dont unref the trash, causes a problem on exit, i suspect something else is doing funky unrefs on it. * mail-tools.c (mail_tool_get_trash): Pass a 'connect' arg, tell it whether it should tryand connect or not to the parent service, if it isn't already connected. * component-factory.c (owner_unset_cb): Dont try wait_all here, could potentially deadlock. (idle_quit): Keep returning TRUE if we have outstanding processing. Note that this may busy-wait during exit processign with busy tasks :( (idle_quit): Keep calling ourselves till we no longer get called (i.e. gtk_main really quits). * mail-mt.c (mail_msg_active): New function, returns TRUE if events are still active/outstanding. (do_op_status): @$@$#@@!#@!! didn't unlock the mail_msg_lock if data->activity was NULL and we had no global_shell_client anymore! Also shortcut processing if this is going to be the case. (mail_msg_init): Setup a temporary other gui_port for redoing with new semantics password, user message and progress reporting. (mail_get_password): #ifdef'd out all this code temporarily, till it gets fully moved to mail-session.c 2001-10-22 <NotZed@Ximian.com> * component-factory.c (owner_set_cb): Dont call enable_interaction here. (interactive_cb): But here instead, let the shell tell us when its ok to go interactive. svn path=/trunk/; revision=13933