2002-11-08 Not Zed <NotZed@Ximian.com>
* listener.c: Fix bonobo object setup.
* e-msg-composer-hdrs.c: Remove oaf stuff, fix destroy to be
multi-call safe.
* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
Remove utf8 from locale conversions, & glib api changes.
(ok_cb): "
* e-msg-composer-attachment-bar.c (add_from_file): gtk message
dialog.
(pixbuf_for_mime_type): glib,gnome-vfs api changes.
(init): Estimate the icon_height based on the pango font
description size, this is probably not correct.
(properties_cb):
(remove_cb): Changed signature for gnomeui callbacks.
(popup_icon_context_menu):
(popup_context_menu): popup_menu api change
(destroy): Protect from multiple calls.
(e_msg_composer_attachment_bar_new): Remove push/pop
visual/colormap stuff.
* composer-marshal.list: The list of marshallers used by the
composer.
* Makefile.am (composer-marshal.h): Added composer marshal builder.
* evolution-composer.c (class_init): bonobo object epv setup change.
(factory_fn): Fix changes to factory callback.
* e-icon-list.c: (icon_get_height): Use bounding box to calc
height.
(icon_event): drop gtk_selection_extended.
(e_icon_list_remove): "
(select_icon):
(unselect_icon): "
* e-msg-composer.c (autosave_save_draft): Dup fd rather than poke
camel_stream_fd's data. Also, use camel_stream_close() rather
than flush.
(autosave_manager_query_load_orphans): Port to gtk dialog.
(autosave_query_cb): Removed, redundant.
(save): Port to gtkdialog.
(prepare_engine): Fix bonobo-object-client code.
(get_file_content): gtk dialog
(do_exit): gtk dialog.
(setup_signatures_menu): dump gtkutf8 stuff.
(marshal_NONE__NONE_INT): What WAS jeff thinking? Removed :)
(class_init): g object setup.
(e_msg_composer_get_type): "
(create_composer): remove bonobo_window_construct, use create
property instead. g_signal stuff. bonobo stuff.
(is_special_header): Use ascii_strncasecmp
(e_msg_composer_set_pending_body): gtk->g_object_get/set_data.
(e_msg_composer_set_body): use ascii_strncasecmp
(e_msg_composer_add_inline_image_from_mime_part): make cid const.
(autosave_manager_register):
(autosave_manager_unregister): Use g_path_get_basename() & account
for differences.
(composer_shutdown): rename to finalise/etc.
(class_init): Use object:finalize instead of shutdown.
(e_msg_composer_set_body): Use _() rather than U_().
(build_message): gtk dialog.
2002-11-06 Not Zed <NotZed@Ximian.com>
* e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Add
error return to gdk_pixbuf_new_from_file().
svn path=/trunk/; revision=18659
2002-11-01 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (e_msg_composer_new_from_url): Add support for
an attach option in the mailto: url.
svn path=/trunk/; revision=18489
2002-10-02 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (get_file_content): Don't create a new file if
the file doesn't exist.
svn path=/trunk/; revision=18325
2002-10-01 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): If the user hits cancel when
signing/encrypting, don't continue constructing the message,
instead abort (and just don't pop up a dialog).
svn path=/trunk/; revision=18291
2002-10-01 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): When signing/encrypting a
part, if a USER_CANCEL occurs, re-use the part otherwise unref it
and replace it with the new part.
svn path=/trunk/; revision=18290
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