Commit Graph

2436 Commits

Author SHA1 Message Date
80ba32b987 slight build fixes
svn path=/trunk/; revision=17304
2002-06-26 22:25:10 +00:00
47400a031c Don't allow the pgp type to be anything except NONE or GPG.
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-26 21:14:09 +00:00
978b21733a Also handle https urls.
2002-06-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (on_url_requested): Also handle https urls.

svn path=/trunk/; revision=17280
2002-06-25 21:50:30 +00:00
83f5888387 Some compiler warning fixes.
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-25 19:55:00 +00:00
34993bc0fe If the pgp type is gpg, then use the gpg context.
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-22 04:56:05 +00:00
c0f7c70b8a New convenience function to find the first parent node that is visible and
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-18 20:49:16 +00:00
6bd5d23da7 New convenience function to get a cached normalised string.
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 19:58:22 +00:00
e8a1d5b72d If we dont support searching, dont try to.
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-17 11:29:10 +00:00
0469ab8eff Move m->complete = TRUE; to within the cancel-check block, this way
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 20:54:12 +00:00
ce2082b3ee If we dont get a folder, dont try and get details off it. Should get rid
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-11 04:54:17 +00:00
84e8edcda2 Comment out the code to add/remove the store to the folder-tree when it
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-10 22:44:42 +00:00
39e79a2464 call mail_config_init to be sure we have the db, save auto_signature as
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 21:27:59 +00:00
b17c20520e If we are doing Reply-to-All, do not include any of the user's email
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-10 21:10:57 +00:00
32a3fdfe3d hook this to cancel button in signature script dialog
2002-06-07  Radek Doulik  <rodo@ximian.com>

	* mail-composer-prefs.c (sig_add_script_cancel): hook this to
	cancel button in signature script dialog

svn path=/trunk/; revision=17150
2002-06-07 20:15:19 +00:00
31f6fe3aaf fix some typos, set label usize to 500, -2 (menu_help): added help link to
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-07 19:54:47 +00:00
f2db905c7b script signatures
svn path=/trunk/; revision=17144
2002-06-07 18:10:39 +00:00
e0a6088f33 If this account is not a completely new account (ie, it is an edited
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 20:56:43 +00:00
274a969925 disable edit and delete when there are no signatures defined
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 17:17:24 +00:00
f6956dfe32 enhanced signature editor
svn path=/trunk/; revision=17132
2002-06-06 15:54:39 +00:00
a58c048d65 Keep track of the regeneration request in a list. (regen_list_free):
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-06 09:49:14 +00:00
9ce5b00386 Don't forget to free the date string buffer.
2002-06-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (mail_get_message_rfc822): Don't forget to free
	the date string buffer.

svn path=/trunk/; revision=17127
2002-06-05 22:47:08 +00:00
7c0ae30997 use gtk string instead of utf8 one
2002-06-05  Radek Doulik  <rodo@ximian.com>

	* mail-composer-prefs.c (sig_fill_clist): use gtk string instead
	of utf8 one

svn path=/trunk/; revision=17121
2002-06-05 19:30:18 +00:00
ee96e37629 signature editor reworked, WIP
svn path=/trunk/; revision=17117
2002-06-05 15:43:50 +00:00
4c20fe02c4 The following changes take a great leap toward fixing bug #1042.
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 23:58:22 +00:00
18bbb3ccc1 Added priorities.
2002-06-04  Christopher James Lahey  <clahey@ximian.com>

	* message-list.etspec: Added priorities.

svn path=/trunk/; revision=17110
2002-06-04 21:25:23 +00:00
b201336663 Set the title of our GalViewCollection.
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 12:35:50 +00:00
01ff3aebd2 Duh, we want to set the news_edit/delete buttons for the news page, not
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 07:47:23 +00:00
71bc52621f Write the signature after the account has been added. (sig_new_html):
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-04 05:00:00 +00:00
ea7ed64281 Correctly get the GtkWindow ancestor of the prefs widget.
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-04 03:37:54 +00:00
9773d74ec1 Changed to check everything from the composer before the message is
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-04 00:06:36 +00:00
17bd1b5a45 Prompt the user to see if he really wants to quit when there are queued
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-03 21:54:54 +00:00
aa3bfbe422 Implement, return a text description of the localfolder.
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-03 02:52:32 +00:00
777190afa0 make these citations as well.
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-06-02 21:47:34 +00:00
9c95fa77bf Changed to handle new multipart-signed type.
2002-05-31  Not Zed  <NotZed@Ximian.com>

        * mail-format.c (handle_multipart_signed): Changed to handle new
        multipart-signed type.

svn path=/trunk/; revision=17055
2002-05-31 00:54:04 +00:00
81407e7405 Noop if we are in offline mode.
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-30 21:55:01 +00:00
04cef4a94f Protect against NULL stores. Fixes bug #25456.
2002-05-30  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (store_disconnect): Protect against NULL
	stores. Fixes bug #25456.

svn path=/trunk/; revision=17048
2002-05-30 20:28:12 +00:00
364b63a5e7 Oops, create a message-browser window here, not a folder-browser-window
2002-05-30  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (view_msg): Oops, create a message-browser
	window here, not a folder-browser-window window.

svn path=/trunk/; revision=17047
2002-05-30 20:03:11 +00:00
13e7847dc1 moved spell checking options to separate page, updated UI by Anna's design
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-29 22:13:18 +00:00
48e19b8e4d use _ instead of U_ for clist
2002-05-29  Radek Doulik  <rodo@ximian.com>

	* mail-accounts.c (mail_accounts_load): use _ instead of U_ for
	clist

svn path=/trunk/; revision=17035
2002-05-29 19:21:13 +00:00
ab3174aaef Revert a failed idea.
2002-05-28  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser-window.c (folder_browser_window_new): Revert a
	failed idea.

svn path=/trunk/; revision=17026
2002-05-28 21:16:16 +00:00
be5f3c160c ops, revert array size
2002-05-24  Radek Doulik  <rodo@ximian.com>

	* mail-composer-prefs.c (mail_composer_prefs_construct): ops,
	revert array size

svn path=/trunk/; revision=17011
2002-05-24 19:55:16 +00:00
f836bed249 If we can't find the mailing list address in the recipients list, just
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-24 06:37:30 +00:00
a70ed5cf83 Set the ui to be the evolution-mail-global.xml file thingy. Still broken
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 21:34:23 +00:00
52d4565416 (mail_composer_prefs_construct): add auto smiley check button
svn path=/trunk/; revision=16990
2002-05-23 20:31:59 +00:00
18b4f29daa If the folder-browser has a parent, reparent it.
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-23 20:22:42 +00:00
2aef04318c added smileys checkbutton
svn path=/trunk/; revision=16988
2002-05-23 19:37:48 +00:00
3f4937a50c be more careful about language_str{_orig}
2002-05-23  Radek Doulik  <rodo@ximian.com>

	* mail-composer-prefs.c: be more careful about language_str{_orig}

svn path=/trunk/; revision=16987
2002-05-23 19:28:06 +00:00
3077181e8f remove a #include "camel-remote-store.h"
svn path=/trunk/; revision=16981
2002-05-22 23:23:05 +00:00
f4d6507475 Only clear the text/html signature menus if they are non-NULL.
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 21:56:45 +00:00
2b98861f86 Only clear the text/html signature menus if they are non-NULL.
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
2002-05-21 21:54:58 +00:00