aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
Commit message (Collapse)AuthorAgeFilesLines
* removed "Set as default" menu itemRadek Doulik2002-08-281-53/+0
| | | | | | | | | 2002-08-27 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (signature_cb): removed "Set as default" menu item svn path=/trunk/; revision=17878
* Oops, we were overwriting 'multipart' with our child multipart. FixesPeter Williams2002-08-271-11/+15
| | | | | | | | | | 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
* Fixes bug #29016Jeffrey Stedfast2002-08-231-88/+100
| | | | | | | | | | | | | | | 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
* Don't turn on pgp signing if this is an iMIP message and pgp_no_imip_signDan Winship2002-08-151-1/+10
| | | | | | | | | * 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
* Make the warning dialog display the message subject so that it is moreJeffrey Stedfast2002-08-141-12/+22
| | | | | | | | | | 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
* Set the file-selection window icon. Fixes the mailer part of bug #7368.Jeffrey Stedfast2002-08-131-2/+1
| | | | | | | | | | | | | | | | | 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
* Parse the auto-cc/bcc recipients and then later when parsing the cc/bccJeffrey Stedfast2002-08-011-12/+72
| | | | | | | | | | | | 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
* new helper function (decode_signature_name): new helper functionRadek Doulik2002-07-301-4/+105
| | | | | | | | | | | 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
* (set_signature_gui): new helper method to set signature from draftRadek Doulik2002-07-271-1/+37
| | | | | | | message (e_msg_composer_new_with_message): use set_signature_gui svn path=/trunk/; revision=17621
* don't assert on default, when ESC is pressed, the dialog is closed as wellRadek Doulik2002-07-271-3/+4
| | | | | | | | | 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
* Create the Post-To header. (headers_set_visibility): Possibly show theJeffrey Stedfast2002-07-261-41/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix spelling.Dan Winship2002-07-261-1/+1
| | | | | | * e-msg-composer.c (e_msg_composer_set_body): Fix spelling. svn path=/trunk/; revision=17588
* restart automanager to avoid multiple dialog apearingRadek Doulik2002-07-241-2/+6
| | | | | | | | | 2002-07-23 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (autosave_run): restart automanager to avoid multiple dialog apearing svn path=/trunk/; revision=17559
* Applied patch below.Not Zed2002-07-231-1/+1
| | | | | | | | | | | | | | 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
* Reverted some code that got committed by accident.Jeffrey Stedfast2002-07-231-4/+4
| | | | | | | | | | | | 2002-07-23 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_set_view_bcc): Reverted some code that got committed by accident. (e_msg_composer_set_view_cc): Same. (e_msg_composer_set_view_replyto): Here too. (e_msg_composer_set_view_from): And here. svn path=/trunk/; revision=17542
* fixed up some gtk-doc commentsJeffrey Stedfast2002-07-231-5/+13
| | | | svn path=/trunk/; revision=17540
* more cleanupJeffrey Stedfast2002-07-231-78/+78
| | | | svn path=/trunk/; revision=17539
* Removed a lot of extra g_return_if_fail's that we don't need (if we areJeffrey Stedfast2002-07-231-12/+36
| | | | | | | | | | | | | | | 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
* Removed a lot of extra g_return_if_fail's that we don't need (if we areJeffrey Stedfast2002-07-231-171/+163
| | | | | | | | | | | 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
* removed insert file menu itemRadek Doulik2002-07-231-36/+0
| | | | svn path=/trunk/; revision=17534
* use "saved" gtkhtml command (e_msg_composer_is_dirty): use "is-saved"Radek Doulik2002-07-181-3/+6
| | | | | | | | | 2002-07-17 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (save): use "saved" gtkhtml command (e_msg_composer_is_dirty): use "is-saved" gtkhtml command svn path=/trunk/; revision=17493
* Set the from-account last so that auto-cc/bcc recipients don't getJeffrey Stedfast2002-07-171-1/+1
| | | | | | | | | | 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
* Instead of doing this with a weakref, do it by connecting to the destroyPeter Williams2002-07-171-3/+3
| | | | | | | | | | | | | | | 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
* added save_html_object_data parameter, use gtkhtml command to save objectRadek Doulik2002-07-161-5/+15
| | | | | | | | | 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
* Don't connect to the postpone signal, but do connect to the save-draftJeffrey Stedfast2002-07-061-46/+1
| | | | | | | | | | | | | | | | 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
* Use the new CamelMultipartEncrypted class to do our encryption work forJeffrey Stedfast2002-06-271-47/+161
| | | | | | | | | | | | | | | 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
* Use the new CamelMultipartEncrypted class to do our encryption work forJeffrey Stedfast2002-06-271-31/+49
| | | | | | | | | | | 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
* Use mail_crypto_get_pgp_cipher_context() so that the PGP/GPG decision isJeffrey Stedfast2002-06-261-1/+1
| | | | | | | | | | 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
* Use the new gpg cipher context rather than the old pgp context.Jeffrey Stedfast2002-06-221-22/+25
| | | | | | | | | 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
* don't convert text to html twiceRadek Doulik2002-06-201-7/+0
| | | | | | | | | 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
* added "Set as default" menu itemRadek Doulik2002-06-111-13/+71
| | | | | | | | | | | | | | 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
* use new script signature interfaceRadek Doulik2002-06-081-6/+8
| | | | | | | | | 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
* Remove the customize toolbar thingy since Michael said that this would fixJeffrey Stedfast2002-06-071-4/+0
| | | | | | | | | | | | | 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
* put option menu to hbox to make space for signatures menuRadek Doulik2002-06-061-97/+86
| | | | | | | | | | | | | 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
* signature editor reworked, WIPRadek Doulik2002-06-051-87/+68
| | | | svn path=/trunk/; revision=17117
* Properly handle user cancellation for signing/encrypting, just dont signNot Zed2002-06-041-14/+58
| | | | | | | | | | | | | | | 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
* Allocate a new FileInfo struct here rather than using and unref it whenJeffrey Stedfast2002-06-041-8/+11
| | | | | | | | | | 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
* Use gnome_vfs_file_info_clear() instead of gnome_vfs_file_info_unref() soJeffrey Stedfast2002-06-041-1/+1
| | | | | | | | | | 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
* Changes for multipart/signed api changes.Not Zed2002-05-311-6/+16
| | | | | | | | 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
* New. (create_component): Pass it as the @request_quit_fn toEttore Perazzoli2002-05-161-35/+73
| | | | | | | | | | | | | | | | | | | | | * 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
* fixed a type-oJeffrey Stedfast2002-04-271-1/+1
| | | | svn path=/trunk/; revision=16597
* Check for empty-string pgp-key ids and don't use them.Jeffrey Stedfast2002-04-271-5/+5
| | | | | | | | | 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
* Unref the priv->tooltips object here.Jeffrey Stedfast2002-04-171-10/+11
| | | | | | | | | | | | | | 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
* No need to query for the persist-stream interface here, just re-useJeffrey Stedfast2002-04-111-13/+10
| | | | | | | | | | | 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
* Use decode rather than unformat - the e_destination was changed (long timeNot Zed2002-04-091-2/+4
| | | | | | | | | | | | | | | | 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
* added some debug printf'sJeffrey Stedfast2002-04-081-2/+6
| | | | svn path=/trunk/; revision=16388
* Fixes bug #3980.Jeffrey Stedfast2002-04-061-1/+1
| | | | | | | | | | | | | 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
* "Forward as iCalendar" uses set_body, so we can't make the composerDan Winship2002-03-191-4/+19
| | | | | | | | | | | | | | | | | * 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
* use gtkhtml editor API version 1.1Radek Doulik2002-03-161-1/+3
| | | | | | | | 2002-03-15 Radek Doulik <rodo@ximian.com> * e-msg-composer.c: use gtkhtml editor API version 1.1 svn path=/trunk/; revision=16173
* ops, unregister and not register new one sig_event_clientRadek Doulik2002-03-081-1/+1
| | | | | | | | | 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
* merge new signature handlingRadek Doulik2002-03-071-30/+249
| | | | svn path=/trunk/; revision=15960
* [pullup from evolution-1-0-branch]Dan Winship2002-03-041-1/+1
| | | | | | | * 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
* [pulled up from evolution-1-0-branch]Dan Winship2002-02-261-11/+49
| | | | | | | | | | | | | | | | | | | | | | | | 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
* don't insert paragraph here, also delete paragraph where signature wasRadek Doulik2002-02-151-2/+6
| | | | | | | | | | | 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
* Use set_editor_text() (e_msg_composer_new_from_url): Same.Jeffrey Stedfast2002-02-131-7/+10
| | | | | | | | | | | 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
* reflect gtkhtml API changeRadek Doulik2002-02-131-1/+1
| | | | | | | | | 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
* use editor is_dirty and reset undoRadek Doulik2002-02-121-6/+17
| | | | svn path=/trunk/; revision=15677
* swap the order in which we add recipients to the list. If we add the ↵Jeffrey Stedfast2002-02-021-33/+34
| | | | | | 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
* Update the auto-cc/bcc recipients in the composer header fields to matchJeffrey Stedfast2002-02-021-2/+112
| | | | | | | | | | 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
* new method, tells composer to ignore all word in str string (next_word):Radek Doulik2002-02-011-7/+63
| | | | | | | | | | | 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
* If we are in redirect mode, use the original message and set the resent-*Jeffrey Stedfast2002-01-301-19/+39
| | | | | | | | | | | | | | 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
* get_file_contents(): use charset instead of composer->charset because the ↵Jeffrey Stedfast2002-01-111-1/+1
| | | | | | composer arg can be NULL. svn path=/trunk/; revision=15288
* Rewrote to use CamelStreams and also convert the file contents to UTF-8Jeffrey Stedfast2002-01-111-98/+42
| | | | | | | | | | | | | | 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
* Fixed the setup of the "save-draft" signal so that it would actually work.Jeffrey Stedfast2002-01-101-38/+11
| | | | | | | | | 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
* Set the X-Evolution-Format header to text/plain if that is the editingJeffrey Stedfast2002-01-081-0/+6
| | | | | | | | | | 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
* A few minor fixes to make it more compliant with rfc2368. Should now beJeffrey Stedfast2002-01-051-20/+25
| | | | | | | | | | 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
* added #include <sys/time.h>Jeffrey Stedfast2001-12-211-0/+1
| | | | svn path=/trunk/; revision=15198
* argh, only loop while n > 0 not >= 0 since 0 will mean "end-of-file"Jeffrey Stedfast2001-12-181-2/+2
| | | | svn path=/trunk/; revision=15134
* ack, fix a small logic bug.Jeffrey Stedfast2001-12-181-16/+11
| | | | svn path=/trunk/; revision=15131
* Don't block forever if we are reading a fifo with no data.Jeffrey Stedfast2001-12-181-25/+43
| | | | | | | | | 2001-12-17 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (read_file_content): Don't block forever if we are reading a fifo with no data. svn path=/trunk/; revision=15122
* Setup the SAVE_DRAFT signal. (menu_file_save_draft_cb): Emit theJeffrey Stedfast2001-12-151-93/+26
| | | | | | | | | | | | 2001-12-14 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (class_init): Setup the SAVE_DRAFT signal. (menu_file_save_draft_cb): Emit the SAVE_DRAFT signal. (exit_dialog_cb): Same here. (save_draft): Removed. This code is now a signal that mail-callbacks will connect to. svn path=/trunk/; revision=15079
* Attach to the parent widget's destroy signal - when that gets destroyed,Jeffrey Stedfast2001-12-141-7/+11
| | | | | | | | | | | | | | | 001-12-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_edit): Attach to the parent widget's destroy signal - when that gets destroyed, we need to cancel the editor dialog too. Also connect to our parent window's "hide" signal so that when the composer gets hidden (ie, it's being sent), we also close the dialogs. * e-msg-composer.c (init): Default composer->enable_autosave to TRUE. svn path=/trunk/; revision=15016
* If the widget is non-NULL, then gtk_widget_destroy that bad boy...Jeffrey Stedfast2001-12-121-2/+4
| | | | | | | | | | 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (file_selection_info_destroy_notify): If the widget is non-NULL, then gtk_widget_destroy that bad boy... svn path=/trunk/; revision=14984
* Only execute an executable sig file if a magic environment variable isJon Trowbridge2001-12-111-1/+2
| | | | | | | | | 2001-12-10 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (get_file_content): Only execute an executable sig file if a magic environment variable is set. svn path=/trunk/; revision=14962
* Added. Executes the given file and returns its output as a string.Jon Trowbridge2001-12-071-11/+56
| | | | | | | | | | | | 2001-12-06 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (executed_file_output): Added. Executes the given file and returns its output as a string. (get_file_content): Stats the file to see if it is executable. If it is, execute it and return the string. If not, just read the file and return the contents. svn path=/trunk/; revision=14917
* oops, something got fubar'd in the merge I guess...Jeffrey Stedfast2001-12-061-0/+2
| | | | | | add a char *tooltip. svn path=/trunk/; revision=14891
* I should have merged in the patch rather than being lazy and copying the ↵Jeffrey Stedfast2001-12-051-10/+22
| | | | | | file from the other branch. *kicks myself in the butt* svn path=/trunk/; revision=14872
* Change the FileSend tooltip the be the same as the FileSendLater tooltipJeffrey Stedfast2001-12-051-28/+17
| | | | | | | | | 2001-11-30 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (setup_ui): Change the FileSend tooltip the be the same as the FileSendLater tooltip if we are in offline mode. svn path=/trunk/; revision=14871
* If we come back online, switch the Send accelerator back to the SendJeffrey Stedfast2001-11-201-0/+8
| | | | | | | | | | 2001-11-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (setup_ui): If we come back online, switch the Send accelerator back to the Send button from the Send Later button. svn path=/trunk/; revision=14752
* Allow drag & drop for vcards.Jeffrey Stedfast2001-11-161-0/+16
| | | | | | | | | 2001-11-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (drag_data_received): Allow drag & drop for vcards. svn path=/trunk/; revision=14727
* popup failure dialog if we cannot get a valid editor_engine.Larry Ewing2001-11-151-4/+29
| | | | | | | | | | | 2001-11-14 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (create_composer): popup failure dialog if we cannot get a valid editor_engine. (prepare_engine): make the checks robust and make sure that we unset the engine if any part fails. svn path=/trunk/; revision=14715
* use hash table to eliminate duplicatesRadek Doulik2001-11-051-1/+7
| | | | | | | | | 2001-11-02 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (add_inlined_images): use hash table to eliminate duplicates svn path=/trunk/; revision=14587
* New function, enable/disable autosave for the composer temporarily.22001-11-031-1/+12
| | | | | | | | | | | 2001-11-02 <NotZed@Ximian.com> * e-msg-composer.c (e_msg_composer_set_enable_autosave): New function, enable/disable autosave for the composer temporarily. (autosave_run_foreach_cb): Only save if we have enable autosave turned on. In other cases we want to save it regardless. svn path=/trunk/; revision=14574
* Add back the "remove Content-Disposition when sending itip" hack.Dan Winship2001-10-311-0/+9
| | | | | | | * e-msg-composer.c (build_message): Add back the "remove Content-Disposition when sending itip" hack. svn path=/trunk/; revision=14516
* New.Dan Winship2001-10-311-29/+10
| | | | | | | | | | | | | * Evolution-Composer.idl (setMultipartType): New. * evolution-composer.c (impl_Composer_set_multipart_type): Allow caller to specify a multipart/alternative rather than multipart/mixed. * e-msg-composer.c (build_message): Revert yesterday's changes. Add new ones for sending multipart/alternative. svn path=/trunk/; revision=14510
* Always force a save query for now.Larry Ewing2001-10-311-1/+1
| | | | svn path=/trunk/; revision=14486
* add dirty prototype.Larry Ewing2001-10-311-4/+17
| | | | | | | | | | 001-10-30 Larry Ewing <lewing@ximian.com> * e-msg-composer.h: add dirty prototype. * e-msg-composer.c: add dirty implementation. svn path=/trunk/; revision=14485
* Remove Content-Disposition in the no_body case. (More kludging aroundDan Winship2001-10-301-0/+1
| | | | | | | | * e-msg-composer.c (build_message): Remove Content-Disposition in the no_body case. (More kludging around Outlook iCalendar brokenness.) svn path=/trunk/; revision=14433
* Put the charset encoding submenu in the EncodingPlaceholder.Ettore Perazzoli2001-10-301-1/+1
| | | | | | | * e-msg-composer.c (setup_ui): Put the charset encoding submenu in the EncodingPlaceholder. svn path=/trunk/; revision=14407
* Set the (new) "no_body" flag on the composer.Dan Winship2001-10-301-4/+27
| | | | | | | | | | | | | | * evolution-composer.c (init): Set the (new) "no_body" flag on the composer. (impl_Composer_set_body_text): And unset it here. (unset_no_body): And here (called if/when the composer is realized). * e-msg-composer.c (build_message): If the composer has the "no_body" flag set, and a single attachment, promote that attachment to be the message body. svn path=/trunk/; revision=14393
* add GList to hold the current images.Larry Ewing2001-10-301-10/+23
| | | | | | | | | | | | | | | | | | | 2001-10-29 Larry Ewing <lewing@ximian.com> * e-msg-composer.h: add GList to hold the current images. * listener.c (resolve_image_url): keep track of the images that the editor is currently uses in current_images as well as storing the images in the hash. * e-msg-composer.c (clear_current_images): clear the list of images actually in the message. (add_inlined_images): use the current image list rather than the hash tables. (build_message): clear the current image list when appropriate. (init): initialize current_images. svn path=/trunk/; revision=14379
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* New function that replaces handle_multpart() andJeffrey Stedfast2001-10-251-120/+214
| | | | | | | | | | | | | | | | | | | | | 2001-10-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_from_multipart): New function that replaces handle_multpart() and handle_multipart_alternative() for add_message_attachments(). (e_msg_composer_add_message_attachments): Call add_attachments_from_multipart(). (handle_multipart_alternative): Now only used by new_with_message() and is really only designed to work well with messages generated by Evolution (ie for editing Drafts and such). (handle_multipart): Same. (e_msg_composer_new_with_message): No longer calls add_message_attachments() because we can't ever have this fail and the logic in add_message_attachments() is impossible logic. Instead do like what we used to do before the addition of add_message_attachments() came along. svn path=/trunk/; revision=14084
* rework this so that we don't end up freeing the cid then reading from it.Larry Ewing2001-10-251-3/+2
| | | | | | | | | | 2001-10-24 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (e_msg_composer_add_inline_image_from_mime_part): rework this so that we don't end up freeing the cid then reading from it. svn path=/trunk/; revision=14077
* Make inline images used for replies not show up asDan Winship2001-10-221-44/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attachments. Also, I think this should make replies to HTML messages containing inline images referenced via Content-Location work, but that's not tested. * e-msg-composer.c (various): Keep two hash tables of inline image data: one mapping from cid: URLs to CamelMimeParts for all attachments, the other mapping from file: and Content-Location urls to CamelMimeParts (for those inline images that came from a file or have a Content-Location). (add_inlined_images): Simplify. Most of this code is in e_msg_composer_add_inline_image_from_file() now. (e_msg_composer_add_message_attachments, handle_multipart): Change "attach_all" arg to "just_inlines". If it is set, call e_msg_composer_add_inline_image_from_mime_part on any attachment with a Content-Id or Content-Location. (e_msg_composer_add_inline_image_from_file): Create a mime part from a file and add it to the inline images hash. (e_msg_composer_add_inline_image_from_mime_part): Add a mime part directly to the inline images hash. * listener.c (resolve_image_url): If asked to resolve a file: URL that isn't in the inline images hash, call e_msg_composer_add_inline_image_from_file to get a cid for it. (impl_event): Look up the URL in the inline_images and inline_images_by_url hashes. * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_find_message): Gone. No longer used. svn path=/trunk/; revision=13852
* Now takes a 'attach_all' argument. If !attach_all, then only attach theJeffrey Stedfast2001-10-201-12/+16
| | | | | | | | | | | | | | | | 2001-10-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (handle_multipart): Now takes a 'attach_all' argument. If !attach_all, then only attach the attachment if the part has a content-id, otherwise we can safely assume that nothing references it thus we don't need to attach it. (e_msg_composer_add_message_attachments): Now takes a 'attach_all' argument that overrides the "only attach attachments if they have a content-id header" behavior. (e_msg_composer_new_with_message): Pass TRUE as the attach_all argument to add_message_attachments. svn path=/trunk/; revision=13800
* Don't use a g_return_val_if_fail after iconv_open, this is a valid errorJeffrey Stedfast2001-10-191-1/+2
| | | | | | | | | | | | | | 2001-10-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (best_encoding): Don't use a g_return_val_if_fail after iconv_open, this is a valid error condition and so should use check it for real. * e-msg-composer-attachment-bar.c (attach_to_multipart): Correctly set the charset parameter and use camel's bestenc filter to determine which content transfer encoding to use. svn path=/trunk/; revision=13784
* s/apply/flush/. (e_msg_composer_flush_pending_body): renamed from applyLarry Ewing2001-10-161-12/+13
| | | | | | | | | | | | | | 001-10-15 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (e_msg_composer_add_message_attachments): s/apply/flush/. (e_msg_composer_flush_pending_body): renamed from apply now takes apply as an argument. (e_msg_composer_show_sig_file): s/g_assert/g_return_if_fail/ warnings make for less painful bugs than crashes. (set_editor_text): s/g_assert/g_return_if_fail/ svn path=/trunk/; revision=13681
* Don't pop up an "unable to retrieve message" if the composer neverDan Winship2001-10-141-32/+32
| | | | | | | | | | | | | | | | | * e-msg-composer.c (autosave_manager_unregister): Don't pop up an "unable to retrieve message" if the composer never finished initializing. (init): Don't call autosave_manager_register here: wait until the end of create_composer. (create_composer): Remove the distinction between this and e_msg_composer_construct since there's no need for the latter. Use e_activation_failure_dialog if either the selectnames component or the gtkhtml editor fails. * e-msg-composer-hdrs.c (setup_corba): Don't g_warn if the oaf activation fails. create_composer() will tell the user. svn path=/trunk/; revision=13661
* Deleted declaration of len.Jeffrey Stedfast2001-10-121-26/+30
| | | | | | | | | | | | 2001-10-11 Jeffrey Stedfast <fejj@ximian.com> * listener.c (impl_event): Deleted declaration of len. * e-msg-composer.c (e_msg_composer_add_message_attachments): Take a settext argument. (e_msg_composer_new_with_message): Updated to pass the settext argument. svn path=/trunk/; revision=13595
* Check for either a matching account name, or for a matching e-mail addressJon Trowbridge2001-10-111-0/+3
| | | | | | | | | | | | | | | | | | 2001-10-10 Jon Trowbridge <trow@ximian.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account): Check for either a matching account name, or for a matching e-mail address embedded in the passed-in string. (Fixes half of bug #3255) (destroy): Call bonobo_object_release_unref on corba_select_names, not CORBA_Object_release. Otherwise we leak stuff all over the place. (Bug #11878) * e-msg-composer.c (e_msg_composer_new_with_message): If our message doesn't contain an X-Evolution-Account header, pass in the From header as the account name. (Fixes the other half of #3255) svn path=/trunk/; revision=13567
* add prototype.Larry Ewing2001-10-111-44/+76
| | | | | | | | | | | | | | | | | 2001-10-10 Larry Ewing <lewing@ximian.com> * e-msg-composer.h: add prototype. * e-msg-composer.c (e_msg_composer_add_message_attachments): new function to copy attachments from the a message to a composer. (e_msg_composer_set_pending_body): make simple function to abstract this. (e_msg_composer_apply_pending_body): apply the pending body to the composer. (e_msg_composer_new_with_message): use e_msg_composer_add_message_attachments to copy attachments. svn path=/trunk/; revision=13563
* Pass /menu/Edit as the menu path to e_charset_picker thingy.Jeffrey Stedfast2001-10-101-1/+2
| | | | | | | | | 2001-10-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (setup_ui): Pass /menu/Edit as the menu path to e_charset_picker thingy. svn path=/trunk/; revision=13529
* remove unused variable.Larry Ewing2001-10-061-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-05 Larry Ewing <lewing@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_new): remove unused variable. * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_find_message): generalize this to lookup content locations as well. * e-msg-composer-attachment-bar.h: change prototype to match the new function. * listener.c (impl_event): handle the url_requested event, look up parts in the attachment part and feed them down the stream if it is found. * e-msg-composer.c (handle_multipart_alternative): delay setting the body text. (handle_multipart): delay setting body text (e_msg_composer_new_with_message): set the body text from the object data. Doing this ensures that we will have the attachments processed before we try to look them up. svn path=/trunk/; revision=13445
* Make sure to unref the message object so we don't leak it or anyJeffrey Stedfast2001-10-041-5/+9
| | | | | | | | | | | | | 2001-10-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_save_draft): Make sure to unref the message object so we don't leak it or any references to attachments (child mime parts). * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Unref the mime part after passing it along to new_from_mime_part. svn path=/trunk/; revision=13402
* Pass an empty flags argument to mail_get_folder.Jeffrey Stedfast2001-10-031-1/+1
| | | | | | | | | 2001-10-02 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (save_draft): Pass an empty flags argument to mail_get_folder. svn path=/trunk/; revision=13352
* Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'.Ettore Perazzoli2001-10-031-5/+3
| | | | | | | | | | | | | | | | | | | | * e-shell-view.c (e_shell_view_construct): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * mail-account-gui.c (launch_signature_editor): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * e-msg-composer.c (setup_ui): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. * gui/dialogs/comp-editor.c (setup_widgets): Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'. svn path=/trunk/; revision=13306
* Fixes glitch in mailto: url parsing that caused it to fail when recipientJon Trowbridge2001-09-271-6/+10
| | | | | | | | | | 2001-09-26 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (e_msg_composer_new_from_url): Fixes glitch in mailto: url parsing that caused it to fail when recipient names contained commas. (Bug #10796) svn path=/trunk/; revision=13156
* Update to reflect changes to mail_get_folder.Jeffrey Stedfast2001-09-211-1/+1
| | | | | | | | | 2001-09-20 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (save_draft): Update to reflect changes to mail_get_folder. svn path=/trunk/; revision=13028
* Create nonexistant files.Iain Holmes2001-09-211-12/+2
| | | | svn path=/trunk/; revision=13021
* Attach an X-Evolution-Format header so if people re-edit a message in sayJeffrey Stedfast2001-09-191-11/+7
| | | | | | | | | | | | | | | 2001-09-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Attach an X-Evolution-Format header so if people re-edit a message in say their Sent folder, we will preserve format preferences. (e_msg_composer_get_message_draft): Don't attach X-Evolution-Format headers here since it is now done in build_message(). (e_msg_composer_new_with_message): Make sure to remove *all* X-Evolution headers by using the mail-tools functions. svn path=/trunk/; revision=12958
* Don't gtk_object_destroy() the pixbuf loader, unref it instead.Jeffrey Stedfast2001-09-171-4/+3
| | | | | | | | | | | | 2001-09-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (update): Don't gtk_object_destroy() the pixbuf loader, unref it instead. * e-msg-composer-hdrs.c (destroy): Don't forget to free the private structure. svn path=/trunk/; revision=12862
* free the text values we get from the property bag and release the propertyLarry Ewing2001-09-131-0/+5
| | | | | | | | | 2001-09-13 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (map_default_cb): free the text values we get from the property bag and release the property bag properly. svn path=/trunk/; revision=12794
* Don't call new_with_sig_file, it no longer exists.Jeffrey Stedfast2001-09-111-20/+1
| | | | | | | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * evolution-composer.c (init): Don't call new_with_sig_file, it no longer exists. * e-msg-composer.c (setup_ui): Make sure that the session is non-NULL. (menu_file_send_cb): And here too. (e_msg_composer_new_with_sig_file): Removed. svn path=/trunk/; revision=12753
* Make sure that the session is non-NULL. (menu_file_send_cb): And here too.Jeffrey Stedfast2001-09-111-2/+2
| | | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (setup_ui): Make sure that the session is non-NULL. (menu_file_send_cb): And here too. svn path=/trunk/; revision=12746
* Wrap the S/MIME code in ifdef SMIME_SUPPORTED which isn't defined but byJeffrey Stedfast2001-09-111-2/+2
| | | | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Wrap the S/MIME code in ifdef SMIME_SUPPORTED which isn't defined but by some later version will be. (setup_ui): And again here. svn path=/trunk/; revision=12742
* Originally was corba_recipientlist_to_glist. (impl_Composer_set_headers):Jon Trowbridge2001-09-091-36/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-08 Jon Trowbridge <trow@ximian.com> * evolution-composer.c (corba_recipientlist_to_destv): Originally was corba_recipientlist_to_glist. (impl_Composer_set_headers): Use corba_recipientlist_to_destv, new destination-based api. * e-msg-composer.c (build_message): Get rid of that 'sending' stuff. That was a bad idea. (e_msg_composer_new_with_message): Apply the revised api and work with vectors of destinations rather than just lists. (e_msg_composer_get_recipients): Added. Returns the full set of recipient destinations in a vector. * e-msg-composer-hdrs.c: Removed free_destv function. We use e_destination_freev instead. (e_msg_composer_hdrs_get_to): Changed to return a vector of EDestinations. This function now works. (e_msg_composer_hdrs_get_cc): Ditto. (e_msg_composer_hdrs_get_bcc): Ditto. (e_msg_composer_hdrs_get_recipients): Added. Returns a vector of EDestinations that is the union of the to, cc and bcc lines. (e_msg_composer_hdrs_set_to): Changed to take a vector of EDestinations, rather than a GList. (e_msg_composer_hdrs_set_cc): Ditto. (e_msg_composer_hdrs_set_bcc): Ditto. (e_msg_composer_hdrs_to_message): Use our new, improved API, rather than a bunch of poking around in BonoboPropertyBags, etc. svn path=/trunk/; revision=12711
* (handle_multipart_alternative, handle_multipart,Dan Winship2001-09-071-30/+9
| | | | | | | e_msg_composer_new_with_message): Update for mail_get_message_body change. svn path=/trunk/; revision=12658
* Have to specify a mode when using O_CREAT.Dan Winship2001-09-071-1/+1
| | | | | | | * e-msg-composer.c (save): Have to specify a mode when using O_CREAT. svn path=/trunk/; revision=12652
* Replace "Evolution" with "Ximian Evolution" in a bunch of user-visibleEttore Perazzoli2001-09-061-2/+2
| | | | | | places. svn path=/trunk/; revision=12625
* Pass in FALSE as the 'sending' arg to e_msg_composer_get_message.Jon Trowbridge2001-08-301-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-29 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (e_msg_composer_get_message_draft): Pass in FALSE as the 'sending' arg to e_msg_composer_get_message. (build_message): Added a 'sending' arg, which is passed to e_msg_composer_get_message. (e_msg_composer_get_message): Added a 'sending' arg, which gets passed directly on to build_message. * e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message): Added a "sending" arg, which should be TRUE if the message is being sent now (rather than being autosaved, etc.). The address use scores are only updated when sending. (Bug #8332) Removed obsolete (#if 0/#endif-ed) code. 2001-08-29 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (composer_get_message): When calling e_msg_composer_get_message, pass in TRUE for the 'sending' arg. (Part of the fix for bug #8332) svn path=/trunk/; revision=12518
* When reporting an error, use my_file_name instead of file_name sinceJeffrey Stedfast2001-08-231-5/+6
| | | | | | | | | 2001-08-22 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (save): When reporting an error, use my_file_name instead of file_name since file_name can be NULL. svn path=/trunk/; revision=12387
* s/attempt recovery/try to recover them/.Ettore Perazzoli2001-08-221-1/+1
| | | | | | | * e-msg-composer.c (autosave_manager_query_load_orphans): s/attempt recovery/try to recover them/. svn path=/trunk/; revision=12356
* Reset the "changed" state to FALSE after a successful save.Jeffrey Stedfast2001-08-201-1/+4
| | | | | | | | | 2001-08-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (save_draft): Reset the "changed" state to FALSE after a successful save. svn path=/trunk/; revision=12224
* Toggle the View->Attachments menu item. This fixes bug #6107.Jeffrey Stedfast2001-08-181-18/+12
| | | | | | | | | 2001-08-17 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (show_attachments): Toggle the View->Attachments menu item. This fixes bug #6107. svn path=/trunk/; revision=12177
* YESS!Peter Williams2001-08-151-19/+43
| | | | | | | | | | | | | | 2001-07-12 Peter Williams <peterw@ximian.com> * e-msg-composer.c (map_default_cb): New function. Figure out which widget gets the default and assign it. Harder to do than it sounds. (e_msg_composer_construct): Hook map_default_cb up to the "map" signal. (set_focus_to_editor): Removed. (set_focus_to_editor_idle): Removed. svn path=/trunk/; revision=12037
* new helper function, just setup idle callback to grab focusRadek Doulik2001-08-101-12/+25
| | | | | | | | | | | | | 2001-08-09 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (set_focus_to_editor): new helper function, just setup idle callback to grab focus (set_focus_to_editor_idle): grab focus for editor, before we have better solution, it run grab-focus command on editor control (e_msg_composer_construct): call prepare_engine here, set focus to editor svn path=/trunk/; revision=11875
* Don't forget to closedir() when we finish with dir.Jeffrey Stedfast2001-08-101-1/+3
| | | | | | | | | 2001-08-10 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_manager_query_load_orphans): Don't forget to closedir() when we finish with dir. svn path=/trunk/; revision=11872
* Set the smime/pgp always-sign options when here so it updates when theJeffrey Stedfast2001-08-101-2/+6
| | | | | | | | | | 2001-08-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (from_changed_cb): Set the smime/pgp always-sign options when here so it updates when the user changes his/her identity. svn path=/trunk/; revision=11840
* Set the PGP/MIME and S/MIME options to FALSE before getting the messageJeffrey Stedfast2001-08-091-3/+21
| | | | | | | | | | 2001-08-08 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_get_message_draft): Set the PGP/MIME and S/MIME options to FALSE before getting the message draft and restore the values afterward. svn path=/trunk/; revision=11802
* Use g_basename(). (setup_ui): Get the default charset from the mail configJeffrey Stedfast2001-08-071-79/+86
| | | | | | | | | 2001-08-06 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_inlined_image): Use g_basename(). (setup_ui): Get the default charset from the mail config db. svn path=/trunk/; revision=11716
* More updates to icons, this time the Save, Save As, and Search icons forJacob Leach2001-08-011-2/+4
| | | | | | a few places. svn path=/trunk/; revision=11544
* ui:Peter Williams2001-08-011-0/+4
| | | | | | | | | | | | | | | | 2001-07-31 Peter Williams <peterw@ximian.com> * evolution-message-composer.xml: Add "Customize Toolbars" menu item and command. composer: 2001-07-31 Peter Williams <peterw@ximian.com> * e-msg-composer.c (setup_ui): Set the config path for the composer so that the customize toolbar command works. svn path=/trunk/; revision=11529
* Use the new Send and Send Later icons for the toolbar and menus in theJacob Leach2001-07-311-1/+6
| | | | | | composer. (Beautiful work Tuomas and Jakub!) svn path=/trunk/; revision=11511
* Properly add the message/rfc822 part.Jeffrey Stedfast2001-07-311-1/+8
| | | | | | | | | 2001-07-30 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (message_rfc822_dnd): Properly add the message/rfc822 part. svn path=/trunk/; revision=11478
* Jason Leach <jleach@ximian.com>Jacob Leach2001-07-281-1/+1
| | | | | | | | * e-msg-composer.c (get_signature_html): "-- \n" is 4 chars long, so when checking if it's already in the sig, strncmp should check 4 chars, not 3. svn path=/trunk/; revision=11447
* Correct our manually inserted signature dash thingie (it was missing thePeter Williams2001-07-261-1/+5
| | | | | | | | | 2001-07-26 Peter Williams <peterw@ximian.com> * e-msg-composer.c (get_signature_html): Correct our manually inserted signature dash thingie (it was missing the space). svn path=/trunk/; revision=11426
* USe a message box to look nicer.Iain Holmes2001-07-191-10/+8
| | | | svn path=/trunk/; revision=11204
* Correctly handle text/uri-list's that contain more than a single fileJeffrey Stedfast2001-07-181-24/+25
| | | | | | | | | 2001-07-17 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (drag_data_received): Correctly handle text/uri-list's that contain more than a single file reference. svn path=/trunk/; revision=11173
* Removed a warning that I don't need anymore. This code is workingJeffrey Stedfast2001-07-131-1/+0
| | | | | | | | | 2001-07-12 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (menu_changed_charset_cb): Removed a warning that I don't need anymore. This code is working wonderfully ;-) svn path=/trunk/; revision=11074
* Fix typo. s/sesiion/session/Kjartan Maraas2001-07-111-1/+1
| | | | | | | | 2001-07-10 Kjartan Maraas <kmaraas@gnome.org> * e-msg-composer.c: Fix typo. s/sesiion/session/ svn path=/trunk/; revision=10965
* Only ask once about recovery, assume if they want to recover one file theyLarry Ewing2001-07-101-17/+19
| | | | | | | | | | 2001-07-09 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (autosave_manager_query_load_orphans): Only ask once about recovery, assume if they want to recover one file they want to recover all of them. svn path=/trunk/; revision=10948
* Use camel_internet_address_format_address rather than camel_address_encodeJeffrey Stedfast2001-07-101-28/+13
| | | | | | | | | | 2001-07-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_message): Use camel_internet_address_format_address rather than camel_address_encode since we want display-friendly addresses. svn path=/trunk/; revision=10930
* Do the autosave_manager_unregister at shutdown time instead of destroyDan Winship2001-07-091-2/+13
| | | | | | | | | * e-msg-composer.c (composer_shutdown): Do the autosave_manager_unregister at shutdown time instead of destroy time (by which point the contents of the window, including the remote editor control, will have already been destroyed). svn path=/trunk/; revision=10913
* (autosave_manager_query_load_orphans): remove zero length orphans so thatLarry Ewing2001-07-071-2/+4
| | | | | | | | | 2001-07-06 Larry Ewing <lewing@ximian.com> (autosave_manager_query_load_orphans): remove zero length orphans so that they don't clutter things up. svn path=/trunk/; revision=10874
* (best_encoding): make sure we don't try to call iconv_open with a NULLLarry Ewing2001-07-071-0/+3
| | | | | | | | | 2001-07-06 Larry Ewing <lewing@ximian.com> (best_encoding): make sure we don't try to call iconv_open with a NULL tocode. svn path=/trunk/; revision=10872
* add missing static.Larry Ewing2001-07-071-1/+1
| | | | | | | | 001-07-06 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (autosave_manager_new): add missing static. svn path=/trunk/; revision=10870
* Convert the filename string to UTF8 before setting it on the CamelMimePartJeffrey Stedfast2001-07-071-13/+12
| | | | | | | | | | 2001-07-06 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Convert the filename string to UTF8 before setting it on the CamelMimePart because that code expects it to be in UTF8. svn path=/trunk/; revision=10869
* only ask if there are actually contents in the file. Asking about anLarry Ewing2001-07-071-13/+25
| | | | | | | | | | | | 2001-07-06 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (autosave_manager_query_load_orphans): only ask if there are actually contents in the file. Asking about an emptry fil is not very useful. (autosave_load_draft): add some sanity chacks. (autosave_run_foreach_cb): remove debugging warning. svn path=/trunk/; revision=10863
* revert previous "fix", which was wrongDan Winship2001-07-071-1/+2
| | | | svn path=/trunk/; revision=10851
* Call autosave_manager_unregister before destroying the composer, soDan Winship2001-07-071-2/+1
| | | | | | | | | * e-msg-composer.c (do_exit): Call autosave_manager_unregister before destroying the composer, so gtkhtml-editor-control doesn't try to act on a destroyed GtkHTML widget. (destroy): Remove the autosave_manager_unregister from here. svn path=/trunk/; revision=10850
* make sure we only remove the file if we think we saved it properly.Larry Ewing2001-07-061-10/+22
| | | | | | | | | | | | | | | 2001-07-06 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (autosave_manager_unregister): make sure we only remove the file if we think we saved it properly. (autosave_manager_stop): make sure we set the timeout back to 0 so that we will restart next time since we stop the timer when there are no active composers. (destroy): move this to the beginning of the destroy process. (autosave_save_draft): add a return value indicating success. (autosave_manager_register): go ahead and ask next time. svn path=/trunk/; revision=10839
* i2001-07-05 Larry Ewing <lewing@ximian.com>Larry Ewing2001-07-061-37/+60
| | | | | | | | | | | * e-msg-composer.c: add ask argment. (autosave_manager_query_load_orphans): move the load loop out of the dir reading loop. (autosave_manager_new): move initialization out or register. (autosave_manager_register): protect against recursion with ask. (init): call new, this still needs to be moved. svn path=/trunk/; revision=10837
* Play the "File exists, overwrite?" game. (autosave_run_foreach_cb): ChangeJeffrey Stedfast2001-07-061-8/+31
| | | | | | | | | | | 2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (save): Play the "File exists, overwrite?" game. (autosave_run_foreach_cb): Change the return val from a gboolean to void. svn path=/trunk/; revision=10824
* attach send and postpone handlers. and be more tolerant of errors.Larry Ewing2001-07-041-2/+12
| | | | | | | | | 2001-07-04 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (autosave_load_draft): attach send and postpone handlers. and be more tolerant of errors. svn path=/trunk/; revision=10778
* make sure we seek to the begining.Larry Ewing2001-07-041-1/+7
| | | | | | | | | 2001-07-03 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (autosave_save_draft): make sure we seek to the begining. svn path=/trunk/; revision=10773
* remove the timer id.Larry Ewing2001-07-041-29/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-03 Larry Ewing <lewing@ximian.com> * e-msg-composer.h: remove the timer id. * e-msg-composer.c: use autosave manager. (autosave_save_draft): moved initialization to autosave_init_file. Only save the buffer if we get a valid message. (autosave_load_draft): unlink the old file, we own it now. and unref the stream when we are done with it. (autosave_is_owned): check if we own the file, this needs to be extended to check for other valid processes. (autosave_query_load_orphans): make this search through the managers list as it walks the dir. (autosave_query_load_orphans): make sure we use the full path. (autosave_run_foreach_cb): timeout foreach handler. (autosave_run): the timeout function. (autosave_start): start timer. (autosave_stop): stop timer. (autosave_register): register a composer with the autosave manager. (autosave_unregister): unregister a composer. (destroy): unregister the composer, everything is okay. (init): register the composer. svn path=/trunk/; revision=10762
* querythe user to check if they want to load any orphans we've found.Larry Ewing2001-07-041-18/+173
| | | | | | | | | | | | | 2001-07-02 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (autosave_query_load_orphans): querythe user to check if they want to load any orphans we've found. (autosave_query_cb): the dialog callback. (autosave_is_orphan): test if if a particular file is orphaned. (autosave_load_draft): load a message from an autosave file. (autosave_save_draft): save the current buffer to the autosave file. svn path=/trunk/; revision=10761
* use bonobo-conf everywhereDietmar Maurer2001-07-041-74/+42
| | | | | | | | 2001-07-03 Dietmar Maurer <dietmar@ximian.com> * *: use bonobo-conf everywhere svn path=/trunk/; revision=10760
* Set the user-chosen charset.Jeffrey Stedfast2001-07-031-7/+43
| | | | | | | | | | | | | | | | 2001-07-02 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): Set the user-chosen charset. * e-msg-composer.c (menu_change_charset_cb): New callback function to get the user-set charset. (init): Set the charset to NULL. (best_charset): Take a default_charset param that holds the value the user set for this particular message using the menu. (destroy): Free the charset. svn path=/trunk/; revision=10704
* Construct an e-charset-picker bonobo-ui menu.Jeffrey Stedfast2001-07-031-25/+29
| | | | | | | | | 2001-07-02 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (setup_ui): Construct an e-charset-picker bonobo-ui menu. svn path=/trunk/; revision=10690
* make sure we show the sig file.Larry Ewing2001-06-301-1/+0
| | | | | | | | | | | | 2001-06-29 Larry Ewing <lewing@ximian.com> * mail-callbacks.c (create_msg_composer): make sure we show the sig file. * e-msg-composer.c (e_msg_composer_show_sig_file): remove now invalid argument in the documentation. svn path=/trunk/; revision=10616
* small cosmetic changes + added ChangeLog entries from last commitRadek Doulik2001-06-291-8/+1
| | | | | | | | | | | | | | | | | | | | 2001-06-28 Radek Doulik <rodo@ximian.com> * e-msg-composer.c: removed obsolete e_msg_composer_get_sig_file * e-msg-composer.h: removed sig_file field from EMsgComposer * e-msg-composer.c (e_msg_composer_get_sig_file_content): exported (get_file_content): make it const safe (e_msg_composer_get_sig_file_content): refactored, don't try to be clever about signature filename, as it's exact now (get_signature_html): use has_html_signature flag (e_msg_composer_show_sig_file): renamed from e_msg_composer_set_sig_file, removed sig_file parameter as it's obsolete now (e_msg_composer_new_with_sig_file): removed obsolete parameters svn path=/trunk/; revision=10579
* exportedRadek Doulik2001-06-291-4/+4
| | | | | | | | 2001-06-28 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_get_sig_file_content): exported svn path=/trunk/; revision=10577
* simplified(refactored) signature handling + better support for htmlRadek Doulik2001-06-291-50/+33
| | | | | | signatures svn path=/trunk/; revision=10563
* remove FIXME from FileInsertFile.Larry Ewing2001-06-281-178/+89
| | | | | | | | | | | | | | | 2001-06-27 Larry Ewing <lewing@ximian.com> * evolution-message-composer.xml: remove FIXME from FileInsertFile. * e-msg-composer.c (menu_file_insert_file_cb): make hook this up. (get_sig_file_content): use get_file_content. (get_file_content): make this usable for both insertion and signatures. (read_file_content): added helper function to read file. svn path=/trunk/; revision=10552
* Added a pixcache array for special pixmaps to use in the composer.Jeffrey Stedfast2001-06-281-1/+15
| | | | | | | | | | 2001-06-27 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: Added a pixcache array for special pixmaps to use in the composer. (setup_ui): Set the pixcache. svn path=/trunk/; revision=10539
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-1/+1
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* Emit the POSTPONE signal if we are offline. (setup_ui): If we are offline,Jeffrey Stedfast2001-06-221-13/+27
| | | | | | | | | | | 2001-06-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (menu_file_send_cb): Emit the POSTPONE signal if we are offline. (setup_ui): If we are offline, change the Control+Enter accel to be on the SendLater menu item. svn path=/trunk/; revision=10372
* Save the formatting preference for this message draft using aJeffrey Stedfast2001-06-211-14/+38
| | | | | | | | | | | | 2001-06-20 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (save_draft): Save the formatting preference for this message draft using a X-Evolution-Format header. (e_msg_composer_new_with_message): Restore the format editing preference and also remove any other X-Evolution-* headers that we may have set. svn path=/trunk/; revision=10348
* Don't define the drop_types here. (drag_data_received): ImplementJeffrey Stedfast2001-06-201-24/+80
| | | | | | | | | | | 2001-06-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_construct): Don't define the drop_types here. (drag_data_received): Implement message/rfc822 dnd drop type handling. svn path=/trunk/; revision=10295
* Fix again... don't leave *encoding uninitialized in the US-ASCII case.Dan Winship2001-06-121-1/+2
| | | | | | | * e-msg-composer.c (best_charset): Fix again... don't leave *encoding uninitialized in the US-ASCII case. svn path=/trunk/; revision=10193
* Rearranged gtk_widget_show()s a bit to fix Bug#3204. The composer is nowJon Trowbridge2001-06-121-3/+6
| | | | | | | | | | 2001-06-11 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (e_msg_composer_construct): Rearranged gtk_widget_show()s a bit to fix Bug#3204. The composer is now (like the rest of Evo) properly network transparent. svn path=/trunk/; revision=10191
* When saving a draft, attach information about the From: identity viaJon Trowbridge2001-06-091-2/+15
| | | | | | | | | | | | | 2001-06-08 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (save_draft): When saving a draft, attach information about the From: identity via X-Evolution-Account. This lets us select the correct identity when we edit it later. (e_msg_composer_new_with_message): If the message we are editting is tagged with an account (via X-Evolution-Account), make sure that the composer chooses that account's identity by default. svn path=/trunk/; revision=10161
* Don't use the default charset if the message is US-ASCII.Dan Winship2001-06-091-0/+3
| | | | | | | * e-msg-composer.c (best_charset): Don't use the default charset if the message is US-ASCII. svn path=/trunk/; revision=10157
* just set sig_file field, but don't actualy insert signature, it will beRadek Doulik2001-06-071-2/+1
| | | | | | | | | | | 2001-06-07 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_sig_file): just set sig_file field, but don't actualy insert signature, it will be done by format menu item callback (e_msg_composer_set_body_text): don't set signature here svn path=/trunk/; revision=10142
* If user is trying to sign his/her message, try first to use the key thatJeffrey Stedfast2001-06-031-29/+78
| | | | | | | | | | | | 2001-06-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): If user is trying to sign his/her message, try first to use the key that they might have provided in their account settings. If that was never set, default to their email address. Also respect their config option to encrypt-to-self. svn path=/trunk/; revision=10103
* Oops. Fix a few compile problems.Jeffrey Stedfast2001-06-011-2/+4
| | | | | | | | 2001-05-31 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Oops. Fix a few compile problems. svn path=/trunk/; revision=10076
* Fixed up the S/MIME signing/encrypting code to work with the new API.Jeffrey Stedfast2001-06-011-80/+90
| | | | | | | | | 2001-05-31 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Fixed up the S/MIME signing/encrypting code to work with the new API. svn path=/trunk/; revision=10069
* Add a missing iconv_closeDan Winship2001-05-311-0/+1
| | | | | | * e-msg-composer.c (best_encoding): Add a missing iconv_close svn path=/trunk/; revision=10060
* Use the config-specified default character set (which in turn defaults toDan Winship2001-05-311-308/+261
| | | | | | | | | | | | | | | | | * e-msg-composer.c (build_message): Use the config-specified default character set (which in turn defaults to the locale character set) as the default for encoding non-US-ASCII messages, assuming it works. Fall back to camel_charset_best() if it fails. Also, pick the Content-Transfer-Encoding based on how the data looks in the destination charset, not in UTF8. While I was here, I also refactored a bunch and tried to reduce redundant code. There are still too many places that set the transfer-encoding on the plaintext part though... Also, I think some more cleanliness could happen if the sign/encrypt interfaces returned CamelMultiparts instead of CamelMimeParts. svn path=/trunk/; revision=10058
* (menu_edit_delete_all_cb): be more careful about text color andRadek Doulik2001-05-251-0/+7
| | | | | | style svn path=/trunk/; revision=9965
* Populate the extra_hdr_* arrays with any non-special-case headers.Jeffrey Stedfast2001-05-251-0/+56
| | | | | | | | | | | 2001-05-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_message): Populate the extra_hdr_* arrays with any non-special-case headers. (is_special_header): New convenience function to determine if a header is a "special" header or not. svn path=/trunk/; revision=9963
* new callback (menu_edit_delete_all_cb): set orig to 0 tooRadek Doulik2001-05-241-0/+1
| | | | | | | | | 2001-05-24 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (menu_edit_delete_all_cb): new callback (menu_edit_delete_all_cb): set orig to 0 too svn path=/trunk/; revision=9961
* new callbackRadek Doulik2001-05-241-0/+24
| | | | | | | | 2001-05-24 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (menu_edit_delete_all_cb): new callback svn path=/trunk/; revision=9959
* set orig to 0Radek Doulik2001-05-231-0/+1
| | | | | | | | 2001-05-23 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_set_sig_file): set orig to 0 svn path=/trunk/; revision=9943
* Draft messages should be marked read.Dan Winship2001-05-181-1/+1
| | | | | | | * e-msg-composer.c (save_draft): Draft messages should be marked read. svn path=/trunk/; revision=9871
* Added S/MIME sign/encrypt code. (init): Initalize smime_sign/encrypt.Jeffrey Stedfast2001-05-171-5/+217
| | | | | | | | | | | | | | | | 2001-05-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Added S/MIME sign/encrypt code. (init): Initalize smime_sign/encrypt. (e_msg_composer_get_smime_encrypt): new (e_msg_composer_set_smime_encrypt): new (e_msg_composer_get_smime_sign): new (e_msg_composer_set_smime_sign): new (menu_security_smime_sign_cb): new (menu_security_smime_encrypt_cb): new (setup_ui): Setup the UI for S/MIME stuff. svn path=/trunk/; revision=9858
* If we are creating a message with only a single part (ie no attachmentsJeffrey Stedfast2001-05-111-5/+14
| | | | | | | | | | | | 2001-05-10 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): If we are creating a message with only a single part (ie no attachments and we will not be signing/encrypting the part) then `part = CAMEL_MIME_PART(message)` otherwise create a new MIME part and set it's content-object as the message's content-object at a later date. svn path=/trunk/; revision=9749
* Don't wrap content-id with brackets here as it is now done internally inJeffrey Stedfast2001-05-101-5/+3
| | | | | | | | | 2001-05-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_inlined_image): Don't wrap content-id with brackets here as it is now done internally in camel. svn path=/trunk/; revision=9736
* signature editing fixesRadek Doulik2001-05-041-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * signature editing fixes 2001-05-03 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (get_signature_html): put signature in 100% width table (delete_old_signature): look only for first flow with signature == 1 (e_msg_composer_new): don't insert <BR> (e_msg_composer_new_with_sig_file): ditto (delete_old_signature): don't delete whole signature paragraph, but just it's content (delete_old_signature): if signature isn't found, insert new empty paragraph to end of document for new signature (e_msg_composer_set_sig_file): delete signature always (e_msg_composer_set_sig_file): don't place signature to the end of document, but place it where previous one was (if there wasn't then new one is appended to the document) 2001-05-02 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): do automagic indenting only when in_signature_insert is FALSE * e-msg-composer.c (e_msg_composer_set_sig_file): do indent-zero before signature inserting (e_msg_composer_set_sig_file): use in_signature_insert flag 2001-05-01 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): set signature to 0 in newly created empty paragraphs (clear_signature): new helper function svn path=/trunk/; revision=9658
* block/unblock redrawRadek Doulik2001-04-261-0/+6
| | | | | | | | | 2001-04-25 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_set_send_html): block/unblock redraw svn path=/trunk/; revision=9564
* signature changingRadek Doulik2001-04-251-55/+102
| | | | | | | | | | | | | | | | | | | | | | | | | * signature changing 2001-04-25 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): reflect object data type change * e-msg-composer.c (get_sig_file_content): renamed from get_signature (get_signature_html): new helper function, uses get_sig_file_content (set_editor_text): removed signature parameters (from_changed_cb): new signal handler, sets signature by identity change (delete_old_signature): new function, deletes old signature from the document (e_msg_composer_set_sig_file): new method, set's signature filename (e_msg_composer_mark_text_orig): removed (obsolete) * e-msg-composer-hdrs.c: added signal FROM_CHANGED svn path=/trunk/; revision=9557
* Set window_icon of the Composer window to be compose-message.pngDuncan Mak2001-04-221-1/+2
| | | | svn path=/trunk/; revision=9489
* Use the mail-crypto pgp-mime wrappers. (build_message):Jeffrey Stedfast2001-04-131-10/+10
| | | | | | | | | | 2001-04-12 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Use the mail-crypto pgp-mime wrappers. (build_message): s/CAMEL_PGP_HASH_TYPE_SHA1/CAMEL_CIPHER_HASH_SHA1 svn path=/trunk/; revision=9285
* Use the mail-crypto pgp-mime wrappers.Jeffrey Stedfast2001-04-131-3/+3
| | | | | | | | | 2001-04-12 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Use the mail-crypto pgp-mime wrappers. svn path=/trunk/; revision=9268
* Change into the user's home dir before opening the filesel.Jeffrey Stedfast2001-04-121-2/+2
| | | | | | | | | 2001-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (create_file_selection): Change into the user's home dir before opening the filesel. svn path=/trunk/; revision=9242
* Replace #include <gtk/gtk.h> Replace #include <gnome.h> Remove #includeKjartan Maraas2001-03-301-8/+17
| | | | | | | | | | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * e-icon-list.c: Replace #include <gtk/gtk.h> * e-msg-composer-attachment-bar.c: Replace #include <gnome.h> * e-msg-composer-attachment-bar.h: Remove #include <gnome.h> * e-msg-composer-attachment.c: Remove #include <gnome.h> * e-msg-composer-attachment.h: Same here. * e-msg-composer-hdrs.c: Replace #include <gnome.h> and <bonobo.h> * e-msg-composer-hdrs.h: Replace #include <gnome.h> * e-msg-composer-file.c: #include <gtk/gtkmain.h>, <gtk/gtksignal.h> * e-msg-composer.c: Replace #include <bonobo.h>, <gnome.h> * e-msg-composer.h: Replace #include <gnome.h> and <bonobo.h> * evolution-composer.c: Replace #include <bonobo.h> * listener.c: Same here. svn path=/trunk/; revision=9023
* Use the drafts folder specified by the account, if possible. Also, fix theDan Winship2001-03-291-4/+54
| | | | | | | | * e-msg-composer.c (save_draft): Use the drafts folder specified by the account, if possible. Also, fix the setting of "send_html" after saving the draft in case the user plans to keep editting... svn path=/trunk/; revision=8992
* set the FormatHTML property on the editor to let it know the mode.Larry Ewing2001-03-281-0/+5
| | | | | | | | | | | 2001-03-27 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (e_msg_composer_set_send_html): set the FormatHTML property on the editor to let it know the mode. (e_msg_composer_construct): set the FormatHTML property at construct time. svn path=/trunk/; revision=8982
* set the FormatHTML property on the editor to let it know the mode.Larry Ewing2001-03-271-0/+4
| | | | | | | | | 2001-03-27 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (e_msg_composer_set_send_html): set the FormatHTML property on the editor to let it know the mode. svn path=/trunk/; revision=8974
* Added view_replyto member.Jeffrey Stedfast2001-03-131-18/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-12 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.h: Added view_replyto member. * e-msg-composer.c (e_msg_composer_get_visible_flags): Find out if we want to view the Reply-To header. (e_msg_composer_set_view_replyto): A new function to set the state of the replyto header. (menu_view_replyto_cb): Callback for setting the ReplyTo state. (set_config): Make static. (setup_ui): Setup the ReplyTo bonobo stuff. (load_from_property_bag): More defaults for the ReplyTo, yay. (load_from_gnome_config): Again... (e_msg_composer_get_view_bcc): Implemented. (e_msg_composer_get_view_cc): Implemented. (e_msg_composer_get_view_from): Implemented. (e_msg_composer_get_view_replyto): Implemented. * e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_reply_to_entry): New function, yay. (e_msg_composer_hdrs_get_reply_to): Another new function. (e_msg_composer_hdrs_set_reply_to): Yet another new function... (create_headers): Create the reply-to header. (attach_headers): Attach the reply_to. (headers_set_visibility): Set the reply_to visibility. (e_msg_composer_hdrs_to_message): Set the message's reply-to here based on the user-set reply-to header. svn path=/trunk/; revision=8657
* New function. Used to store integer values into the configuration engine.Miguel de Icaza2001-03-081-59/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-06 Miguel de Icaza <miguel@ximian.com> * e-msg-composer.c (set_config): New function. Used to store integer values into the configuration engine. Handles the case of Bonobo-conf being installed, or falls back to gnome_config. * e-msg-composer-hdrs.c (add_header): Renamed to be header_new_recipient(). Now we take care of the other cases in create_headers, which is a lot nicer now. (create_optionmenu): Removed extra "name" argument which was not being used anyways (the only arg passed was From:). (init): Removed all the redundant NULL initialization by using nice g_new0 (create_headers): New function, much cleaner. Use of Pair structure everywhere instead of individual widgets to keep track of which ones are visible and which ones are not. * e-msg-composer.c (setup_ui): Handle ViewFrom and ViewBCC commands. (menu_view_bcc_cb, menu_view_from_cb): New functions that implement the features described. (menu_format_html_cb): Removed unrequired test, as e_msg_composer_set_send_html already optimizes the case of the state being the same. (menu_security_pgp_encrypt_cb): Remove redundant code. (menu_security_pgp_sign_cb): ditto. 2001-03-06 Miguel de Icaza <miguel@ximian.com> * evolution-message-composer.xml: Reorder menus to be File, Edit, View, Insert, Format (instead of File, Edit, Format, View, Insert). Add View/From Field and View/From BCC Add Insert/File. Add File/Send menu item. Change the look to follow the "mailer" look (thiner display). svn path=/trunk/; revision=8590
* Use mail_append_mail to save to drafts instead of custom thread handler.Not Zed2001-02-211-76/+33
| | | | | | | | | | 2001-02-21 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (menu_file_save_draft_cb): (exit_dialog_cb): Use mail_append_mail to save to drafts instead of custom thread handler. svn path=/trunk/; revision=8313
* Handle exceptions a little nicer and pop up a nice GnomeDialog with theJeffrey Stedfast2001-02-201-8/+23
| | | | | | | | | | | | 2001-02-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Handle exceptions a little nicer and pop up a nice GnomeDialog with the error message - also, don't return a CamelMimeMessage if it fails to sign/decrypt because we want to let the user decide what to do based on the error message he/she gets. svn path=/trunk/; revision=8296
* If @account_name is NULL, pick the default account rather than giving aDan Winship2001-02-161-1/+2
| | | | | | | | | | | | * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account): If @account_name is NULL, pick the default account rather than giving a g_warning. * e-msg-composer.c (e_msg_composer_set_headers): Note in the doc comment that @from can be NULL if you want the default account (since there is code that expects this). svn path=/trunk/; revision=8243
* Updated. We might want to change the corba interface for this to allowJeffrey Stedfast2001-02-111-3/+8
| | | | | | | | | | | | | | | 2001-02-10 Jeffrey Stedfast <fejj@ximian.com> * evolution-composer.c (impl_Composer_set_headers): Updated. We might want to change the corba interface for this to allow setting the from-address as well. * e-msg-composer.c (e_msg_composer_new_with_message): Updated. (e_msg_composer_set_headers): Now takes a 'From' argument so that we can try to pre-determine the account the user will want to send from. svn path=/trunk/; revision=8165
* (Moving the flag for has_changed from the Hdrs to the Composer itself.Jason Leach2001-01-261-2/+53
| | | | | | | | | | | | | | | | | | | | | | 2001-01-25 Jason Leach <jasonleach@usa.net> (Moving the flag for has_changed from the Hdrs to the Composer itself. Providing public methods to set/unset a composer as changed. Adding attachments now flags the composer as changed) * e-msg-composer.c (e_msg_composer_unset_changed): New function. (e_msg_composer_set_changed): New function. * e-msg-composer.c (hdrs_changed_cb): Callback to the new signal, uses the new composer_set_changed. (attachment_bar_changed_cb): Add a call to the new _set_changed. * e-msg-composer-hdrs.c (class_init): New signal "hdrs_changed" to tell the parent composer that any of the headers have changed. (addressbook_entry_changed): emit the new signal here. (entry_changed): And here. svn path=/trunk/; revision=7818
* New callback. (menu_security_pgp_sign_cb): Another new callback.Jeffrey Stedfast2001-01-251-8/+72
| | | | | | | | | | | | | | | 2001-01-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (menu_security_pgp_encrypt_cb): New callback. (menu_security_pgp_sign_cb): Another new callback. (setup_ui): Added initialization for the PGP sign and encrypt bonobo menu items. (e_msg_composer_set_pgp_encrypt): Change the Bonobo UI name to SecurityPGPEncrypt. (e_msg_composer_set_pgp_sign): Change the Bonobo UI name to SecurityPGPSign. svn path=/trunk/; revision=7793
* Fixed some memory leaks dealing with content-type temp strings. AlsoJeffrey Stedfast2001-01-221-17/+84
| | | | | | | | | | | 2001-01-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Fixed some memory leaks dealing with content-type temp strings. Also implemented code to sign and/or encrypt the message if the user has specified that it should. svn path=/trunk/; revision=7688
* Updated to reflect changes to e_msg_composer_hdrs_get_from().Jeffrey Stedfast2001-01-181-2/+2
| | | | | | | | | | | | | | | | | 2001-01-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Updated to reflect changes to e_msg_composer_hdrs_get_from(). * e-msg-composer-hdrs.c (set_recipients): Don't do anymore utf8 conversions, the widget already does this (or should unless there is brokenness). (e_msg_composer_hdrs_get_from): Return a CamelInternetAddress like we should. (e_msg_composer_hdrs_to_message): Update to reflect changes made the the above function. svn path=/trunk/; revision=7614
* (Bug #1192: Set the Composer window title to something useful)Jason Leach2001-01-181-1/+20
| | | | | | | | | | | | | | | | | | | 2001-01-17 Jason Leach <jasonleach@usa.net> (Bug #1192: Set the Composer window title to something useful) * e-msg-composer.c (e_msg_composer_construct): Connect up the new signal here. (subject_changed_cb): Set the composer window title to the subject as it's changed, or if it goes blank make it the default "Compose a message". * e-msg-composer-hdrs.c (class_init): Create a new signal "subject_changed". (entry_changed): Emit the signal here when the subject entry is changed. svn path=/trunk/; revision=7610
* Use the to/cc/bcc addresses insted of just the to.JP Rosevear2001-01-181-2/+2
| | | | | | | | | 2001-01-17 JP Rosevear <jpr@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_message): Use the to/cc/bcc addresses insted of just the to. svn path=/trunk/; revision=7581
* publicate mark_orig_text (set_editor_text): don't call mark_orig_text, letRadek Doulik2001-01-171-4/+2
| | | | | | | | | | 2001-01-16 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (e_msg_composer_mark_text_orig): publicate mark_orig_text (set_editor_text): don't call mark_orig_text, let it for reply svn path=/trunk/; revision=7543
* Call set_from_account which means we no longer have to do all the crapJeffrey Stedfast2001-01-131-8/+28
| | | | | | | | | | | | | | | | | | | | | | 2001-01-12 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (build_message): Call set_from_account which means we no longer have to do all the crap involved in formatting strings into an internet-address. (e_msg_composer_get_preferred_account): New access function. * e-msg-composer-hdrs.c (add_header): case COMBOBOX has changed to OPTIOMENU. (create_optionmenu): Update to use an optionmenu of accounts. (from_changed): New callback for the From optionmenu. (setup_headers): s/COMBOBOX/OPTIONMENU (init): Set the account and from_options to NULL. (e_msg_composer_hdrs_get_from): Updated. (destroy): free the from_options. (e_msg_composer_hdrs_set_from_address): Renamed from set_from because it no longer takes a string arg but rather an account arg. svn path=/trunk/; revision=7458
* Only attach to "changed" if the widget is an EEntry. The HEADER_COMBOBOXMiguel de Icaza2001-01-121-50/+0
| | | | | | | | | | | | | | 2001-01-12 Miguel de Icaza <miguel@ximian.com> * e-msg-composer-hdrs.c (add_header): Only attach to "changed" if the widget is an EEntry. The HEADER_COMBOBOX and the HEADER_ADDRBOOK are a ComboBox and a remote Bonobo control respectively. * evolution-composer.c (get_object): Move getObject functionality here from e-msg-composer.c svn path=/trunk/; revision=7441
* Add an ItemContainer Bonobo interface to allow client applications toMiguel de Icaza2001-01-121-1/+51
| | | | | | | | | | 2001-01-10 Miguel de Icaza <miguel@helixcode.com> * evolution-composer.c (evolution_composer_construct): Add an ItemContainer Bonobo interface to allow client applications to locate the Message Composer component. svn path=/trunk/; revision=7416
* New callback to save draft. Fixes bug #1045.Jeffrey Stedfast2001-01-111-0/+14
| | | | | | | | | 2001-01-11 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (menu_file_save_draft_cb): New callback to save draft. Fixes bug #1045. svn path=/trunk/; revision=7379
* Removed more UNSAFE stuff. Maybe we should kill this macro, and haveMiguel de Icaza2001-01-101-10/+10
| | | | | | | | | | 2001-01-10 Miguel de Icaza <miguel@helixcode.com> * e-msg-composer.c: Removed more UNSAFE stuff. Maybe we should kill this macro, and have people that want these broken things define their own macros. svn path=/trunk/; revision=7359
* If the headers have changed, then continue with the prompt else justJeffrey Stedfast2001-01-041-16/+20
| | | | | | | | | | | | | 2001-01-03 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (do_exit): If the headers have changed, then continue with the prompt else just destroy the window. * e-msg-composer-hdrs.c (init): Initialize has_changed to FALSE. (entry_changed): New callback to set the value of has_changed. (add_header): Attach the "changed" signal. svn path=/trunk/; revision=7234
* Use CamelContentType instead of GMimeContentField.Dan Winship2000-12-291-8/+8
| | | | | | | | | | | | | * e-msg-composer.c (handle_multipart_alternative, handle_multipart, e_msg_composer_new_with_message): Use CamelContentType instead of GMimeContentField. * e-msg-composer-attachment.c (e_msg_composer_attachment_edit): * e-msg-composer-attachment-bar.c (update, attach_to_multipart): Use CamelContentType, and use the header_content_type_* functions rather than operating on the structure by hand. svn path=/trunk/; revision=7188
* New function to get whether or not to encrypt the message.Jeffrey Stedfast2000-12-161-3/+98
| | | | | | | | | | | | | | 2000-12-15 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (e_msg_composer_get_pgp_encrypt): New function to get whether or not to encrypt the message. (e_msg_composer_set_pgp_encrypt): New function to set encryption. (e_msg_composer_get_pgp_sign): New function to get whether or not to sign the message. (e_msg_composer_set_pgp_sign): New function to set pgp_sign. (init): Initialize pgp_sign and pgp_encrypt to FALSE. svn path=/trunk/; revision=7058
* Don't convert the utf-8 string to a gtkstring because the widget expectsJeffrey Stedfast2000-12-131-1/+2
| | | | | | | | | | 2000-12-12 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer-hdrs.c (set_entry): Don't convert the utf-8 string to a gtkstring because the widget expects to get a utf-8 string. svn path=/trunk/; revision=6960
* added warnings (prepare_engine): updated toRadek Doulik2000-12-081-9/+12
| | | | | | | | | | | | 2000-12-07 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (prepare_engine): added warnings (prepare_engine): updated to IDL:GNOME/GtkHTML/Editor/Engine:1.0 * Makefile.am: renamed HTMLEditor* to Editor*, added Editor-common.c: $(HTML_EDITOR_GENERATED) rule svn path=/trunk/; revision=6838
* Use camel to construct the list of recipients rather than justJeffrey Stedfast2000-12-061-0/+27
| | | | | | | | | | 2000-12-05 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (add_recipients): Use camel to construct the list of recipients rather than just strchr(recips, ',') which is very prone to errors. svn path=/trunk/; revision=6802
* return NULL if we can't create a view.Michael Meeks2000-12-051-2/+2
| | | | | | | | | | | | | | 2000-12-04 Michael Meeks <michael@helixcode.com> * e-shell-view.c (get_control_for_uri): return NULL if we can't create a view. (setup_evolution_shell_view_interface): add precondition. + lots of cleans. svn path=/trunk/; revision=6778
* update namespaceRadek Doulik2000-11-161-1/+1
| | | | | | | | 2000-11-15 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (prepare_engine): update namespace svn path=/trunk/; revision=6583
* updates for HTMLEditor API changesRadek Doulik2000-11-161-8/+10
| | | | | | | | | | 2000-11-15 Radek Doulik <rodo@helixcode.com> * updates for HTMLEditor API changes * e-msg-composer.c: added #include <libgnomevfs/gnome-vfs.h> svn path=/trunk/; revision=6582
* e_msg_composer_guess_mime_type renamed and movedRadek Doulik2000-11-151-3/+26
| | | | | | | | | 2000-11-15 Radek Doulik <rodo@helixcode.com> * e-msg-composer.h: e_msg_composer_guess_mime_type renamed and moved mime_guess_type_from_file_name from camel as it uses VFS svn path=/trunk/; revision=6579
* updated to HTMLEditor API changesRadek Doulik2000-11-141-1/+1
| | | | | | | | | | 2000-11-14 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c: updated to HTMLEditor API changes * listener.c: updated to HTMLEditor API changes svn path=/trunk/; revision=6567
* set the HTML charset to utf-8 for all the html message parts.Larry Ewing2000-11-111-10/+19
| | | | | | | | | | | 2000-11-10 Larry Ewing <lewing@helixcode.com> * e-msg-composer.c (build_message): set the HTML charset to utf-8 for all the html message parts. (build_message): make sure we set the proper encoding on the html part now that it may contain utf-8 characters svn path=/trunk/; revision=6534
* (get_signature): added in_html arg, it tells if we should use HTMLRadek Doulik2000-11-091-22/+37
| | | | | | | | | signature (set_editor_text): try to use HTML signature (e_msg_composer_new_with_sig_file): added send_html arg to be able to use HTML signature svn path=/trunk/; revision=6510
* new function (destroy): use e_msg_composer_clear_inlined_table, destroyRadek Doulik2000-11-081-13/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-08 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (e_msg_composer_clear_inlined_table): new function (destroy): use e_msg_composer_clear_inlined_table, destroy inlined_images hash table * listener.c (resolve_image_url): don't add inlined images to attachement bar * e-msg-composer.c (add_inlined_images): new function, adds inlined images to multipart (add_inlined_image): helper function, adds one image to multipart (build_message): store HTML messages with inlined images to multipart/related * e-msg-composer-attachment-bar.c (add_from_file): removed content_id arg (e_msg_composer_attachment_bar_attach): likewise * e-msg-composer-attachment.c (e_msg_composer_attachment_new): removed content_id arg svn path=/trunk/; revision=6507
* set the content type on the plain part of outgoing messages.Larry Ewing2000-11-071-6/+36
| | | | | | | | | | | | 2000-11-06 Larry Ewing <lewing@helixcode.com> * e-msg-composer.c (build_message): set the content type on the plain part of outgoing messages. (best_content): a helper function to get the best content type for the attachment. This should probably use the helper functions in the future. svn path=/trunk/; revision=6423
* use inline images hash tableRadek Doulik2000-11-041-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-04 Radek Doulik <rodo@helixcode.com> * listener.c (resolve_image_url): use inline images hash table * e-msg-composer.c (init): create inlined images hash table (destroy): destroy it (clear_inline_images): helper function, used from g_hash_table_foreach_remove to destroy one inline image record * e-msg-composer.h: added hash table with inlined images url -> cid info 2000-11-03 Radek Doulik <rodo@helixcode.com> * listener.c (impl_event): updated for API changed implemented image_url event (resolve_image_url): new helper function, attaches image to mail and returns new (resolved) url pointing to mime component * e-msg-composer-attachment.c (e_msg_composer_attachment_new): added conponent_id parameter * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_attach): added parameter content_id (add_from_file): likewise svn path=/trunk/; revision=6390
* The big api rename ...Michael Meeks2000-11-021-6/+6
| | | | | | | | 2000-11-02 Michael Meeks <michael@helixcode.com> * The big api rename ... svn path=/trunk/; revision=6346
* Don't create the To, Cc, and Bcc lists based only on the address, use bothJeffrey Stedfast2000-11-021-9/+27
| | | | | | | | | | 2000-11-01 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (e_msg_composer_new_with_message): Don't create the To, Cc, and Bcc lists based only on the address, use both the name and address and camel_address_encode() them. svn path=/trunk/; revision=6326
* better reply editing, uses new HTMLEditor::Engine,Listener interfacesRadek Doulik2000-11-011-9/+70
| | | | | | | | | | | | | | | | | | | | | | | | you need fresh CVS gtkhtml to try that 2000-10-31 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (prepare_engine): new function, tries prepare editor engine (mark_orig_text): marks original text in editor (set_editor_text): call mark_orig_text (create_composer): call prepare_engine * Makefile.am (IDL_GENERATED): added HTMLEditor generated files to IDL_GENERATED ($(IDL_GENERATED)): generate also files from HTMLEditor.idl (libcomposer_la_SOURCES): added listener.[ch] * e-msg-composer.h: added editor_engine and editor_listener to EMsgComposer * listener.[ch]: new files, implementation of HTMLEditor::Listener svn path=/trunk/; revision=6292
* Fixed my not-quite-right logic so that we don't accidently set the bodyJeffrey Stedfast2000-10-281-25/+82
| | | | | | | | | | | 2000-10-27 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (e_msg_composer_new_with_message): Fixed my not-quite-right logic so that we don't accidently set the body contents using a plain text attachment instead of the actual body of the message :-) svn path=/trunk/; revision=6236
* Populate the composer with any attachments.Jeffrey Stedfast2000-10-261-122/+182
| | | | | | | | | 2000-10-25 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (e_msg_composer_new_with_message): Populate the composer with any attachments. svn path=/trunk/; revision=6197
* lots of i18n fixesDan Winship2000-10-241-4/+4
| | | | svn path=/trunk/; revision=6143
* Old cruft. Remove.Dan Winship2000-10-241-1/+0
| | | | | | | | | | | | | | * e-msg-composer-address-dialog.*, e-msg-composer-address-entry.*: Old cruft. Remove. * Makefile.am: Update for removed files. * e-msg-composer-hdrs.c: Remove e-msg-composer-address-entry.h include. * e-msg-composer.c: Remove e-msg-composer-address-dialog.h include svn path=/trunk/; revision=6130
* kill. (create_toolbar): die. (setup_ui): impl. (e_msg_composer_construct):Michael Meeks2000-10-191-202/+81
| | | | | | | | | | | | | | | | | 2000-10-19 Michael Meeks <michael@helixcode.com> * e-msg-composer.c (create_menubar_file, create_menubar_edit), (create_menubar_format, create_menubar_view, create_menubar): kill. (create_toolbar): die. (setup_ui): impl. (e_msg_composer_construct): hook in. (menu_format_html_cb): update. (menu_view_attachments_activate_cb): ditto. (destroy): upd. (e_msg_composer_construct): upd. (e_msg_composer_set_send_html): upd. svn path=/trunk/; revision=6018
* If the body text was NULL, then don't bother turning it into HTMLJeffrey Stedfast2000-10-181-10/+11
| | | | | | | | | | 2000-10-17 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (e_msg_composer_new_with_message): If the body text was NULL, then don't bother turning it into HTML (besides, it causes a nasty segfault). svn path=/trunk/; revision=5971
* stop using format_text, gtkhtml handles this now. (format_text): functionLarry Ewing2000-10-131-84/+12
| | | | | | | | | | 2000-10-13 Larry Ewing <lewing@helixcode.com> * e-msg-composer.c (build_message): stop using format_text, gtkhtml handles this now. (format_text): function removed. svn path=/trunk/; revision=5896
* check to make sure we get a valid response from when calling get_text andLarry Ewing2000-10-111-2/+14
| | | | | | | | | | 2000-10-10 Larry Ewing <lewing@helixcode.com> * e-msg-composer.c (build_message): check to make sure we get a valid response from when calling get_text and get_html otherwise bail out of the build. svn path=/trunk/; revision=5823
* If the body of the message has 8-bit chars, set theJeffrey Stedfast2000-10-031-16/+27
| | | | | | | | | | 2000-10-02 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (build_message): If the body of the message has 8-bit chars, set the Content-Transfer-Encoding type to the best encoding. svn path=/trunk/; revision=5662
* The big eye-candy commit.Iain Holmes2000-10-011-1/+46
| | | | | | Make thumbnails out of image attachments. svn path=/trunk/; revision=5648
* Check to see if the body has 8bit chars, if so - set theJeffrey Stedfast2000-09-291-1/+20
| | | | | | | | | | 2000-09-28 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (build_message): Check to see if the body has 8bit chars, if so - set the Content-Transfer-Encoding to 8bit. Addresses Bugzilla bug #652. svn path=/trunk/; revision=5623
* fix typo in tooltip. fix accelerator for "Save as" to be different fromDan Winship2000-09-261-1/+1
| | | | | | | | | * e-msg-composer-hdrs.c (setup_headers): fix typo in tooltip. * e-msg-composer.c (create_menubar_file): fix accelerator for "Save as" to be different from "Save". (Both problems pointed out by menthos@menthos.com.) svn path=/trunk/; revision=5570