aboutsummaryrefslogtreecommitdiffstats
path: root/mail
Commit message (Collapse)AuthorAgeFilesLines
* no longer need to set a my address propertyJP Rosevear2001-07-122-17/+15
| | | | | | | | | 2001-07-11 JP Rosevear <jpr@ximian.com> * mail-display.c (get_embedded_for_component): no longer need to set a my address property svn path=/trunk/; revision=11019
* Set the CLIPBOARD selection as well as the primary selection so thatFederico Mena Quintero2001-07-112-3/+30
| | | | | | | | | | | 2001-07-10 Federico Mena Quintero <federico@ximian.com> * mail-display.c (link_copy_location): Set the CLIPBOARD selection as well as the primary selection so that Edit/Paste will work in other programs (e.g. Netscape). (mail_display_new): Add the target for the CLIPBOARD selection. svn path=/trunk/; revision=10977
* [Bug #4305: Make the automatic mark-as-read timer optional]Jason Leach2001-07-117-14/+63
| | | | | | | | | | | | | | | | | | | | 2001-07-10 Jason Leach <jleach@ximian.com> [Bug #4305: Make the automatic mark-as-read timer optional] * mail-config.glade: Necessary changes to make the Mark as "Read" label a toggle button instead. * mail-accounts.c (construct): Connect to the "toggled" on our new toggle. (timeout_toggled): New callback, called from above. * mail-config.c (mail_config_get_do_seen_timeout): New. (mail_config_set_do_seen_timeout): New. (mail_config_write_on_exit): Save the preference here. (config_read): Load it here. svn path=/trunk/; revision=10973
* OopsJP Rosevear2001-07-111-1/+2
| | | | svn path=/trunk/; revision=10970
* Cosmetic patch - replace our defines with the e-popup onesJP Rosevear2001-07-111-0/+2
| | | | | | | | | 2001-07-10 JP Rosevear <jpr@ximian.com> * folder-browser.c: Cosmetic patch - replace our defines with the e-popup ones svn path=/trunk/; revision=10967
* TypoJP Rosevear2001-07-113-10/+11
| | | | | | | | 2001-07-10 JP Rosevear <jpr@ximian.com> * Makefile.am: Typo svn path=/trunk/; revision=10966
* Took the logic of whether or not to make the attachment header out of thePeter Williams2001-07-114-22/+108
| | | | | | | | | | | | | | | | | | | | | | | 2001-07-10 Peter Williams <peterw@ximian.com> * mail-format.c (attachment_header): Took the logic of whether or not to make the attachment header out of the actual function. (mail_part_is_displayed_inline): Return if the part is being displayed inline (regardless of whether it is actually inline). (mail_part_toggle_displayed): Toggle whether it's displayed inline or not. (get_inline_flags): Determine whether the part is displayed inline and whether it is actually inline. (mail_format_mime_message): Initialize the attachment_status hash table. * mail-display.c (inline_cb): Instead of modifying the CamelMimePart, use mail_part_toggle_displayed (button_press): As above. (pixmap_press): Use mail_part_is_displayed_inline instead of mail_part_is_inline. Get the MailDisplay from the popup to do this. * mail.h: Add prototypes. svn path=/trunk/; revision=10960
* extra dist the news filesJP Rosevear2001-07-112-1/+12
| | | | | | | | 2001-07-10 JP Rosevear <jpr@ximian.com> * Makefile.am: extra dist the news files svn path=/trunk/; revision=10959
* Use bonobo_config_set_string_wrapper. (mail_config_write): Same.Jeffrey Stedfast2001-07-112-61/+42
| | | | | | | | | | | | | 2001-07-10 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_write_on_exit): Use bonobo_config_set_string_wrapper. (mail_config_write): Same. (bonobo_config_set_string_wrapper): Macro wrapping bonobo_config_set_string that passes "" as the val if the val is NULL. svn path=/trunk/; revision=10955
* Make sure that the reply-to addr i non-NULL before trying to add it to theJeffrey Stedfast2001-07-112-5/+11
| | | | | | | | | | 2001-07-10 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (mail_generate_reply): Make sure that the reply-to addr i non-NULL before trying to add it to the hash table. svn path=/trunk/; revision=10953
* fix typo so it compilesJP Rosevear2001-07-102-1/+5
| | | | | | | | 2001-07-09 JP Rosevear <jpr@ximian.com> * mail-account-gui.c (get_focused_widget): fix typo so it compiles svn path=/trunk/; revision=10946
* Handle application/pgp using the text/plain handler.Jeffrey Stedfast2001-07-102-24/+24
| | | | | | | | | | | | 2001-07-09 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (setup_mime_tables): Handle application/pgp using the text/plain handler. * mail-account-gui.c (get_focused_widget): New function to determine which widget is focused. svn path=/trunk/; revision=10940
* Handle application/pgp using the text/plain handler.Jeffrey Stedfast2001-07-106-93/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-09 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (setup_mime_tables): Handle application/pgp using the text/plain handler. * mail-account-gui.c (get_sensitive_widget): New function to determine which widget is focused. * mail-account-editor.c (apply_changes): Not only flip to the notebook page that wasn't finished, but also grab the focus of the incomplete widget. * mail-config-druid.c (source_changed): Grab the focus of the incomplete widget. (transport_prepare): And here. (identity_changed): Here too. * mail-account-gui.c (mail_account_gui_identity_complete): Take an incomplete argument so we can set which widget is incomplete and then the caller can focus it or whatever. (service_complete): Same. (mail_account_gui_transport_complete): And again here. (mail_account_gui_management_complete): And here too. svn path=/trunk/; revision=10939
* Update to pass in the `remember' argument when creating a new pgp context.Jeffrey Stedfast2001-07-103-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-09 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (decode_pgp): Update to pass in the `remember' argument when creating a new pgp context. (try_inline_pgp_sig): And here... * mail-crypto.c (mail_crypto_pgp_mime_part_sign): Update to pass in the `remember' argument when creating a new pgp context. (mail_crypto_pgp_mime_part_verify): Same. (mail_crypto_pgp_mime_part_encrypt): And here... (mail_crypto_pgp_mime_part_decrypt): And finally here. * mail-config.c (mail_config_get_remember_pgp_passphrase): New. (mail_config_set_remember_pgp_passphrase): New. (config_read): Read in the "remember passphrase" value. (mail_config_write_on_exit): Save the remember-passphrase value. * mail-accounts.c (construct): Allow the user to set "Remember PGP Passphrase". (remember_pgp_passphrase_toggled): Set the toggle state. svn path=/trunk/; revision=10934
* Update to pass in the `remember' argument when creating a new pgp context.Jeffrey Stedfast2001-07-107-67/+136
| | | | | | | | | | | | | | | | | | | | | 2001-07-09 Jeffrey Stedfast <fejj@ximian.com> * mail-crypto.c (mail_crypto_pgp_mime_part_sign): Update to pass in the `remember' argument when creating a new pgp context. (mail_crypto_pgp_mime_part_verify): Same. (mail_crypto_pgp_mime_part_encrypt): And here... (mail_crypto_pgp_mime_part_decrypt): And finally here. * mail-config.c (mail_config_get_remember_pgp_passphrase): New. (mail_config_set_remember_pgp_passphrase): New. (config_read): Read in the "remember passphrase" value. (mail_config_write_on_exit): Save the remember-passphrase value. * mail-accounts.c (construct): Allow the user to set "Remember PGP Passphrase". (remember_pgp_passphrase_toggled): Set the toggle state. svn path=/trunk/; revision=10933
* Check for an exception and print it. Call done anyway.Peter Williams2001-07-102-1/+14
| | | | | | | | | | 2001-07-09 Peter Williams <peterw@ximian.com> * mail-ops.c (get_folderinfo_got): Check for an exception and print it. Call done anyway. (do_update_subfolders): Check for NULL info. svn path=/trunk/; revision=10924
* Some NULL protection for our strings: pgp_key, html_signature, smime_key.Peter Williams2001-07-103-4/+25
| | | | | | | | | | | | | 2001-07-09 Peter Williams <peterw@ximian.com> * mail-config.c (mail_config_write): Some NULL protection for our strings: pgp_key, html_signature, smime_key. Probably we should do this for all strings. Either that or change Bonobo Config. * message-list.c (message_list_init): Explicitly initialize search to NULL. Bug 3951 might to be due to a problem wrt this, and it can't hurt. svn path=/trunk/; revision=10919
* g_strdup the result of g_get_home_dir since this variable will get free'dDan Winship2001-07-102-1/+4
| | | | | | | * mail-display.c (save_part): g_strdup the result of g_get_home_dir since this variable will get free'd later. svn path=/trunk/; revision=10918
* Use gnome_vfs_mime_get_short_list_applications rather thanDan Winship2001-07-104-38/+83
| | | | | | | | | | | | | | | | * mail-format.c (mail_lookup_handler): Use gnome_vfs_mime_get_short_list_applications rather than gnome_vfs_mime_get_default_application. * mail-display.c (pixmap_press): Construct the EPopupMenu array on the fly, based on the number of applications available to open the MIME type. (launch_cb): Figure out which menu item was clicked, and invoke the appropriate application. Ugh, messy, because of the EPopupMenu interface. Probably should get rewritten some day. Also, make this handle apps with expects_uris set too. svn path=/trunk/; revision=10916
* Change html_signature stuff over to bonobo-config -- someone forgot to doPeter Williams2001-07-102-4/+8
| | | | | | | | | 2001-07-09 Peter Williams <peterw@ximian.com> * mail-config.c (mail_config_write): Change html_signature stuff over to bonobo-config -- someone forgot to do this. svn path=/trunk/; revision=10915
* Gave up and got rid of dm. Just replaced it with d(g_message()) and setPeter Williams2001-07-092-39/+48
| | | | | | | | | 2001-07-09 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (dm): Gave up and got rid of dm. Just replaced it with d(g_message()) and set G_LOG_DOMAIN. svn path=/trunk/; revision=10911
* Deleted (as opposed to #if 0) (get_folder_info): Changed to assume it hasPeter Williams2001-07-092-53/+42
| | | | | | | | | | | | | | | | | 2001-07-09 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (mail_folder_cache_set_update_shellview): Deleted (as opposed to #if 0) (get_folder_info): Changed to assume it has the folder lock. (make_folder_name): Same. (make_folder_status): Same. (update_idle): Don't unlock around the make_folder_ functions. (*): Changed behavior wrt. get_folder_info. Lock before calling, but also move preconditions before -- get_folder_info can only return NULL if uri is NULL. Also add preconditions for other arguments where necessary. svn path=/trunk/; revision=10910
* Check for new_uid != NULL here before strcmping.Christopher James Lahey2001-07-082-1/+6
| | | | | | | | | 2001-07-07 Christopher James Lahey <clahey@ximian.com> * message-list.c (on_cursor_activated_cmd): Check for new_uid != NULL here before strcmping. svn path=/trunk/; revision=10889
* Only install the segv_redirect handler if SEGV's handler is not currentlyDan Winship2001-07-072-7/+16
| | | | | | | | * main.c (main): Only install the segv_redirect handler if SEGV's handler is not currently SIG_DFL. Otherwise you get an infinite SEGV loop if you run with GNOME_DISABLE_CRASH_DIALOG. svn path=/trunk/; revision=10887
* Made this handle being given a row that's outside the range better.Christopher James Lahey2001-07-072-4/+14
| | | | | | | | | 2001-07-07 Christopher James Lahey <clahey@ximian.com> * message-list.c (message_list_select): Made this handle being given a row that's outside the range better. svn path=/trunk/; revision=10881
* Removed old CVS conflict marker.Jon Trowbridge2001-07-071-1/+0
| | | | svn path=/trunk/; revision=10879
* [Fix bug #1100, default account is stored strangely]Jason Leach2001-07-072-17/+50
| | | | | | | | | | | | | | | | 2001-07-06 Jason Leach <jleach@ximian.com> [Fix bug #1100, default account is stored strangely] * mail-config.c (mail_config_get_default_account_num): New function, returns the integer of the position of the default account, used to save which account is the default to the config db. (mail_config_write): Save the default account number here in "/Mail/Accounts/default_account". (config_read): Load in which is the default here. svn path=/trunk/; revision=10873
* add a NULL check since that is a valid return.Larry Ewing2001-07-072-1/+10
| | | | | | | | | 2001-07-06 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (composer_send_cb): add a NULL check since that is a valid return. svn path=/trunk/; revision=10866
* Prevent infinite recursion when viewing attachments that we can't /Peter Williams2001-07-072-5/+20
| | | | | | | | | | 2001-07-06 Peter Williams <peterw@ximian.com> * mail-format.c (format_mime_part): Prevent infinite recursion when viewing attachments that we can't / shouldn't display but are some form of plaintext. Cf bug #2234 svn path=/trunk/; revision=10857
* Freeze and Thaw the folder.Jeffrey Stedfast2001-07-073-7/+13
| | | | | | | | | 2001-07-06 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_copy): Freeze and Thaw the folder. svn path=/trunk/; revision=10855
* Mark the messages as Seen also. (folder_browser_class_init): Create anJeffrey Stedfast2001-07-074-149/+220
| | | | | | | | | | | | | | | | | | | | | | | | 2001-07-06 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_copy): Mark the messages as Seen also. (folder_browser_class_init): Create an atom type for X-Evolution-Message selection type. (my_folder_browser_init): Add our multiple selection types, one of which is the default string type. * component-factory.c (destination_folder_handle_drop): Update to use the new X-Evolution-Message type format. * folder-browser.c (selection_get): Convert the X-Evolution-Message clipboard type to whatever format the target wants. (message_list_drag_data_get): Update because the X-Evolution-Message type changed. (folder_browser_copy): Same. (x_evolution_message_parse): And here too. svn path=/trunk/; revision=10853
* Don't free the psd here -- it will be freed on the "destroy" signal.Peter Williams2001-07-074-8/+18
| | | | | | | | | | | | | | | 2001-07-06 Peter Williams <peterw@ximian.com> * mail-callbacks.c (composer_postpone_cb): Don't free the psd here -- it will be freed on the "destroy" signal. * mail-folder-cache.c (maybe_update): Instead of an idle, use a very short timeout in hopes of reducing the number of redundant updates. * mail-tools.c (mail_tool_uri_to_folder): Only note the folder in the cache if we successfully got it. svn path=/trunk/; revision=10852
* Select the very next message after deleting, not the next undeleted (itJason Leach2001-07-075-11/+45
| | | | | | | | | | | | | | | | | 2001-07-06 Jason Leach <jleach@ximian.com> * mail-callbacks.c (delete_msg): Select the very next message after deleting, not the next undeleted (it can make things jump around in annoying ways if you are deleting many messages), bug #4032. * folder-browser.c: Forgot to commit the "Mark as Important" right click menu item. * message-list.c (message_list_set_folder): Setup the strikeout column here (after we've gotten the folder) so we can disable strikeouts for vtrash folders, part of bug #2224. svn path=/trunk/; revision=10849
* Fix obvious bug in previous bugfix: Pass "fb" to check_for_fb_match() soDan Winship2001-07-072-1/+8
| | | | | | | | | * mail-folder-cache.c (mail_folder_cache_set_folder_browser): Fix obvious bug in previous bugfix: Pass "fb" to check_for_fb_match() so only the selected folder gets updated, instead of "all folders that haven't yet been selected". svn path=/trunk/; revision=10846
* Change the folder right-click "Properties..." menu item handling soEttore Perazzoli2001-07-062-1/+25
| | | | | | | | | | that it only happens in the mailer (which is the only component actually using this). For some reason it still doesn't work properly (i.e. the menu item currently does nothing), but I haven't quite figured out why yet. svn path=/trunk/; revision=10840
* Add a checkbox for prompting when sending a message with an empty subject.Jeffrey Stedfast2001-07-065-37/+82
| | | | | | | | | | | | 2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Add a checkbox for prompting when sending a message with an empty subject. * mail-ops.c (mail_send_message): If filtering fails, return right away. svn path=/trunk/; revision=10821
* Okay, apparently I was wrong. Oh well. (mail_config_set_thread_list): FixJeffrey Stedfast2001-07-062-10/+23
| | | | | | | | | | 2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_set_show_preview): Okay, apparently I was wrong. Oh well. (mail_config_set_thread_list): Fix this one too. svn path=/trunk/; revision=10816
* And kill these stupid files. Aaar.Peter Williams2001-07-062-308/+0
| | | | svn path=/trunk/; revision=10815
* Remove the ridiculuous relic known as test-mail. Clean up a bit.Peter Williams2001-07-062-23/+3
| | | | | | | | | 001-07-05 Peter Williams <peterw@ximian.com> * Makefile.am: Remove the ridiculuous relic known as test-mail. Clean up a bit. svn path=/trunk/; revision=10814
* Formatting fix on ChangeLog (ie I Forgot To Save The File Before Committing ↵Peter Williams2001-07-051-0/+2
| | | | | | Yet Again) svn path=/trunk/; revision=10807
* Add mail folder cache hookups.Peter Williams2001-07-052-0/+6
| | | | | | | | 2001-07-05 Peter Williams <peterw@ximian.com> * mail-vfolder.c (vfolder_uri_to_folder): Add mail folder cache hookups. svn path=/trunk/; revision=10806
* Clear the shell view label if mailer loses focus.Peter Williams2001-07-053-4/+25
| | | | | | | | | | | | 2001-07-05 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (mail_folder_cache_set_folder_browser): Clear the shell view label if mailer loses focus. * mail-ops.c (do_update_subfolders_rec): Check for NULL url before calling folder cache functions. svn path=/trunk/; revision=10804
* set "pixname" value only if pixbuf was loaded successfully. OtherwiseGediminas Paulauskas2001-07-052-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * evolution-shell-component-utils.c (e_pixmaps_update): set "pixname" value only if pixbuf was loaded successfully. Otherwise component crashes if image is not found. Should be checked for sanity in bonobo_ui_component_set_prop IMHO. 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * Makefile.am: install apply-filters-16.xpm 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * evolution-mail-message.xml: MessageApplyFilters now has an icon. 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * folder-browser-ui.c (message_pixcache): set icon for ApplyFilters command. svn path=/trunk/; revision=10783
* Revert Sam's changes.Jeffrey Stedfast2001-07-052-3/+15
| | | | | | | | | | | | | | | | 2001-07-04 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_set_show_preview): Revert Sam's changes. Note: Uhm, g_hash_table_lookup_extended gives us a pointer to the original value which we can just change to update the hash table without the need to re-insert - it's already there!! Also, you don't want to g_hash_table_insert the new value with the same key without at least first removing the existing bucket. And, you certainly don't want to g_free() the key after you insert it - eek!! svn path=/trunk/; revision=10780
* Replace value in config->preview_hash when it already exists. Old codeSam Creasey2001-07-042-1/+8
| | | | | | | | | | 2001-07-03 Sam Creasey <sammy@oh.verio.com> * mail-config.c (mail_config_set_show_preview): Replace value in config->preview_hash when it already exists. Old code never re-inserted into the hash, just assigned to val -- it's an int here, not a real pointer. svn path=/trunk/; revision=10776
* Unset the message being displayed when expunging. This makes expungedJoe Shaw2001-07-042-0/+7
| | | | | | | | | | 2001-07-03 Joe Shaw <joe@ximian.com> * mail-callbacks.c (expunge_folder): Unset the message being displayed when expunging. This makes expunged messages not show in the preview pane when they're not there anymore. Fixes #3591. svn path=/trunk/; revision=10774
* If msg is NULL, fetch the message and requeue a mail_reply call. Fixes bugJoe Shaw2001-07-042-1/+20
| | | | | | | | | | 2001-07-03 Joe Shaw <joe@ximian.com> * mail-callbacks.c (mail_reply): If msg is NULL, fetch the message and requeue a mail_reply call. Fixes bug #3816. (requeue_mail_reply): Callback from mail_get_message(). svn path=/trunk/; revision=10772
* Use a better GHashTable technique that will hopefully solve some bugs andJeffrey Stedfast2001-07-042-78/+67
| | | | | | | | | | | | | | | 2001-07-03 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_get_show_preview): Use a better GHashTable technique that will hopefully solve some bugs and also use _with_default bonobo-config call. (mail_config_set_show_preview): No sense in removing the entry from the hash table and then re-inserting it. Just reset the value. (mail_config_get_thread_list): Use the same logic. (mail_config_set_thread_list): And again here. svn path=/trunk/; revision=10770
* Split make_string into these. (update_idle): Use (name and status) insteadPeter Williams2001-07-042-40/+52
| | | | | | | | | | | 2001-07-03 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (make_folder_name, make_folder_status): Split make_string into these. (update_idle): Use (name and status) instead of (wide and thin) for the text. svn path=/trunk/; revision=10766
* Finish off #809 by committing the menu and right click thingies forJacob Leach2001-07-042-1/+5
| | | | | | marking as important. svn path=/trunk/; revision=10765
* use bonobo-conf everywhereDietmar Maurer2001-07-041-359/+391
| | | | | | | | 2001-07-03 Dietmar Maurer <dietmar@ximian.com> * *: use bonobo-conf everywhere svn path=/trunk/; revision=10760
* Compile fixes. #include errno.h and gnome-dialog-utils.h.Peter Williams2001-07-042-4/+10
| | | | | | | | | 2001-07-03 Peter Williams <peterw@ximian.com> * folder-browser.c (message_list_drag_data_get): Compile fixes. #include errno.h and gnome-dialog-utils.h. s/dirname/tmpdir/ svn path=/trunk/; revision=10757
* Forgot to save thisPeter Williams2001-07-041-2/+4
| | | | svn path=/trunk/; revision=10756
* Prevent folders from appearing to have -1 new messages. Prevent nonactivePeter Williams2001-07-045-22/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-03 Peter Williams <peterw@ximian.com> Prevent folders from appearing to have -1 new messages. Prevent nonactive folders from updating the title bar. Make the title bar update when switching to an already-opened folder. * mail-folder-cache.c (update_message_counts): Ignore the value for 'unread' if it is -1. (get_mail_info_receive): Same (mail_folder_cache_note_folderinfo): Same. (get_folder_info): Initialize 'fb' to NULL. (mail_folder_info): Add 'fb' member. (mail_folder_cache_note_fb): Change note_message_list to this. (update_idle): Only update the ShellView if the active folder browser is the same as the one that the MFI references. (mail_folder_cache_set_folder_browser): New function. Use it to set the active folder browser. NULL is okay. (check_for_fb_match): Called from the above. If the MFI has the new folder browser as its view, queue an update. * mail-folder-cache.h: Fix prototypes. * mail-callbacks.c (create_folders): Check if fi->url is nonnull. * folder-browser.c (got_folder): Change to use note_fb instead of note_messge_list. * folder-browser-factory.c (control_activate): Set the folder browser (control_deactivate): Clear it here. (fb_get_svi): Kill some inappropriately cut-n-pasted code. svn path=/trunk/; revision=10755
* Rename some of the widgets in the news config to not conflict with theDan Winship2001-07-042-2/+8
| | | | | | | | * mail-config.glade: Rename some of the widgets in the news config to not conflict with the mail config stuff, so the mail config druid will work again. svn path=/trunk/; revision=10754
* Use mkdtemp if we have it, else use mktemp but make the code safer than itJeffrey Stedfast2001-07-043-6/+27
| | | | | | | | | | | | | 2001-07-03 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (message_list_drag_data_get): Use mkdtemp if we have it, else use mktemp but make the code safer than it was previously. * mail-display.c (launch_cb): Free the template string if the tempdir failed to be created. svn path=/trunk/; revision=10753
* Hide the URL passwd, auth, and params. (folder_browser_copy): Same.Jeffrey Stedfast2001-07-032-2/+10
| | | | | | | | | | 2001-07-03 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (message_list_drag_data_get): Hide the URL passwd, auth, and params. (folder_browser_copy): Same. svn path=/trunk/; revision=10749
* Don't pass a dirty exception to camel_folder_sync. Fixes an IMAP filteringDan Winship2001-07-032-1/+7
| | | | | | | * mail-ops.c (filter_folder_filter): Don't pass a dirty exception to camel_folder_sync. Fixes an IMAP filtering crash. svn path=/trunk/; revision=10743
* Added an MailAccountEditorNews, for NNTP configuratuion. Based onSam Creasey2001-07-0310-62/+575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-02 Sam Creasey <sammy@oh.verio.com> * mail-account-editor-news.c: Added an MailAccountEditorNews, for NNTP configuratuion. Based on MailAccountEditor, but stripped. * Makefile.am: added mail-account-editor-news.c and mail-account-editor-news.h to SOURCES if ENABLE_NNTP is defined. * mail-accounts.c (load_news): Moved this function, and fixed some slight brokenness. (news_edit): Added functional code using MailAccountEditorNews (news_add): Added functional code using news_edit after allocation. * mail-config.glade: news_editor_window widget added. Used by MailAccountEditorNews. * mail-display.c (save_data_cb): Store the pathname used when saving messages so that the next save box will default to the previous path. * message-browser.c (message_browser_new): add signal handler for size_allocate on the message browser. Thus new windows are size as they were last allocated. (message_browser_size_allocate_cb): handler to store allocations. * message-list.c (message_list_setup_etree): connect to the info_changed signals for the state of the message_list->tree. Save the folder state to disk, so that when additional message_lists are created, they are consistant. e.g. the next buttons do the same thing in the browser, and in the message viewer after changing sorting options. * subscribe-dialog.c (build_tree): freeze sc->folder model while building the tree. Not doing so takes a very long time over 40000 newsgroups. svn path=/trunk/; revision=10719
* Setup the Empty Trash On Exit widgets.Jeffrey Stedfast2001-07-036-16/+81
| | | | | | | | | | | | | | | | | 2001-07-02 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Setup the Empty Trash On Exit widgets. * mail-config.c (config_read): Option to emtpy trash on exit. (mail_config_write_on_exit): Same. (mail_config_set_empty_trash_on_exit): Set the option. (mail_config_get_empty_trash_on_exit): Get the option. * component-factory.c (owner_unset_cb): Empty the trash folders if the user set the "empty trash on exit" option. svn path=/trunk/; revision=10711
* Updated for the mail_transfer_messages API.Jeffrey Stedfast2001-07-037-136/+90
| | | | | | | | | | | | | | | | | | | | | | 2001-07-02 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (transfer_msg): Updated for the mail_transfer_messages API. * folder-browser.c (message_list_drag_data_recieved): Update for the mail_transfer_messages API. (selection_received): Same. * mail-ops.c (mail_transfer_messages): Renamed from mail_do_transfer_messages and also added a callback/data arguments since we need it component_factory::xfer_folder. * component-factory.c (xfer_folder): Use mail_transfer_messages instead. (destination_folder_handle_drop): Update to pass in a NULL callback arg and a NULL data argument to mail_transfer_messages. svn path=/trunk/; revision=10710
* i2001-07-02 Larry Ewing <lewing@ximian.com>Larry Ewing2001-07-032-15/+113
| | | | | | | | | | | | | | | | | | * configure.in: Check for gtkhtml 0.9.99.1. 2001-07-02 Larry Ewing <lewing@ximian.com> * mail-display.c (save_part): move the saving logic out of save_cb so that we can reuse it for the image saving code. (save_cb): call save_part. (save_url): new function to resolve an save an html url. (image_save_as): save function for images and. Add it to the link_menu, and add MASK_URL and MASK_SRC to the structure so that we cans show the proper menus. (html_button_press_event): call get_src as well to find external urls references. Add popup masking. svn path=/trunk/; revision=10707
* Add a warning about how wrong this document is.Peter Williams2001-07-032-0/+10
| | | | | | | | 2001-07-02 Peter Williams <peterw@ximian.com> * README.async: Add a warning about how wrong this document is. svn path=/trunk/; revision=10695
* New file. Protoypes for the Mail Folder Cache, which provides a place forPeter Williams2001-07-0310-197/+973
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-02 Peter Williams <peterw@ximian.com> * mail-folder-cache.h: New file. Protoypes for the Mail Folder Cache, which provides a place for all the disparate pieces of the mailer to save bits of information about a folder. Centralizes the information display code. * mail-folder-cache.c: New file. Implements the Mail Folder Cache. * Makefile.am (evolution_mail_SOURCES): Add the mail-folder-cache.{c,h} * folder-browser-factory.c (fb_get_svi): Copy of that absurdly long-named function in mail-display.c that gets the GNOME_Evolution_ShellView. (control_activate): Set the ShellView for the folder cache. * folder-browser.c (got_folder): Tell the folder browser about this folder. * mail-callbacks.c (create_folders): Tell the folder cache about the new folders. * mail-local.c (reconfigure_folder_reconfigure): Don't unhook our events as we no longer hook them up. (register_folder_registered): Tell the folder cache about this folder's place in the local storage. (register_folder_register): No longer hook events; the Folder Cache will do this. (local_folder_changed, local_folder_changed_proxy): Move to mail-folder-cache.c (free_local_folder): No longer unhook events. * mail-ops.c (do_update_subfolders_rec): Instead of setting the folder status ourselves, inform the Folder Cache about the changes. * mail-tools.c (mail_tool_uri_to_folder): Replace danw's cache with the new Mail Folder Cache. (cache_folder, etc): removed. svn path=/trunk/; revision=10694
* #include widgets/misc/e-charset-picker.h since it was moved there fromJeffrey Stedfast2001-07-032-1/+7
| | | | | | | | | 2001-07-02 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c: #include widgets/misc/e-charset-picker.h since it was moved there from libgal. svn path=/trunk/; revision=10689
* Kill irritating "Returning" g_warning.Peter Williams2001-07-032-1/+5
| | | | | | | | | 2001-07-02 Peter Williams <peterw@ximian.com> * importers/evolution-mbox-importer.c (mbox_factory_fn): Kill irritating "Returning" g_warning. svn path=/trunk/; revision=10685
* Implement this, based on code that used to be in mail-ops.cDan Winship2001-07-025-111/+102
| | | | | | | | | | | | | | | | | * mail-session.c (get_filter_driver): Implement this, based on code that used to be in mail-ops.c * mail-ops.c (mail_load_filter_context, setup_filter_driver): Moved into MailSession::get_filter_driver. (filter_get_folder): Moved to mail-session.c (mail_filter_folder, mail_filter_on_demand, mail_fetch_mail, mail_send_mail, mail_send_queue): Remove FilterContext args, use camel_session_get_filter_driver. * mail-send-recv.c (mail_send_receive, mail_receive_uri): Remove FilterContexts svn path=/trunk/; revision=10682
* the FolderSearch control is in a different dockitem now.Chris Toshok2001-07-022-1/+6
| | | | | | | | | 2001-07-01 Chris Toshok <toshok@ximian.com> * subscribe-dialog.c (subscribe_dialog_gui_init): the FolderSearch control is in a different dockitem now. svn path=/trunk/; revision=10669
* oops. didn't save before comitttingDan Winship2001-07-021-1/+0
| | | | svn path=/trunk/; revision=10662
* Ref the folder before proxying the event, in case there's only oneDan Winship2001-07-022-3/+23
| | | | | | | | | | | | | | | | * mail-tools.c (update_unread_count): Ref the folder before proxying the event, in case there's only one reference to it and it gets unreffed before the other end of the event handler runs. (update_unread_count_main): And unref it when we're done. (mail_tool_uri_to_folder): Only hold the lock around the hash table operations, not the entire function. Holding the lock the whole time can cause deadlock when resolving vfolders, and the CamelSession and CamelStore locks ensure that multiple threads calling this function will end up with the same CamelFolder object at the end anyway, so we just need to lock and re-check the cache at the end before adding the folder to the cache. svn path=/trunk/; revision=10661
* Use Tuomas' next-message, previous-message and print icons in theEttore Perazzoli2001-07-012-0/+10
| | | | | | mailer. svn path=/trunk/; revision=10647
* Changed to return the created window. (find_socket): Added. Copied fromJon Trowbridge2001-07-015-35/+128
| | | | | | | | | | | | | | | | | | | | | | | | 2001-06-30 Jon Trowbridge <trow@ximian.com> * mail-display.c (make_popup_window): Changed to return the created window. (find_socket): Added. Copied from e-shell-view.c. The fact that I'm copying this bit of code all over isn't cool. (html_button_press_event): Properly destroy the popup window when the widget inside the control is destroyed. * mail-callbacks.c (addrbook_sender): Added. Implements the "Add sender to addressbook" right-click. (Bug #3645) (find_socket): Added. Copied from e-shell-view.c. * folder-browser.c: Added "Add sender to addressbook" to context_menu[]. * mail-display.c: (handle_embedded_address_object): Removed. (on_object_requested): Removed handling for embedded address objects. (Which was obsolete crap.) svn path=/trunk/; revision=10643
* remove redundant logic.Larry Ewing2001-06-302-2/+4
| | | | | | | | | 2001-06-29 Larry Ewing <lewing@ximian.com> * mail-display.c (html_button_press_event): remove redundant logic. svn path=/trunk/; revision=10620
* make sure we show the sig file.Larry Ewing2001-06-302-3/+11
| | | | | | | | | | | | 2001-06-29 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (create_msg_composer): make sure we show the sig file. * e-msg-composer.c (e_msg_composer_show_sig_file): remove now invalid argument in the documentation. svn path=/trunk/; revision=10616
* Turn folder syncing back on here so that IMAP folders will sync withoutJeffrey Stedfast2001-06-302-17/+18
| | | | | | | | | | 2001-06-29 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-factory.c (control_deactivate): Turn folder syncing back on here so that IMAP folders will sync without needing to hit Send & Receive. svn path=/trunk/; revision=10611
* fixed a logic mistake in the last commitJeffrey Stedfast2001-06-301-9/+9
| | | | svn path=/trunk/; revision=10609
* Throw up the confirmation dialog. (composer_get_message): If the user onlyJeffrey Stedfast2001-06-304-2/+91
| | | | | | | | | | | | | | | | | | 2001-06-29 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (ask_confirm_for_only_bcc): Throw up the confirmation dialog. (composer_get_message): If the user only specified Bcc recipients, prompt him/her to make sure we should continue and risk the server adding an Apparently-To header. * mail-config.c (config_read): Read in config option for prompting when only Bcc recipients are specified. (mail_config_write_on_exit): Save the option. (mail_config_get_prompt_only_bcc): New. (mail_config_set_prompt_only_bcc): New. svn path=/trunk/; revision=10606
* Take two authtypes lists, "all", and "supported", and make the unsupportedDan Winship2001-06-292-10/+26
| | | | | | | | | | * mail-account-gui.c (build_auth_menu): Take two authtypes lists, "all", and "supported", and make the unsupported authtypes grayed out in the menu rather than missing. (source_type_changed, transport_type_changed, service_check_supported): Update build_auth_menu calls. svn path=/trunk/; revision=10600
* implemented plain savingRadek Doulik2001-06-292-32/+84
| | | | | | | | | | | | | 2001-06-29 Radek Doulik <rodo@ximian.com> * mail-account-gui.c (menu_file_save_cb): implemented plain saving 2001-06-28 Radek Doulik <rodo@ximian.com> * mail-account-gui.c (load_signature): implemented plain load (load_signature): use e_msg_composer_get_signature_html svn path=/trunk/; revision=10580
* signature editorRadek Doulik2001-06-292-5/+237
| | | | svn path=/trunk/; revision=10578
* Add a CamelMimeFilterStripHeader that removes a header from mime output. UsedPeter Williams2001-06-292-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by sendmail to strip the BCC from the email while still sending to the BCC recipients. camel: 2001-06-28 Peter Williams <peterw@ximian.com> * camel-mime-filter-stripheader.c: New file. Filter that strips a header from mime output. * camel-mime-filter-stripheader.h: New file. Header for the above. * providers/smtp/camel-smtp-transport.c (smtp_data): Use the stripheader filter to remove the "Bcc" header. * Makefile.am: Add the stripheader files. * tests/lib/Makefile.am (INCLUDES): Get this to compile again. * tests/mime-filter/test-stripheader.c: New file. Test suite for the CamelMimeFilterStripHeader. * tests/mime-filter/Makefile.am: New test section: mime filters. mail: 2001-06-28 Peter Williams <peterw@ximian.com> * mail-ops.c (mail_send_message): Revert fejj's Bcc header removal; this unsets the BCC recipients and so doesn't send to the Bcc'd people at all. svn path=/trunk/; revision=10576
* The e_iterator_get() returns a gconstpointer and we need a non-constJeffrey Stedfast2001-06-295-3/+22
| | | | | | | | | | | | | | 2001-06-28 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (free_send_data): The e_iterator_get() returns a gconstpointer and we need a non-const BonoboControl so cast it. * mail-account-gui.c (mail_account_gui_new): gui->check_html_signature is GtkToggleButton not a GtkCheckButton. * folder-info.c: Added some #include's to supress warnings. svn path=/trunk/; revision=10574
* Capitalize words in the link right-click menu to make it consistentEttore Perazzoli2001-06-292-2/+8
| | | | | | with the other menus. svn path=/trunk/; revision=10573
* Implement the "Copy link location" right-click menu item in theEttore Perazzoli2001-06-293-35/+90
| | | | | | MessageDisplay widget. svn path=/trunk/; revision=10572
* Don't bother trying to save the passwd if the url is NULL.Jeffrey Stedfast2001-06-293-1/+8
| | | | | | | | | | | | 2001-06-28 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_write_on_exit): Don't bother trying to save the passwd if the url is NULL. * folder-browser.c (vfolder_mlist): Strip the mlist name to fix bug #3732. svn path=/trunk/; revision=10571
* Since we have an exception variable, we might as well use it when gettingJeffrey Stedfast2001-06-293-7/+27
| | | | | | | | | | | | | 2001-06-28 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (destination_folder_handle_drop): Since we have an exception variable, we might as well use it when getting folders too. * folder-browser.c (message_list_drag_data_recieved): Call gtk_drag_finish. svn path=/trunk/; revision=10568
* After finding a folder, attach to its "folder_changed" andDan Winship2001-06-293-68/+123
| | | | | | | | | | | | | | | * mail-tools.c (mail_tool_uri_to_folder): After finding a folder, attach to its "folder_changed" and "message_changed" signals. (update_unread_count, update_unread_count_main): Moved here from folder-browser but basically unchanged. Doing this here lets us get folder tree updates for folders that have had messages moved/copied/filtered into them, but which don't yet have a view associated with them. * folder-browser.c (update_unread_count, update_unread_count_main, etc): Moved to mail-tools.c svn path=/trunk/; revision=10567
* simplified(refactored) signature handling + better support for htmlRadek Doulik2001-06-298-48/+177
| | | | | | | | | | | | | signatures 2001-06-28 Radek Doulik <rodo@ximian.com> * mail-config.c: use new fields everywhere * mail-config.h: as below * Mail.idl: added html_signature and has_html_signature svn path=/trunk/; revision=10564
* Get the Mail Component to understand `mailto:'.Ettore Perazzoli2001-06-282-1/+33
| | | | svn path=/trunk/; revision=10555
* Add method `ShellComponent::handleExternalURI' and anEttore Perazzoli2001-06-282-0/+7
| | | | | | | | | `external_uri_schemas' attribute. Update the EvolutionShellComponent GTK+ wrapper accordingly. Update all the components to pass a NULL `external_uri_schemas' list when initializing themselves as EvolutionShellComponents. svn path=/trunk/; revision=10548
* Bump required gal version for new accessors in ETree.Peter Williams2001-06-285-6/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-27 Peter Williams <peterw@ximian.com> * configure.in (gal): Bump required gal version for new accessors in ETree. mail: 2001-06-27 Peter Williams <peterw@ximian.com> * folder-browser-ui.c: Uncomment EditSelectThread. Yaay! * mail-callbacks.c (select_thread): New function. Self-explanatory name. Implementation is a little hairy. * mail-callbacks.h: Prototype it here. * mail-callbacks.c (invert_selection): Here too. (select_all): Here too. * subscribe-dialog.c (subscribe_select_all): Update to use new ETree accessors. (subscribe_invert_selection): Here too. calendar: 2001-06-27 Peter Williams <peterw@ximian.com> * conduits/*/Makefile.am (INCLUDES): More srcdir != builddir fixes. svn path=/trunk/; revision=10544
* work around an e-tree bugjacob berkman2001-06-282-0/+7
| | | | | | | | 2001-06-27 jacob berkman <jacob@ximian.com> * folder-browser.c (save_cursor_pos): work around an e-tree bug svn path=/trunk/; revision=10541
* Fixed Cut/Copy/Paste to work - it turns out I couldn't share a singleJeffrey Stedfast2001-06-283-41/+34
| | | | | | | | | | 2001-06-27 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c: Fixed Cut/Copy/Paste to work - it turns out I couldn't share a single GtkInvisible between all the FolderBrowser's after all. svn path=/trunk/; revision=10536
* forgot to save before comitting...Peter Williams2001-06-281-1/+0
| | | | svn path=/trunk/; revision=10532
* Change to use more reality-based API below. Include folder-browser-ui.hPeter Williams2001-06-284-30/+41
| | | | | | | | | | | | | | | | | | | | | 2001-06-27 Peter Williams <peterw@ximian.com> * folder-browser-factory.c (control_deactivate): Change to use more reality-based API below. Include folder-browser-ui.h too. (control_activate): Remove now-unused 'int state'. * folder-browser-ui.h: Changed prototypes to match changes below. * folder-browser-ui.c (folder_browser_ui_rm_message): Commented out to reflect reality of how this stuff works (you can't actually remove the pieces). (folder_browser_ui_rm_global): Same. (folder_browser_ui_rm_list): Left because here we add the view menus. (folder_browser_ui_add_list): ... which were moved here. (folder_browser_ui_rm_all): New function, does the job of old ui_rm() svn path=/trunk/; revision=10531
* Mail:Peter Williams2001-06-277-378/+531
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 001-06-26 Peter Williams <peterw@ximian.com> * folder-browser-ui.c: New file derived from folder-browser-factory.c. Contains the Bonobo UI code, split into three groups as described in ui/ChangeLog. Also contains the GalView stuff and the hookups into the Bonobo UI stuff. * folder-browser-factory.c: Move most of the UI stuff to folder-browser-ui.c. (control_activate): Add all three kinds of UI element to this folderbrowser. (control_deactivate): Remove all three kinds. * folder-browser-ui.h: New file. Prototypes functions to add UI elements to a FolderBrowser. * Makefile.am: Add folder-browser-ui.{c,h} * message-browser.c (PARENT_TYPE): Change to BONOBO_TYPE_WINDOW (message_browser_destroy): Chain to parent destroy function. (set_bonobo_ui): New function. Add the 'message' functions from the folder browser to our UI. (message_browser_close): BonoboVerbify this. * message-browser.h: Convert to BonoboWindow. UI: 6-26 Peter Williams <peterw@ximian.com> * evolution-mail-global.xml: * evolution-mail-list.xml: * evolution-mail-message.xml: New files. These are the result of splitting evolution-mail.xml into three pieces: one for the global mailer operations, one for the operations on a messagelist, and one for the operations on one or more messages. * evolution-mail-messagedisplay: New file. UI for the standalone message browser that you get when you double-click. Very skeleton. * evolution-mail.xml: Removed. * Makefile.am: Updated to install new files. svn path=/trunk/; revision=10514
* Helps if I spell "received" correctly.Jeffrey Stedfast2001-06-273-6/+29
| | | | | | | | | | | | | | 2001-06-26 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (my_folder_browser_init): Helps if I spell "received" correctly. * mail-config.c (mail_config_set_thread_list): If the value is already in the hash table, first remove it before setting the new value so we don't leak. (mail_config_set_show_preview): Same. svn path=/trunk/; revision=10510
* Don't pop up a progress dialog to say "I already finished this a whileDan Winship2001-06-275-10/+24
| | | | | | | | | | | | | * mail-mt.c (op_status_timeout): Don't pop up a progress dialog to say "I already finished this a while ago". * component-factory.c (storage_create_folder): Pass the path prefix to folder_created so it can add it to the folder tree in the right place. * mail-callbacks.c (folder_created): Take a path prefix. svn path=/trunk/; revision=10508
* make ettore stop complaining so i can get back to workjacob berkman2001-06-272-0/+6
| | | | | | | | | 2001-06-26 jacob berkman <jacob@ximian.com> * mail-config.c (mail_config_get_show_preview): make ettore stop complaining so i can get back to work svn path=/trunk/; revision=10504
* No longer returns a gboolean and also takes a CamelException.Jeffrey Stedfast2001-06-273-51/+193
| | | | | | | | | | | | | | | | | | | 2001-06-26 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (message_rfc822_dnd): No longer returns a gboolean and also takes a CamelException. (destination_folder_handle_drop): Do better error checking. * folder-browser.c (my_folder_browser_init): Connect to the tree-drag-data-recieved signal. (message_list_drag_data_recieved): New function that handles the recieving end of the DnD event. (x_evolution_message_parse): New convenience function to parse the x-evolution-message type so that the cut/paste and DnD code can share it. (selection_received): Use x_evolution_message_parse(). svn path=/trunk/; revision=10502
* Read in the default show_preview value. (mail_config_write_on_exit): SaveJeffrey Stedfast2001-06-263-48/+85
| | | | | | | | | | | | 2001-06-26 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (config_read): Read in the default show_preview value. (mail_config_write_on_exit): Save the default show_preview value as well as saving the individual settings for each URI that has been changed. svn path=/trunk/; revision=10500
* Check to make sure that clipboard_selection is non-NULL before weJoe Shaw2001-06-262-2/+9
| | | | | | | | | 2001-06-25 Joe Shaw <joe@ximian.com> * folder-browser.c (invisible_destroyed): Check to make sure that clipboard_selection is non-NULL before we g_byte_array_free() it. svn path=/trunk/; revision=10495
* tyopJacob Berkman2001-06-261-1/+1
| | | | svn path=/trunk/; revision=10492
* sync folders after we've gotten mailjacob berkman2001-06-269-20/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-25 jacob berkman <jacob@ximian.com> * mail-send-recv.c (free_send_data): sync folders after we've gotten mail * folder-browser-factory.c (control_activate): set the ui component on the folder browser (control_activate): update the view preview item (control_deactivate): don't sync the folder here (control_deactivate): unset the ui component of the folder browser * mail-callbacks.c (toggle_flags): stuff from jleach to add an importance keybinding (mark_as_important): ditto (toggle_as_important): again * mail-config.c (mail_config_get_show_preview): (mail_config_set_show_preview): basically a copy of get_thread_list() but for the preview pane * folder-browser.c (folder_browser_destroy): unref the our ui component (folder_browser_set_ui_component): new function for setting the ui component (save_cursor_pos): (set_cursor_pos): try to show the selected row when the preview pane is shown (folder_browser_set_message_preview): implement (folder_browser_toggle_preview): toggle the preview (duh) (on_key_press): add keybindings for marking as important (!), and hiding the preview pane (q) (etree_key): clean up a little bit, and make enter either show the preview pane or open the message (fb_resize_cb): only save the paned size if the preview is alread shown (folder_browser_gui_init): pass ourselves to fb_resize_cb (on_message_selected): only add the timeout if the preview is shown svn path=/trunk/; revision=10491
* Unref the invisible window that we use for slections.Jeffrey Stedfast2001-06-264-16/+224
| | | | | | | | | | | | | | | | | | | | | | | 2001-06-25 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_destroy): Unref the invisible window that we use for slections. (folder_browser_class_init): Init the clipboard_atam type. (selection_get): New (selection_clear_event): New (selection_received): New (folder_browser_copy): New function to copy the message-list selection. (folder_browser_cut): New function to cut the message-list selection. (folder_browser_paste): New function to paste the message-list selection. (my_folder_browser_init): Initialize `invisible` if it's NULL else ref it - also set some signals on it. * folder-browser-factory.c: Added verbs for cut/copy/paste. svn path=/trunk/; revision=10489
* Fixes here for removing folders.Jason Leach2001-06-243-16/+47
| | | | | | | | | | | 2001-06-23 Jason Leach <jleach@ximian.com> * mail-local.c (local_storage_removed_folder_cb): Fixes here for removing folders. * mail-ops.c (remove_folder_get): Some fixes in here too. svn path=/trunk/; revision=10445
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-2337-80/+80
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* Duh, we saved the charset as "default_charset", not "charset" - no wonderJeffrey Stedfast2001-06-232-1/+7
| | | | | | | | | | 2001-06-22 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (config_read): Duh, we saved the charset as "default_charset", not "charset" - no wonder the correct charset menu item was never being set. svn path=/trunk/; revision=10399
* Temporarily remove the Bcc header before sending the message.Jeffrey Stedfast2001-06-222-6/+23
| | | | | | | | | 2001-06-21 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): Temporarily remove the Bcc header before sending the message. svn path=/trunk/; revision=10385
* Remove empty "name" property setting from the popup control.Jon Trowbridge2001-06-222-1/+5
| | | | | | | | | 2001-06-21 Jon Trowbridge <trow@ximian.com> * mail-display.c (html_button_press_event): Remove empty "name" property setting from the popup control. svn path=/trunk/; revision=10373
* Allow the message to be sent even if there are no To recipients but onlyJeffrey Stedfast2001-06-222-9/+26
| | | | | | | | | | 2001-06-21 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_get_message): Allow the message to be sent even if there are no To recipients but only as long as there are other recipients defined. svn path=/trunk/; revision=10363
* Fix bug #3409: Removing an EvolutionStorage from the shell's folderJacob Leach2001-06-222-16/+34
| | | | | | tree. svn path=/trunk/; revision=10362
* More than on accel key is a tad confusing.Kjartan Maraas2001-06-202-1/+6
| | | | | | | | | 2001-06-20 Kjartan Maraas <kmaraas@gnome.org> * folder-browser.c: More than on accel key is a tad confusing. svn path=/trunk/; revision=10328
* #include "folder-browser-factory.h"Jeffrey Stedfast2001-06-205-20/+105
| | | | | | | | | | | | | | | 2001-06-19 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c: #include "folder-browser-factory.h" * component-factory.c (mail_remove_storage): New function to remove an EvolutionStorage. * mail-accounts.c (mail_delete): Remove the storage from the folder-tree. (news_delete): Same. svn path=/trunk/; revision=10304
* Accept text/uri-list mime types - this allows us to drag messages fromJeffrey Stedfast2001-06-203-15/+130
| | | | | | | | | | | | | 2001-06-19 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (destination_folder_handle_drop): Accept text/uri-list mime types - this allows us to drag messages from Nautilus into an Evolution folder. * folder-browser.c (message_list_drag_data_get): Do cleanup and better error handling. svn path=/trunk/; revision=10296
* Properly clean up the movemail files when no mail was received.Jon Trowbridge2001-06-192-0/+7
| | | | | | | | | 2001-06-19 Jon Trowbridge <trow@ximian.com> * mail-tools.c (mail_tool_do_movemail): Properly clean up the movemail files when no mail was received. svn path=/trunk/; revision=10290
* (write_field_row_begin): hmm, use just bold &nbsp; as it looksRadek Doulik2001-06-192-1/+5
| | | | | | better svn path=/trunk/; revision=10288
* add column with &nbsp; between header name and valueRadek Doulik2001-06-192-1/+6
| | | | | | | | | 2001-06-19 Radek Doulik <rodo@ximian.com> * mail-format.c (write_field_row_begin): add column with &nbsp; between header name and value svn path=/trunk/; revision=10286
* Use a nice switch statement and use the new enum values.Jeffrey Stedfast2001-06-193-19/+38
| | | | | | | | | | | | | | 2001-06-18 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (destination_folder_handle_drop): Use a nice switch statement and use the new enum values. * mail-callbacks.c (list_add_addresses): Now takes a hash table of already-used-recipients so that we don't get duplicates. (mail_generate_reply): Pass in a rcpt_hash argument to list_add_addresses(). These changes fix bug #1639. svn path=/trunk/; revision=10282
* Now takes a hash table of already-used-recipients so that we don't getJeffrey Stedfast2001-06-192-5/+21
| | | | | | | | | | | 2001-06-18 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (list_add_addresses): Now takes a hash table of already-used-recipients so that we don't get duplicates. (mail_generate_reply): Pass in a rcpt_hash argument to list_add_addresses(). These changes fix bug #1639. svn path=/trunk/; revision=10278
* Remove DB3_LDADDDan Winship2001-06-192-1/+4
| | | | | | * Makefile.am (evolution_mail_LDADD): Remove DB3_LDADD svn path=/trunk/; revision=10276
* Change the drop-type "x-evolution-dnd" to "x-evolution-message" since weJeffrey Stedfast2001-06-193-50/+58
| | | | | | | | | | | | | | | | | 2001-06-18 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c: Change the drop-type "x-evolution-dnd" to "x-evolution-message" since we want to be able to DnD more than one data type ;-) * folder-browser.c: Change supported DnD drop types to disclude URI_LIST as that seems to crash Nautilus and seems overly complicated. Since I am going to be supporting message/rfc822, hopefully Nautilus can handle that or else maybe something like text/plain. (message_list_drag_data_get): Remove the code for URI_LIST. svn path=/trunk/; revision=10264
* If we have a fragment in the url, use that as the folder name, and not theNot Zed2001-06-183-6/+25
| | | | | | | | | | | | | | 2001-06-14 Not Zed <NotZed@Ximian.com> * mail-tools.c (mail_tool_uri_to_folder): If we have a fragment in the url, use that as the folder name, and not the path component. 2001-06-13 Not Zed <NotZed@Ximian.com> * component-factory.c (mail_load_storages): Added temp hack to let spool providers show up in the list. svn path=/trunk/; revision=10263
* (mail_format_raw_message): Add padding to match the formattedDan Winship2001-06-182-3/+7
| | | | | | display. svn path=/trunk/; revision=10262
* Allow user's to "copy" drag & drop rather than just "move".Jeffrey Stedfast2001-06-174-150/+163
| | | | | | | | | 2001-06-16 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (my_folder_browser_init): Allow user's to "copy" drag & drop rather than just "move". svn path=/trunk/; revision=10258
* Implemented.Jeffrey Stedfast2001-06-164-163/+235
| | | | | | | | | | | | | | | | 2001-06-15 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (destination_folder_handle_drop): Implemented. * message-list.c (message_list_construct): Don't connect to the DnD signals here. (message_list_drag_data_get): Removed. (add_uid): Removed. * folder-browser.c (my_folder_browser_init): Connect to DnD signals. (message_list_drag_data_get): Implemented. svn path=/trunk/; revision=10257
* Fixed misuse of an uninitialized variable.Jeffrey Stedfast2001-06-165-11/+121
| | | | | | | | | | | | | | | | | 2001-06-15 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_send_message): Fixed misuse of an uninitialized variable. * component-factory.c (destination_folder_handle_drop): Implemented. * mail.h: Added prototype for evolution_folder_info_factory_init. * mail-ops.c (mail_do_transfer_messages): Now takes a const char* as the dest_uri. This works better all around since we strdup'd the string anyway. svn path=/trunk/; revision=10255
* We can't output "<html>" and "</html>" here because it gets calledDan Winship2001-06-164-8/+12
| | | | | | | | | | | * mail-format.c (mail_format_mime_message): We can't output "<html>" and "</html>" here because it gets called recursively to display message/rfc822 subparts. * mail-display.c (mail_display_redisplay): Move rodo's html header changes from mail_format_mime_message to here. svn path=/trunk/; revision=10252
* Updated to reflect changes to mail_config_[g,s]et_thread_list().Jeffrey Stedfast2001-06-157-40/+176
| | | | | | | | | | | | | | | | | | | | | | | 2001-06-14 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (got_folder): Updated to reflect changes to mail_config_[g,s]et_thread_list(). (folder_browser_toggle_threads): Same. * folder-browser-factory.c (control_activate): Updated to reflect changes to mail_config_[g,s]et_thread_list(). * mail-config.c (mail_config_write_on_exit): Do cleanup when we're done. (mail_config_set_thread_list): Send in a URI so we can save the state on a per-folder basis. (mail_config_get_thread_list): Send in a URI so we can retrieve the state on a per-folder basis. * component-factory.c: Setup the accepted_dnd_types. Also added skeleton code for DnD. svn path=/trunk/; revision=10240
* Add Reply-to-List bonobo verbs.Jeffrey Stedfast2001-06-155-24/+97
| | | | | | | | | | | | | | | | | 2001-06-14 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-factory.c: Add Reply-to-List bonobo verbs. * folder-browser.c: Add Reply-to-List menu items. * mail-callbacks.c (mail_reply): Use an enum for specifying the reply mode, becaus enow we can reply-to-list. (reply_to_list): Implement. (reply_to_sender): Use REPLY_SENDER. (reply_to_all): Use REPLY_ALL. (mail_generate_reply): Handle the different modes. svn path=/trunk/; revision=10232
* Remove folder-info.h until iain checks it inJP Rosevear2001-06-132-1/+4
| | | | | | | | 2001-06-12 JP Rosevear <jpr@ximian.com> * Makefile.am: Remove folder-info.h until iain checks it in svn path=/trunk/; revision=10201
* Setup default spool location same as for mbox mail retrieval.Not Zed2001-06-122-1/+7
| | | | | | | | | 2001-06-12 Not Zed <NotZed@Ximian.com> * mail-account-gui.c (source_type_changed): Setup default spool location same as for mbox mail retrieval. svn path=/trunk/; revision=10199
* fix some commands to match the ui file again.Dan Winship2001-06-092-3/+8
| | | | | | | * folder-browser-factory.c: fix some commands to match the ui file again. svn path=/trunk/; revision=10165
* Committing the new My Evolution.Iain Holmes2001-06-096-29/+279
| | | | svn path=/trunk/; revision=10163
* Reattach X-Evolution-Account information to the message after sending it.Jon Trowbridge2001-06-093-3/+16
| | | | | | | | | | | 2001-06-08 Jon Trowbridge <trow@ximian.com> * mail-ops.c (mail_send_message): Reattach X-Evolution-Account information to the message after sending it. This way it can be used to set the identity properly if we later Resend the message. svn path=/trunk/; revision=10162
* If you had multiple accounts that used mboxes, and if you received mail inJon Trowbridge2001-06-092-1/+22
| | | | | | | | | | | | | | 2001-06-08 Jon Trowbridge <trow@ximian.com> * mail-tools.c (mail_tool_get_local_movemail_path): If you had multiple accounts that used mboxes, and if you received mail in N of those accounts, you would get N copies of each of your e-mail messages. This is because everything was being dumped into one big file by movemail, and the filters would run on that file N times. To work around this, each mbox account now gets its own distinct temporary movemail file. svn path=/trunk/; revision=10155
* Added an argument, so that the original source URI of the mbox can beJon Trowbridge2001-06-082-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | 2001-06-07 Jon Trowbridge <trow@ximian.com> * camel-filter-driver.c (camel_filter_driver_filter_mbox): Added an argument, so that the original source URI of the mbox can be passed in. This is needed because this function is called post-movemail, so we are never reading from the original mbox anymore. Without the original mbox URI, the X-Evolution-Source tag gets set incorrectly and filter-on-source will fail to work. (camel_filter_driver_filter_message): Also take an extra arg for the original source URI. It is the original URI, not the source URI, that is used for filtering and for setting the X-Evolution-Source tag. 2001-06-07 Jon Trowbridge <trow@ximian.com> * mail-ops.c (fetch_mail_fetch): Pass the original source URI to camel_filter_driver_filter_mbox. (mail_send_message): Pass NULL as the orginal source URI to camel_filter_driver_filter_message. svn path=/trunk/; revision=10152
* Check that the chain of deferences in gui->account->source->url is safe.Jon Trowbridge2001-06-073-5/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-06 Jon Trowbridge <trow@ximian.com> * mail-account-gui.c (source_type_changed): Check that the chain of deferences in gui->account->source->url is safe. This was causing a segfault when adding a new account if any of the existing accounts had their sources set to "None". (i.e. gui->account->source == NULL) * mail-accounts.c (load_accounts): Check that account->source != NULL before dereferencing it. (load_accounts): The selection is cleared when the account clist is rebuilt (say after a call to add), but no unselect event is emitted. Yes, the clist is evil. We work around this by explictly calling mail_unselect, our unselect signal handler. (Otherwise, the edit and delete buttons remain sensitive and accounts_row != 0, but the user can't see which row the dialog thinks is selected.) (load_news): Check the account->source != NULL before dereferencing it. (mail_unselect): If an insensitive button in a button box has the focus, and if you hit tab, there is a segfault deep inside of gtk. This is probably a gtk bug. We work around it by having the add button (which is always sensitive) grab the focus on an unselect. svn path=/trunk/; revision=10136
* (Fix bug #3211: Should undelete when flagging a delete message asJason Leach2001-06-062-1/+11
| | | | | | | | | | | | | 2001-06-05 Jason Leach <jleach@ximian.com> (Fix bug #3211: Should undelete when flagging a delete message as important) * message-list.c (on_click): When flagging a message as important, check to see if it's flagged as deleted, if so, undelete it. svn path=/trunk/; revision=10122
* (Fix bug #314: Display URLs in statusbar on mouseover)Jason Leach2001-06-062-1/+98
| | | | | | | | | | | 2001-06-05 Jason Leach <jleach@ximian.com> (Fix bug #314: Display URLs in statusbar on mouseover) * mail-display.c (html_on_url): New function, callback for GtkHTML's "on_url" signal. svn path=/trunk/; revision=10117
* make HTML and plain mails to have the same boundaryRadek Doulik2001-06-052-13/+41
| | | | | | | | | 2001-06-05 Radek Doulik <rodo@ximian.com> * mail-format.c: make HTML and plain mails to have the same boundary svn path=/trunk/; revision=10115
* Fix linking order for `$(DB3_LDADD)'s so that we avoid pullingEttore Perazzoli2001-06-032-3/+8
| | | | | | | functions from a different Berkeley DB library when we really don't mean to. svn path=/trunk/; revision=10105
* Added fields for the GalViewMenus and GalViewCollection, since we need toFederico Mena Quintero2001-06-024-15/+62
| | | | | | | | | | | | | | | | | | | 2001-06-01 Federico Mena Quintero <federico@ximian.com> * folder-browser.h (FolderBrowser): Added fields for the GalViewMenus and GalViewCollection, since we need to keep them around while the component is active. * folder-browser-factory.c (folder_browser_setup_view_menus): Plug leaks; unref the spec and factory. Set the view collection and the view menus on the FolderBrowser object. (folder_browser_discard_view_menus): New function. (control_deactivate): Discard the menus. * folder-browser.c (folder_browser_destroy): Destroy the view collection and the view menus. svn path=/trunk/; revision=10086
* Add a bunch of missing `$(DB3_LDADD)'s.Ettore Perazzoli2001-06-022-1/+6
| | | | svn path=/trunk/; revision=10085
* Save the pgp and smime settings. (mail_account_gui_new): Setup the pgp andJeffrey Stedfast2001-06-026-32/+401
| | | | | | | | | | | | | | | | | | 2001-06-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Save the pgp and smime settings. (mail_account_gui_new): Setup the pgp and s/mime page (but disable the s/mime frame if we are not compiled with s/mime support). * mail-config.c (account_copy): Updated to save extra pgp and smime options. (account_destroy): Free draft/sent folder info and also the new pgp/smime keys. (config_read): Read in the pgp and s/mime config options. (mail_config_write): Save the account pgp and smime options. svn path=/trunk/; revision=10084
* oops, camel-smime.h no longer exists. #include camel-smime-context.h and ↵Jeffrey Stedfast2001-06-021-1/+2
| | | | | | camel-smime-utils.h instead. svn path=/trunk/; revision=10083
* Call build_extra_conf() here too. This is when we REALLY want to call itJeffrey Stedfast2001-06-023-25/+22
| | | | | | | | | | | | | | | | 2001-06-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (source_type_changed): Call build_extra_conf() here too. This is when we REALLY want to call it anyway, not on switch-page because then we'd lose any data on the Receive Options page if we never switch to that page before applying the changes. * mail-account-editor.c (construct): Don't connect to the switch-page event, instead just call build_extra_conf() here with the source->url. svn path=/trunk/; revision=10082
* Fix dumb misuse of g_get_charset.Dan Winship2001-06-012-1/+6
| | | | | | * mail-config.c (config_read): Fix dumb misuse of g_get_charset. svn path=/trunk/; revision=10079
* Removed the code to check for the validity of an S/MIME part. Stuff worksJeffrey Stedfast2001-06-014-56/+109
| | | | | | | | | | | | 2001-05-31 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (handle_multipart_signed): Removed the code to check for the validity of an S/MIME part. Stuff works differently now. * mail-crypto.c: Rewrote how the S/MIME stuff is going to work. svn path=/trunk/; revision=10066
* Rename the "PGP" page back to "Other" and add a "default charset" optionDan Winship2001-05-316-5/+118
| | | | | | | | | | | | | | | * mail-config.glade: Rename the "PGP" page back to "Other" and add a "default charset" option menu. * mail-config.c (config_read, mail_config_write_on_exit, mail_config_get_default_charset, mail_config_set_default_charset): Handle "default charset". * mail-accounts.c (construct): Fill in the "default_charset" menu with an e_charset_picker menu. (charset_menu_deactivate): Update the default charset. svn path=/trunk/; revision=10057
* spJeffrey Stedfast2001-05-301-1/+1
| | | | svn path=/trunk/; revision=10047
* Take another argument to ignore a certain address. (mail_generate_reply):Jeffrey Stedfast2001-05-303-31/+46
| | | | | | | | | | | 2001-05-29 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (list_add_addresses): Take another argument to ignore a certain address. (mail_generate_reply): Ignore references to the reply-to address when constructing the Cc list. svn path=/trunk/; revision=10046
* one-line fix for bug #2536: File->Close in message viewer doesn't work.Jason Leach2001-05-303-11/+17
| | | | | | | | | | | | | | | | 2001-05-29 Jason Leach <jleach@ximian.com> * message-browser.c (message_browser_new): one-line fix for bug #2536: File->Close in message viewer doesn't work. (message_browser_new): Also replaced like 4 lines of code with a one-liner featuring gnome_app_create_toolbar_with_data(). 2001-05-28 Jason Leach <jleach@ximian.com> * mail-local.c (load_metainfo): Don't need to check if (foo!=NULL) before doing an xmlFreeDoc(). svn path=/trunk/; revision=10039
* Fix a bug that could cause a crash on messages with an empty subject.Dan Winship2001-05-292-1/+6
| | | | | | | * mail-format.c (write_text_header): Fix a bug that could cause a crash on messages with an empty subject. Oops. svn path=/trunk/; revision=10034
* Removed the etable spec string. (message_list_construct): Load the etableJeffrey Stedfast2001-05-286-42/+40
| | | | | | | | | | | | | | | | | | | 2001-05-27 Jeffrey Stedfast <fejj@ximian.com> * message-list.c: Removed the etable spec string. (message_list_construct): Load the etable spec from a file. * folder-browser-factory.c: Load the etable spec from the file, not a string. * Makefile.am: Add message-list.etspec to be installed. * message-list.etspec: New file containing the ETable file specification. * mail-config.h: Prototype evolution_mail_config_get_type. svn path=/trunk/; revision=10025
* Prototype evolution_mail_config_get_type.Jeffrey Stedfast2001-05-282-0/+5
| | | | | | | | 2001-05-27 Jeffrey Stedfast <fejj@ximian.com> * mail-config.h: Prototype evolution_mail_config_get_type. svn path=/trunk/; revision=10024
* #include "evolution-shell-component-utils.h" rather than "e-gui-utils.h"Dan Winship2001-05-283-2/+10
| | | | | | | | | | * folder-browser-factory.c: #include "evolution-shell-component-utils.h" rather than "e-gui-utils.h" for e_pixmaps_update. * subscribe-dialog.c: Likewise. svn path=/trunk/; revision=10019
* Fix to work properly. (handle_multipart_signed): Fixed a bug that causedJeffrey Stedfast2001-05-272-1/+4
| | | | | | | | | | | 2001-05-26 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (try_inline_pgp_sig): Fix to work properly. (handle_multipart_signed): Fixed a bug that caused some multipart/signed messages to be handled by the multipart_mixed handler. svn path=/trunk/; revision=10016
* Fix to work properly.Jeffrey Stedfast2001-05-272-4/+27
| | | | | | | | 2001-05-26 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (try_inline_pgp_sig): Fix to work properly. svn path=/trunk/; revision=10015
* Added callbacks for Next/Previous Unread and Next/Previous FlaggedJeffrey Stedfast2001-05-274-15/+55
| | | | | | | | | | | | 2001-05-25 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-factory.c: Added callbacks for Next/Previous Unread and Next/Previous Flagged message. * mail-callbacks.c (previous_flagged_msg): Implemented. (next_flagged_msg): Implemented. svn path=/trunk/; revision=10014
* When unreffing a folder we got ourselves (as opposed to one passed in byDan Winship2001-05-274-2/+59
| | | | | | | | | | | | | | | | * mail-ops.c (mail_send_message, transfer_messages_transfer, set_offline_do): When unreffing a folder we got ourselves (as opposed to one passed in by the caller), sync before unreffing, since we might be holding the only reference to it. (mail_refresh_folder): New op, like mail_sync_folder, but does a camel_folder_refresh_info instead. * folder-browser-factory.c (control_activate): Call mail_refresh_folder, not mail_sync_folder. (The goal is to see new messages: sync used to work with imap because imap_sync was broken, but it doesn't work for that any more.) svn path=/trunk/; revision=10011
* Reference libeshell.la instead of libeshell.a.Peter Williams2001-05-262-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-25 Peter Williams <peterw@ximian.com> * gui/component/Makefile.am: Reference libeshell.la instead of libeshell.a. 2001-05-25 Peter Williams <peterw@ximian.com> * gui/Makefile.am: Reference libeshell.la instead of libeshell.a. 2001-05-25 Peter Williams <peterw@ximian.com> * component/Makefile.am: Reference libeshell.la instead of libeshell.a. 2001-05-25 Peter Williams <peterw@ximian.com> * Makefile.am: Reference libeshell.la instead of libeshell.a. 2001-05-25 Peter Williams <peterw@ximian.com> * Makefile.am: Change libeshell from a noinst_LIBRARIES to a lib_LTLIBRARIES. Install its headers in $includedir/evolution/shell. * evolution-storage.c (safe_corba_string): New, copy of e_safe_corba_string in libeutil. This way libeshell doesn't have a missing symbol when programs that don't have libeutil link to it. (evolution_storage_register): s,e_safe_corba_string,safe_corba_string,g. svn path=/trunk/; revision=10007
* oopsJeffrey Stedfast2001-05-261-1/+2
| | | | svn path=/trunk/; revision=10001
* Disable Resend on non-Sent folder FolderBrowsers. Thanks to Wayne DavisJeffrey Stedfast2001-05-262-4/+12
| | | | | | | | | | 2001-05-25 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-factory.c (control_activate): Disable Resend on non-Sent folder FolderBrowsers. Thanks to Wayne Davis for this patch. svn path=/trunk/; revision=10000
* This code should be correct now. Still waiting on the shell to do it's jobJeffrey Stedfast2001-05-262-13/+15
| | | | | | | | | | 2001-05-25 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (xfer_folder): This code should be correct now. Still waiting on the shell to do it's job of creating the metadata xml file in the destination folder though. svn path=/trunk/; revision=9981
* g_strdup the uid into the ml->cursor_uid.Jeffrey Stedfast2001-05-254-6/+20
| | | | | | | | | | | | 2001-05-24 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_select_uid): g_strdup the uid into the ml->cursor_uid. * message-browser.c (message_browser_forward_msg): Use the default forward style. svn path=/trunk/; revision=9969
* If the message data is online, sniff the data for a MIME type first, andDan Winship2001-05-252-27/+50
| | | | | | | | | | | * mail-identify.c (mail_identify_mime_part): If the message data is online, sniff the data for a MIME type first, and use the filename second. Makes it more reliable, and deals with the specific case of "application/octet-stream; name=foo.vcf" which gnome-vfs will identify as vcalendar, but which can also be a vcard. svn path=/trunk/; revision=9968
* Only write the message up to (but not including) the attached signatureJeffrey Stedfast2001-05-252-2/+11
| | | | | | | | | 2001-05-24 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (try_inline_pgp_sig): Only write the message up to (but not including) the attached signature block. svn path=/trunk/; revision=9967
* Don't free the folder-info here, instead have mail_append_mail() call ourJeffrey Stedfast2001-05-243-11/+22
| | | | | | | | | | | 2001-05-23 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_postpone_cb): Don't free the folder-info here, instead have mail_append_mail() call our new function, append_mail_cleanup() which'll free the folder-info. This fixes the problem of send-later segfaulting. svn path=/trunk/; revision=9958
* Make the message-list respect the "hide deleted messages" setting. FixesJeffrey Stedfast2001-05-242-10/+14
| | | | | | | | | 2001-05-23 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_set_folder): Make the message-list respect the "hide deleted messages" setting. Fixes bug #2248. svn path=/trunk/; revision=9956
* New function that the shell component calls to copy/move a folder.Jeffrey Stedfast2001-05-244-4/+166
| | | | | | | | | | | | | | | | | | | | | | 2001-05-23 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (xfer_folder): New function that the shell component calls to copy/move a folder. (component_fn): Set the xfer_folder_fn argument. * mail-ops.c (mail_remove_folder): New async function to remove a folder. God knows if it does what the ShellComponent needs or not yet. (mail_xfer_folder): Yet another yummy async function to move or copy a folder to a new location. * component-factory.c (storage_remove_folder): New function for removing folders. (remove_folder): New function that the shell component calls to delete a folder. (component_fn): Set the remove_folder_fn argument. svn path=/trunk/; revision=9954
* New async function to remove a folder. God knows if it does what theJeffrey Stedfast2001-05-244-11/+201
| | | | | | | | | | | | | | | | 2001-05-23 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (mail_remove_folder): New async function to remove a folder. God knows if it does what the ShellComponent needs or not yet. * component-factory.c (storage_remove_folder): New function for removing folders. (remove_folder): New function that the shell component calls to delete a folder. (component_fn): Set the remove_folder_fn argument. svn path=/trunk/; revision=9952
* Save the message-display style. (config_read): Read the message-displayJeffrey Stedfast2001-05-233-3/+23
| | | | | | | | | | 2001-05-22 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_write_on_exit): Save the message-display style. (config_read): Read the message-display style. svn path=/trunk/; revision=9938
* If http mode is HTTP_SOMETIMES, use e_book_query_address_locally to checkDan Winship2001-05-233-9/+46
| | | | | | | | | | | | * mail-display.c (on_url_requested): If http mode is HTTP_SOMETIMES, use e_book_query_address_locally to check the From address and load images if it's found. * mail-config.c (config_read): Default http_mode to MAIL_CONFIG_HTTP_SOMETIMES. Fix typo to make default forward style actually work. svn path=/trunk/; revision=9936
* Use MAILER_CFLAGS and MAILER_LIBS.Jeffrey Stedfast2001-05-233-7/+5
| | | | | | | | 2001-05-22 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Use MAILER_CFLAGS and MAILER_LIBS. svn path=/trunk/; revision=9934
* Instead of calling message_list_select_uid() here, instead connect to theJeffrey Stedfast2001-05-234-9/+47
| | | | | | | | | | | | | | | | | | | | 2001-05-22 Jeffrey Stedfast <fejj@ximian.com> * message-browser.c (message_browser_folder_loaded): Instead of calling message_list_select_uid() here, instead connect to the "message_list_loaded" signal since the message-list is not built yet at this point. (message_browser_message_list_built): Call message_list_select_uid() here instead. * message-list.c: Lets have a new signal, MESSAGE_LIST_BUILT, that gets emitted when the message-list has finished being built by one of the built_*() functions. (message_list_class_init): Setup the signal stuff. (regen_list_regened): Emit the signal here (should this perhaps be moved into each of the build_*() functions instead?). svn path=/trunk/; revision=9925
* Mark a string for translation.Kjartan Maraas2001-05-222-2/+6
| | | | | | | | 2001-05-21 Kjartan Maraas <kmaraas@gnome.org> * mail-local.c: Mark a string for translation. svn path=/trunk/; revision=9908
* Return the serialized EDestinations (rather than just a string w/ e-mailJon Trowbridge2001-05-182-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-18 Jon Trowbridge <trow@ximian.com> * gui/component/select-names/e-select-names-bonobo.c (entry_get_property_fn): Return the serialized EDestinations (rather than just a string w/ e-mail addresses) through the bonobo component's property bag. * gui/component/select-names/e-select-names-model.c (e_select_names_model_export_destinationv): Added. A convenience routine for serializing the model's EDestinations into a string. * gui/component/select-names/e-select-names-popup.c (add_html_mail): Added. Puts in a check menu item for whether or not the recipient wants HTML mail. (popup_menu_card): Add menu item for HTML mail. Enable edit contact info item. (popup_menu_nocard): Add menu item for HTML mail. Enable edit contact info item. * backend/ebook/e-book-util.c (e_book_use_local_address_book): Added. Fetches the local addressbook and caches it on the first call. This is meant to be an easy and efficient way to get at the local addressbook with the minimum of code. (e_book_query_address_locally): Added. Convenience code that does an e-mail only e_book_name_and_email_query against the local address book. * backend/ebook/e-destination.c (e_destination_set_html_mail_pref): Added. Allows the intended recipient's HTML mail preference to be manipulated. (e_destination_get_email_verbose): Added. Cleaned up to use e_destination_get_name. (e_destination_get_html_mail_pref): Added. Read the recipient's HTML mail preference. If the destination is linked to a card, the preference is taken from the card (unless it has been explicitly overridden by a called to e_destination_set_html_mail_pref). (e_destination_get_address_textv): Added. Form a unified address string from a NULL-terminated vector of EDestinations. (e_destination_export): Added. Serialize an EDestination to a string. (e_destination_import): Added. Unserialize a string to build an EDestination. (e_destination_exportv): Added. Serialize a NULL-terminated vector of EDestinations to a string. (e_destination_importv): Added. Unserialize a string to build a NULL-terminated vector of EDestinations. * gui/component/select-names/e-select-names-completion.c: Implemented local versions of g_strcasecmp and g_strncasecmp (which should really be in glib, I think...) for utf8, and used them to make this code utf8-safe. 2001-05-18 Jon Trowbridge <trow@ximian.com> * Makefile.am (evolution_mail_LDADD): Added libebook.la (which is now required by the composer.) 2001-05-18 Jon Trowbridge <trow@ximian.com> * e-msg-composer-hdrs.c (set_recipients): Properly unserialize the string returned by the "text" property of the bonobo control, convert it into EDestinations, and use them to get the e-mail addresses of our recipients. 22001-05-18 Jon Trowbridge <trow@ximian.com> * Makefile.am (SUBDIRS): Changed build order. Now addressbook gets built before mail. svn path=/trunk/; revision=9878
* mark Outbox messages as read.Dan Winship2001-05-182-1/+10
| | | | | | | * mail-callbacks.c (composer_postpone_cb): mark Outbox messages as read. svn path=/trunk/; revision=9873
* New convenience function for all signature verification functions to useJeffrey Stedfast2001-05-182-63/+63
| | | | | | | | | | | | | 2001-05-17 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_write_authenticity): New convenience function for all signature verification functions to use to display whether or not the signed part was authentic. (try_inline_pgp_sig): Use mail_write_authentic(). (handle_multipart_signed): Add code to handle S/MIME multipart/signed parts and also use mail_write_authenticity(). svn path=/trunk/; revision=9872
* add new icons from jimmacDan Winship2001-05-182-0/+11
| | | | | | * mail-config.glade: add new icons from jimmac svn path=/trunk/; revision=9870
* add E_TEXT_TO_HTML_ESCAPE_8BIT to the flagsDan Winship2001-05-172-1/+6
| | | | | | | * mail-format.c (mail_format_raw_message): add E_TEXT_TO_HTML_ESCAPE_8BIT to the flags svn path=/trunk/; revision=9860
* Functions to determine if a folderbrowser is one of the drafts, sent, orDan Winship2001-05-178-150/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * folder-browser.c (folder_browser_is_drafts, folder_browser_is_sent, folder_browser_is_outbox): Functions to determine if a folderbrowser is one of the drafts, sent, or outbox folders. (got_folder): Pass TRUE for the "outgoing" flag to message_list_set_folder if this is a Sent, Drafts, or Outbox folder. * message-list.c (message_list_set_folder): Take a flag saying whether or not the folder is an "outgoing" folder. (message_list_setup_etree): Ditto. Use that rather than a hardcoded list of foldernames for deciding whether to swap From and To in the default layout. * mail-config.c (mail_config_folder_to_cachename): Make IMAP folders have unique cachenames rather than only one per store, so that IMAP Sent and Drafts folders don't get forced into having the same layout as the INBOX. * mail-callbacks.c: (is_sent_folder, is_drafts_folder): Gone. Replaced with simpler folder_browser_is_* routines. (edit_msg, resend_msg, open_msg): Use folder_browser_is_* routines. * mail-local.c (reconfigure_clicked): Update call to message_list_set_folder. svn path=/trunk/; revision=9857
* Removed (this now exists in camel/camel-smime.c).Jeffrey Stedfast2001-05-173-100/+162
| | | | | | | | | | | | | | | | | | | 2001-05-16 Jeffrey Stedfast <fejj@ximian.com> * mail-crypto.c (mail_crypto_is_smime_v3_signed): Removed (this now exists in camel/camel-smime.c). (mail_crypto_is_pkcs7_mime): Same. (mail_crypto_smime_part_sign): new (mail_crypto_smime_part_verify): new (mail_crypto_smime_part_encrypt): new (mail_crypto_smime_part_decrypt): new (mail_crypto_pgp_mime_part_sign): Added code to set an exception if the context fails to be created. (mail_crypto_pgp_mime_part_verify): And here... (mail_crypto_pgp_mime_part_encrypt): Same. (mail_crypto_pgp_mime_part_decrypt): And here too. svn path=/trunk/; revision=9856
* Deal with full-header mode in addition to source modeDan Winship2001-05-173-36/+100
| | | | | | | | | | | | | | | | * mail-display.c (mail_display_redisplay): Deal with full-header mode in addition to source mode * mail-format.c (write_field_row_begin): Add WRITE_NOCOLUMNS flag to write the header in a single table cell rather than two. Output the second columns's "<td>" when not in NOCOLUMNS mode. Don't include the ":" in the passed-in header name. (write_date, write_address): Update for write_field_row_begin changes. (write_text_field): Genericified and updated from write_subject. (write_headers): Deal with both normal and full-header mode. svn path=/trunk/; revision=9850
* Load http images if the user has force-loaded images too.Dan Winship2001-05-1610-46/+113
| | | | | | | | | | | | | | | | | | | | | | | * mail-display.c (on_url_requested): Load http images if the user has force-loaded images too. (mail_display_redisplay): Update for normal/headers/source changes. (mail_display_load_images): New. Force HTTP image loading for the current message. * mail-config.c (mail_config_get_message_display_style, mail_config_set_message_display_style): Updated and renamed from mail_config_{get,set}_view_source * mail-callbacks.c (load_images): New. * folder-browser.c (folder_browser_set_message_display_style): Renamed and updated from folder_browser_toggle_view_source. * folder-browser-factory.c (verbs): Add ViewLoadImages. (control_activate): Update for normal/headers/source change to radio group. svn path=/trunk/; revision=9820
* Update for changes in evolution-mail.xml (many commands were renamed toDan Winship2001-05-162-85/+73
| | | | | | | | | | * folder-browser-factory.c (verbs): Update for changes in evolution-mail.xml (many commands were renamed to better match the current menu layout). (pixcache): Refer to commands via their paths in /commands/ rather than hardcoding their menu paths. svn path=/trunk/; revision=9816
* Put frame around dialog vbox, put mail subject in that frame's label.Jon Trowbridge2001-05-153-52/+74
| | | | | | | | | | | 2001-05-14 Jon Trowbridge <trow@ximian.com> * mail-search.c (mail_search_construct): Put frame around dialog vbox, put mail subject in that frame's label. (Patch by Duncan.) (mail_search_set_subject): Break out subject-setting code. Truncate long subjects with ellipses. svn path=/trunk/; revision=9813
* set the dialog's window_icon to jimmac's new find_message.xpm.Duncan Mak2001-05-152-1/+9
| | | | | | | | | 2001-05-14 Duncan Mak <duncan@ximian.com> * mail-search.c (mail_search_construct): set the dialog's window_icon to jimmac's new find_message.xpm. svn path=/trunk/; revision=9808
* Fix the importer linklineIain Holmes2001-05-152-0/+6
| | | | svn path=/trunk/; revision=9801
* Remove this... it's not used any more.Dan Winship2001-05-156-308/+5
| | | | | | | | | * mail-mlist-magic.c: Remove this... it's not used any more. * folder-browser.c: * message-browser.c: Remove references to mail-mlist-magic.h svn path=/trunk/; revision=9800
* Split "Other" page into three pages, Display, Composer, and PGP. Add HTMLDan Winship2001-05-1514-138/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-config.glade: Split "Other" page into three pages, Display, Composer, and PGP. Add HTML image stuff on the Display page and default forward style on the Composer page. * mail-config.c (mail_config_get_default_forward_style, mail_config_set_default_forward_style): User-specified default style for forwarding messages. (config_read, mail_config_write_on_exit): Deal with forward style. * mail-accounts.c: Handle HTML image display options and default forward style. * mail-callbacks.c (forward): New. Forward in the user-selected default style. (forward_inline, forward_quoted): Simplify these some. Remove the fallback to forward attached when forwarding multiple messages: it should just forward the multiple messages inline or quoted in those cases. (Which it doesn't yet, but that's a bug.) * folder-browser.c (context_menu): Remove "Forward inline" and make "Forward" call forward() rather than forward_attached(). * folder-browser-factory.c: Update command/menu/toolbar/pixmap gunk for the "MessageForwardAttached" vs "MessageForward" split. * mail-session.c (mail_session_get_type): * mail-format.c (format_mime_part): * mail-account-gui.c (setup_service): Fix warnings. svn path=/trunk/; revision=9792
* Use secondary searches here, so that we control the interference betweenJon Trowbridge2001-05-145-73/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-14 Jon Trowbridge <trow@ximian.com> * folder-browser.c (folder_browser_config_search): Use secondary searches here, so that we control the interference between the two bits of searching UI. 2001-05-13 Jon Trowbridge <trow@ximian.com> * mail-search.c (mail_search_construct): Destroy the MailSearch dialog if the underlying MailDisplay is destroyed. I don't like the way that label in the dialog with the message subject in it looks, so I've #ifdef-ed it out for now. Center the Matches label --- it makes the dialog look more balanced, I think. (dialog_clicked_cb): Changed to reflect adjusted ESearchingTokenizer API, using primary searches. (toggled_case_cb): Use the primary search API. * e-searching-tokenizer.c: Make searching routines utf8-friendly. Rationalize how the match begin/end markup is handled; allow for begin/end markup that varies by search. Add concept of primary and secondary matching, to disentangle possible interactions between search-bar searches and search-dialog searches. svn path=/trunk/; revision=9789
* Get rid of this - we don't need it.Jeffrey Stedfast2001-05-144-7/+8
| | | | | | | | | | | | 2001-05-13 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (mail_local_storage_shutdown): Get rid of this - we don't need it. * component-factory.c (owner_unset_cb): Don't unref the LocalStore - we don't own a ref on it!! svn path=/trunk/; revision=9787
* Updates the subject on refresh and sets subject to "Untitled Message" ifDuncan Mak2001-05-143-26/+63
| | | | | | | | | | | | | 2001-05-13 Duncan Mak <duncan@ximian.com> * mail-search.c (begin_cb): Updates the subject on refresh and sets subject to "Untitled Message" if subject is NULL. (mail_search_construct): Moved msg_subject to its own GtkLabel, sets subject to "Untitled Message" if subject is NULL. Give focus to entry by default. Made <enter> in entry run dialog_clicked_cb by setting gnome_dialog_editable_enters. svn path=/trunk/; revision=9786
* my computer crashed while commiting this first time.Gediminas Paulauskas2001-05-123-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * folder-browser-factory.c: load pixmaps for MessageCopy and MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu> for a patch. 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * evolution-mail.xml: add pixmaps for MessageCopy and MessageForwardAttached. Thanks Wayne Davis <wfdavis@seas.upenn.edu> for a patch. 2001-05-12 Gediminas Paulauskas <menesis@delfi.lt> * po/POTFILES.in: update with new/moved files. also: Removed duplicated DATADIR in mail/Makefile.am fixed warning in e-search-bar.c in my recent code there svn path=/trunk/; revision=9783
* callback to use GNOME-VFS to load http data. (on_url_requested): HandleDan Winship2001-05-126-157/+303
| | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-display.c (load_http): callback to use GNOME-VFS to load http data. (on_url_requested): Handle http: URLs that refer to either MIME parts or web data. (mail_display_redisplay_when_loaded): Moved out of mail_content_loaded and made more generic. * mail-format.c (add_url): Handle two different kinds of URLs (URLs that point to CamelMimeParts and URLs that point to GByteArrays). (mail_content_loaded): Use mail_display_redisplay_when_loaded. (format_mime_part): Renamed from "call_handler_function". Also, record Content-Location if the part has one. (This is not yet 100% correct: it doesn't deal with relative URLs correctly.) (handle_text_html): Use Content-Location URL rather than Content-ID, when available (will help deal with relative URLs once GtkHTML supports that better). (etc): Update for changes. * mail-config.c (mail_config_get_http_mode, mail_config_set_http_mode): get/set HTTP image downloading mode. (config_read, mail_config_write_on_exit): save/load that data. svn path=/trunk/; revision=9773
* add protoJP Rosevear2001-05-126-4/+39
| | | | | | | | | | | | | | | | | | | | | | | 2001-05-11 JP Rosevear <jpr@ximian.com> * mail-importer.h: add proto * mail-importer.c (mail_importer_uninit): release and unref the local storage * mail-local.c (mail_local_store_finalize): use bonobo_object_release_unref rather than doing Bonobo_Unknow_unref and a corba release (register_folder_registered): "sink" the local_store ref to prevent circular ref (mail_local_storage_shutdown): unref the local store * mail-local.h: new proto * component-factory.c (owner_unset_cb): uninit the importer and shutdown the local storage svn path=/trunk/; revision=9768
* Set a title on the window "Reconfigure %s" where %s is the folder name.Jeffrey Stedfast2001-05-124-46/+88
| | | | | | | | | | | | | 2001-05-11 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (mail_local_reconfigure_folder): Set a title on the window "Reconfigure %s" where %s is the folder name. Also, don't allow more than one of these type windows to be opened per folder. * mail-tools.c (mail_tool_get_folder_name): Fix Danw's kludge to actually work :-) svn path=/trunk/; revision=9767
* sanitize LD_ADDS and CFLAGS so the libtool lines are shorter (fixesMartha Burke2001-05-122-3/+6
| | | | | | | | | 2001-05-11 Martha Burke <martha@ximian.com> * gui/Makefile.am: sanitize LD_ADDS and CFLAGS so the libtool lines are shorter (fixes problem on solaries due to sed) svn path=/trunk/; revision=9765
* Don't allow multiple copies of this to be run at a time.Jeffrey Stedfast2001-05-123-23/+87
| | | | | | | | | | | | | | | | 2001-05-11 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (vfolder_edit): Don't allow multiple copies of this to be run at a time. * mail-callbacks.c (providers_config): Don't allow multiple copies of this to be run at a time. (manage_subscriptions): Same, but this was a tad more kludgy since we don't gnome_dialog_run_and_close() this one. I had to make the widget a semi-global variable. yuck :\ (filter_edit): Same. svn path=/trunk/; revision=9762
* Remove a snippet of debugging code I left in by mistake.Jon Trowbridge2001-05-122-8/+5
| | | | | | | | | 2001-05-11 Jon Trowbridge <trow@ximian.com> * e-searching-tokenizer.c (e_searching_tokenizer_new): Remove a snippet of debugging code I left in by mistake. svn path=/trunk/; revision=9761
* If the cursor_uid is NULL, then we can't forward anything so just return.Jeffrey Stedfast2001-05-122-0/+12
| | | | | | | | | | 2001-05-11 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (forward_inlined): If the cursor_uid is NULL, then we can't forward anything so just return. (forward_quoted): Same. svn path=/trunk/; revision=9759
* I'm an idiot.Jon Trowbridge2001-05-111-1/+0
| | | | svn path=/trunk/; revision=9755
* Use the ESearchingTokenizer to highlight search matches for folder-levelJon Trowbridge2001-05-119-9/+1082
| | | | | | | | | | | | | | | | | | | | | 2001-05-10 Jon Trowbridge <trow@ximian.com> * folder-browser.c (folder_browser_config_search): Use the ESearchingTokenizer to highlight search matches for folder-level searches. Still mildly broken, but it works for the simple cases. * mail-display.c (mail_display_new): Use our ESearchingTokenizer for the mail display GtkHTML widget. * mail-search.c (dialog_clicked_cb): Use the ESearchingTokenizer to highlight search matches. (mail_search_construct): Add a match count to the search dialog. * e-searching-tokenizer.c (e_searching_tokenizer_set_search_string): Added. A custom HTML tokenizer that does highlighting of search strings. svn path=/trunk/; revision=9754
* No, we don't want to include bonobo-running-context.h... justJon Trowbridge2001-05-112-1/+6
| | | | | | | | | 2001-05-10 Jon Trowbridge <trow@ximian.com> * mail-config.c: No, we don't want to include bonobo-running-context.h... just bonobo-context.h. svn path=/trunk/; revision=9753
* Fix some compiler warnings by including the correct bonobo headers and byJeffrey Stedfast2001-05-113-23/+51
| | | | | | | | | | | 2001-05-10 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c: Fix some compiler warnings by including the correct bonobo headers and by using the correct bonobo types. (config_read): Some fixes so that we can never have an empty string as a URL. svn path=/trunk/; revision=9750
* Don't advance to the next undeleted message after "Delete"...Dan Winship2001-05-114-14/+37
| | | | | | | | | | | | | | | | | | | * folder-browser.c (on_key_press): Don't advance to the next undeleted message after "Delete"... * mail-callbacks.c (delete_msg): ...instead, do it here, whether the user used Delete, Alt+D, or the toolbar. (But only if they only deleted a single message.) * message-list.c (message_list_select): Don't clear the display on failure. (build_tree): Clear the display when the currently-selected message stops existing and we don't have an obvious message to select instead of it. (Eg, when deleting the last message with "hide deleted messages" set, or expunging while a deleted message is selected.) svn path=/trunk/; revision=9744
* New file, started by Ettore, finished by me, to implement theDan Winship2001-05-109-4/+453
| | | | | | | | | | | | | | | | | | * mail-offline-handler.c: New file, started by Ettore, finished by me, to implement the GNOME_Evolution_Offline interface. * Makefile.am (evolution_mail_SOURCES): Add mail-offline-handler.[ch] * mail-ops.c (mail_store_set_offline): Set a store online or offline. * mail-send-recv.c (auto_timeout): Don't run auto-check-for-mail while the session is offline. * component-factory.c (component_fn): Set up offline handler. svn path=/trunk/; revision=9739
* Made a const char * here.Christopher James Lahey2001-05-102-1/+7
| | | | | | | | | 2001-05-09 Christopher James Lahey <clahey@ximian.com> * importers/evolution-mbox-importer.c (load_file_fn): Made a const char * here. svn path=/trunk/; revision=9729
* Moved all references for the Mail.h and Bonobo stuff into the .c fileIain Holmes2001-05-093-18/+18
| | | | svn path=/trunk/; revision=9723
* Importer changesIain Holmes2001-05-0916-1421/+297
| | | | svn path=/trunk/; revision=9722
* Convert the Subject header to HTML and also make sure that the Subject,Jeffrey Stedfast2001-05-092-8/+22
| | | | | | | | | | | 2001-05-08 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_forward_message): Convert the Subject header to HTML and also make sure that the Subject, To, and From header values are non-NULL before feeding them into e_text_to_html(). svn path=/trunk/; revision=9718
* Free the UIDs if the user decides to not go through with editing all theJeffrey Stedfast2001-05-092-5/+40
| | | | | | | | | | | | | | | | | | 2001-05-08 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (edit_msg_internal): Free the UIDs if the user decides to not go through with editing all the messages he selected. (resend_msg): If the user attempts to resend more than 10 messages, make sure he really means it. (do_resend_messages): Richard Zach feels that "Resend" should open the message(s) in a composer since he might want to edit at least the recipients (maybe he needs to resend because the message bounced the first time) and Ettore wants pretty much the same thing. This makes "Resend" basically the same as "Edit" but for previously sent messages, whereas "Edit" is only for Drafts. svn path=/trunk/; revision=9717
* Removed EVOLUTION_VERSION from the rest of makefiles. use VERSION instead. SoGediminas Paulauskas2001-05-081-1/+0
| | | | | | | | you must include <config.h>, heh. and a stil-not-working "fix" for galview menus. svn path=/trunk/; revision=9707
* Fix for #2253 (search names not translated), mail-search i18n fixes.Gediminas Paulauskas2001-05-084-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * searches.xml: replace title> with _title>. Part of fix to #2253. 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * mail-search.c: convert search entry to utf8. * mail-local.c: d() debugging message. * mail-send-recv.c: replace " ..." with "..." * Makefile.am: removed EVOLUTION_VERSION. 2001-05-07 Gediminas Paulauskas <menesis@delfi.lt> * POTFILES.in: add mail/mail-search.c 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * misc/e-search-bar.c (add_dropdown), (set_option): first try to translate, then if not suceeded -- convert from utf8. This handles cases when menuitem needs to be translated (it is passed as N_()), or is utf8 search title. However you cannot have a search like "Folders" -- it is translated. Part of fix for #2253. * misc/e-filter-bar.c: d() debugging strings. Use E_FILTERBAR_ADVANCED macro instead of own "Advanced ..." for consistency. 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * filter-rule.c (xml_decode): allow "_title" in user rules. translate them and encode to utf8. (get_rule_part_widget): do not call gettext on part->title. It is always translated already. svn path=/trunk/; revision=9706
* s/HAVE_NSS/HAVE_SSL for the SSL checkbox stuff.Jeffrey Stedfast2001-05-082-2/+7
| | | | | | | | | 2001-05-07 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c: s/HAVE_NSS/HAVE_SSL for the SSL checkbox stuff. svn path=/trunk/; revision=9696
* Connect to key_press_event on the GtkHTML widget. (etree_key): Only handleDan Winship2001-05-083-34/+63
| | | | | | | | | | | | | | * folder-browser.c (my_folder_browser_init): Connect to key_press_event on the GtkHTML widget. (etree_key): Only handle space/backspace here, pass the rest off to on_key_press. (on_key_press): Handle Delete/N/P/Menu in either MessageList or MailDisplay. * message-list.c (message_list_select): Grab focus if we don't have it. svn path=/trunk/; revision=9694
* #include <camel/camel-file-utils.h>Dan Winship2001-05-045-8/+25
| | | | | | | | | | | | | | * message-list.c: #include <camel/camel-file-utils.h> * mail-ops.c (get_folderinfo_get): * subscribe-dialog.c (build_tree): Update for camel_store_get_folder_info prototype change. * mail-format.c (handle_text_plain_flowed): Improve more on the fix from the other day: the first level of indentation adds blank lines, but further levels don't... svn path=/trunk/; revision=9660
* Mockups of the inline send and receiving mail dialog; including one using ↵Anna Dirks2001-05-011-0/+534
| | | | | | icons, and one (designed for better scalability) using clists. svn path=/trunk/; revision=9633
* only remove event handlers if we set them up originally, to avoidDan Winship2001-04-301-4/+11
| | | | | | warnings from camel svn path=/trunk/; revision=9631
* Unhook event handlers before syncing the folder, since the folder browserDan Winship2001-04-302-1/+15
| | | | | | | | | * folder-browser.c (folder_browser_destroy): Unhook event handlers before syncing the folder, since the folder browser will have been destroyed by the time the sync thread completes and calls the signal handlers. svn path=/trunk/; revision=9630
* Mojo this a bit so that "\n\n>" gets translated to "<br><blockquote>"Dan Winship2001-04-302-8/+23
| | | | | | | | | | * mail-format.c (handle_text_plain_flowed): Mojo this a bit so that "\n\n>" gets translated to "<br><blockquote>" rather than "<br><br><blockquote>", since the transition to blockquote mode creates a blank line itself. Makes Mozilla-generated flowed replies look better. svn path=/trunk/; revision=9627
* Renamed from session.c and made to be a subclass of CamelSession.Dan Winship2001-04-285-226/+254
| | | | | | | | | | | * mail-session.c: Renamed from session.c and made to be a subclass of CamelSession. * mail-mt.c (mail_user_message): Renamed from mail_get_accept and made more general-purpose, to implement the new camel_session_alert_user. svn path=/trunk/; revision=9618
* No need to camel_shutdown() anymore...Jeffrey Stedfast2001-04-272-2/+2
| | | | | | | | 2001-04-26 Jeffrey Stedfast <fejj@ximian.com> * main.c (main): No need to camel_shutdown() anymore... svn path=/trunk/; revision=9610
* helps to spell right ;-)Jeffrey Stedfast2001-04-271-1/+1
| | | | svn path=/trunk/; revision=9608
* Don't filter on Seen status. (previous_msg): Same. (next_unread_msg): NewJeffrey Stedfast2001-04-273-2/+30
| | | | | | | | | | | | 2001-04-26 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (next_msg): Don't filter on Seen status. (previous_msg): Same. (next_unread_msg): New function that does what the old callback next_msg callback did (only better named). (previous_unread_msg): Same. svn path=/trunk/; revision=9605
* Updated to use camel-file-util routines. (hide_save_1): Same.Jeffrey Stedfast2001-04-272-17/+31
| | | | | | | | | | | 2001-04-26 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (hide_load_state): Updated to use camel-file-util routines. (hide_save_1): Same. (hide_save_state): And here too. svn path=/trunk/; revision=9601
* Remove UNICODE_CFLAGSDan Winship2001-04-262-2/+2
| | | | | | * Makefile.am (INCLUDES): Remove UNICODE_CFLAGS svn path=/trunk/; revision=9582
* Use <font color=...> to mark citations rather than italicizing them, whichDan Winship2001-04-262-4/+17
| | | | | | | | | * mail-format.c (handle_text_plain_flowed): Use <font color=...> to mark citations rather than italicizing them, which has never looked very nice. Now this is more consistent with the non-flowed case. svn path=/trunk/; revision=9581
* Added "MessageSearch" verb.Jon Trowbridge2001-04-267-2/+339
| | | | | | | | | | | | | | | | | | 2001-04-26 Jon Trowbridge <trow@ximian.com> * folder-browser-factory.c: Added "MessageSearch" verb. * mail-callbacks.c (search_msg): Added search callback. (are_you_sure): Added some casts to fix compiler warnings. * mail-search.c: Added. A simple search-in-message widget, that uses GtkHTML's searching capabilities. 2001-04-26 Jon Trowbridge <trow@ximian.com> * evolution-mail.xml: Added "Search Message" to "View" menu. svn path=/trunk/; revision=9575
* New foot-shooting-prevention helper function. (edit_msg_internal,Dan Winship2001-04-252-0/+36
| | | | | | | | | | | * mail-callbacks.c (are_you_sure): New foot-shooting-prevention helper function. (edit_msg_internal, view_msg): If the user has more than 10 messages selected, ask before opening them all in separate windows, to protect against misclicks/typos after "select all" (which we've had at least two reports of now). svn path=/trunk/; revision=9559
* signature changingRadek Doulik2001-04-255-32/+36
| | | | | | | | | | | | | | * signature changing 2001-04-25 Radek Doulik <rodo@ximian.com> * mail-tools.c (mail_tool_quote_message): set object data directly in HTML source * mail-callbacks.c (mail_generate_reply): remove \n from citation (mail_generate_reply): don't use e_msg_composer_mark_text_orig svn path=/trunk/; revision=9558
* Added a new signal, "message_loaded" that gets emitted when the messageJeffrey Stedfast2001-04-254-13/+59
| | | | | | | | | | | | | | | | | | | | | | | | 2001-04-24 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c: Added a new signal, "message_loaded" that gets emitted when the message has been loaded and set on the mail_display. (folder_browser_class_init): Define the "message_loaded" signal stuff. (done_message_selected): Emit the "message_loaded" signal here. * message-browser.c (message_browser_next_msg): Do our own message-list manipulation. We want the next message, not the next unread message. (message_browser_prev_msg): Same here but for previous. (message_browser_new): Connect to the folder browser's "message_loaded" signal. (message_browser_folder_loaded): Don't connect to the message-list's "message_selected" signal. (message_browser_message_loaded): Nw callback which replaces the old message_browser_message_selected callback's functionality. svn path=/trunk/; revision=9551
* Add accelerators to the context menu. (on_right_click): UseDan Winship2001-04-253-28/+73
| | | | | | | | | | | * folder-browser.c: Add accelerators to the context menu. (on_right_click): Use e_tree_get_cell_geometry and a GtkMenuPositionFunc when responding to a Menu-key press so we can line the menu up with the selected row rather than the cursor. * message-browser.c: include <gal/util/e-util.h> for E_MAKE_TYPE. svn path=/trunk/; revision=9547
* Removed attempts to use Radek's evil <DATA> hacks, which were just causingJon Trowbridge2001-04-243-37/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-04-23 Jon Trowbridge <trow@ximian.com> * e-html-utils.c (e_text_to_html_full): Removed attempts to use Radek's evil <DATA> hacks, which were just causing me (and GtkHTML) grief. 2001-04-23 Jon Trowbridge <trow@ximian.com> * gui/component/e-address-popup.c: Lots of code has been simplified here. (e_address_popup_factory_new_control): Rather than directly pop our control up in a window (via the e_address_popup_popup function, which is now gone), just return the widget and let the caller do the popping. This works better, since it means we don't have to work around the vagaries of bonobo focus & event handling. (e_address_popup_set_name): Refresh when both name & email have been set, rather than checking a stupid counter. (e_address_popup_set_email): Ditto. 2001-04-23 Jon Trowbridge <trow@ximian.com> * mail-display.c (html_button_press_event): Check for mailto: links, and pop up our mail address menu when we find one. (make_popup_window): The main piece of code (ignoring a zillion little callbacks) to pop up our windows with reasonable semantics for having them close automatically. (mail_text_write): Enable converting addresses to mailto links in message bodies. * mail-format.c (write_address): Simplify code, removing Radek's <DATA> hacks. Write out addresses as mailto: links. svn path=/trunk/; revision=9534
* Use the message-browser widget rather than the mail-view window.Jeffrey Stedfast2001-04-2411-267/+425
| | | | | | | | | | | | | | | | | | | 2001-04-23 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_view_message): Use the message-browser widget rather than the mail-view window. * mail-view.c: Removed. * folder-browser.c: Added a folder_loaded signal. * message-browser.[c,h]: New window to solve all our message browsing needs. This replaces mail-view.c. * message-list.c (message_list_select_uid): New function needed by the new message-browser window. svn path=/trunk/; revision=9525
* Append a "/" to the result of g_get_home_dir so gets the default dir itDan Winship2001-04-242-2/+9
| | | | | | | * mail-callbacks.c (save_msg): Append a "/" to the result of g_get_home_dir so gets the default dir it was supposed to. svn path=/trunk/; revision=9511
* ugh, don't bother checking if the header values are non-NULL - it doesn't ↵Jeffrey Stedfast2001-04-232-14/+3
| | | | | | hurt to set a NULL header. svn path=/trunk/; revision=9500
* Only set the X-Evolution-* header if that value is non-NULL.Jeffrey Stedfast2001-04-233-12/+33
| | | | | | | | | | | | | 2001-04-22 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (composer_get_message): Only set the X-Evolution-* header if that value is non-NULL. * mail-ops.c (mail_send_message): Lets do proper refcounting on the sent-folder. Also, g_strdup() the sent_folder_uri since we later free it. If we don't, then we get lovely corrupt memory. svn path=/trunk/; revision=9498
* Make sure we have a context before we try and use it.Jeffrey Stedfast2001-04-232-2/+10
| | | | | | | | | 2001-04-22 Jeffrey Stedfast <fejj@ximian.com> * mail-crypto.c (mail_crypto_pgp_mime_part_sign): Make sure we have a context before we try and use it. svn path=/trunk/; revision=9496
* use system = EVOLUTION_DATADIR "/file" instead of g_strdup_printf. RenameGediminas Paulauskas2001-04-228-34/+41
| | | | | | | | | | | | | | | | | 2001-04-22 Gediminas Paulauskas <menesis@delfi.lt> * folder-browser.c, mail-autofilter.c, mail-callbacks.c, mail-ops.c, mail-summary.c, mail-vfolder.c: use system = EVOLUTION_DATADIR "/file" instead of g_strdup_printf. Rename userrules to user (and system) to be consistent. * mail-send-recv.c: set window icon to send-receive.xpm 2001-04-21 Gediminas Paulauskas <menesis@delfi.lt> * mail-summary.c: translate "Mail summary". svn path=/trunk/; revision=9490
* Convert the result of g_get_real_name() from the locale charset to UTF8.Dan Winship2001-04-212-1/+7
| | | | | | | | * mail-config-druid.c (make_default_account): Convert the result of g_get_real_name() from the locale charset to UTF8. Noted by Petter Sundlöf (NOT "Petter Sundl_" :) svn path=/trunk/; revision=9481
* Use a CamelPgpType. (mail_config_get_pgp_type): Return a CamelPgpType.Jeffrey Stedfast2001-04-213-6/+90
| | | | | | | | | | 2001-04-20 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_set_pgp_type): Use a CamelPgpType. (mail_config_get_pgp_type): Return a CamelPgpType. (auto_detect_pgp_variables): auto-detect the user's pgp settings. svn path=/trunk/; revision=9479
* Fix a dumb thinko in my 04-11 patch.Dan Winship2001-04-212-1/+6
| | | | | | | * mail-format.c (handle_text_plain): Fix a dumb thinko in my 04-11 patch. svn path=/trunk/; revision=9477
* Convert subject from utf8 before passing it on.Dan Winship2001-04-202-5/+18
| | | | | | | * mail-ops.c: (send_mail_desc): Convert subject from utf8 before passing it on. svn path=/trunk/; revision=9474
* #if 0'd out my not-working selection codeGediminas Paulauskas2001-04-202-0/+11
| | | | | | | | 2001-04-20 Gediminas Paulauskas <menesis@delfi.lt> * mail-display.c: #if 0'd out my not-working selection code svn path=/trunk/; revision=9464
* Make this more raw: don't do URLs and citations.Dan Winship2001-04-192-3/+12
| | | | | | | * mail-format.c (mail_format_raw_message): Make this more raw: don't do URLs and citations. svn path=/trunk/; revision=9457
* Don't need to dup the string: the relevant gnome-dialog routine alreadyDan Winship2001-04-193-1/+17
| | | | | | | | | | * session.c (request_callback): Don't need to dup the string: the relevant gnome-dialog routine already does. * message-list.c (message_list_destroy): Free the uid_nodemap. (hide_save_state): Free the filename when we're done. svn path=/trunk/; revision=9452
* Implemented. (resend_msg): Use is_sent_folder().Jeffrey Stedfast2001-04-192-2/+66
| | | | | | | | | 2001-04-18 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (is_sent_folder): Implemented. (resend_msg): Use is_sent_folder(). svn path=/trunk/; revision=9449