Commit Graph

452 Commits

Author SHA1 Message Date
d5898b33c7 Use the new CamelMultipartEncrypted class to do our encryption work for
2002-06-26  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Use the new
	CamelMultipartEncrypted class to do our encryption work for us. We
	also need to always get the user's userid before encrypting since
	pgp/gpg need that.
	(e_msg_composer_new_with_message): Handle multipart/signed and
	multipart/encrypted parts by adding the (decrypted) content and
	setting the composer to pgp sign/encrypt the message when the user
	re-sends it.

svn path=/trunk/; revision=17306
2002-06-27 00:08:17 +00:00
26fb05c8cb Use the new CamelMultipartEncrypted class to do our encryption work for
2002-06-26  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Use the new
	CamelMultipartEncrypted class to do our encryption work for us. We
	also need to always get the user's userid before encrypting since
	pgp/gpg need that.

svn path=/trunk/; revision=17300
2002-06-26 20:39:26 +00:00
5a70e4fee0 Use mail_crypto_get_pgp_cipher_context() so that the PGP/GPG decision is
2002-06-25  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Use
	mail_crypto_get_pgp_cipher_context() so that the PGP/GPG decision
	is done for us.

svn path=/trunk/; revision=17278
2002-06-25 19:55:27 +00:00
ef162bbe12 Use the new gpg cipher context rather than the old pgp context.
2002-06-21  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Use the new gpg cipher context
	rather than the old pgp context.

svn path=/trunk/; revision=17254
2002-06-22 04:56:32 +00:00
4c9a2140b4 don't convert text to html twice
2002-06-19  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (get_signature_html): don't convert text to
	html twice

svn path=/trunk/; revision=17239
2002-06-19 19:55:04 +00:00
6e1b4aa52b added "Set as default" menu item
2002-06-10  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (signature_cb): added "Set as default" menu
	item

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_from_omenu): new
	method
	(e_msg_composer_hdrs_set_from_account): use
	e_msg_composer_hdrs_get_from_omenu

svn path=/trunk/; revision=17160
2002-06-10 21:26:18 +00:00
b84f0a894b use new script signature interface
2002-06-07  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (get_signature_html): use new script signature
	interface

svn path=/trunk/; revision=17143
2002-06-07 18:09:10 +00:00
432ba0b3dd Agh, priv->from.entry is no longer a GtkOptionMenu - it is an hbox
2002-06-06  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account):
	Agh, priv->from.entry is no longer a GtkOptionMenu - it is an hbox
	containing the GtkOptionMenu.

svn path=/trunk/; revision=17136
2002-06-06 19:28:21 +00:00
f64614f29c Remove the customize toolbar thingy since Michael said that this would fix
2002-06-06  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (setup_ui): Remove the customize toolbar thingy
	since Michael said that this would fix bug #17952.

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account):
	Clean up the logic in this. For one, we don't need to do strstr
	using the account address (wtf??).

svn path=/trunk/; revision=17134
2002-06-06 19:19:43 +00:00
5706b15132 put option menu to hbox to make space for signatures menu
2002-06-05  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer-hdrs.c (create_from_optionmenu): put option menu
	to hbox to make space for signatures menu
	(e_msg_composer_hdrs_get_from_hbox): new helper function

	* e-msg-composer.c: moved signatures from menu to option menu next
	to From:

svn path=/trunk/; revision=17126
2002-06-05 21:16:41 +00:00
ee96e37629 signature editor reworked, WIP
svn path=/trunk/; revision=17117
2002-06-05 15:43:50 +00:00
b0d3a768d1 Properly handle user cancellation for signing/encrypting, just dont sign
2002-06-03  Not Zed  <NotZed@Ximian.com>

        * e-msg-composer.c (build_message): Properly handle user
        cancellation for signing/encrypting, just dont sign but create
        anyway.
        (e_msg_composer_get_subject): Wrapper function to get the subject
        from the header object.
        (e_msg_composer_get_to):
        (e_msg_composer_get_cc):
        (e_msg_composer_get_bcc): Same for the destination types.

svn path=/trunk/; revision=17091
2002-06-04 00:03:30 +00:00
d2f3c35bbf Allocate a new FileInfo struct here rather than using and unref it when
2002-06-03  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_guess_mime_type): Allocate a
	new FileInfo struct here rather than using and unref it when we're
	finished with it.

svn path=/trunk/; revision=17090
2002-06-03 22:40:05 +00:00
16b71d4271 Use gnome_vfs_file_info_clear() instead of gnome_vfs_file_info_unref() so
2002-06-03  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_guess_mime_type): Use
	gnome_vfs_file_info_clear() instead of gnome_vfs_file_info_unref()
	so that we don't try and free static data.

svn path=/trunk/; revision=17085
2002-06-03 18:33:50 +00:00
29a8c80e93 Changes for multipart/signed api changes.
2002-05-30  Not Zed  <NotZed@Ximian.com>

        * e-msg-composer.c (build_message): Changes for multipart/signed api changes.

svn path=/trunk/; revision=17056
2002-05-31 00:55:55 +00:00
9b864ecd40 New. (create_component): Pass it as the @request_quit_fn to
* component-factory.c (request_quit): New.
(create_component): Pass it as the @request_quit_fn to
evolution_shell_component_new().

* e-msg-composer.c: New local `all_composers'; keeps a list of all
the composer windows created.  Changed type of `parent_class' to
BonoboWindowClass *.
(do_exit): Cleaned up a bit.  Raise the composer window before
showing the message box dialog.
(exit_dialog_cb): Removed.
(e_msg_composer_request_close_all): New.
(create_composer): Add the composer to the all_composers list and
weakref it.
(msg_composer_destroy_notify): GtkDestroyNotify function for the
composer's weakref; remove the composer from the all_composers
list.

svn path=/trunk/; revision=16930
2002-05-16 14:42:37 +00:00
80836cd387 Just use g_basename.
2002-05-15  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
	Just use g_basename.

svn path=/trunk/; revision=16926
2002-05-15 22:44:22 +00:00
041d28472c fixed a type-o
svn path=/trunk/; revision=16597
2002-04-26 19:08:59 +00:00
c31584940d Check for empty-string pgp-key ids and don't use them.
2002-04-26  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Check for empty-string pgp-key
	ids and don't use them.

svn path=/trunk/; revision=16596
2002-04-26 19:03:35 +00:00
91259ad3c0 Unref the priv->tooltips object here.
2002-04-16  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-hdrs.c (destroy): Unref the priv->tooltips object
	here.

	* e-msg-composer-attachment-bar.c (destroy): Free the priv struct.

	* e-msg-composer.c (set_editor_signature): We don't need a 'name'?
	So don't strdup it.

svn path=/trunk/; revision=16485
2002-04-17 02:16:58 +00:00
c49683a6da Change the Reply-To header contents. (e_msg_composer_hdrs_set_reply_to):
2002-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-hdrs.c (from_changed): Change the Reply-To header
	contents.
	(e_msg_composer_hdrs_set_reply_to): The Reply-To entry was an
	EEntry, not a bonobo control so fix this to set the text using
	e_entry_set_text.
	(e_msg_composer_hdrs_get_reply_to): Use e_entry_get_text here for
	the same reason.

svn path=/trunk/; revision=16445
2002-04-12 05:50:16 +00:00
f6b7c9d6e5 No need to query for the persist-stream interface here, just re-use
2002-04-08  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (set_editor_text): No need to query for the
	persist-stream interface here, just re-use
	composer->persist_stream_interface - this might improve the speed
	at which a reply action brings up the composer.

svn path=/trunk/; revision=16425
2002-04-10 19:38:56 +00:00
73f6d42fbd Use decode rather than unformat - the e_destination was changed (long time
2002-04-09  Not Zed  <NotZed@Ximian.com>

        * e-msg-composer-hdrs.c (set_recipients_from_destv): Use decode
        rather than unformat - the e_destination was changed (long time
        ago) to rfc2047 encode the addresses, so we should decode
        likewise.  Should fix #16158.

        * e-msg-composer.c (next_word): g_utf8_next_char never returns
        NULL, it just skips to the next character.  So like normal string
        code, we just check for a nul explicitly.  Fixes a bug found while
        checking #16158.

svn path=/trunk/; revision=16396
2002-04-09 14:07:41 +00:00
851c96fac4 added some debug printf's
svn path=/trunk/; revision=16388
2002-04-08 06:42:03 +00:00
c2c91ffed7 Fixes bug #3980.
2002-04-05  Jeffrey Stedfast  <fejj@ximian.com>

	Fixes bug #3980.

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_cc): If a Cc list
	is set to something non-empty, make sure to show the Cc widgets.
	(e_msg_composer_hdrs_set_bcc): Same but for Bcc.
	(e_msg_composer_hdrs_set_reply_to): And here.

svn path=/trunk/; revision=16366
2002-04-05 23:50:14 +00:00
8875ca4adc ignore .pure
svn path=/trunk/; revision=16312
2002-04-01 20:27:03 +00:00
7fd8357af6 From composer/ChangeLog:
2002-03-28  Christopher James Lahey  <clahey@ximian.com>

	* e-msg-composer-select-file.c: Switch to using EFileSelection
	here instead of GtkFileSelection.

svn path=/trunk/; revision=16276
2002-03-28 20:52:35 +00:00
bf18d5315f fix for the changes to GTKHTML_DATADIR that include the release number.
2002-03-27  Larry Ewing  <lewing@ximian.com>

	* Makefile.am: fix for the changes to GTKHTML_DATADIR that include
	the release number.

svn path=/trunk/; revision=16272
2002-03-28 05:13:12 +00:00
16af96a2ab "Forward as iCalendar" uses set_body, so we can't make the composer
* Evolution-Composer.idl, evolution-composer.c
	(impl_Composer_show): "Forward as iCalendar" uses set_body, so we
	can't make the composer un-showable after doing that. So get rid
	of the "cannot show" exception.

	* e-msg-composer.c (e_msg_composer_set_body): Prepare the composer
	to be shown in its weird state: Put an explanatory message in the
	body, then call disable_editor.
	(disable_editor): Common editor-disabling code - makes the editor
	and attachment bar insensitive and disables any menu items that
	could be used to modify them.
	(e_msg_composer_new_redirect): Use disable_editor here now.

svn path=/trunk/; revision=16191
2002-03-18 16:52:27 +00:00
7947a64780 use gtkhtml editor API version 1.1
2002-03-15  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c: use gtkhtml editor API version 1.1

svn path=/trunk/; revision=16173
2002-03-15 16:52:46 +00:00
10cc77f42a Remove the extremely verbose printf here.
* listener.c (impl_event): Remove the extremely verbose printf
	here.

svn path=/trunk/; revision=16100
2002-03-11 18:09:11 +00:00
654b9618c8 ops, unregister and not register new one sig_event_client
2002-03-07  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (destroy): ops, unregister and not register new
	one sig_event_client

svn path=/trunk/; revision=15964
2002-03-07 16:56:13 +00:00
a1bb1ba0fe merge new signature handling
svn path=/trunk/; revision=15960
2002-03-07 00:21:59 +00:00
0cb5b63f1a [pullup from evolution-1-0-branch]
* e-msg-composer.c (build_message): Fix a dumb bug in previous
        commit that broke iMIP containing 8-bit data.

svn path=/trunk/; revision=15895
2002-03-04 15:19:16 +00:00
c91f7c6b59 [pulled up from evolution-1-0-branch]
Mailer side of 14705.

	* Evolution-Composer.idl (setBody): Change setBodyText to setBody
	and take a MIME type as well.
	(show): Add an exception.

	* evolution-composer.c (impl_Composer_set_body, etc): Update for
	IDL change. While I'm here, fix this to DTRT with both plaintext
	and HTML bodies. (It claimed to take plain text before, but then
	passed it to the composer as HTML.)
	(impl_Composer_show): Raise an exception if setBody has been
	called, since the composer window will not display the real data
	in that case.

	* e-msg-composer.c (e_msg_composer_set_body): interface for
	impl_Composer_set_body.
	(build_message): If e_msg_composer_set_body has been called, use
	the body and MIME type supplied to it rather than the contents of
	the HTML editor.

svn path=/trunk/; revision=15833
2002-02-25 16:36:59 +00:00
2cbdc27d35 don't insert paragraph here, also delete paragraph where signature was
2002-02-14  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (delete_old_signature): don't insert paragraph
	here, also delete paragraph where signature was
	(e_msg_composer_show_sig_file): test if we are in empty document
	and if so, insert new paragraph for signature

svn path=/trunk/; revision=15729
2002-02-14 23:01:57 +00:00
24c0e32fa5 Use set_editor_text() (e_msg_composer_new_from_url): Same.
2002-02-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_flush_pending_body): Use
	set_editor_text()
	(e_msg_composer_new_from_url): Same.
	(e_msg_composer_set_body_text): Re-Show the signature.

svn path=/trunk/; revision=15692
2002-02-12 21:42:00 +00:00
6185f96a81 reflect gtkhtml API change
2002-02-12  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (e_msg_composer_is_dirty): reflect gtkhtml API
	change

svn path=/trunk/; revision=15685
2002-02-12 17:39:54 +00:00
b5fe626e9d added entries for latest changes
svn path=/trunk/; revision=15679
2002-02-11 22:00:27 +00:00
0b4478e5df use editor is_dirty and reset undo
svn path=/trunk/; revision=15677
2002-02-11 21:48:51 +00:00
90a263ce50 swap the order in which we add recipients to the list. If we add the auto-recipients first, then it is more visually appearling since most users will add their own recipients to the end of a list.
svn path=/trunk/; revision=15551
2002-02-01 22:35:02 +00:00
5d3e16ae8b Update the auto-cc/bcc recipients in the composer header fields to match
2002-02-01  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (update_auto_recipients): Update the
	auto-cc/bcc recipients in the composer header fields to match the
	ones chosen in the account configuration.

svn path=/trunk/; revision=15548
2002-02-01 20:48:45 +00:00
a6c6ee7466 new method, tells composer to ignore all word in str string (next_word):
2002-01-31  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (e_msg_composer_ignore): new method, tells
	composer to ignore all word in str string
	(next_word): helper function to get next word from s, saves rest
	of s to sr

svn path=/trunk/; revision=15540
2002-01-31 18:58:29 +00:00
ac9c64ee1a If we are in redirect mode, use the original message and set the resent-*
2002-01-29  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): If we are in redirect mode,
	use the original message and set the resent-* headers using
	e_msg_composer_hdrs_to_redirect() and then return.
	(destroy): Unref the redirected message if it exists.

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_redirect): New
	function for a composer in redirect mode.

svn path=/trunk/; revision=15507
2002-01-29 19:33:08 +00:00
79a377ddf2 Final cleanup for the CFLAGS and LIBS in the Makefiles.
svn path=/trunk/; revision=15486
2002-01-27 17:21:36 +00:00
36563616f7 get_file_contents(): use charset instead of composer->charset because the composer arg can be NULL.
svn path=/trunk/; revision=15288
2002-01-10 21:27:37 +00:00
010506f0f2 Rewrote to use CamelStreams and also convert the file contents to UTF-8
2002-01-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (get_file_content): Rewrote to use CamelStreams
	and also convert the file contents to UTF-8 (assums the file
	charset is the same charset that the composer is set to).
	(menu_file_insert_file_cb): Pass the composer into
	get_file_content().
	(e_msg_composer_get_sig_file_content): Pass NULL as the composer
	argument.

svn path=/trunk/; revision=15286
2002-01-10 21:05:13 +00:00
42e8edbe5c Fixed the setup of the "save-draft" signal so that it would actually work.
2002-01-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (class_init): Fixed the setup of the
	"save-draft" signal so that it would actually work.

svn path=/trunk/; revision=15279
2002-01-09 23:34:45 +00:00
08fe7bd670 Set the X-Evolution-Format header to text/plain if that is the editing
2002-01-07  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_get_message_draft): Set the
	X-Evolution-Format header to text/plain if that is the editing
	mode we are really in. This fixes bug #11499.

svn path=/trunk/; revision=15255
2002-01-07 19:56:23 +00:00
5dc56039e8 A few minor fixes to make it more compliant with rfc2368. Should now be
2002-01-04  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_from_url): A few minor
	fixes to make it more compliant with rfc2368. Should now be fully
	rfc compliant as far as I can tell.

svn path=/trunk/; revision=15249
2002-01-04 23:12:02 +00:00