2002-06-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (config_read): Don't allow the pgp type to be
anything except NONE or GPG.
* mail-preferences.c (mail_preferences_apply): Don't allow someone
to use anything other than GnuPG.
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): No need to
handle pgp5 or pgp6 types anymore since we are no longer
supporting them. Ding dong the witch is dead!
* mail-format.c (handle_multipart_encrypted): Rewritten to use
camel_multipart_encrypted_decrypt.
* mail-crypto.c (mail_crypto_pgp_mime_part_verify): Removed.
(mail_crypto_pgp_mime_part_encrypt): Removed.
(mail_crypto_pgp_mime_part_decrypt): Are we seeing a trend yet?
svn path=/trunk/; revision=17301
2002-06-25 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (mail_add_storage): Some compiler warning
fixes.
* mail-crypto.c (mail_crypto_pgp_mime_part_sign): Removed.
(mail_crypto_get_pgp_cipher_context): New convenience function to
construct a pgp cipher context.
(mail_crypto_pgp_mime_part_verify): Use the new
get_pgp_cipher_context function.
(mail_crypto_pgp_mime_part_encrypt): Same.
(mail_crypto_pgp_mime_part_decrypt): Here too.
* mail-account-gui.c (mail_account_gui_new): Initialise the
pgp_always_trust checkbox.
(mail_account_gui_save): Get whether or not to always_trust the
user's pgp keys.
* mail-config.c (account_copy): Copy over the pgp_always_trust
option.
(config_read): Read in the always_trust option.
(mail_config_write): Save the always_trust option.
svn path=/trunk/; revision=17277
2002-06-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-crypto.c (mail_crypto_pgp_mime_part_verify): If the pgp
type is gpg, then use the gpg context.
(mail_crypto_pgp_mime_part_sign): Same.
(mail_crypto_pgp_mime_part_encrypt): Same.
(mail_crypto_pgp_mime_part_decrypt): Same.
* mail-format.c (handle_multipart_signed): Use the new gpg cipher
context.
svn path=/trunk/; revision=17253
2002-06-18 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (message_list_change_first_visible_parent): New
convenience function to find the first parent node that is visible
and emit a changed signal on it.
(main_folder_changed): If a message changed, call
change_first_visible_parent() in case we are in a collapsed thread
so that our first visible parent gets updated as well. Fixes bug
#26263.
* component-factory.c (storage_remove_folder): Simplify the error
checking.
svn path=/trunk/; revision=17228
2002-06-17 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (get_normalised_string): New convenience function
to get a cached normalised string.
(subject_compare): Removed, as we strip Re:'s when normalising the
subject strings now.
(ml_tree_value_at): Added support for the normalised columns (used
for a sorting optimisation).
(message_list_init): Initialise normalised_hash.
(message_list_destroy): Destroy normalised_hash.
(message_list_create_extras): Removed subject_compare.
(main_folder_changed): De-cache normalised strings for any removed
uids.
svn path=/trunk/; revision=17213
2002-06-17 Not Zed <NotZed@Ximian.com>
* message-list.c (regen_list_regen): If we dont support searching,
dont try to.
svn path=/trunk/; revision=17208
2002-06-11 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (regen_list_regen): Move m->complete = TRUE; to
within the cancel-check block, this way complete only ever gets
set to TRUE if we weren't cancelled. I assume this is how it was
supposed to work.
svn path=/trunk/; revision=17169
2002-06-11 Not Zed <NotZed@Ximian.com>
* folder-info.c (do_get_info): If we dont get a folder, dont try
and get details off it. Should get rid of most of those annoying
summary warnings, but not the cause of them.
2002-06-06 Not Zed <NotZed@Ximian.com>
* message-list.c (mail_regen_list): Keep track of the regeneration
request in a list.
(regen_list_free): Remove the request from the regenreation list.
(message_list_set_folder): If there are any outstanding
regneration requests, cancel them.
(regen_list_regened): If we were cancelled, do nothing.
(regen_list_regen): If we were cancelled, shortcut processing.
This is all for #23571.
* message-list.c (regen_list_regen): Change the way we calculate
the hide deleted messages and tree view options. Do it based on a
search and uid's rather than a summary.
(regen_list_regened): Handle changes to tree storage.
(mail_regen_list): The tree is now stored between updates, so we
can update the tree structure incrementally. This blows out
memory use some however. We need an etree that uses this as its
model directly?
(message_list_destroy): Free the thread tree.
(message_list_set_folder): Clear the thread tree when changing
folder.
svn path=/trunk/; revision=17165
2002-06-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_able_clicked): Comment out the code to
add/remove the store to the folder-tree when it gets
enabled/disabled.
svn path=/trunk/; revision=17162
2002-06-07 Radek Doulik <rodo@ximian.com>
* mail-config.c (mail_config_write_account_sig): call
mail_config_init to be sure we have the db, save auto_signature as
well
svn path=/trunk/; revision=17161
2002-06-10 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): If we are doing
Reply-to-All, do not include any of the user's email accounts in
the To: field. If, after this, the To: field is empty - then
promote the first recipient in the Cc: list to the To: field.
svn path=/trunk/; revision=17158
2002-06-07 Radek Doulik <rodo@ximian.com>
* mail-signature-editor.c (mail_signature_editor): fix some typos,
set label usize to 500, -2
(menu_help): added help link to Help menu
svn path=/trunk/; revision=17148
2002-06-06 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): If this account is
not a completely new account (ie, it is an edited account), then
remove any trace of it from the shell storages. If the new account
belongs in the folder-tree, add it to the list of storages.
* component-factory.c (mail_add_storage): New function to add a
single storage.
svn path=/trunk/; revision=17138
2002-06-06 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): disable
edit and delete when there are no signatures defined
svn path=/trunk/; revision=17133
2002-06-06 Not Zed <NotZed@Ximian.com>
* message-list.c (mail_regen_list): Keep track of the regeneration
request in a list.
(regen_list_free): Remove the request from the regenreation list.
(message_list_set_folder): If there are any outstanding
regneration requests, cancel them.
(regen_list_regened): If we were cancelled, do nothing.
(regen_list_regen): If we were cancelled, shortcut processing.
This is all for #23571.
svn path=/trunk/; revision=17129
2002-06-04 Jeffrey Stedfast <fejj@ximian.com>
The following changes take a great leap toward fixing bug #1042.
* mail-display.c (mail_display_push_content_location): New
function to push a Content-Location value onto the MailDisplay.
(mail_display_get_content_location): Gets the current
Content-Location CamelURL value.
(mail_display_pop_content_location): Pop the Content-Location off
the stack.
* mail-format.c (get_location): Do URL merging if the
Content-Location isn't a full URL. If the Content-Location doesn't
exist, pretend the URL is actually the Content-Location URL of our
parent multipart (assuming it exists). If that doesn't exist, then
yes - return NULL.
(handle_multipart_related): Push the Content-Location header value
of the multipart/related so that we can do URL merging in
get_location() as we process each of the subparts. When we're
done, pop it back off the stack.
svn path=/trunk/; revision=17113
2002-06-04 Christopher James Lahey <clahey@ximian.com>
* folder-browser-ui.c (folder_browser_ui_setup_view_menus): Set
the title of our GalViewCollection.
svn path=/trunk/; revision=17104
2002-06-04 Not Zed <NotZed@Ximian.com>
* mail-accounts.c (mail_accounts_tab_construct): Duh, we want to
set the news_edit/delete buttons for the news page, not overwrite
the mail ones! That would've saved a bit of angst ...
* mail-config-druid.c (extra_prepare): dont call build_extra_conf,
otherwise it blows away any settings with defaults.
svn path=/trunk/; revision=17098
2002-06-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Write the signature
after the account has been added.
(sig_new_html): Don't write the signatures at this time.
(sig_new_text): Same.
svn path=/trunk/; revision=17096
2002-06-03 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_delete_clicked): Correctly get the
GtkWindow ancestor of the prefs widget.
svn path=/trunk/; revision=17095
2002-06-03 Not Zed <NotZed@Ximian.com>
* mail-callbacks.c (composer_get_message): Changed to check
everything from the composer before the message is requested.
Otherwise we could end up signing/encrypting it twice, etc.
* mail-format.c (handle_multipart_signed): removed some dead wood.
svn path=/trunk/; revision=17094
2002-06-03 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (request_quit): Prompt the user to see if he
really wants to quit when there are queued messages in the Outbox.
svn path=/trunk/; revision=17089
2002-06-01 Not Zed <NotZed@Ximian.com>
* mail-local.c (mlf_getv): Implement, return a text description of
the localfolder.
* message-list.c (ml_duplicate_value):
(ml_free_value):
(ml_initialize_value):
(ml_value_is_empty):
(ml_value_to_string):
(ml_tree_value_at): Implement COL_LOCATION, original location of
message (useful for vfolder).
svn path=/trunk/; revision=17072
2002-06-02 Larry Ewing <lewing@ximian.com>
* mail-tools.c (mail_tool_quote_message): make these citations as
well.
* mail-format.c (handle_text_plain_flowed): make these blockquotes
into citations.
svn path=/trunk/; revision=17070
2002-05-30 Jeffrey Stedfast <fejj@ximian.com>
* mail-send-recv.c (mail_send_receive): Noop if we are in offline
mode.
* component-factory.c (mail_remove_storage): If the store is not
in the storage hash, then it must not have ever been added. Fixes
bug #25456.
svn path=/trunk/; revision=17052
2002-05-29 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c: moved spell checking options to separate
page, updated UI by Anna's design
* mail-accounts.c (mail_accounts_load): use _ instead of U_ for
clist
(mail_accounts_tab_construct): justify marks column to right
svn path=/trunk/; revision=17041
2002-05-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (mail_generate_reply): If we can't find the
mailing list address in the recipients list, just Reply-to-All
instead.
svn path=/trunk/; revision=16998
2002-05-23 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-window.c (folder_browser_window_new): Set the ui
to be the evolution-mail-global.xml file thingy. Still broken but
oh well. I give up. bonobo-ui sucks.
* message-browser.c (set_bonobo_ui): Fixed to not crash.
svn path=/trunk/; revision=16994
2002-05-23 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-window.c (folder_browser_window_new): If the
folder-browser has a parent, reparent it.
* message-browser.[c,h]: Revert back to the old broken
implementation since that's what users want. They're not happy
unless it's broken.
svn path=/trunk/; revision=16989
2002-05-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (sig_fill_options): Only clear the text/html
signature menus if they are non-NULL.
svn path=/trunk/; revision=16973
2002-05-21 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (sig_fill_options): Only clear the text/html
signature menus if they are non-NULL.
svn path=/trunk/; revision=16972