aboutsummaryrefslogtreecommitdiffstats
path: root/mail
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Oops, revert my change to this function.Jeffrey Stedfast2001-10-232-1/+4
| | | | | | | | | 2001-10-22 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (write_one_text_plain_chunk): Oops, revert my change to this function. svn path=/trunk/; revision=13930
* New fun macro.Jeffrey Stedfast2001-10-234-82/+93
| | | | | | | | | | | | | | | | | 2001-10-22 Jeffrey Stedfast <fejj@ximian.com> * mail-display.h (mail_html_write_string): New fun macro. * mail-format.c (write_one_text_plain_chunk): Use gtk_html_write instead of mail_html_write so we avoid strdup'ing the text. (handle_text_plain_flowed): Use the mail_html_write_string macro. (handle_message_rfc822): Here too. (mail_format_raw_message): We can do it here also... (attachment_header): We can do it a little bit here... (write_address): A microscopic bit here... (write_hr): same. svn path=/trunk/; revision=13925
* Added several new accelerators to the edit account dialog, and fixed theAnna Marie Dirks2001-10-232-38/+77
| | | | | | | | | | | | | | | | | 2001-10-22 Anna Marie Dirks <anna@ximian.com> * mail-config.glade: Added several new accelerators to the edit account dialog, and fixed the focus targets on all existing accelerators. I was hoping that since the widgets used in the account editor are also used in the first-time start-up druid and them mail-config druid, that this would fix all accelerator problems for those druids as well, but there is something wrong with Bonobo which is preventing the druids from responding to their accelerators. Sigh. Anyway, most accelerators in the edit account dialog work correctly now, though there are few (such as _Full Name) which fail to do anything. I don't know why. svn path=/trunk/; revision=13914
* New class that wraps writing to a GtkHTML stream so that we don't have toJeffrey Stedfast2001-10-235-12/+184
| | | | | | | | | | | | | | 2001-10-22 Jeffrey Stedfast <fejj@ximian.com> * mail-stream-gtkhtml.c (mail_stream_gtkhtml_new): New class that wraps writing to a GtkHTML stream so that we don't have to write to an intermediate GByteArray. * mail-display.c (on_url_requested): Use the new Camel->GtkHTML stream - this means we don't have to chew up nearly as much memory...yay! svn path=/trunk/; revision=13911
* Don't free `clientid' as it's uninitialized.Ettore Perazzoli2001-10-232-2/+6
| | | | | | | * mail-mt.c (do_op_status): Don't free `clientid' as it's uninitialized. svn path=/trunk/; revision=13899
* disable this column. Fixes Ximian bug #12381.Christopher James Lahey2001-10-232-1/+6
| | | | | | | | | 2001-10-22 Christopher James Lahey <clahey@ximian.com> * message-list.etspec (Score): disable this column. Fixes Ximian bug #12381. svn path=/trunk/; revision=13898
* #include "component-factory.h". (do_op_status): Pass the component IDEttore Perazzoli2001-10-234-5/+16
| | | | | | | | | | | * mail-mt.c: #include "component-factory.h". (do_op_status): Pass the component ID instead of the msg ID. * component-factory.h (COMPONENT_ID): #define here instead of `component-factory.c'. (SUMMARY_FACTORY_ID): Likewise. svn path=/trunk/; revision=13895
* Don't wrap error text with <blockquote>, this is done insideJeffrey Stedfast2001-10-233-30/+47
| | | | | | | | | | | | | | 2001-10-22 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (format_mime_part): Don't wrap error text with <blockquote>, this is done inside mail_error_write. (handle_multipart_encrypted): If we get an exception trying to decrypt the mime part, display an error rather than trying to treat it as multipart/mixed. * mail-callbacks.c (empty_trash): Confirm expunge. svn path=/trunk/; revision=13893
* Move the folder sync code along with a few other things fromJeffrey Stedfast2001-10-232-39/+59
| | | | | | | | | | | | 2001-10-22 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_destroy): Move the folder sync code along with a few other things from folder_browser_finalise() into here instead. (folder_browser_finalise): Moved some cleanup functions into destroy. svn path=/trunk/; revision=13892
* PGP verification UI changes to make it not HTML spoofable.Dan Winship2001-10-233-540/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-format.c (handle_application_pgp): Remove this unused hack. (mail_format_mime_message): Initialize a fourth hash table, used to keep track of fake MIME parts. (mail_part_set_default_displayed_inline): New routine to set the default disposition of a part (doesn't change it if the user has already overridden it). (format_mime_part): Wrap a blockquote around the error text (moved here from mail_error_write since it doesn't apply in other cases). (write_hr): Write a <hr> with appropriate padding between MIME parts. (write_one_text_plain_chunk): Write some plain text with appropriate margins. (handle_text_plain): Use write_one_text_plain_chunk. Update for inline specials handler API change. (fake_mime_part_from_data): Use the "fake_parts" hash to avoid recreating the same fake parts again if the message is redisplayed. Lets you toggle the shown/hiddenness of uudecode parts, and do the new pgp verification thing for inline pgp signatures. (try_inline_pgp): Don't do any actual PGP handling here: Just rewrite as a multipart/encrypted. (try_inline_pgp_sig): Likewise, just do a multipart/signed (with the x-inline-pgp-hack parameter set). (try_uudecoding, try_inline_binhex): Update for API changes. (handle_multipart_signed): Exciting and new. Use <object> to create a button which the user must click to do the verification. Change the formatting of the gpg output text a bit. * mail-display.c (on_link_clicked): Remove x-evolution-decode-pgp hack, which is no longer used. (pixbuf_gen_idle): Add a hack for the PGP verification button. (do_attachment_header, do_external_viewer): Split out of on_object_requeested for clarity. (do_signature): New routine to do the PGP verification button. (on_object_requested): Now just dispatches to do_attachment_header, do_external_viewer, or do_signature. (mail_error_write): Don't do <blockquote> here. Fixed the problem that was trying to fix elsewhere. svn path=/trunk/; revision=13888
* Fix these functions so they don't crash evolution-mail. Too bad it stillDan Winship2001-10-222-7/+12
| | | | | | | | * mail-callbacks.c (transfer_msg): Fix these functions so they don't crash evolution-mail. Too bad it still crashes in the shell. svn path=/trunk/; revision=13873
* Use mail_format_get_data_wrapper_text for text parts so we get freeJeffrey Stedfast2001-10-224-59/+104
| | | | | | | | | | | | | | | | | | | 2001-10-21 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (on_url_requested): Use mail_format_get_data_wrapper_text for text parts so we get free charset conversion. * mail-format.c (mail_format_get_data_wrapper_text): Renamed from get_data_wrapper_text and now returns a GByteArray. (handle_text_plain): Updated to use the new get_data_wrapper_text. (handle_application_pgp): Same. Wow...also fixed a mem leak and made a bit more efficient by doing so. (handle_text_enriched): Here too. Also use string->len instead of strlen (string->str). (mail_format_raw_message): Same. svn path=/trunk/; revision=13862
* Instead of select_all() then using the tree's selected nodes to iterate,22001-10-222-2/+20
| | | | | | | | | | 2001-10-22 <NotZed@Ximian.com> * mail-callbacks.c (mark_all_as_seen): Instead of select_all() then using the tree's selected nodes to iterate, just do it on the folder which keeps the current selection. Fixes #3658. svn path=/trunk/; revision=13860
* fixed bug #13151Jeffrey Stedfast2001-10-224-6/+29
| | | | svn path=/trunk/; revision=13858
* Clear variables once done, for debugging. (mail_vfolder_add_uri,12001-10-226-37/+65
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-21 <NotZed@Ximian.com> * mail-vfolder.c (mail_vfolder_shutdown): Clear variables once done, for debugging. (mail_vfolder_add_uri, mail_vfolder_delete_uri): Dont do anything if we're shutdown (context == NULL). * component-factory.c (idle_quit): Move mail_vfolder_shutdown here, it should be one of the last things shutdown. * mail-format.c (handle_text_plain): Dont use (if (!p++), and then check p!= later, since its now 1, oops. Fixes #13106, thought it was a start of uuencoded stuff! * folder-browser.c (on_right_click): Escape _'s before adding them to menu from mailing list name, also remove some dead code that someone forgot to remove when refactoring. #11307. (folder_browser_is_drafts): Use the store's uri_cmp function to compare to the drafts uri's. (folder_browser_is_sent): Same. Slight cleanup for #11351. svn path=/trunk/; revision=13856
* Update for e_msg_composer_add_messages_attachments arg change.Dan Winship2001-10-222-2/+8
| | | | | | | | * mail-callbacks.c (mail_generate_reply): Update for e_msg_composer_add_messages_attachments arg change. (do_forward_non_attached): Likewise. svn path=/trunk/; revision=13853
* Don't leak our ESearchingTokenizer.Jon Trowbridge2001-10-212-1/+9
| | | | | | | | | 2001-10-20 Jon Trowbridge <trow@ximian.com> * mail-display.c (mail_display_new): Don't leak our ESearchingTokenizer. svn path=/trunk/; revision=13837
* hook up zoom functions.Larry Ewing2001-10-214-1/+35
| | | | | | | | | | | | | | 2001-10-20 Larry Ewing <lewing@ximian.com> * folder-browser-ui.c: hook up zoom functions. * mail-callbacks.h: add prototypes. * mail-callbacks.c (zoom_in): added. (zoom_out): added. (zoom_reset): added. svn path=/trunk/; revision=13832
* Allow copy/move to/from vTrash folders as well.Jeffrey Stedfast2001-10-202-1/+4
| | | | | | | | | 2001-10-19 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (transfer_msg): Allow copy/move to/from vTrash folders as well. svn path=/trunk/; revision=13815
* Properly handle local vTrash folders.Jeffrey Stedfast2001-10-202-13/+23
| | | | | | | | | 2001-10-19 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (destination_folder_handle_drop): Properly handle local vTrash folders. svn path=/trunk/; revision=13813
* Update to reflect API changes to e_msg_composer_add_message_attachments().Jeffrey Stedfast2001-10-202-1/+3
| | | | | | | | | | | 2001-10-19 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Update to reflect API changes to e_msg_composer_add_message_attachments(). (do_forward_non_attached): Same. (providers_config): Oops, pass a GdkWindow instead of a GtkWindow. svn path=/trunk/; revision=13812
* Dont translate camel strings. (mail_account_gui_setup): "92001-10-202-9/+14
| | | | | | | | | 2001-10-19 <NotZed@Ximian.com> * mail-account-gui.c (build_auth_menu): Dont translate camel strings. (mail_account_gui_setup): " svn path=/trunk/; revision=13810
* Pass the @folder_type to ::handleDrop.Ettore Perazzoli2001-10-202-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-storage-set-view.c (tree_drag_data_received): Pass the @folder_type to ::handleDrop. * evolution-shell-component-dnd.c (impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleMotion): New arg @folder_type. (impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleDrop): Likewise. * evolution-shell-component-dnd.h: Add @folder_type to `DndDestinationFolderHandleDropFn' and `DndDestinationFolderHandleMotionFn'. * e-storage-set-view.c (tree_drag_motion): Pass the folder type to `::handleMotion'. * Evolution-ShellComponentDnd.idl: Pass @folder_type in ::handleDrop and ::handleMotion. * component-factory.c (destination_folder_handle_motion): Get @folder_type here too [to match the changes in the EvolutionShellComponentDnd interface]. Also, remove a debugging message. (destination_folder_handle_drop): Likewise. * gui/component/addressbook-component.c (destination_folder_handle_motion): Get @folder_type here too [to match the changes in the EvolutionShellComponentDnd interface]. Also, remove a debugging message. (destination_folder_handle_drop): Likewise. svn path=/trunk/; revision=13807
* Update to reflect API changes to e_msg_composer_add_message_attachments().Jeffrey Stedfast2001-10-202-3/+9
| | | | | | | | | | 2001-10-19 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Update to reflect API changes to e_msg_composer_add_message_attachments(). (do_forward_non_attached): Same. svn path=/trunk/; revision=13801
* Free folders_uri. (real_folder_deleted): If folder is deleted, remove it92001-10-194-43/+59
| | | | | | | | | | | | | | | | | | 2001-10-19 <NotZed@Ximian.com> * mail-folder-cache.c (store_finalised): Free folders_uri. (real_folder_deleted): If folder is deleted, remove it from the hashtables. * subscribe-dialog.c (get_short_folderinfo_get): Remove the register/unregister, they're already done above us. * mail-vfolder.c (mail_vfolder_delete_uri): Dont do any work to remove the actual folder from the vfolder (we'd have to look it up first), let the vfolder remove it itself. Just update the rules. svn path=/trunk/; revision=13787
* Added remove flag - its not adduri, its removeuri, its less typing than82001-10-196-53/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-18 <NotZed@Ximian.com> * mail-vfolder.c (vfolder_adduri): Added remove flag - its not adduri, its removeuri, its less typing than creating a removeuri. (vfolder_adduri_do): Implement the remove flag. (mail_vfolder_remove_uri): Changed to mail_vfolder_delte_uri, to indicate its actually been deleted. (mail_vfolder_add_uri): Added remove flag. (rule_changed): When adding existing folders to a new rule, strdup the list data. * mail-folder-cache.c (store_finalised): Unhook from all events when done. (mail_note_store_remove): Remove a store from being noted. (free_folder_info): Also if we have a folder, unhook all events. Also remove the uri from vfolders. (mail_note_folder): Remove warning about adding folders to stores that aren't added yet - we might actually be removing the store. * component-factory.c (mail_remove_storage): Call mail_note_store_remove when we remove the storage. svn path=/trunk/; revision=13782
* Don't make the mail settings dialog modal.Jeffrey Stedfast2001-10-192-3/+9
| | | | | | | | | 2001-10-18 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (providers_config): Don't make the mail settings dialog modal. svn path=/trunk/; revision=13780
* Fix the WM problems related to the folder selection dialog beingEttore Perazzoli2001-10-193-2/+12
| | | | | | | out-of-proc. Now it can be set to be a transient window correctly, and fakes its WindowGroup hint appropriately. svn path=/trunk/; revision=13765
* call setup_send_data *after* we've setup the global dialogue thingy.82001-10-192-11/+22
| | | | | | | | | | | | | | 2001-10-18 <NotZed@Ximian.com> * mail-send-recv.c (build_dialogue): call setup_send_data *after* we've setup the global dialogue thingy. (mail_send_receive): Instead of using static local to check for re-running of dialogue, use a global, setup by build_dialogue. These fix #12335. (mail_send_receive): Dont assert dialogue is realized, it might still be being built, so only show if it is realized. svn path=/trunk/; revision=13764
* change va_copy to G_VA_COPYDan Winship2001-10-192-4/+7
| | | | svn path=/trunk/; revision=13753
* Use va_copy to make this compile on ppc again.Dan Winship2001-10-192-1/+6
| | | | | | | * mail-mt.c (mail_call_main): Use va_copy to make this compile on ppc again. svn path=/trunk/; revision=13749
* Clone the folderinfo before passing to async event. (real_folder_created):72001-10-183-3/+18
| | | | | | | | | | | | | | | 2001-10-17 <NotZed@Ximian.com> * mail-folder-cache.c (store_folder_subscribed): Clone the folderinfo before passing to async event. (real_folder_created): Free when done. (store_folder_unsubscribed): (real_folder_deleted): And same here. * mail-ops.c (mail_expunge_folder): Use the queued thread for expunging folders. svn path=/trunk/; revision=13741
* No longer need to copy the description now that camel-exceptions have beenJeffrey Stedfast2001-10-182-8/+5
| | | | | | | | | 2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): No longer need to copy the description now that camel-exceptions have been fixed. svn path=/trunk/; revision=13738
* Helper macro.Jeffrey Stedfast2001-10-185-30/+30
| | | | | | | | | | | | | | | | | 2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * subscribe-dialog.h (subscribe_dialog_show): Helper macro. * subscribe-dialog.c (subscribe_dialog_run_and_close): Removed. * mail-callbacks.c (check_send_configuration): Don't use gnome_dialog_run_and_close() here, we can easily get away with just using a gtk_widget_show(). (providers_config): Don't use a gnome_dialog_run_and_close() here either. No longer need to use e_gnome_dialog utils. (manage_subscriptions): Don't run_and_close(). svn path=/trunk/; revision=13732
* Don't use gnome_dialog_run_and_close() here, we can easily get away withJeffrey Stedfast2001-10-182-19/+43
| | | | | | | | | | | | 2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (check_send_configuration): Don't use gnome_dialog_run_and_close() here, we can easily get away with just using a gtk_widget_show(). (providers_config): Don't use a gnome_dialog_run_and_close() here either. svn path=/trunk/; revision=13727
* Only empty trash on enabled accounts, fixes #12821.72001-10-182-1/+6
| | | | | | | | | 2001-10-17 <NotZed@Ximian.com> * mail-callbacks.c (empty_trash): Only empty trash on enabled accounts, fixes #12821. svn path=/trunk/; revision=13724
* Make Reply-To bold too since no one ever figures out why it's notDan Winship2001-10-182-1/+6
| | | | | | | * mail-format.c (write_default_header): Make Reply-To bold too since no one ever figures out why it's not currently. svn path=/trunk/; revision=13723
* Fix typoIain Holmes2001-10-172-1/+5
| | | | svn path=/trunk/; revision=13718
* Lets put the UID cache in ~/evolution/mail/pop3 as this makes more senseJeffrey Stedfast2001-10-172-2/+27
| | | | | | | | | | | 2001-10-16 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (uid_cachename_hack): Lets put the UID cache in ~/evolution/mail/pop3 as this makes more sense than ~/mail/config does. Perform checking to see what flavor cache-path the user is on and compensate. svn path=/trunk/; revision=13708
* Check that the cursor_uid is non-NULL before emitting a "message_selected"Jeffrey Stedfast2001-10-172-1/+7
| | | | | | | | | | 2001-10-16 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (on_cursor_activated_idle): Check that the cursor_uid is non-NULL before emitting a "message_selected" signal. Fixes bug #6015. svn path=/trunk/; revision=13706
* Always explicitly clear out the SearchInfo.Jon Trowbridge2001-10-172-4/+13
| | | | | | | | | 2001-10-16 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_begin): Always explicitly clear out the SearchInfo. svn path=/trunk/; revision=13704
* folder-browser.c: (folder_browser_set_message_preview): Return do nothingMichael Zucci2001-10-172-6/+24
| | | | | | | | | | | | | | folder-browser.c: (folder_browser_set_message_preview): Return do nothing if we're destroyed (message_list == NULL). (folder_browser_search_query_changed): " (folder_browser_toggle_preview): " (folder_browser_toggle_threads): " (folder_browser_toggle_hide_deleted): " (folder_browser_set_message_display_style): " (folder_browser_charset_changed): " All for #12613. svn path=/trunk/; revision=13703
* Added an async_event handler to store_info. (mail_note_store): Setup asyncMichael Zucci2001-10-179-169/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-folder-cache.c: Added an async_event handler to store_info. (mail_note_store): Setup async event handler here. (store_finalised): Flush out async events here. (folder_changed): Use async event handler to emit event. (mail_note_folder): Chagned, do most of the work in the calling context, only do the corba stuff in main. (store_folder_subscribed): Use async event, and do more work locally. (store_folder_unsubscribed): Same. (store_folder_deleted): Call store_folder_unsubscribed if we have to do any work. (store_folder_created): Call store_folder_subscribed if we have to do any work. (store_folder_unsubscribed): Ref store while busy. (real_folder_deleted): And unref here. (store_folder_subscribed): Reg store while busy. (real_folder_created): Unref here. (mail_note_folder): Ref folder while busy. (real_note_folder): And unref here. (mail_note_folder): Hook onto folder_deleted event. (folder_deleted): Just mark this folder as no longer available. * mail-session.c (register_timeout): Use mail_call_main instead of proxy_event. (remove_timeout): Same here. * folder-browser.c (folder_changed): use the new mail_async_event stuff. (folder_changed_main): Remove old async event handling stuff. (FOLDER_BROWSER_LOCK/UNLOCK): Removed. (FolderBrowserPrivate): Removed too, sigh. * mail-mt.c (mail_async_event_new, mail_async_event_emit, mail_async_event_destroy): New functions to handle async events. (mail_proxy_event, mail_proxy_event_id): Removed old functions for async events. (do_call): Add suport for MAIL_CALL_p_pp. (mail_msg_free): Use mail_async_event instead of proxy_event. * message-list.c (message_changed): Promote the message_changed to a folder_changed and use main_folder_changed to process it. (main_message_changed): Remove.d (message_list_init): Setup async event handler. (message_list_destroy): Remove async handler. (folder_changed): Use async hanler to emit event in main loop. (message_changed): Same. svn path=/trunk/; revision=13698
* New function to return the id of the currently executing proxied event.62001-10-175-8/+116
| | | | | | | | | | | | | | | | | | | | | 2001-10-16 <NotZed@Ximian.com> * mail-mt.c (mail_proxy_event_id): New function to return the id of the currently executing proxied event. * folder-browser.h: Added private field. * folder-browser.c (folder_changed): Keep track of tasks outstanding in the tasks list, locked access. (FOLDER_BROWSER_LOCK, UNLOCK): Macros to lock the folder browser for poking about in diff threads. (folder_browser_finalise): Wait for any outstanding takss to finish before cleaning ourself up. (folder_browser_destroy): Move the seen_id handling to finalise, also add a loading_id handling code. (main_folder_changed): Remove our running task when done. svn path=/trunk/; revision=13695
* don't write strings longer than they actually are.Larry Ewing2001-10-162-4/+12
| | | | | | | | | 2001-10-15 Larry Ewing <lewing@ximian.com> * mail-display.c (mail_error_write): don't write strings longer than they actually are. svn path=/trunk/; revision=13693
* Remove the mark_seen timeout.Jeffrey Stedfast2001-10-162-3/+13
| | | | | | | | | 2001-10-15 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_destroy): Remove the mark_seen timeout. svn path=/trunk/; revision=13689
* conflict droppingsLarry Ewing2001-10-161-1/+0
| | | | svn path=/trunk/; revision=13684
* don't apply the body text in replys since we will just replace it anyway.Larry Ewing2001-10-162-1/+7
| | | | | | | | | 2001-10-15 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (mail_generate_reply): don't apply the body text in replys since we will just replace it anyway. svn path=/trunk/; revision=13683
* Call mail_vfolder_shutdown.Jeffrey Stedfast2001-10-165-7/+57
| | | | | | | | | | | | | | | 2001-10-15 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (owner_unset_cb): Call mail_vfolder_shutdown. * mail-vfolder.c (mail_vfolder_shutdown): Unref all of our VFolders. * mail-folder-cache.c (real_note_folder): Remember to unref the folder before returning if we have already noted this folder. svn path=/trunk/; revision=13682
* Proxy get-password call to main thread. (forget_password): same for52001-10-164-5/+182
| | | | | | | | | | | | | | | 2001-10-15 <NotZed@Ximian.com> * mail-session.c (get_password): Proxy get-password call to main thread. (forget_password): same for forget_password. (get_filter_driver): and same for get_filter_driver, since it uses gtk objects. * mail-mt.c (mail_call_main): new generic interface for calling stuff/proxying in the gui thread. svn path=/trunk/; revision=13679
* fixed a typoJeffrey Stedfast2001-10-161-1/+1
| | | | svn path=/trunk/; revision=13676
* Share more state between the parent and its clones, so that our multipleJon Trowbridge2001-10-152-29/+78
| | | | | | | | | | | 2001-10-14 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_clone): Share more state between the parent and its clones, so that our multiple tokenizers don't get out of sync when we are rendering frames and iframes. (Bug #11638) svn path=/trunk/; revision=13671
* Bad hacker! Don't implicitly assume that utf8 characters are one byte inJon Trowbridge2001-10-142-3/+16
| | | | | | | | | | | | | 2001-10-13 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (search_info_compare): Bad hacker! Don't implicitly assume that utf8 characters are one byte in size! (Bug #9520) (e_searching_tokenizer_begin): As long as I'm touching those code: don't increase the size of search matches. I'll fix the colors later. (part of bug #11589) svn path=/trunk/; revision=13667
* Don't emit a gtk warning if the composer creation fails.Dan Winship2001-10-142-3/+8
| | | | | | | * mail-callbacks.c (create_msg_composer): Don't emit a gtk warning if the composer creation fails. svn path=/trunk/; revision=13660
* Revert the change to remove the Score column until Chris can fix ETable soDan Winship2001-10-134-11/+70
| | | | | | | | | * message-list.c, message-list.h, message-list.etspec: Revert the change to remove the Score column until Chris can fix ETable so it's possible to remove a column without breaking everyone's exisiting settings. svn path=/trunk/; revision=13646
* Fix race conditions in creating foldersIain Holmes2001-10-132-2/+12
| | | | svn path=/trunk/; revision=13645
* call e_passwords_init and e_passwords_shutdown.Chris Toshok2001-10-135-107/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-12 Chris Toshok <toshok@ximian.com> * main.c (main): call e_passwords_init and e_passwords_shutdown. * mail-session.h: add prototypes for mail_session_{get,add}_password. * mail-session.c (init): empty this out - we use e_passwords instead of a local hashtable. (get_password): use e_passwords_get_password and e_passwords_add_password. (forget_password): use e_passwords_forget_password. (mail_session_remember_password): use e_passwords_remember_password. (mail_session_forget_password): use e_passwords_forget_password. (mail_session_get_password): new function, use e_passwords_get_password. (mail_session_add_password): same, use e_passwords_add_password. (mail_session_forget_passwords): use e_passwords_forget_passwords. * mail-config.c (mail_config_write_on_exit): fix this up so it works as desired with the e_passwords stuff. svn path=/trunk/; revision=13640
* Convert URLS so we can get clickable links.Jeffrey Stedfast2001-10-132-1/+4
| | | | | | | | | 2001-10-12 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (mail_error_write): Convert URLS so we can get clickable links. svn path=/trunk/; revision=13628
* removed Score stuff from the message-listJeffrey Stedfast2001-10-134-63/+15
| | | | svn path=/trunk/; revision=13626
* Store our listener id. (popup_info_free): Disconnect our listener when weJon Trowbridge2001-10-122-3/+14
| | | | | | | | | | 2001-10-12 Jon Trowbridge <trow@ximian.com> * mail-display.c (html_button_press_event): Store our listener id. (popup_info_free): Disconnect our listener when we free the popup. (Bug #11040) svn path=/trunk/; revision=13619
* Listen for "destroy" events from the control, so that we don't leave strayJon Trowbridge2001-10-122-0/+25
| | | | | | | | | | 2001-10-11 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (addrbook_sender): Listen for "destroy" events from the control, so that we don't leave stray windows laying around. (Bug #9101) svn path=/trunk/; revision=13609
* Added a checkbox for body indexing.12001-10-124-4/+85
| | | | | | | | | | | | | | | 2001-10-11 <NotZed@Ximian.com> * local-config.glade: Added a checkbox for body indexing. * mail-local.c (mail_local_reconfigure_folder): Get index_body widget. (mail_local_folder_reconfigure): Add an 'index_body' argument & implement. Dont do anything if nothing changed. * openpgp-utils.c (openpgp_verify): Use e_iconv_open. svn path=/trunk/; revision=13603
* oops, and here tooJeffrey Stedfast2001-10-121-2/+2
| | | | svn path=/trunk/; revision=13597
* pass FALSE along to the add_message_attachments callJeffrey Stedfast2001-10-121-1/+1
| | | | svn path=/trunk/; revision=13596
* Attach the message attachments. Fixes bug #5439.Jeffrey Stedfast2001-10-122-1/+13
| | | | | | | | | 2001-10-11 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_forward_non_attached): Attach the message attachments. Fixes bug #5439. svn path=/trunk/; revision=13594
* No longer need to pass folder display name to storage update_folderDan Winship2001-10-126-588/+14
| | | | | | | | | | | | * mail-folder-cache.c (update_1folder): No longer need to pass folder display name to storage update_folder methods. (setup_folder, free_folder_info): Meaning we no longer need to keep track of it. * evolution-outlook-importer.[ch], evolution-mbox-importer.[ch]: These copies are cruft. The real ones are in importers/. svn path=/trunk/; revision=13589
* blahJeffrey Stedfast2001-10-121-1/+0
| | | | svn path=/trunk/; revision=13584
* Make sure the service/storage are non-NULL.Jeffrey Stedfast2001-10-123-49/+61
| | | | | | | | | | | | | | | | | | | | | | | 2001-10-11 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (free_storage): Make sure the service/storage are non-NULL. * mail-callbacks.c (e_gnome_dialog_parent_destroyed): Call gtk_main_quit. (send_receive_mail): Don't use e_gnome stuff since this doesn't need to be run using gnome_dialog_run_and_close(). (composer_send_cb): Same. (edit_msg): Here too. (resend_msg): And here. (search_msg): Same. (filter_edit): Here too. (filter_edit): Don't use e_gnome_dialog_set_parent() because we don't do gnome_dialog_run_and_close on this dialog. (e_gnome_error_dialog_parented): Removed. (e_gnome_ok_dialog_parented): Removed. svn path=/trunk/; revision=13583
* Fix up the logic here.Dan Winship2001-10-112-5/+8
| | | | | | * mail-config.c (new_source_created): Fix up the logic here. svn path=/trunk/; revision=13576
* use new function to copy the attachments from the source message. ThisLarry Ewing2001-10-112-0/+7
| | | | | | | | | | | 2001-10-10 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (mail_generate_reply): use new function to copy the attachments from the source message. This still isn't perfect but it should avoid the problems with headers being transfered. This makes images in replies work again. svn path=/trunk/; revision=13564
* copy the data. We can't ref the byte array and we can't free it so we haveLarry Ewing2001-10-102-2/+10
| | | | | | | | | 2001-10-10 Larry Ewing <lewing@ximian.com> * mail-display.c (save_url): copy the data. We can't ref the byte array and we can't free it so we have to copy it. svn path=/trunk/; revision=13546
* IF the source and destination folders are the same, do nothing. Oh, and02001-10-103-52/+89
| | | | | | | | | | | | | | | | | | | | 2001-10-10 <NotZed@Ximian.com> * mail-ops.c (transfer_messages_transfer): IF the source and destination folders are the same, do nothing. Oh, and return an error, otherwise the shell goes and removes it anyway. Fixes a rather serious bug with dnd of folders onto their current location. 2001-10-09 <NotZed@Ximian.com> * component-factory.c (owner_unset_cb): Disconnect from all the signals we were listening to, so we dont try and do shit twice on exit (one on unset_cb, one on destroy). (create_component): Setup the signal handlers using a table, so they're easier to disconnect on finish. svn path=/trunk/; revision=13545
* ref the part. (save_destroy_cb): new function to unref the part when weLarry Ewing2001-10-102-11/+69
| | | | | | | | | | | | | 2001-10-09 Larry Ewing <lewing@ximian.com> * mail-display.c (save_part): ref the part. (save_destroy_cb): new function to unref the part when we have closed the dialog. (save_url): fake a mime part so that we can save data urls without extra effort. This is less sucky than it seems since it handles filenames and ref counting with minimal fuss. svn path=/trunk/; revision=13544
* Ref folder so it hangs around till we're done with it.92001-10-102-0/+9
| | | | | | | | | | | 2001-10-09 <NotZed@Ximian.com> * mail-folder-cache.c (folder_changed): Ref folder so it hangs around till we're done with it. (real_folder_changed): Unref folder when we are done with it. Should fix #11981. svn path=/trunk/; revision=13543
* Make sure the mail-display is non-NULL.Jeffrey Stedfast2001-10-102-1/+6
| | | | | | | | | 2001-10-09 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (done_message_selected): Make sure the mail-display is non-NULL. svn path=/trunk/; revision=13535
* Implement.92001-10-102-0/+23
| | | | | | | | 2001-10-09 <NotZed@Ximian.com> * mail-local.c (mlf_search_by_uids): Implement. svn path=/trunk/; revision=13533
* Create a chaqrset picker submenu in the View menu.Jeffrey Stedfast2001-10-108-30/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-09 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c (folder_browser_ui_add_message): Create a chaqrset picker submenu in the View menu. * mail-format.c (mail_format_raw_message): Pass the mail-display to get_data_wrapper_text. (get_data_wrapper_text): Use the user's override charset if one is provided, otherwise user the user's default charset. (handle_text_plain): Pass along the mail-display to get_data_wrapper_text. (handle_application_pgp): Same. (handle_text_enriched): Here too. (mail_get_message_body): Pass NULL as the mail-display to get_data_wrapper_text since we don't have access to a mail-display. * mail-display.c (mail_display_set_charset): New function to set a charset on the maildisplay. Once set, the message is redisplayed using the new charset. (mail_display_destroy): Free the charset. * folder-browser.c (folder_browser_charset_changed): New callback for when a user overrides the message charset. svn path=/trunk/; revision=13530
* Use gtk_signal_connect_while_alive here so e_gnome_dialog_parent_destroyedDan Winship2001-10-103-25/+60
| | | | | | | | | | | | | | | * mail-callbacks.c (e_gnome_dialog_set_parent): Use gtk_signal_connect_while_alive here so e_gnome_dialog_parent_destroyed doesn't get called on an already-destroyed dialog. * mail-config-druid.c (*_prepare): Record which page we're currently in. (*_changed): Only update the druid buttons if we're the current page. Fixes a problem that could make it impossible to get beyond the first page of the setup wizard. svn path=/trunk/; revision=13522
* Oops.Jon Trowbridge2001-10-101-1/+1
| | | | svn path=/trunk/; revision=13519
* Revert the change to use e_msg_composer_new_with_message. That hasDan Winship2001-10-102-1/+8
| | | | | | | | | * mail-callbacks.c (mail_generate_reply): Revert the change to use e_msg_composer_new_with_message. That has unwanted side effects. (This commit re-breaks replying to HTML messages with inline images.) svn path=/trunk/; revision=13518
* Update for folder_flags.Dan Winship2001-10-096-18/+23
| | | | | | | | | | | | | | | | * mail-local.c (mlf_set_folder, mlf_unset_folder): Update for folder_flags. * folder-browser-ui.c (folder_browser_ui_add_list): Check CAMEL_FOLDER_IS_TRASH flag rather than checking CAMEL_IS_VTRASH_FOLDER. * folder-browser.c (folder_browser_toggle_hide_deleted): Likewise * message-list.c (message_list_set_folder): Likewise. (message_list_set_hidedeleted): Remove redundant trash check. svn path=/trunk/; revision=13510
* Write out the Bcc: header when applicable. Fixes bug #5823.Jon Trowbridge2001-10-092-2/+11
| | | | | | | | | 2001-10-08 Jon Trowbridge <trow@gnu.org> * mail-format.c (write_default_header): Write out the Bcc: header when applicable. Fixes bug #5823. svn path=/trunk/; revision=13508
* Convert the htmlinfo into utf8. Fixes bug #11966.Jeffrey Stedfast2001-10-092-5/+11
| | | | | | | | | 2001-10-08 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (attachment_header): Convert the htmlinfo into utf8. Fixes bug #11966. svn path=/trunk/; revision=13506
* For mailstorage folders, connect to the control's "activate" signal, andDan Winship2001-10-092-17/+47
| | | | | | | | | | | * component-factory.c (create_view): For mailstorage folders, connect to the control's "activate" signal, and don't try to connect to the store. (storage_activate): Instead, do it here, so if the connection fails, or the user cancels, or whatever else, he can try again later. svn path=/trunk/; revision=13503
* Remove #ifndef MOVEMAIL_PATH code, since the setting of that variable hasDan Winship2001-10-092-19/+8
| | | | | | | | | * mail-tools.c (mail_tool_do_movemail): Remove #ifndef MOVEMAIL_PATH code, since the setting of that variable has been meaningless for a while now, and the rest of the code DTRT whether that code executes or not. svn path=/trunk/; revision=13500
* Fix a merge-conflict leftover.Jeffrey Stedfast2001-10-062-4/+5
| | | | | | | | 2001-10-05 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (pass_got): Fix a merge-conflict leftover. svn path=/trunk/; revision=13474
* reformatted the menu tables so they're a bit more bloody readable.52001-10-064-82/+66
| | | | | | | | | | | | | | 2001-10-05 <NotZed@Ximian.com> * folder-browser.c: reformatted the menu tables so they're a bit more bloody readable. * mail-folder-cache.c (mail_note_store): Hook into subscribed/unsubscribed events. Only 'add/remove' folders from the add/removed events if we aren't subscribed, otherwise use the subscribed events. Rest of fix for #11831 svn path=/trunk/; revision=13472
* Add toggle button to config menu to turn the "confirm sending unwantedJon Trowbridge2001-10-065-0/+35
| | | | | | | | | | | | 2001-10-05 Jon Trowbridge <trow@ximian.com> * mail-config.glade: Add toggle button to config menu to turn the "confirm sending unwanted HTML" dialog on/off. (Bug 10794) * mail-accounts.c (construct): Make said toggle button actually work. svn path=/trunk/; revision=13466
* New convenience function that not only sets the gnome-dialog's parentJeffrey Stedfast2001-10-062-28/+107
| | | | | | | | | | | | | | | | | 2001-10-05 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (e_gnome_dialog_set_parent): New convenience function that not only sets the gnome-dialog's parent window but also makes sure that the gnome-dialog closes when it's parent closes. (e_gnome_warning_dialog_parented): New conmvenience wrapper around the libgnomeui version that also does the same thing as e_gnome_dialog_set_parent. (e_gnome_error_dialog_parented): Same. (e_gnome_ok_dialog_parented): And again... (e_gnome_ok_cancel_dialog_parented): And once again. svn path=/trunk/; revision=13464
* added in the ssl-not-supported label that the code was referencing but which ↵Jeffrey Stedfast2001-10-061-1/+28
| | | | | | didn't actually exist in the glade file...interesting svn path=/trunk/; revision=13455
* use e_msg_composer_new_with_message rather than e_msg_composer_new. ThisLarry Ewing2001-10-062-1/+8
| | | | | | | | | | | 2001-10-05 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (mail_generate_reply): use e_msg_composer_new_with_message rather than e_msg_composer_new. This way we bring in all the attachment of the message we are replying to. svn path=/trunk/; revision=13444
* Turn on "uniform_row_height" argument.Christopher James Lahey2001-10-052-0/+9
| | | | | | | | | 2001-10-05 Christopher James Lahey <clahey@ximian.com> * message-list.c (message_list_setup_etree): Turn on "uniform_row_height" argument. svn path=/trunk/; revision=13442
* Show "nn sent" as total in sent folder, rather than just 'total'.42001-10-053-3/+11
| | | | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * folder-browser.c (update_status_bar): Show "nn sent" as total in sent folder, rather than just 'total'. * mail-folder-cache.c (update_1folder): Also show total message count for sent_folder. svn path=/trunk/; revision=13429
* Do a better job of setting up the name. Also de-sensitise when we can't42001-10-052-2/+24
| | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * folder-browser-ui.c (folder_browser_setup_property_menu): Do a better job of setting up the name. Also de-sensitise when we can't configure the folder. svn path=/trunk/; revision=13427
* Set the parent window as the fb. This fixes bug #11723. (filter_edit): DoJeffrey Stedfast2001-10-052-9/+28
| | | | | | | | | | | | | | | | 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (providers_config): Set the parent window as the fb. This fixes bug #11723. (filter_edit): Do the same thing here too and also to the warning dialog. (edit_msg): Set the parent on the warning dialog. (resend_msg): And here. (search_msg): Here too. (confirm_expunge): Set the parent window on the dialog here too. (save_msg_ok): Same here. svn path=/trunk/; revision=13425
* Ignore the signal if the radio button is not "on". This fixes bug #10532Jeffrey Stedfast2001-10-055-34/+42
| | | | | | | | | | | | 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (images_radio_toggled): Ignore the signal if the radio button is not "on". This fixes bug #10532 because the on/off signals don't always come in the off->on order. * mail-ops.c (mail_send_message): Reduced some redundancy. svn path=/trunk/; revision=13424
* Fix so that an email address with no name is once again justDan Winship2001-10-052-6/+14
| | | | | | | * mail-format.c (write_address): Fix so that an email address with no name is once again just "foo@bar.com", not "<foo@bar.com>". svn path=/trunk/; revision=13423
* Only create the folder when the shell has created it.Iain Holmes2001-10-053-3/+9
| | | | svn path=/trunk/; revision=13420
* If we're accessing a vfolder uri, then popup the vfolder editor instead of42001-10-054-1/+78
| | | | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * mail-callbacks.c (configure_folder): If we're accessing a vfolder uri, then popup the vfolder editor instead of trying the mail local one. * mail-vfolder.c (vfolder_edit_rule): Edit a vfolder by name. svn path=/trunk/; revision=13419
* Added some more NULL checks.Jeffrey Stedfast2001-10-052-2/+6
| | | | | | | | 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Added some more NULL checks. svn path=/trunk/; revision=13418
* Do the url fragment/path -> folder name hack. Removing vfolders from shell42001-10-052-27/+17
| | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * component-factory.c (storage_remove_folder): Do the url fragment/path -> folder name hack. Removing vfolders from shell works now? svn path=/trunk/; revision=13416
* Only build destination data if we have destination != NULL. Fixes crash of32001-10-042-1/+4
| | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * mail-send-recv.c (build_dialogue): Only build destination data if we have destination != NULL. Fixes crash of bug #10835. svn path=/trunk/; revision=13400
* Set 'to' -> 'recipient' data for search object. #6199.32001-10-042-0/+7
| | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * folder-browser.c (folder_browser_config_search): Set 'to' -> 'recipient' data for search object. #6199. svn path=/trunk/; revision=13399
* Handle vtrash case, emit 'folder_created' event for the folder-cache to32001-10-043-8/+40
| | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * mail-local.c (local_storage_new_folder_cb): Handle vtrash case, emit 'folder_created' event for the folder-cache to work, etc. svn path=/trunk/; revision=13387
* Don't use the wax-seal icons for the pgp stuff anymore, use Jimmac's newJeffrey Stedfast2001-10-042-2/+7
| | | | | | | | | 2001-10-03 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_write_authenticity): Don't use the wax-seal icons for the pgp stuff anymore, use Jimmac's new icons instead. svn path=/trunk/; revision=13383
* Dont wait for event to finish before returning. This could however mean we32001-10-043-1/+11
| | | | | | | | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * mail-folder-cache.c (folder_changed): Dont wait for event to finish before returning. This could however mean we process it after things have vanished below us? Fixes another case of ctrl-d deadlock. * mail-ops.c (remove_folder_get): Freeze/thaw around deleting all messages in folder. svn path=/trunk/; revision=13382
* If we have hide deleted set, then dont count deleted messages in the32001-10-042-1/+23
| | | | | | | | | | 2001-10-03 <NotZed@Ximian.com> * folder-browser.c (update_status_bar): If we have hide deleted set, then dont count deleted messages in the 'total' messages count. Fixes #6591. svn path=/trunk/; revision=13381