aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
Commit message (Collapse)AuthorAgeFilesLines
* Use CAMEL_EXCEPTION_SYSTEM instead of '1', also don't useJeffrey Stedfast2004-05-121-3/+5
| | | | | | | | | | | | 2004-05-11 Jeffrey Stedfast <fejj@novell.com> * e-msg-composer.c (build_message): Use CAMEL_EXCEPTION_SYSTEM instead of '1', also don't use camel_exception_setv() if we aren't using the printf-style arguments. Just use camel_exception_set() - safer anyway, since then we don't have to worry about translated strings containing printf-style formatters that could break stuff. svn path=/trunk/; revision=25861
* Fixing parts of #53466.Enver ALTIN2004-05-101-2/+2
| | | | | | | | 2004-05-08 Enver ALTIN <enver.altin@frontsite.com.tr> * e-msg-composer.c: Fixing parts of #53466. svn path=/trunk/; revision=25829
* header cleanups.Not Zed2004-05-031-0/+8
| | | | | | | | 2004-05-03 Not Zed <NotZed@Ximian.com> * e-msg-composer.c: header cleanups. svn path=/trunk/; revision=25743
* ** Changed error messages to EError.Not Zed2004-04-281-101/+34
| | | | | | | | 2004-04-28 Not Zed <NotZed@Ximian.com> ** Changed error messages to EError. svn path=/trunk/; revision=25652
* Only unlink the original autosave draft file if we are successful inJeffrey Stedfast2004-04-271-9/+7
| | | | | | | | | | 2004-04-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_load_draft): Only unlink the original autosave draft file if we are successful in saving a new copy, otherwise don't unlink the file. Fixes bug #57540. svn path=/trunk/; revision=25619
* Use the E_ICON_SIZE enums rather than specifying an absolute pixel size.Jeffrey Stedfast2004-04-201-2/+2
| | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (create_composer): Use the E_ICON_SIZE enums rather than specifying an absolute pixel size. svn path=/trunk/; revision=25526
* Update the composer to use the icon theme via the EIconFactory object inMichael Terry2004-04-191-11/+15
| | | | | | | | | | 2004-04-19 Michael Terry <mike@mterry.name> * e-msg-composer-select-file.c: * e-msg-composer.c: Update the composer to use the icon theme via the EIconFactory object in e-util svn path=/trunk/; revision=25516
* Same idea here as with build_mesage(), don't convert th gconf charsetJeffrey Stedfast2004-04-161-38/+43
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-15 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): Same idea here as with build_mesage(), don't convert th gconf charset setting to the iconv name before setting it on the mime part. * e-msg-composer.c (best_charset): Now returns a malloc'd string bufefr containing the charset that has NOT been converted to the iconv name. This is important in order to avoid using the iconv charset name which may or may not necessarily be the IANA blessed name. (composer_get_default_charset_setting): Changed to always return the actual value in the settings (eg. don't return the iconv name). (build_message): Updated for changes to best_charset(). Set the actual charset name as the charset param and then get the iconv_charset from that. Use iconv_charset everywhere else. (get_file_content): Updated for changes to get_default_charset_setting(). (setup_ui): Same. svn path=/trunk/; revision=25487
* To be on the safe side (even though the real bug behind bug #51924 can'tJeffrey Stedfast2004-04-141-3/+4
| | | | | | | | | | | 2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (get_file_content): To be on the safe side (even though the real bug behind bug #51924 can't happen here), protect against adding a NULL charset filter tot he filtered stream. svn path=/trunk/; revision=25442
* add missing debug wrapper back.Larry Ewing2004-04-131-1/+1
| | | | | | --Larry svn path=/trunk/; revision=25434
* accept text/calendar drops.Larry Ewing2004-04-131-2/+12
| | | | | | | | | 2004-04-13 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (drag_data_received): accept text/calendar drops. svn path=/trunk/; revision=25433
* EABDestination -> EDestination. (e_msg_composer_hdrs_to_message_internal):Chris Toshok2004-04-101-45/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-09 Chris Toshok <toshok@ximian.com> * e-msg-composer-hdrs.c (set_recipients_from_destv): EABDestination -> EDestination. (e_msg_composer_hdrs_to_message_internal): same. (e_msg_composer_hdrs_set_to): same. (e_msg_composer_hdrs_set_cc): same. (e_msg_composer_hdrs_set_bcc): same. (e_msg_composer_hdrs_get_to): same. (e_msg_composer_hdrs_get_cc): same. (e_msg_composer_hdrs_get_bcc): same. (e_msg_composer_hdrs_get_recipients): same. * e-msg-composer-hdrs.h: convert prototypes such that EABDestination -> EDestination. * e-msg-composer.h: convert prototypes such that EABDestination -> EDestination. * e-msg-composer.c (destination_list_to_vector_sized): new function, ripped from EABDestination, as this code is the only consumer. (destination_list_to_vector): same. (update_auto_recipients): EABDestination -> EDestination. (e_msg_composer_new_with_message): same. (add_recipients): same. (handle_mailto): same. (e_msg_composer_set_headers): same. (e_msg_composer_get_recipients): same. (e_msg_composer_get_to): same. (e_msg_composer_get_cc): same. (e_msg_composer_get_bcc): same. * evolution-composer.c (corba_recipientlist_to_destv): EABDestination -> EDestination. (impl_Composer_set_headers): same. svn path=/trunk/; revision=25393
* Reversed the logic for setting the signature menu to "None" (only set itJeffrey Stedfast2004-04-081-28/+26
| | | | | | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (sig_select_item): Reversed the logic for setting the signature menu to "None" (only set it to "None" if a signature *isn't* set, doh!) (prepare_signatures_menu): Removed. Combined with setup_signature_menu(). svn path=/trunk/; revision=25355
* ops, saved it this timeRadek Doulik2004-04-071-3/+3
| | | | svn path=/trunk/; revision=25341
* (set_editor_text): added pad_signature parameter to tell if weRadek Doulik2004-04-071-6/+7
| | | | | | | want to pad signature with <BR> (used when creating new mail, in other cases we don't want to pad the signature) svn path=/trunk/; revision=25340
* added empty hbox so that we have 12pxs between account setting andRadek Doulik2004-04-071-1/+4
| | | | | | | | | | | 2004-04-06 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (prepare_signatures_menu): added empty hbox so that we have 12pxs between account setting and signature setting Fixes #42866 svn path=/trunk/; revision=25339
* Revert Radek's last change to fix bug #56381.Jeffrey Stedfast2004-04-031-1/+2
| | | | | | | | | 2004-04-02 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (set_editor_text): Revert Radek's last change to fix bug #56381. svn path=/trunk/; revision=25303
* dumb fixJeffrey Stedfast2004-04-021-3/+2
| | | | svn path=/trunk/; revision=25292
* Fixed some breakage I introduced in the changes below.Jeffrey Stedfast2004-04-021-2/+7
| | | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (get_signature_html): Fixed some breakage I introduced in the changes below. svn path=/trunk/; revision=25291
* simplify menu_item_set_label()Jeffrey Stedfast2004-04-021-10/+5
| | | | svn path=/trunk/; revision=25289
* Updated to use the new signature APIs. (signature_added): _()ify theJeffrey Stedfast2004-04-021-4/+26
| | | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: Updated to use the new signature APIs. (signature_added): _()ify the "Autogenerated" signature name. svn path=/trunk/; revision=25287
* Updated to use the new signature APIs.Jeffrey Stedfast2004-04-021-144/+167
| | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: Updated to use the new signature APIs. svn path=/trunk/; revision=25284
* Fixed missing headers now mail/* doesn't include gtk/*, camel/*, andNot Zed2004-03-311-0/+8
| | | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * *.[ch]: Fixed missing headers now mail/* doesn't include gtk/*, camel/*, and gnome/* for you. svn path=/trunk/; revision=25259
* do not add <br> between text and signatureRadek Doulik2004-03-301-2/+1
| | | | | | | | | 2004-03-29 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (set_editor_text): do not add <br> between text and signature svn path=/trunk/; revision=25228
* do not set editor insensitive, use editable-off command insteadRadek Doulik2004-03-231-1/+6
| | | | | | | | | | | 2004-03-22 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (disable_editor): do not set editor insensitive, use editable-off command instead Fixes #55049 svn path=/trunk/; revision=25148
* If the subject is empty, use _("Untitled Message") as the subject instead.Jeffrey Stedfast2004-03-071-1/+1
| | | | | | | | | 2004-03-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (do_exit): If the subject is empty, use _("Untitled Message") as the subject instead. svn path=/trunk/; revision=24981
* Fixes bug #55202Jeffrey Stedfast2004-03-061-10/+7
| | | | | | | | | | | | | 2004-03-05 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #55202 * e-msg-composer.c (add_recipients): No longer takes a decode argument (handle_mailto is the only function that calls it, and the decode value always has to be TRUE for mailto). (handle_mailto): Updated. svn path=/trunk/; revision=24975
* Add a <br> tag between the message text and the signature text (makes itJeffrey Stedfast2004-02-271-7/+9
| | | | | | | | | | 2004-02-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (set_editor_text): Add a <br> tag between the message text and the signature text (makes it nicer looking and also fixes bug #53747. svn path=/trunk/; revision=24897
* From www@reality.cz Tue Feb 17 11:52:51 2004REALiTY-ON-LINE2004-02-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | >From www_work@reality.cz Tue Feb 17 11: 53:15 2004 Received: from data2.centrum.cz ([62.84.131.152]:52704 "EHLO data2.centrum.cz") by mail4.centrum.cz with ESMTP id <S2624487AbUBQKwv>; Tue, 17 Feb 2004 11:52:51 +0100 Received: from reality.cz ([212.24.129.47]:8630 "EHLO reality.cz") by mail.centrum.cz with ESMTP id <S279448AbUBQKwS>; Tue, 17 Feb 2004 11:52:18 +0100 X-SpamDetected: 0 Received: by reality.cz (Postfix, from userid 502) id 073861AB2FF; Tue, 17 Feb 2004 11:52:16 +0100 (CET) From: "REALiTY-ON-LINE" <www@reality.cz> To: radek.doulik@centrum.cz Subject: ON-LINE: praha vychod MIME-Version: 1.0 Content-Type: text/html; charset=ISO-8859-1 Message-Id: <20040217105216.073861AB2FF@reality.cz> Date: Tue, 17 Feb 2004 11:52:16 +0100 (CET) Return-Path: <www_work@reality.cz> X-Orcpt: rfc822;radek.doulik@mail4.centrum.cz X-Evolution-Source: pop://radek.doulik@pop.centrum.cz/ <HTML> <HEAD> <TITLE>praha vychod</TITLE> </HEAD> <BODY BGCOLOR="CCFFFF"> <H3>Vypis novinek ON-LINE ze serveru Reality.CZ</H3> <HR> <A HREF="http://www.reality.cz/cgi/detailq?200-005280"><B>Prodej RD 2+1+puda Praha vychod - Drevcice</B></A><BR> <I>CENA:</I> <B>2.600.000 Kc (cena pro jednani)</B><BR> <I>TEL.:</I> <B>224 942 873 </B><BR> <A HREF="http://www.reality.cz/cgi/detailq?200-005280">http://www.reality.cz/cgi/detailq?200-005280</A> <HR> Zmeny v nastaveni sveho osobniho profilu muzete provadet na adrese: <A HREF="http://www.reality.cz/komunita/">http://www.reality.cz/komunita/</A> <HR> </BODY> </HTML> svn path=/trunk/; revision=24760
* removed debug printfRadek Doulik2004-02-131-1/+0
| | | | svn path=/trunk/; revision=24736
* get default composer size from gconf, hook to unrealize event and saveRadek Doulik2004-02-131-7/+21
| | | | | | | | | | 2004-02-13 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (create_composer): get default composer size from gconf, hook to unrealize event and save size to gconf (e_msg_composer_unmap): new handler, saves composer window size svn path=/trunk/; revision=24735
* use FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file contentsChris Toshok2004-02-041-0/+1
| | | | | | | | | | 2004-02-03 Chris Toshok <toshok@ximian.com> * e-msg-composer.c (e_msg_composer_guess_mime_type): use FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file contents before coming up with a mime type. svn path=/trunk/; revision=24594
* use g_ascii_strcasecmp rather than strcasecmp.Not Zed2004-02-021-11/+11
| | | | | | | | | | | | | | | | | | | 2004-02-02 Not Zed <NotZed@Ximian.com> * evolution-composer.c (impl_Composer_set_body): use g_ascii_strcasecmp rather than strcasecmp. ** See bug #53506, again. * e-msg-composer.c (set_editor_text): Add an argument to make adding the signature optional. Also fix a memleak with the sig content. (e_msg_composer_new_with_type, e_msg_composer_flush_pending_body) (handle_mailto, e_msg_composer_set_body_text) (e_msg_composer_set_body): Fixed callers for above change appropriately. svn path=/trunk/; revision=24562
* reverted radek's patch below, it was already fixed (#53176). Changed theNot Zed2004-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (e_msg_composer_new_with_type): reverted radek's patch below, it was already fixed (#53176). Changed the init order though, set_editor_signature only sets the current one, it doen'st insert it. ** See bug #53506. * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_post_to_list): use a GString to build the result. (e_msg_composer_hdrs_set_post_to_base): same here. (e_msg_composer_hdrs_set_post_to_base): dont bother copying the post_to string. (e_msg_composer_hdrs_get_post_to): change the relative-url test to ":/" rather than "://", so that mbox url's work. svn path=/trunk/; revision=24512
* set body text after setting composer's signature, so that signature isRadek Doulik2004-01-281-1/+1
| | | | | | | | | | | 2004-01-27 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_type): set body text after setting composer's signature, so that signature is shown Fixes #53367 svn path=/trunk/; revision=24492
* ** See Bug #53176, probably fixes others too.Not Zed2004-01-281-11/+21
| | | | | | | | | | | | | 2004-01-28 Not Zed <NotZed@Ximian.com> ** See Bug #53176, probably fixes others too. * e-msg-composer.c (set_editor_text): When we set the text, always add the signature implictly. Means we don't have to set it manually and break changing the file, or hit any races. (e_msg_composer_set_body_text): dont call show_sig_file here. svn path=/trunk/; revision=24490
* ** See Bug #20017.Not Zed2004-01-141-25/+59
| | | | | | | | | | | | | | | | | | | | | | | 2004-01-14 Not Zed <NotZed@Ximian.com> ** See Bug #20017. * e-msg-composer.c (create_composer): set the composer to unchanged after all setup, some setup (from_changed_cb) will mark it changed. (create_composer): remove a warning. ** See Bug #52794. (e_msg_composer_get_message_draft): save sign/encrypt settings to X-Evolution-Format header. (e_msg_composer_new_with_message): restore sign/encrypt settings from X-Evolution-Format header. (e_msg_composer_set_pgp_sign, e_msg_composer_set_pgp_encrypt) (e_msg_composer_set_smime_sign, e_msg_composer_set_smime_encrypt): Set composer changed if it did. svn path=/trunk/; revision=24211
* added "View To", "View Post To" menu items, made it possible to see bothMeilof Veeningen2004-01-131-40/+211
| | | | | | | | | | | | | | | | 2004-01-12 Meilof Veeningen <meilof@wanadoo.nl> * e-msg-composer.[ch]: added "View To", "View Post To" menu items, made it possible to see both at the same time, new e_msg_composer_new_with_type, only visibility info of headers if in the visible mask. * e-msg-composer.[ch]: replaced folder selection button by entry with selection button next to it, enabled multiple folder selection, made it possible to see both To and PostTo fields, disabled setting the "X-Evolution-PostTo" header. svn path=/trunk/; revision=24179
* Implemented #127527: the attachment bar is packed inside an EExpanderERDI Gergo2004-01-111-29/+82
| | | | | | | | | 2003-12-02 ERDI Gergo <cactus@cactus.rulez.org> * e-msg-composer.c: Implemented #127527: the attachment bar is packed inside an EExpander svn path=/trunk/; revision=24146
* s/unsaved files/unsaved messages/ as per bug #45407.Jeffrey Stedfast2004-01-101-1/+1
| | | | | | | | | 2004-01-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_manager_query_load_orphans): s/unsaved files/unsaved messages/ as per bug #45407. svn path=/trunk/; revision=24140
* add an assertion for no account set. Discovered from bug #50786.Not Zed2004-01-081-0/+3
| | | | | | | | | 2004-01-08 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (set_editor_signature): add an assertion for no account set. Discovered from bug #50786. svn path=/trunk/; revision=24101
* Remove the 6-pixel border around the main window. That just looked ugly.Jeffrey Stedfast2004-01-081-1/+0
| | | | | | | | | 2004-01-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (create_composer): Remove the 6-pixel border around the main window. That just looked ugly. svn path=/trunk/; revision=24093
* autosave fixRadek Doulik2003-12-011-5/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-11 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_set_autosaved): new method to wrap autosaved flag setting (e_msg_composer_unset_autosaved): ditto (e_msg_composer_is_autosaved): new method, says if composer was autosaved only (autosave_save_draft): unset changed so that we don't autosave all the time when anything else than gtkhtml control changed 2003-11-06 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (autosave_save_draft): call gtkhtml's saved command to clean is-saved flag, set composer's autosaved flag (do_exit): complain if last save was just autosave (e_msg_composer_unset_changed): reset autosaved flag (save): reset autosaved flag * e-msg-composer.h: added autosaved flag, it tells whether last save was autosave or regular save, when changed flag is reset the autosaved one is reset too svn path=/trunk/; revision=23526
* switch from just checking SMIME_SUPPORTED to checking both HAVE_NSS andChris Toshok2003-11-271-2/+2
| | | | | | | | | 2003-11-26 Chris Toshok <toshok@ximian.com> * e-msg-composer.c (build_message): switch from just checking SMIME_SUPPORTED to checking both HAVE_NSS and SMIME_SUPPORTED. svn path=/trunk/; revision=23497
* changed to use ciphercontext directly to sign the message, noNot Zed2003-11-051-73/+29
| | | | | | | | | | 2003-11-03 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (build_message): changed to use ciphercontext directly to sign the message, no multipart-signed usage. (build_message): do the same for multipart/encryption for gpg encrypting. svn path=/trunk/; revision=23188
* fix for e-account smime info changes. Also enforce having a signingNot Zed2003-10-311-16/+30
| | | | | | | | | | | | | 2003-10-31 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (build_message): fix for e-account smime info changes. Also enforce having a signing certificate set in preferences before doing any signing. (from_changed_cb): handle smime sign/encrypt default for account (create_composer): force a from-changed when we start, to properly setup signing options. svn path=/trunk/; revision=23146
* Turn on SMIME_SUPPORTED. (build_message): move some of the security codeNot Zed2003-10-301-202/+182
| | | | | | | | | | 2003-10-30 Not Zed <NotZed@Ximian.com> * e-msg-composer.c: Turn on SMIME_SUPPORTED. (build_message): move some of the security code around, and fix up smime code. svn path=/trunk/; revision=23128
* Merge new-ui-branch into the trunk.Ettore Perazzoli2003-10-221-45/+45
| | | | svn path=/trunk/; revision=22966
* Don't blindly claim that the file exists and then ask the user if he/sheJeffrey Stedfast2003-10-071-24/+35
| | | | | | | | | | | | | | | 2003-09-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (save): Don't blindly claim that the file exists and then ask the user if he/she would like to overwrite it. First check that the file even exists, if not - then we've got a different error. Fixes bug #48759. * e-msg-composer-select-file.c (e_msg_composer_select_file): Use the proper selector title, otherwise it says "Attach files" when we are trying to save a message. svn path=/trunk/; revision=22798
* Same as below.Jeffrey Stedfast2003-09-251-1/+7
| | | | | | | | | | | | | 2003-09-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (get_default_charset): Same as below. * e-msg-composer.c (composer_get_default_charset_setting): Handle empty-string as the charset value gotten from gconf as this can happen. Partial fix for bug #47638. svn path=/trunk/; revision=22692
* fixed a commentJeffrey Stedfast2003-09-201-1/+1
| | | | svn path=/trunk/; revision=22630
* updated for CamelTransferEncoding namespace changesJeffrey Stedfast2003-09-191-11/+11
| | | | | | | | | | | | 2003-09-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c: updated for CamelTransferEncoding namespace changes * e-msg-composer.c: updated for CamelTransferEncoding namespace changes svn path=/trunk/; revision=22616
* Updated for namespace changes in Camel.Jeffrey Stedfast2003-09-191-20/+20
| | | | | | | | | | 2003-09-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c: * e-msg-composer-attachment.c: * e-msg-composer.c: Updated for namespace changes in Camel. svn path=/trunk/; revision=22611
* ** Merge in mail-refactor-2-branchNot Zed2003-09-181-37/+11
| | | | | | | | 2003-09-17 Not Zed <NotZed@Ximian.com> ** Merge in mail-refactor-2-branch svn path=/trunk/; revision=22601
* Added an entry_uic field for a BonoboUIComponent for the non-controlFederico Mena Quintero2003-09-121-11/+42
| | | | | | | | | | | | | | | | | | | | | 2003-09-11 Federico Mena Quintero <federico@ximian.com> * e-msg-composer.h (EMsgComposer): Added an entry_uic field for a BonoboUIComponent for the non-control entries (e.g. the Subject line). * e-msg-composer.c (create_composer): Set autoactivate to true on the HTML control's BonoboControlFrame. (setup_ui): Create the composer->entry_uic. (destroy): Free the composer->entry_uic. (entry_verbs): New array of verbs for the non-control entries. Moved the Edit* verbs to here, as they should not be part of the main set. (composer_entry_focus_in_event_cb): Load evolution-composer-entries.xml here for the non-control entries' UI. (composer_entry_focus_out_event_cb): Remove the menu items. svn path=/trunk/; revision=22531
* Connect response signal to attachment properties dialog, fix bug #47950.Antonio Xu2003-08-291-3/+3
| | | | | | | | | | | | | | 2003-08-29 Antonio Xu <antonio.xu@sun.com> * e-msg-composer-attachment.c (): Connect response signal to attachment properties dialog, fix bug #47950. * Makefile.am (INCLUDES): add EVOLUTION_IMAGESDIR define * e-msg-composer.c (create_composer): use EVOLUTION_IMAGESDIR and composer icon name to get the path of composer icon. [#47781] svn path=/trunk/; revision=22411
* temporarily reverting camel namespace changes until after other branches ↵Jeffrey Stedfast2003-08-271-18/+18
| | | | | | have been merged svn path=/trunk/; revision=22374
* s/HSCAN_/CAMEL_MIME_PARSER_STATE_/gJeffrey Stedfast2003-08-271-1/+1
| | | | | | | | | 2003-08-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (message_rfc822_dnd): s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g svn path=/trunk/; revision=22366
* updated for namespace changed made to camel-mime-utils.[c,h]Jeffrey Stedfast2003-08-261-17/+17
| | | | | | | | | | | | | | | 2003-08-25 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c: updated for namespace changed made to camel-mime-utils.[c,h] * e-msg-composer-attachment.c: updated for namespace changed made to camel-mime-utils.[c,h] * e-msg-composer.c: updated for namespace changed made to camel-mime-utils.[c,h] svn path=/trunk/; revision=22356
* Original patch from David Woodhouse, but modified a bit by me.Jeffrey Stedfast2003-08-191-10/+19
| | | | | | | | | | | 2003-08-19 Jeffrey Stedfast <fejj@ximian.com> * Original patch from David Woodhouse, but modified a bit by me. * e-msg-composer.c (handle_mailto): Fix insertion of arbitrary headers from mailto: links. Ignore From: and Reply-To: headers. svn path=/trunk/; revision=22285
* don't set the rawtext bit anymore.Jeffrey Stedfast2003-08-121-10/+21
| | | | | | | | | | | | 2003-07-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): don't set the rawtext bit anymore. * e-msg-composer.c (build_message): Convert the plain part's content stream from UTF-8 to whatever charset we want. svn path=/trunk/; revision=22172
* add the drop type of mozilla browser link to make composer support toAntonio Xu2003-08-041-10/+10
| | | | | | | | | | 2003-08-04 Antonio Xu <antonio.xu@sun.com> * e-msg-composer.c (drag_data_received): add the drop type of mozilla browser link to make composer support to handle mozilla DnD data. [#47131] svn path=/trunk/; revision=22077
* bump editor versionLarry Ewing2003-07-261-1/+1
| | | | svn path=/trunk/; revision=21974
* Set default answer of dialog to 'yes' to try and prevent autosavedMichel Dänzer2003-07-241-0/+1
| | | | | | | | | | 2003-07-17 Michel Dänzer <michel@daenzer.net> * e-msg-composer.c (autosave_manager_query_load_orphans): Set default answer of dialog to 'yes' to try and prevent autosaved messages from getting lost accidentally. svn path=/trunk/; revision=21922
* Revert my previous changes here too.Jeffrey Stedfast2003-07-241-14/+3
| | | | | | | | | | | 2003-07-23 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): Revert my previous changes here too. * e-msg-composer.c (build_message): Revert my previous changes. svn path=/trunk/; revision=21918
* Init charset to NULL.Jeffrey Stedfast2003-07-221-2/+2
| | | | | | | | 2003-07-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Init charset to NULL. svn path=/trunk/; revision=21882
* Make this work again.Dan Winship2003-07-221-3/+3
| | | | | | * e-msg-composer.c (build_message): Make this work again. svn path=/trunk/; revision=21881
* don't set the rawtext bit anymore.Jeffrey Stedfast2003-07-171-11/+26
| | | | | | | | | | | | | | | | | 2003-07-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): don't set the rawtext bit anymore. * e-msg-composer.c (build_message): Convert the plain part's content stream from UTF-8 to whatever charset we want. 2003-07-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (popup_menu_event): Fix warnings and other breakage introduced by Maxx. svn path=/trunk/; revision=21843
* Updated to use camel_strcase_hash/equal.Jeffrey Stedfast2003-07-081-3/+3
| | | | | | | | | 2003-07-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_message): Updated to use camel_strcase_hash/equal. svn path=/trunk/; revision=21755
* Change file url to absolute path. Fixes bug #44065.Antonio Xu2003-07-031-1/+11
| | | | | | | | | 2003-06-25 Antonio Xu <antonio.xu@sun.com> * e-msg-composer.c (handle_mailto): Change file url to absolute path. Fixes bug #44065. svn path=/trunk/; revision=21726
* Connect to the save-draft signal too. Fixes bug #45531.Jeffrey Stedfast2003-07-031-1/+4
| | | | | | | | | 2003-07-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_load_draft): Connect to the save-draft signal too. Fixes bug #45531. svn path=/trunk/; revision=21724
* Set the rawtext bits for the 'plain' and 'html' data wrappers to FALSE.Jeffrey Stedfast2003-06-301-0/+5
| | | | | | | | | 2003-06-27 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Set the rawtext bits for the 'plain' and 'html' data wrappers to FALSE. svn path=/trunk/; revision=21695
* Use e_iconv_open/close so that we get charset aliasing for free. Fixes bugJeffrey Stedfast2003-06-191-3/+3
| | | | | | | | | 2003-06-17 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (best_encoding): Use e_iconv_open/close so that we get charset aliasing for free. Fixes bug #44991. svn path=/trunk/; revision=21469
* Fixes bug #44139.Jeffrey Stedfast2003-06-181-2/+4
| | | | | | | | | | | | | | | | 2003-06-16 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #44139. * e-msg-composer-hdrs.c (attach_couple): Set the vertical and horizontal padding to 3 always. (create_from_optionmenu): Change the hbox spacing to 6 pixels. * e-msg-composer.c (create_composer): Set the border width around the composer's vbox to HIG specification and make the box_spacing 6 pixels as well. svn path=/trunk/; revision=21460
* Same as the rest. (setup_ui): We didn't even seem to be using the gconfJeffrey Stedfast2003-06-101-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Same as the rest. (setup_ui): We didn't even seem to be using the gconf client here. Removed. (e_msg_composer_load_config): Unref the gconf client after we're finished. (e_msg_composer_new): Same. (e_msg_composer_new_post): Here too. (e_msg_composer_set_view_from): And here. (e_msg_composer_set_view_replyto): And here. (e_msg_composer_set_view_cc): Here too. (e_msg_composer_set_view_bcc): Again here. * e-msg-composer-hdrs.c (create_from_optionmenu): Same as below. (e_msg_composer_hdrs_set_from_account): Here too. * e-msg-composer-attachment-bar.c (get_default_charset): Unref the gconf client. svn path=/trunk/; revision=21391
* i2003-05-20 Larry Ewing <lewing@ximian.com>Larry Ewing2003-05-211-1/+38
| | | | | | | | | | | * e-msg-composer.c (composer_settings_update): set the various bonobo properties that are composer preferences. (create_composer): add notification of gconf changes. (destroy): disconnect notification. * e-msg-composer.h: keep the gcond notify handler id. svn path=/trunk/; revision=21287
* Change the "would you like to recover unsaved drafts?" dialog a QUESTIONJeffrey Stedfast2003-04-301-1/+1
| | | | | | | | | | 2003-04-28 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_manager_query_load_orphans): Change the "would you like to recover unsaved drafts?" dialog a QUESTION dialog rather than an ERROR dialog. Fixes bug #42024. svn path=/trunk/; revision=21001
* removed debug printfs.Not Zed2003-04-241-3/+0
| | | | | | | | 2003-04-23 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (map_default_cb): removed debug printfs. svn path=/trunk/; revision=20952
* Don't ever attach non-inlined text or message parts. Reverts a prior fix.Jeffrey Stedfast2003-04-231-7/+3
| | | | | | | | | 2003-04-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): Don't ever attach non-inlined text or message parts. Reverts a prior fix. svn path=/trunk/; revision=20923
* added related argument, TRUE means that container of mime_part isRadek Doulik2003-04-221-4/+9
| | | | | | | | | | | | | | 2003-04-22 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): added related argument, TRUE means that container of mime_part is multipart/related (add_attachments_handle_mime_part): add images as inline when related is TRUE (add_attachments_from_multipart): pass related to add_attachments_handle_mime_part svn path=/trunk/; revision=20913
* [ fixes #40694 ] this can't hurt - set the frame to autoactivate so if byChris Toshok2003-04-201-3/+4
| | | | | | | | | | | | | | 2003-04-19 Chris Toshok <toshok@ximian.com> [ fixes #40694 ] * e-msg-composer-hdrs.c (create_addressbook_entry): this can't hurt - set the frame to autoactivate so if by some chance the widget is focused the control will end up being activated. * e-msg-composer.c (map_default_cb): activate the To: control instead of focusing the widget. svn path=/trunk/; revision=20896
* [ fixes #21499 ]Rodney Dawes2003-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-18 Rodney Dawes <dobey@ximian.com> [ fixes #21499 ] * gui/component/Makefile.am: * gui/component/addressbook.c: * gui/component/select-names/e-select-names-bonobo.c: * gui/contact-editor/Makefile.am: * gui/contact-editor/e-contact-editor.c: * gui/contact-list-editor/Makefile.am: * gui/contact-list-editor/e-contact-list-editor.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * gui/Makefile.am: * gui/calendar-commands.c: * gui/tasks-control.c: * gui/dialogs/Makefile.am: * gui/dialogs/comp-editor.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * Makefile.am: * e-msg-composer.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui (). Fixes bug #21499. * Makefile.am: * folder-browser-ui.c: * mail-signature-editor.c: * message-browser.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui (). Fixes bug #21499. * Makefile.am: * e-summary-factory.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * e-shell-view.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () [#21499] svn path=/trunk/; revision=20888
* Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno whatJeffrey Stedfast2003-04-101-2/+1
| | | | | | | | | | | 2003-04-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno what I was thinking. locale_name() doesn't even exist. (setup_ui): Don't free the default_charset, it's a const char*. svn path=/trunk/; revision=20797
* Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno whatJeffrey Stedfast2003-04-101-1/+1
| | | | | | | | | | | | 2003-04-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno what I was thinking. locale_name() doesn't even exist. * e-msg-composer-attachment-bar.c (get_default_charset): Same. svn path=/trunk/; revision=20793
* fix build, it's composer_get_default_charset_setting.Chris Toshok2003-04-091-1/+1
| | | | | | | | | 2003-04-09 Chris Toshok <toshok@ximian.com> * e-msg-composer.c (setup_ui): fix build, it's composer_get_default_charset_setting. svn path=/trunk/; revision=20782
* Same as with attachment-bar's get_default_charset(). (setup_ui): InsteadJeffrey Stedfast2003-04-091-3/+6
| | | | | | | | | | | | | | 2003-04-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Same as with attachment-bar's get_default_charset(). (setup_ui): Instead of pulling the default charset from gconf, call our helper function above. * e-msg-composer-attachment-bar.c (get_default_charset): If gconf returns a NULL string, default back to the locale charset. svn path=/trunk/; revision=20775
* Added some debug printfs. (create_composer): Call map_default_cb directlyJeffrey Stedfast2003-04-091-7/+8
| | | | | | | | | | | 2003-04-08 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (map_default_cb): Added some debug printfs. (create_composer): Call map_default_cb directly instead of having it in a "map" callback. Ettore says we shouldn't be doing this *shrug*. Still doesn't work tho. svn path=/trunk/; revision=20767
* [ fixes bug #39763 ] remove the control_entry_focus_{in,out}_event_cbChris Toshok2003-04-081-38/+0
| | | | | | | | | | | | | | | | 2003-04-07 Chris Toshok <toshok@ximian.com> [ fixes bug #39763 ] * e-msg-composer.c (setup_cut_copy_paste): remove the control_entry_focus_{in,out}_event_cb signal stuff. (control_entry_focus_in_event_cb): nuke (control_entry_focus_in_event_cb): same. * e-msg-composer-hdrs.c (create_addressbook_entry): pass the contain to bonobo_widget_new_control_from_objref when creating the entries. svn path=/trunk/; revision=20745
* If the composer isn't 'dirty', then don't autosave the draft (no need to).Jeffrey Stedfast2003-04-051-0/+3
| | | | | | | | | | 2003-04-04 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_save_draft): If the composer isn't 'dirty', then don't autosave the draft (no need to). Fixes bug #40764. svn path=/trunk/; revision=20671
* Add a select-all callback and verb. (composer_entry_focus_in_event_cb):Jeffrey Stedfast2003-04-041-0/+18
| | | | | | | | | | 2003-04-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (menu_edit_select_all_cb): Add a select-all callback and verb. (composer_entry_focus_in_event_cb): Set our bonobo-ui verbs. svn path=/trunk/; revision=20661
* Keep track of which entry widget has focus.Jeffrey Stedfast2003-04-021-7/+138
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_entry_focus_in_event_cb): Keep track of which entry widget has focus. (composer_entry_focus_out_event_cb): Same. (control_entry_focus_in_event_cb): Same idea, but since this is in another component, tell that component that its widget has focus so it can merge bonoboui cut/copy/paste (and anything else) menus. (control_entry_focus_out_event_cb): Same. (setup_cut_copy_paste): Connect to the focus-in and focus-out events for all the entry widgets and the html editor. (menu_edit_cut_cb): New callback function since the composer will now own the Cut/Copy/Paste menu items sometimes (depending on which widget is in focus... confused yet? good). * e-msg-composer-hdrs.c (from_changed): Update the Reply-To entry to be a normal GtkEntry. (create_headers): Same. (e_msg_composer_hdrs_set_reply_to): Here too. (e_msg_composer_hdrs_get_reply_to): And finally here. svn path=/trunk/; revision=20623
* ** See bug #40300 & probably others.Not Zed2003-04-021-4/+16
| | | | | | | | | | | | | | 2003-04-01 Not Zed <NotZed@Ximian.com> ** See bug #40300 & probably others. * e-msg-composer.c (autosave_manager_query_load_orphans): make the composer arg a parent arg, its only used parent the dialogue. Fix caller casts. (e_msg_composer_check_autosave): new function, checks for autosave files, and recovers them per user instructions. svn path=/trunk/; revision=20616
* Convert to libglade-2's format.Jeffrey Stedfast2003-04-011-15/+14
| | | | | | | | | | | 2003-03-31 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.glade: Convert to libglade-2's format. * e-msg-composer.c (set_editor_signature): E_MSG_COMPOSER_HDRS (composer->hdrs)->account->id can never be NULL anymore. svn path=/trunk/; revision=20604
* Update for e_notice moveDan Winship2003-03-251-9/+9
| | | | | | * e-msg-composer.c: Update for e_notice move svn path=/trunk/; revision=20501
* Fixes for bug #39813Jeffrey Stedfast2003-03-211-7/+7
| | | | | | | | | | | | 2003-03-20 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #39813 * e-msg-composer.c (composer_finalise): Don't unregister the signature event handler here. (destroy): Unregister it here instead. svn path=/trunk/; revision=20442
* Change the logic to attach text parts when appropriate. (map_default_cb):Jeffrey Stedfast2003-03-201-11/+10
| | | | | | | | | | | 2003-03-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): Change the logic to attach text parts when appropriate. (map_default_cb): Grab the focus of the To entry widget. Fixes bug #39800. Fixes another #warning too. svn path=/trunk/; revision=20371
* Change the logic to attach text parts when appropriate.Jeffrey Stedfast2003-03-201-34/+30
| | | | | | | | | 2003-03-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): Change the logic to attach text parts when appropriate. svn path=/trunk/; revision=20367
* e_msg_composer_hdrs_get_subject() now returns const so don't g_free() itJeffrey Stedfast2003-03-191-23/+22
| | | | | | | | | | | | | | | | | | | | | | | 2003-03-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (do_exit): e_msg_composer_hdrs_get_subject() now returns const so don't g_free() it :-) (map_default_cb): Same as above. Also, the subject entry no longer derives from GnomeCanvas so eliminate the now unneeded casting to grab the focus of the subject widget. (e_msg_composer_get_subject): Return a const char * now. * e-msg-composer-hdrs.c (create_headers): Make the subject entry into a GtkEntry so we don't have to worry about i18n and other EEntry bugs anymore. Fixes numerous bugs (including #39924). (e_msg_composer_hdrs_set_subject): Use gtk_entry_set_text(). (e_msg_composer_hdrs_to_message_internal): e_msg_composer_hdrs_get_subject() now returns const. (e_msg_composer_hdrs_get_subject): Return a const char *. (entry_changed): e_msg_composer_hdrs_get_subject() now returns const. svn path=/trunk/; revision=20350
* Default the composer's title to "Create a message". Fixes bug #39696.Jeffrey Stedfast2003-03-141-1/+2
| | | | | | | | | 2003-03-13 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (create_composer): Default the composer's title to "Create a message". Fixes bug #39696. svn path=/trunk/; revision=20283
* Don't allow the returned charset to be NULL. (get_file_content): Make sureJeffrey Stedfast2003-03-051-2/+6
| | | | | | | | | | | 2003-03-04 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Don't allow the returned charset to be NULL. (get_file_content): Make sure there is buffered data before trying to convert it to UTF-8. svn path=/trunk/; revision=20139
* Same as below.Jeffrey Stedfast2003-02-261-3/+2
| | | | | | | | | | | 2003-02-25 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: Same as below. * e-msg-composer-attachment-bar.c: Go back to using e_iconv_charset_name(). svn path=/trunk/; revision=20059
* Make sure the url is != NULL? I can't think of anything else in this codeJeffrey Stedfast2003-02-251-0/+4
| | | | | | | | | | 2003-02-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (drag_data_received): Make sure the url is != NULL? I can't think of anything else in this code that could possibly cause bug #38382. svn path=/trunk/; revision=20046
* Don't save the HTML format setting to gconf. This option menu is meant forJeffrey Stedfast2003-02-231-5/+0
| | | | | | | | | | | | 2003-02-22 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_set_send_html): Don't save the HTML format setting to gconf. This option menu is meant for a per-essage setting (ie. once the composer closes, the next composer will again use the default and not what the user chose last time). svn path=/trunk/; revision=20004
* Same as below.Jeffrey Stedfast2003-02-211-2/+1
| | | | | | | | | | | | | 2003-02-20 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Same as below. * e-msg-composer-attachment-bar.c (get_default_charset): Use camel_charset_canonical_name() rather than e_iconv_charset_name() as the latter will be removed shortly. svn path=/trunk/; revision=19979
* default_account is now a string value, not an int.Jeffrey Stedfast2003-02-191-0/+2
| | | | | | | | | | | | 2003-02-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account): default_account is now a string value, not an int. (create_from_optionmenu): Same. (header_new_recipient): Use g_signal_connect_data() instead of the now deprecated gtk_signal_connect_full(). svn path=/trunk/; revision=19934
* clean upDan Winship2003-02-061-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: clean up * e-msg-composer.c (autosave_manager_query_load_orphans): #include string.h (menu_file_send_cb): s/gtk_signal_emit/g_signal_emit/ * e-msg-composer-attachment.c: #include string.h (e_msg_composer_attachment_edit): s/E_GLADEDIR/EVOLUTION_GLADEDIR * e-msg-composer-attachment-bar.c: #include string.h (pixbuf_for_mime_type): s/ICONSDIR/IMAGESDIR/ * e-msg-composer-hdrs.c: #include string.h * e-msg-composer-select-file.c (run_selector): Remove unused var * evolution-composer.c: #include string.h (evolution_composer_init): Remove unused var * listener.c: #include string.h (listener_new): Remove unused var svn path=/trunk/; revision=19804
* Split out the mailto handling code from here so we can use it in theJeffrey Stedfast2003-02-061-36/+51
| | | | | | | | | | | | | 2003-02-05 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_from_url): Split out the mailto handling code from here so we can use it in the drag-n-drop code too. (drag_data_received): If we find a mailto: url in the text/uri-list drop, pass that off to handle_mailto() so it can fill in the fields for us. svn path=/trunk/; revision=19768
* updated for e scroll frame --> gtk scrolled windowRadek Doulik2003-02-051-11/+11
| | | | svn path=/trunk/; revision=19736
* If the subject or body components of the mailto url are not in UTF-8,Jeffrey Stedfast2003-01-281-2/+23
| | | | | | | | | | 2003-01-27 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_from_url): If the subject or body components of the mailto url are not in UTF-8, convert them to UTF-8. svn path=/trunk/; revision=19662
* Load the view menu states from gconf. (e_msg_composer_set_send_html): SaveJeffrey Stedfast2003-01-241-99/+70
| | | | | | | | | | | | | | | | | | 2003-01-23 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_load_config): Load the view menu states from gconf. (e_msg_composer_set_send_html): Save the setting via gconf instead of bonobo-config. (e_msg_composer_set_view_from): Same. (e_msg_composer_set_view_replyto): Here too. (e_msg_composer_set_view_cc): Again here. (e_msg_composer_set_view_bcc): And finally here. (setup_ui): Fixed a #warning - use gconf instead of bonobo-conf. (destroy): No need to sync/destroy the bonobo-conf db, we don't use it anymore. svn path=/trunk/; revision=19606
* *** empty log message ***Ettore Perazzoli2003-01-231-1/+1
| | | | svn path=/trunk/; revision=19555
* Updated to use EAccountList and iterators. (evolution_composer_init):Jeffrey Stedfast2003-01-181-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | 2003-01-17 Jeffrey Stedfast <fejj@ximian.com> * evolution-composer.c (impl_Composer_set_headers): Updated to use EAccountList and iterators. (evolution_composer_init): Updated to use EAccount. * e-msg-composer.c (from_changed_cb): Updated to use the EAccount object. (e_msg_composer_new_with_message): Same. (e_msg_composer_get_preferred_account): Updated to return an EAccount object. (set_editor_signature): Updated to use an EAccountIdentity pointer. (get_signature_html): Same. * e-msg-composer-hdrs.c (create_from_optionmenu): Updated to use EAccount and EAccountList foo. (destroy): Same here. (e_msg_composer_hdrs_set_from_account): Here too. (e_msg_composer_hdrs_get_from): Updated. svn path=/trunk/; revision=19511
* mail_config_get_signature_list now returns a GSList.Jeffrey Stedfast2003-01-171-13/+12
| | | | | | | | | | | 2003-01-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (signature_cb): mail_config_get_signature_list now returns a GSList. (setup_signatures_menu): Same. (set_signature_gui): Here too. svn path=/trunk/; revision=19498
* (do_exit): Make dialog HIG compliantEttore Perazzoli2003-01-151-3/+9
| | | | | | [Discard/Cancel/Save]. svn path=/trunk/; revision=19471
* use the composer's charset gconf keyJeffrey Stedfast2003-01-081-1/+1
| | | | svn path=/trunk/; revision=19274
* Convenience function. (get_file_content): Use the convenience function toJeffrey Stedfast2003-01-081-4/+34
| | | | | | | | | | | | | | 2003-01-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset): Convenience function. (get_file_content): Use the convenience function to get the default charset setting. (best_charset): Same. (e_msg_composer_new): Use gconf to get the send_html setting. (e_msg_composer_new_post): Same. svn path=/trunk/; revision=19269
* fixesJeffrey Stedfast2003-01-031-11/+4
| | | | svn path=/trunk/; revision=19206
* Use camel_text_to_html(). (e_msg_composer_new_from_url): Same.Jeffrey Stedfast2002-12-171-12/+12
| | | | | | | | | | | | 2002-12-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (get_signature_html): Use camel_text_to_html(). (e_msg_composer_new_from_url): Same. * evolution-composer.c (impl_Composer_set_body): Use camel_text_to_html(). svn path=/trunk/; revision=19127
* Get rid of the unused exception variable.Jeffrey Stedfast2002-12-041-5/+0
| | | | | | | | | 2002-12-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (message_rfc822_dnd): Get rid of the unused exception variable. svn path=/trunk/; revision=18997
* removed warning about e_notice. its used too much, its here to stay.Not Zed2002-12-021-10/+9
| | | | | | | | | | | 2002-11-27 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (save): removed warning about e_notice. its used too much, its here to stay. * *.[ch]: run fix.sh over everything. svn path=/trunk/; revision=18973
* s/g_str[n]casecmp/str[n]casecmpJeffrey Stedfast2002-12-021-11/+11
| | | | | | | | 2002-12-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: s/g_str[n]casecmp/str[n]casecmp svn path=/trunk/; revision=18969
* properly chain finalise.Not Zed2002-11-261-2/+5
| | | | | | | | 2002-11-26 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (composer_finalise): properly chain finalise. svn path=/trunk/; revision=18918
* Duh! dont free subject & simplify logic a little.Not Zed2002-11-211-6/+1
| | | | | | | | | | | | | | 2002-11-21 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (subject_changed_cb): Duh! dont free subject & simplify logic a little. 2002-11-20 Not Zed <NotZed@Ximian.com> * e-msg-composer-hdrs.c (entry_changed): duh, emit the signal using an initialised value(!). svn path=/trunk/; revision=18873
* applied plain_signature_fix.patchRadek Doulik2002-11-201-1/+1
| | | | svn path=/trunk/; revision=18841
* dont unref after destroy. duh.Not Zed2002-11-191-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-19 Not Zed <NotZed@Ximian.com> * e-msg-composer-attachment-bar.c (add_from_file): dont unref after destroy. duh. * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_to): Add type code to set_property call. (e_msg_composer_hdrs_set_cc): " (e_msg_composer_hdrs_set_bcc): " (e_msg_composer_hdrs_get_to): Do the same for get_property calls. (init): ref/sink the tooltip object. (e_msg_composer_hdrs_get_type): fix return type. * e-msg-composer.c (GNOME_GTKHTML_EDITOR_CONTROL_ID): we want version 3.0 not 1.1. (create_composer): Add type code to set property call. (autosave_manager_query_load_orphans): my bad, we dont unref dialog's once we've destroyed 'em. (build_message): " (get_file_content): " (save): " (do_exit): " (composer_dispose): moved the autosave shutdown here. svn path=/trunk/; revision=18836
* Remove check for gtk_main_level(). as far as i can tell it serves no realNot Zed2002-11-181-36/+44
| | | | | | | | | | | | | 2002-11-18 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (create_composer): Remove check for gtk_main_level(). as far as i can tell it serves no real purpose, and i think gtkmain is now redundant. (e_msg_composer_new_with_message): Same here. (destroy): moved some stuff into finalise, and made destroy mulitcall safe. svn path=/trunk/; revision=18819
* Removed {BEGIN,END}_GNOME_DECLS.Ettore Perazzoli2002-11-141-3/+0
| | | | | | | | | | | * listener.h: Removed {BEGIN,END}_GNOME_DECLS. * e-msg-composer-select-file.c: Do not #include <libgnome/gnome-defs.h>. * e-msg-composer.c: Likewise. * listener.h: Likewise. svn path=/trunk/; revision=18738
* bonobo api changes.Not Zed2002-11-131-3/+3
| | | | | | | | 2002-11-13 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (setup_ui): bonobo api changes. svn path=/trunk/; revision=18733
* Fix bonobo object setup.Not Zed2002-11-081-235/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-08 Not Zed <NotZed@Ximian.com> * listener.c: Fix bonobo object setup. * e-msg-composer-hdrs.c: Remove oaf stuff, fix destroy to be multi-call safe. * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Remove utf8 from locale conversions, & glib api changes. (ok_cb): " * e-msg-composer-attachment-bar.c (add_from_file): gtk message dialog. (pixbuf_for_mime_type): glib,gnome-vfs api changes. (init): Estimate the icon_height based on the pango font description size, this is probably not correct. (properties_cb): (remove_cb): Changed signature for gnomeui callbacks. (popup_icon_context_menu): (popup_context_menu): popup_menu api change (destroy): Protect from multiple calls. (e_msg_composer_attachment_bar_new): Remove push/pop visual/colormap stuff. * composer-marshal.list: The list of marshallers used by the composer. * Makefile.am (composer-marshal.h): Added composer marshal builder. * evolution-composer.c (class_init): bonobo object epv setup change. (factory_fn): Fix changes to factory callback. * e-icon-list.c: (icon_get_height): Use bounding box to calc height. (icon_event): drop gtk_selection_extended. (e_icon_list_remove): " (select_icon): (unselect_icon): " * e-msg-composer.c (autosave_save_draft): Dup fd rather than poke camel_stream_fd's data. Also, use camel_stream_close() rather than flush. (autosave_manager_query_load_orphans): Port to gtk dialog. (autosave_query_cb): Removed, redundant. (save): Port to gtkdialog. (prepare_engine): Fix bonobo-object-client code. (get_file_content): gtk dialog (do_exit): gtk dialog. (setup_signatures_menu): dump gtkutf8 stuff. (marshal_NONE__NONE_INT): What WAS jeff thinking? Removed :) (class_init): g object setup. (e_msg_composer_get_type): " (create_composer): remove bonobo_window_construct, use create property instead. g_signal stuff. bonobo stuff. (is_special_header): Use ascii_strncasecmp (e_msg_composer_set_pending_body): gtk->g_object_get/set_data. (e_msg_composer_set_body): use ascii_strncasecmp (e_msg_composer_add_inline_image_from_mime_part): make cid const. (autosave_manager_register): (autosave_manager_unregister): Use g_path_get_basename() & account for differences. (composer_shutdown): rename to finalise/etc. (class_init): Use object:finalize instead of shutdown. (e_msg_composer_set_body): Use _() rather than U_(). (build_message): gtk dialog. 2002-11-06 Not Zed <NotZed@Ximian.com> * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Add error return to gdk_pixbuf_new_from_file(). svn path=/trunk/; revision=18659
* Add support for an attach option in the mailto: url.Jeffrey Stedfast2002-11-021-1/+3
| | | | | | | | | 2002-11-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_from_url): Add support for an attach option in the mailto: url. svn path=/trunk/; revision=18489
* Make sure to save References and In-Reply-To headers. Fixes bug #32932.Jeffrey Stedfast2002-10-311-1/+3
| | | | | | | | | 2002-10-29 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_message): Make sure to save References and In-Reply-To headers. Fixes bug #32932. svn path=/trunk/; revision=18469
* Don't create a new file if the file doesn't exist.Jeffrey Stedfast2002-10-051-1/+1
| | | | | | | | | 2002-10-02 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (get_file_content): Don't create a new file if the file doesn't exist. svn path=/trunk/; revision=18325
* If the user hits cancel when signing/encrypting, don't continueJeffrey Stedfast2002-10-021-2/+2
| | | | | | | | | | 2002-10-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): If the user hits cancel when signing/encrypting, don't continue constructing the message, instead abort (and just don't pop up a dialog). svn path=/trunk/; revision=18291
* When signing/encrypting a part, if a USER_CANCEL occurs, re-use the partJeffrey Stedfast2002-10-021-2/+4
| | | | | | | | | | 2002-10-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): When signing/encrypting a part, if a USER_CANCEL occurs, re-use the part otherwise unref it and replace it with the new part. svn path=/trunk/; revision=18290
* It's a grand old string-review! Nitpicky and minor changes; details in the ↵Aaron Weber2002-10-011-1/+3
| | | | | | appropriate ChangeLog files. svn path=/trunk/; revision=18268
* Don't reuse the part that we've signed and/or encrypted, create a new partJeffrey Stedfast2002-09-281-1/+4
| | | | | | | | | | 2002-09-27 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Don't reuse the part that we've signed and/or encrypted, create a new part container instead. Fixes bug #31379. svn path=/trunk/; revision=18257
* Fix non-ANSI switch statementDan Winship2002-09-231-0/+1
| | | | | | * e-msg-composer.c (save): Fix non-ANSI switch statement svn path=/trunk/; revision=18159
* allow to select last 2 menu itemsRadek Doulik2002-09-201-1/+1
| | | | | | | | | 2002-09-19 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (signature_cb): allow to select last 2 menu items svn path=/trunk/; revision=18128
* Handle multipart/signed and multipart/encrypted parts in a more expectedJeffrey Stedfast2002-09-181-32/+44
| | | | | | | | | | 2002-09-17 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_from_multipart): Handle multipart/signed and multipart/encrypted parts in a more expected way. Fixes bug #28453. svn path=/trunk/; revision=18099
* Mark a string for translation.Kjartan Maraas2002-09-161-1/+1
| | | | | | | | 2002-09-15 Kjartan Maraas <kmaraas@gnome.org> * e-msg-composer.c: Mark a string for translation. svn path=/trunk/; revision=18072
* (composer_key_pressed): Don't chain the eventEttore Perazzoli2002-09-061-9/+4
| | | | | | | handler here -- that's just wrong! Also stop emission of the signal when we catch Escape. svn path=/trunk/; revision=17987
* Make it so that the composer will close when the user hits Escape.Jeffrey Stedfast2002-09-051-14/+35
| | | | | | | | | 2002-09-04 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (create_composer): Make it so that the composer will close when the user hits Escape. svn path=/trunk/; revision=17983
* 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