2002-09-27 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): Don't reuse the part that
we've signed and/or encrypted, create a new part container
instead. Fixes bug #31379.
svn path=/trunk/; revision=18257
2002-09-17 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (add_attachments_from_multipart): Handle
multipart/signed and multipart/encrypted parts in a more expected
way. Fixes bug #28453.
svn path=/trunk/; revision=18099
2002-09-04 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (create_composer): Make it so that the composer
will close when the user hits Escape.
svn path=/trunk/; revision=17983
2002-08-26 Peter Williams <peterw@ximian.com>
* e-msg-composer.c (handle_multipart): Oops, we were overwriting
'multipart' with our child multipart. Fixes 29399.
(handle_multipart_alternative): Here too.
svn path=/trunk/; revision=17864
2002-08-22 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #29016
* e-msg-composer.c (e_msg_composer_new_with_message): If the
X-Evolution-PostTo header exists, then treat this message composer
as a PostTo composer rather than a mail composer.
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message_internal):
Set the X-Evolution-PostTo header if that is the mdoe we are in.
svn path=/trunk/; revision=17843
* e-msg-composer.c (from_changed_cb): Don't turn on pgp signing if
this is an iMIP message and pgp_no_imip_sign is set.
(e_msg_composer_set_body): If setting a text/calendar body and
pgp_no_imip_sign is true, turn off signing.
svn path=/trunk/; revision=17779
2002-08-13 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (do_exit): Make the warning dialog display the
message subject so that it is more clear which composer the dialog
is referring to. Fixes bug #25467.
svn path=/trunk/; revision=17772
2002-08-12 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-select-file.c (create_file_selection): Set the
file-selection window icon. Fixes the mailer part of bug #7368.
* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
Don't call new_from_mime_part() since that function now does some
copying of the mime part rather than simply reffing it.
(e_msg_composer_attachment_new_from_mime_part): Make a copy of the
MIME part so that if the message that this part belongs to gets
deleted from the the remote store, the composer will still have a
copy of it. Fixes bug #20308.
svn path=/trunk/; revision=17763
2002-07-31 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (e_msg_composer_new_with_message): Parse the
auto-cc/bcc recipients and then later when parsing the cc/bcc
recipients into EDestination objects, if the address is an
auto-*cc address, then set auto_recipient to TRUE on that
EDestination. This fixes bug #28339.
svn path=/trunk/; revision=17664
2002-07-29 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (encode_signature_name): new helper function
(decode_signature_name): new helper function
(get_signature_html): use encode_signature_name
(set_signature_gui): use decode_signature_name
svn path=/trunk/; revision=17636
2002-07-26 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (do_exit): don't assert on default, when ESC is
pressed, the dialog is closed as well and we get button number -1
svn path=/trunk/; revision=17611
2002-07-24 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (create_headers): Create the Post-To
header.
(headers_set_visibility): Possibly show the Post-To header.
(attach_headers): Attach the Post-To header.
(e_msg_composer_hdrs_set_post_to): Set the text for the Post-To
header.
(e_msg_composer_hdrs_get_post_to_label): Return the label widget
for this header pair.
(e_msg_composer_hdrs_set_visible_mask): New function to set the
visible mask (so we can disallow certain headers to be shown).
(e_msg_composer_hdrs_new): Save the visible mask argument.
(setup_headers): To: does not always have to be visible anymore.
(e_msg_composer_hdrs_get_post_to): New function to get the url for
the Post-To folder.
* e-msg-composer.c (e_msg_composer_get_visible_flags): Set the
Post-To bit when it is supposed to be visible.
(e_msg_composer_new_post): Set the visible_mask to only allow the
headers needed for Posting.
svn path=/trunk/; revision=17590
2002-07-23 Not Zed <NotZed@Ximian.com>
* Applied patch below.
2002-07-19 Christian Kreibich <christian@whoop.org>
* e.msg-composer.c (get_signature_html): Test for the signature
delimiter not only at the beginning of a signature file, but also
inside the signature.
svn path=/trunk/; revision=17547
2002-07-22 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c: Removed a lot of extra g_return_if_fail's that
we don't need (if we are going to check if the pointer is a a
composer widget using the gtk type-check macros, then there is no
need to first check that it isn't NULL).
(get_file_content): Signatures are now supposed to be in UTF-8 and
not the user's locale charset, so we must first read in the
content, then check that it is valid UTF-8. If it isn't, then we
need to try to convert it to UTF-8.
svn path=/trunk/; revision=17538
2002-07-22 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c: Removed a lot of extra g_return_if_fail's that
we don't need (if we are going to check if the pointer is a a
composer widget using the gtk type-check macros, then there is no
need to first check that it isn't NULL).
svn path=/trunk/; revision=17537
2002-07-16 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (e_msg_composer_set_headers): Set the
from-account last so that auto-cc/bcc recipients don't get
overwritten when setting the cc/bcc recipient fields.
svn path=/trunk/; revision=17487
2002-07-16 Peter Williams <peterw@ximian.com>
* e-msg-composer.c (create_composer): Instead of doing this with a
weakref, do it by connecting to the destroy signal. The weakref was
not getting notified in certain conditions that I could never really
pin down, and this caused problems at exit.
* e-msg-composer-hdrs.c (create_headers): Reorder to create reply_to
before from, because create_from_optionmenu causes from_changed to
be called, which expects reply_to.entry to exist.
svn path=/trunk/; revision=17480
2002-07-15 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (build_message): added save_html_object_data
parameter, use gtkhtml command to save object data when wanted
svn path=/trunk/; revision=17466
2002-07-05 Jeffrey Stedfast <fejj@ximian.com>
* evolution-composer.c (init): Don't connect to the postpone
signal, but do connect to the save-draft signal.
(evolution_composer_factory_init): No longer takes a postpone_cb
argument, but does now take a save_draft_cb argument.
* e-msg-composer.c (menu_file_send_later_cb): Removed.
(class_init): Removed the POSTPONE signal.
(setup_ui): Don't need to swap the Send/SendLater tooltips and
accels anymore, since SendLater no longer exists.
svn path=/trunk/; revision=17377
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-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-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-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-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-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-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-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 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
* 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