aboutsummaryrefslogtreecommitdiffstats
path: root/mail
Commit message (Collapse)AuthorAgeFilesLines
* Don't let the user remove vtrash folders.Peter Williams2001-07-212-0/+8
| | | | | | | | | 2001-07-20 Peter Williams <peterw@ximian.com> * component-factory.c (storage_remove_folder): Don't let the user remove vtrash folders. svn path=/trunk/; revision=11267
* Fix DanW's fix. Pass the right arguments to mail_msg_destroy.Peter Williams2001-07-214-6/+41
| | | | | | | | | | | | | | | | | | | 2001-07-20 Peter Williams <peterw@ximian.com> * mail-mt.c (mail_msgport_replied): Fix DanW's fix. Pass the right arguments to mail_msg_destroy. * component-factory.c (component_fn): Don't populate the context menu; our only action didn't even work. (populate_folder_context_menu): Removed. ChangeFolderProperties needs a FolderBrowser which we don't have. It didn't even work before. * mail-local.c (mail_local_reconfigure_folder): Bring the creation of the hash table to the beginning to prevent warnings. Complain if the mailbox is non-local. svn path=/trunk/; revision=11266
* er, unbroke changelogJeffrey Stedfast2001-07-211-1/+0
| | | | svn path=/trunk/; revision=11265
* Don't expunge the source folder if we have a cache.Jeffrey Stedfast2001-07-214-11/+18
| | | | | | | | | 2001-07-20 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (filter_folder_filter): Don't expunge the source folder if we have a cache. svn path=/trunk/; revision=11264
* Use mail_msg_destroy rather than mail_msg_free, so the cancellationDan Winship2001-07-212-1/+7
| | | | | | | | * mail-mt.c (mail_msgport_replied): Use mail_msg_destroy rather than mail_msg_free, so the cancellation operation gets unregistered and doesn't leak two file descriptors. svn path=/trunk/; revision=11263
* Update this evolution:/local/ URI to evolution:/Local Folders/ to go alongJason Leach2001-07-202-1/+7
| | | | | | | | | | 2001-07-19 Jason Leach <jleach@ximian.com> * mail-summary.c (generate_html_summary): Update this evolution:/local/ URI to evolution:/Local Folders/ to go along with today's shell changes. svn path=/trunk/; revision=11253
* Fix #4605: "Save Image as" should be "Save Image as...".Jason Leach2001-07-202-2/+7
| | | | | | | | | 2001-07-19 Jason Leach <jleach@ximian.com> * mail-display.c: Fix #4605: "Save Image as" should be "Save Image as...". svn path=/trunk/; revision=11248
* Set the vertical scrolling policy for the mail display to AUTOMATIC, onlyJason Leach2001-07-204-6/+18
| | | | | | | | | | | | | | | | | | 2001-07-19 Jason Leach <jleach@ximian.com> * mail-display.c (mail_display_new): Set the vertical scrolling policy for the mail display to AUTOMATIC, only get a scrollbar if the e-mail is longer than one frame. * folder-browser.c (my_folder_browser_init): We were setting the policy twice (and to two different things). Removed this one. * message-list.c (message_list_init): Set the policy for the message list scroll frame to be horizontal=NEVER, vertical=AUTOMATIC (scrollbar only if you have >1 page of messages). svn path=/trunk/; revision=11239
* In camel:Peter Williams2001-07-203-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-19 Peter Williams <peterw@ximian.com> Policy change: NULL url's are no longer allowed in CamelFolderInfos. They used to signify that the folder was, in IMAP jargon, NoSelect; now the same effect is achieved by adding a "noselect=yes" parameter to the end of the URL. As far as I know, IMAP is the only affected provider. * providers/imap/camel-imap-store.c (delete_folder): New function. Implement folder deletion. (camel_imap_store_class_init): Set the delete_folder class function here. (get_folder_status): New function. Utility wrapper around the STATUS command. (create_folder): If the parent folder is NoSelect but is empty, delete it and recreate it as a a subfolder-containing folder. If it is NoSelect but contains messages, set an exception. (parse_list_response_as_folder_info): Always set the FolderInfo's URL, but add a NoSelect parameter if it isn't selectable. (get_folder_info_online): Change logic of removing the namespace to reflect URL change. Same for logic of checking unread counts. (get_folder_info_online): Use get_folder_status to simplify this. * camel-store.c (camel_folder_info_build): When creating dummy parents, copy the child's URL and set the NoSelect parameter. In mail: 2001-07-19 Peter Williams <peterw@ximian.com> Track the NoSelect changes in Camel. * mail-callbacks.c (create_folders): We don't need to check if the URL is NULL or not anymore. * component-factory.c (create_noselect_control): New function. Create a dummy control for folders that can't contain messages (ie \NoSelect) (create_view): If the URI says the folder is noselect, make a dummy control. FIXME: still should merge in the global UI elements. (xfer_folder): Don't allow the operation if the destination is NoSelect. (destination_folder_handle_motion): Ditto. (destination_folder_handle_drop): Ditto. svn path=/trunk/; revision=11237
* remove something notzed didn't mean to commitDan Winship2001-07-201-1/+1
| | | | svn path=/trunk/; revision=11228
* remvoed register/start/end etc code.Not Zed2001-07-195-318/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-19 Not Zed <NotZed@Ximian.com> * mail-local.c (reconfigure_folder_reconfigure): remvoed register/start/end etc code. * mail-ops.c (get_messages_desc): Add the count here. (get_messages_get): Remove the register/start code, its handled above us. (save_messages_desc): Added count. (save_messages_save): Removed register/start/end code. * mail-mt.c (mail_msg_received, mail_msg_destroy): Changed to use camel_operation rather than mail_status. (mail_msgport_received, mail_msgport_replied): Turn of the mail_status stuff, we dont need to report on stuff running in the gui thread right? (retrieve_shell_view_interface_from_control, set_view_data, mail_statusf, mail_status, mail_status_end, mail_status_start, status_timeout, do_del_status, set_status_op): removed now redundant stuff. (mail_msg_free): Removed reference to timeout_id. svn path=/trunk/; revision=11225
* partial checkin before completing the changesNot Zed2001-07-196-127/+137
| | | | | | | | | | | | | | | | | | | | 2001-07-18 Not Zed <NotZed@Ximian.com> * mail-local.c (reconfigure_folder_reconfigure): Changed to use camel_operation rathre than mail_status. (reconfigure_folder_describe): re-enabled this function. * mail-ops.c (get_messages_get): Changed to use camel-progress for status reporting. (save_messages_save): Likewise. 2001-07-17 Not Zed <NotZed@Ximian.com> * mail-mt.c (struct _mail_msg_priv, destroy_objects, mail_msg_new, mail_msg_free, do_op_status): Changed to use an EvolutionActivityClient for progress. svn path=/trunk/; revision=11223
* Remove this prototype for a function that was removed long ago.Jason Leach2001-07-192-4/+6
| | | | | | | | | | 2001-07-18 Jason Leach <jleach@ximian.com> * mail-tools.h (mail_tool_get_local_inbox_url): Remove this prototype for a function that was removed long ago. (mail_tool_get_local_movemail_url): Ditto. svn path=/trunk/; revision=11220
* [Simplifying how default account is stored and used internally, fixesJason Leach2001-07-197-82/+89
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-18 Jason Leach <jleach@ximian.com> [Simplifying how default account is stored and used internally, fixes possabilities of having multiple default accounts and things like deleting the current default account] * mail-account-gui.c (mail_account_gui_new): Update for new way of finding out the default account. (mail_account_gui_save): Ditto. * mail-accounts.c (load_accounts): Ditto. * mail-config-druid.c (make_default_account): Ditto. * mail-config.c: Added an int MailConfig::default_account, to be used instead of a 'default_account' boolean on each mail account. (mail_config_set_default_account_num): New function, facilitates things. * Mail.idl: removed the Account::default_account boolean. svn path=/trunk/; revision=11218
* Do what was suggested in #4596.Jeffrey Stedfast2001-07-193-32/+32
| | | | | | | | | 2001-07-18 Jeffrey Stedfast <fejj@ximian.com> * mail-tools.c (mail_tool_generate_forward_subject): Do what was suggested in #4596. svn path=/trunk/; revision=11210
* Add GTK_WIDGET to the charset picker. Reportedly prevent a craash forPeter Williams2001-07-192-1/+4
| | | | | | | | | 2001-07-18 Peter Williams <peterw@ximian.com> * mail-accounts.c (construct): Add GTK_WIDGET to the charset picker. Reportedly prevent a craash for someone... ? svn path=/trunk/; revision=11202
* Typo fix. Later: And actually fix the typo.Peter Williams2001-07-182-1/+2
| | | | | | | | | 2001-07-18 Peter Williams <peterw@ximian.com> * mail-config.glade: Typo fix. Later: And actually fix the typo. svn path=/trunk/; revision=11199
* Typo fix.Peter Williams2001-07-182-1/+5
| | | | | | | | 2001-07-18 Peter Williams <peterw@ximian.com> * mail-config.glade: Typo fix. svn path=/trunk/; revision=11198
* Setup the auto-receive here instead.Jeffrey Stedfast2001-07-183-2/+11
| | | | | | | | | | | | 2001-07-17 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (mail_delete): Setup the auto-receive here instead. * mail-config.c (mail_config_remove_account): Don't setup the auto-recv here. svn path=/trunk/; revision=11188
* Reset the autoreceive when necessary.Iain Holmes2001-07-183-0/+8
| | | | svn path=/trunk/; revision=11181
* Fix for last change: hide the entire widget, not just the entry.Jason Leach2001-07-183-4/+10
| | | | | | | | | 2001-07-17 Jason Leach <jleach@ximian.com> * mail-account-gui.c (source_type_changed): Fix for last change: hide the entire widget, not just the entry. svn path=/trunk/; revision=11178
* Fix to correctly handle text/uri-lists that contain more than a singleJeffrey Stedfast2001-07-183-53/+74
| | | | | | | | | | | | | | 2001-07-17 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (message_list_drag_data_recieved): Fix to correctly handle text/uri-lists that contain more than a single url. * component-factory.c (destination_folder_handle_drop): Fix to correctly handle text/uri-lists that contain more than a single url. svn path=/trunk/; revision=11174
* Make the Path: entry into a GnomeFileEntry so you get a nice "Browse..."Jason Leach2001-07-182-24/+40
| | | | | | | | | | 2001-07-17 Jason Leach <jleach@ximian.com> * mail-config.glade: Make the Path: entry into a GnomeFileEntry so you get a nice "Browse..." button that pops up a file selector to locate your mbox files. Bug #3501. svn path=/trunk/; revision=11170
* Cleaned up a bit. (handle_multipart_encrypted): Replace the encrypted partJeffrey Stedfast2001-07-183-19/+26
| | | | | | | | | | 2001-07-17 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_part_toggle_displayed): Cleaned up a bit. (handle_multipart_encrypted): Replace the encrypted part with the decrypted part. svn path=/trunk/; revision=11166
* Make a nicer delete account dialogIain Holmes2001-07-182-6/+11
| | | | svn path=/trunk/; revision=11161
* Use CAMEL_VTRASH_NAME.Jeffrey Stedfast2001-07-187-21/+28
| | | | | | | | | | | | | | | | 2001-07-17 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (init_trash): Use CAMEL_VTRASH_NAME. * mail-ops.c (add_vtrash_info): Use CAMEL_VTRASH_NAME. * folder-browser.c: turned off some debugging 2001-07-16 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (transfer_msg): Disallow vtrash for now... svn path=/trunk/; revision=11159
* Use g_strcasecmp() when looking for a Trash folder - it may be lowercaseJeffrey Stedfast2001-07-172-8/+20
| | | | | | | | | | 2001-07-16 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (add_vtrash_info): Use g_strcasecmp() when looking for a Trash folder - it may be lowercase or something funky. (transfer_messages_transfer): Special-case vtrash folders. svn path=/trunk/; revision=11142
* Use g_strcasecmp() when looking for a Trash folder - it may be lowercaseJeffrey Stedfast2001-07-174-28/+39
| | | | | | | | | | | | | | | | 2001-07-16 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (add_vtrash_info): Use g_strcasecmp() when looking for a Trash folder - it may be lowercase or something funky. * mail-local.c (init_trash): No need to specify the vfolder expression here. This code was moved into camel-vtrash-folder.c ages ago. * component-factory.c: Let VTrash folders accept/export the same dnd types as normal folders. svn path=/trunk/; revision=11140
* Let VTrash folders accept/export the same dnd types as normal folders.Jeffrey Stedfast2001-07-172-20/+26
| | | | | | | | | 2001-07-16 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c: Let VTrash folders accept/export the same dnd types as normal folders. svn path=/trunk/; revision=11134
* prototype outbox_folder so we can check if a folder is it.Peter Williams2001-07-172-4/+23
| | | | | | | | | | | | | 2001-07-16 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (outbox_folder): prototype outbox_folder so we can check if a folder is it. (make_folder_name): If the folder is the outbox, display the count of total messages as "unsent". (make_folder_status): If the folder is the outbox, display "unsent" instead of "total" svn path=/trunk/; revision=11132
* Use our own display_style member instead of the global setting.Peter Williams2001-07-178-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-16 Peter Williams <peterw@ximian.com> * mail-display.c (mail_display_redisplay): Use our own display_style member instead of the global setting. (mail_display_init): Initialize display_style. * mail-display.h: Include "mail-config.h" and add a display_style member. * mail-format.c (write_headers): Look at the MailDisplay's display_style instead of using the full_headers data. * folder-browser.c (folder_browser_set_message_display_style): Set the MailDisplay's display style as well as the global display style. (my_folder_browser_init): Don't save preference changes by default. (This is only observered wrt. the message display style but should apply to other items.) * folder-browser-factory.c (folder_browser_factory_new_control): Set this FB to save the preferences set in it. * folder-browser-ui.c (folder_browser_ui_add_message): Read our display's state instead of the global setting. svn path=/trunk/; revision=11131
* DUH. No need to update every folder if we set the folder browser to NULL.Peter Williams2001-07-162-5/+11
| | | | | | | | | | 2001-07-16 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (mail_folder_cache_set_folder_browser): DUH. No need to update every folder if we set the folder browser to NULL. svn path=/trunk/; revision=11128
* Call mail_autoreceive_setup() so that any changes to the list of accountsJeffrey Stedfast2001-07-162-0/+9
| | | | | | | | | | 2001-07-15 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Call mail_autoreceive_setup() so that any changes to the list of accounts will be respected the next time mail is checked. svn path=/trunk/; revision=11127
* Merged mine and Peter's entries.Jeffrey Stedfast2001-07-142-6/+6
| | | | | | | | 2001-07-13 Jeffrey Stedfast <fejj@ximian.com> * NEWS (Mail): Merged mine and Peter's entries. svn path=/trunk/; revision=11097
* Segfault prevention here if no uid is currently loaded.Peter Williams2001-07-142-6/+8
| | | | | | | | | 2001-07-13 Peter Williams <peterw@ximian.com> * mail-callbacks.c (expunge_folder): Segfault prevention here if no uid is currently loaded. svn path=/trunk/; revision=11093
* Segfault prevention here if we lose the race withPeter Williams2001-07-142-1/+5
| | | | | | | | | 2001-07-13 Peter Williams <peterw@ximian.com> * mail-callbacks.c (expunge_folder): Segfault prevention here if we lose the race with message_list_set_hidedeleted(). svn path=/trunk/; revision=11092
* New function. If a vfolder in our list gets finalized, NULL outPeter Williams2001-07-132-0/+28
| | | | | | | | | | | 2001-07-13 Peter Williams <peterw@ximian.com> * mail-vfolder.c (unlist_vfolder): New function. If a vfolder in our list gets finalized, NULL out info->folder (Is it wrong if this happens?) Also, locking issues? (vfolder_uri_to_folder): Hook up to the finalize event here. svn path=/trunk/; revision=11087
* Updated to reflect changes in the filter API by passing in the providedJeffrey Stedfast2001-07-132-0/+19
| | | | | | | | | | | | | | | | | | | | | | 2001-07-13 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (filter_folder_filter): Updated to reflect changes in the filter API by passing in the provided uid cache to camel_filter_driver_filter_folder. (mail_filter_folder): Set the cache to NULL. (mail_fetch_mail): Set the cache to NULL. (fetch_mail_fetch): If a cache exists for this folder, set it. When we are finished filtering the incoming messages, the logic changes a bit. We now save the cache if keep_on_server is set *or* if there was an exception this way if the user's download gets interrupted, he won't have to download all the messages again. (fetch_mail_fetch): Oh yea, and just so if we get an exception with `delete' turned on, the next time the user checks mail and an exception *doesn't* occur, it will go back and mark all the messages for deletion. svn path=/trunk/; revision=11086
* Updated to reflect changes in the filter API by passing in the providedJeffrey Stedfast2001-07-132-45/+64
| | | | | | | | | | | | | | | | | | 2001-07-13 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (filter_folder_filter): Updated to reflect changes in the filter API by passing in the provided uid cache to camel_filter_driver_filter_folder. (mail_filter_folder): Set the cache to NULL. (mail_fetch_mail): Set the cache to NULL. (fetch_mail_fetch): If a cache exists for this folder, set it. When we are finished filtering the incoming messages, the logic changes a bit. We now save the cache if keep_on_server is set *or* if there was an exception this way if the user's download gets interrupted, he won't have to download all the messages again. svn path=/trunk/; revision=11085
* Fix the importers if you try to import into an already existing directoryIain Holmes2001-07-132-20/+38
| | | | svn path=/trunk/; revision=11058
* Force-hide all deleted messages before expunging. (expunged_folder):Jeffrey Stedfast2001-07-132-25/+50
| | | | | | | | | | | 2001-07-12 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (expunge_folder): Force-hide all deleted messages before expunging. (expunged_folder): Restore the user's "hide deleted messages" preference. svn path=/trunk/; revision=11056
* Only blank the mail display if the message being viewed is one of those toJason Leach2001-07-132-1/+14
| | | | | | | | | | 2001-07-12 Jason Leach <jleach@ximian.com> * mail-callbacks.c (expunge_folder): Only blank the mail display if the message being viewed is one of those to be expunged. Bug #4030. svn path=/trunk/; revision=11052
* Should be saving the 'identity_html_signature' andJason Leach2001-07-132-2/+9
| | | | | | | | | | | 2001-07-12 Jason Leach <jleach@ximian.com> * mail-config.c (config_read): Should be saving the 'identity_html_signature' and 'identity_has_html_signature" keys in the /Mail/Accounts prefix (with the rest of the per-account stuff, not on it's own) svn path=/trunk/; revision=11051
* 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