aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
Commit message (Collapse)AuthorAgeFilesLines
* Always request to import the HTML version if at all possible so that weJeffrey Stedfast2000-08-291-4/+2
| | | | | | | | | | 2000-08-28 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (e_msg_composer_new_with_message): Always request to import the HTML version if at all possible so that we maintain formatting and other nifty stuff :-) svn path=/trunk/; revision=5085
* Set the "From" address in the CamelMimeMessage. Also updated to useJeffrey Stedfast2000-08-291-16/+32
| | | | | | | | | | | | | | | | 2000-08-28 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message): Set the "From" address in the CamelMimeMessage. Also updated to use get_subject to both make our lives easier and prepare for using UTF8 (e_msg_composer_hdrs_get_subject): Updated to behave similarly to get_from and return allocated memory (it will have to return allocated memory once it's converted to use UTF8 anyways) * e-msg-composer.c (setup_save_draft): Always set composer->send_html = TRUE so that formatting is preserved. svn path=/trunk/; revision=5084
* kill using_oaf assertion.Michael Meeks2000-08-121-1/+1
| | | | | | | | | | | | 2000-08-12 Michael Meeks <michael@helixcode.com> * main.c (main): kill using_oaf assertion. 2000-08-12 Michael Meeks <michael@helixcode.com> * e-msg-composer.c (get_text): get_text not get_txt. svn path=/trunk/; revision=4770
* Check nrow, not srow.JP Rosevear2000-08-121-3/+1
| | | | | | | | 2000-08-11 JP Rosevear <jpr@helixcode.com> * mail-config-gui.c (news_edit_clicked): Check nrow, not srow. svn path=/trunk/; revision=4738
* Remove unneeded e-setup.h includeDan Winship2000-08-111-1/+0
| | | | | | * e-msg-composer.c: Remove unneeded e-setup.h include svn path=/trunk/; revision=4709
* Made asyncJeffrey Stedfast2000-08-111-57/+82
| | | | | | | | 2000-08-10 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (exit_dialog_cb): Made async svn path=/trunk/; revision=4698
* Workaround Zucchi's new append_messagePeter Williams2000-08-111-4/+35
| | | | svn path=/trunk/; revision=4693
* Merge with camel-async.Peter Williams2000-08-111-8/+8
| | | | svn path=/trunk/; revision=4687
* Fixed some warnings.Christopher James Lahey2000-08-101-2/+2
| | | | | | | | | | | | | | 2000-08-09 Christopher James Lahey <clahey@helixcode.com> * e-msg-composer-address-dialog.c: Fixed some warnings. * e-msg-composer-hdrs.c: Switched the composer to use an EEntry for the subject field. * e-msg-composer.c: Changed the non scaling objects in this vbox to be FALSE, FALSE instead of FALSE, TRUE. svn path=/trunk/; revision=4675
* Modified to allow dropdown entry-boxes as well (for headers like From:)Jeffrey Stedfast2000-08-101-9/+9
| | | | | | | | | | | | | | | | | 2000-08-09 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer-hdrs.c (add_header): Modified to allow dropdown entry-boxes as well (for headers like From:) (setup_headers): Modified to use the correct enum type. (create_dropdown_entry): New convenience function to add a drop-down combo box and fill it in with identities (init): Set from_entry to NULL (e_msg_composer_hdrs_get_from): New convenience function to get the text in the From widget in the composer (e_msg_composer_hdrs_set_from): New convenience function to set the From header in the composer svn path=/trunk/; revision=4673
* s/strncasecmp/g_strncasecmp - this will help later with building onJeffrey Stedfast2000-08-081-6/+6
| | | | | | | | | 2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c: s/strncasecmp/g_strncasecmp - this will help later with building on different platforms :-) svn path=/trunk/; revision=4573
* Added code to set the body text based on the CamelMimeMessage.Jeffrey Stedfast2000-08-071-23/+32
| | | | | | | | | | 2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (e_msg_composer_new_with_message): Added code to set the body text based on the CamelMimeMessage. (set_editor_text): Use lowercase html tags... svn path=/trunk/; revision=4565
* Prompt the user to save their composition in Drafts. (set_editor_text):Jeffrey Stedfast2000-08-071-12/+137
| | | | | | | | | | | | | | | 2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (do_exit): Prompt the user to save their composition in Drafts. (set_editor_text): Uhm, use "-- \n" not "--\n" because the space is called for in the standard (e_msg_composer_new_with_message): New convenience function that takes a CamelMimeMessage as an argument. This will be useful when we code the ability to resume the editing of a message draft (like in the Drafts folder). svn path=/trunk/; revision=4562
* Constify paramJP Rosevear2000-08-021-3/+3
| | | | | | | | | | | | 2000-08-01 JP Rosevear <jpr@helixcode.com> * e-msg-composer.h: Constify param * e-msg-composer.c (get_signature): Constify param (set_editor_text): ditto (e_msg_composer_new_with_sig_file): ditto svn path=/trunk/; revision=4458
* Typo fixPeter Williams2000-08-011-1/+1
| | | | svn path=/trunk/; revision=4447
* New function to create composer with sig file set.JP Rosevear2000-07-291-10/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-07-28 JP Rosevear <jpr@arcavia.com> * e-msg-composer.c (e_msg_composer_new_with_sig_file): New function to create composer with sig file set. (e_msg_composer_get_sig_file): New function to get sig file (e_msg_composer_set_sig_file): New function to set sig file 2000-07-29 JP Rosevear <jpr@arcavia.com> * mail-format.c (mail_generate_reply): Use new mail config stuff * component-factory.c (create_imap_storage): Use new mail config stuff (create_news_storage): ditto * evolution-mail.schemas: Gconf schema for evolution mail * mail-config-druid.glade: Gladification of config druid * mail-config.h: New header with config structs. * mail-config.c: Rewrite of GUI configuration tools to use new config structs. Stores multiple identities and sources now. Still only uses the first one found. (mail_config_fetch): Returns MailConfig struct to caller for configuration queries. (mail_config): Renamed function to show mail config dialog. (mail_config_druid): Renamed function to show mail config druid. * mail-ops.c (create_msg_composer): Use e_msg_composer_new_with_sig_file and new config stuff (check_configured): Use new config stuff (fetch_mail): ditto (composer_send_cb): ditto svn path=/trunk/; revision=4413
* add textual exception printout. (set_editor_text): close pre tags & checkMichael Meeks2000-07-261-3/+8
| | | | | | | | | | | | | | | | | | | | 2000-07-25 Michael Meeks <michael@helixcode.com> * e-msg-composer.c (get_text): add textual exception printout. (set_editor_text): close pre tags & check for pre-existing sig separator. 2000-07-25 Michael Meeks <michael@helixcode.com> * mail-config.c (create_identity_page): set default signature to ~/.signature 2000-07-25 Michael Meeks <michael@helixcode.com> * backend/ebook/load-pine-addressbook.c (book_open_cb): check we opened ok. svn path=/trunk/; revision=4330
* Update the insert text file command. Still waiting on GtkHtml.Peter Williams2000-07-251-41/+39
| | | | svn path=/trunk/; revision=4315
* Remove GOAD support. (create_editor): Try to give a more helpful errorDan Winship2000-07-251-5/+1
| | | | | | | | * e-msg-composer.c: Remove GOAD support. (create_editor): Try to give a more helpful error message when failing to load the editor control. svn path=/trunk/; revision=4300
* Add a "Send HTML mail" toggle in the message composer.Ettore Perazzoli2000-07-231-73/+143
| | | | svn path=/trunk/; revision=4284
* Change the message composer to use BonoboUIHandler directly instead ofEttore Perazzoli2000-07-231-178/+165
| | | | | | translated GnomeUIInfo. svn path=/trunk/; revision=4282
* Fix bug #345: Command to show/hide attachments in the composerPeter Williams2000-07-131-4/+183
| | | | svn path=/trunk/; revision=4117
* Make the wm close button in the message composer work the same asEttore Perazzoli2000-07-111-14/+40
| | | | | | "File/Close". svn path=/trunk/; revision=4040
* Don't load "" into the editor, because it will cause the editor componentDan Winship2000-07-101-1/+4
| | | | | | | * e-msg-composer.c (set_editor_text): Don't load "" into the editor, because it will cause the editor component to g_warning. svn path=/trunk/; revision=4026
* Create an empty "Edit" menu for the editor control to insert itself into.Dan Winship2000-07-091-0/+5
| | | | | | | * e-msg-composer.c (create_menubar): Create an empty "Edit" menu for the editor control to insert itself into. svn path=/trunk/; revision=3985
* Added code for initializing the values of the fields in the messageEttore Perazzoli2000-07-081-0/+2
| | | | | | composer. Unfortunately the ESelectNames crashes when you do this... svn path=/trunk/; revision=3975
* changed "Exit" to "Close" in the File menuJeffrey Stedfast2000-07-011-10/+6
| | | | svn path=/trunk/; revision=3838
* Changed "Exit" to "Close" in the File menu. This is a little moreJeffrey Stedfast2000-06-301-9/+3
| | | | | | | | | | 2000-06-29 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c: Changed "Exit" to "Close" in the File menu. This is a little more intuitive as it does not suggest exiting the application, just says "close this window" svn path=/trunk/; revision=3814
* Implement "Save"/"Save As...".Ettore Perazzoli2000-06-271-10/+72
| | | | svn path=/trunk/; revision=3739
* I18N the message composer's title bar. Don't install header files.Ettore Perazzoli2000-06-171-30/+95
| | | | | | | | | Initial implementation of the "Open" and "Save as" commands (not really tested/finished, I am just syncing the tree before leaving). Put the cursor on the "To:" field when the message composer is shown. Set the correct shadow type in the scroll frame. svn path=/trunk/; revision=3603
* Don't line-wrap lines that start with ">".Dan Winship2000-06-141-2/+3
| | | | | | | * e-msg-composer.c (format_text): Don't line-wrap lines that start with ">". svn path=/trunk/; revision=3569
* implemented a temp hack for the imap fetch by uid codeJeffrey Stedfast2000-06-131-18/+8
| | | | | | (works something like the POP code, should be fixed to work like we originally planned) svn path=/trunk/; revision=3540
* If a paragraph starts with TABs, indent the whole paragraph to that tabDan Winship2000-06-131-12/+28
| | | | | | | * e-msg-composer.c (format_text): If a paragraph starts with TABs, indent the whole paragraph to that tab level. svn path=/trunk/; revision=3534
* Make the message composer use a EScrollFrame for the attachment barEttore Perazzoli2000-06-131-16/+16
| | | | | | and make the quit message I18N aware. svn path=/trunk/; revision=3533
* Don't break on non-breaking spaces, don't keep non-breaking spaces thatDan Winship2000-06-131-5/+19
| | | | | | | | | * e-msg-composer.c (format_text): Don't break on non-breaking spaces, don't keep non-breaking spaces that fall after a line wrap, and translate non-breaking spaces to regular ones after wrapping. svn path=/trunk/; revision=3530
* New convenience function.Dan Winship2000-06-061-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-msg-composer.c (e_msg_composer_attach): New convenience function. * e-msg-composer-attachment.c: Store a CamelMimePart rather than filename/description/mime_type info. Also record whether we were told or guessed the MIME type. (e_msg_composer_attachment_new_from_mime_part): New constructor. (e_msg_composer_attachment_edit): Remove the "browse" button. (If the user wants to change the actual file that the attachment is based on, he should delete the attachment and create a new one...) Remove the "Apply" button, because it's not all that useful. Make the MIME type only track the filename if it was guessed rather than being provided. * e-msg-composer-attachment.glade: Remove "browse" and "apply" buttons. Make filename editable. * e-msg-composer-attachment-bar.c (sort): Removed. Send the attachments in the order the user attached them in. (text_changed): Removed, since we weren't enabling the relevant GnomeIconList functionality that would have used this. (update): Don't print the size if it's 0. (attach_to_multipart, etc): adjust for EMsgComposerAttachment changes. (attach_to_multipart): Use 7bit encoding for message/ subparts. (e_msg_composer_attachment_bar_attach_mime_part): New convenience function. svn path=/trunk/; revision=3430
* Added the ability to save plain text mail.Christopher James Lahey2000-06-031-25/+75
| | | | | | | | 2000-06-02 Christopher James Lahey <clahey@helixcode.com> * e-msg-composer.c: Added the ability to save plain text mail. svn path=/trunk/; revision=3397
* add a "format" argument so we can fetch different kinds of text.Dan Winship2000-05-301-27/+78
| | | | | | | | | | * e-msg-composer.c (get_editor_text): add a "format" argument so we can fetch different kinds of text. (format_text): New function to do line wrapping on plain text. (build_message): Build multipart/alternative messages rather than HTML-only ones. Yay. We don't suck (as much) any more! svn path=/trunk/; revision=3267
* #include <errno.h>Dan Winship2000-05-291-0/+1
| | | | | | * e-msg-composer.c: #include <errno.h> svn path=/trunk/; revision=3251
* routine to read the user's signature file. (set_editor_text): If the userDan Winship2000-05-261-1/+68
| | | | | | | | | | | * e-msg-composer.c (get_signature): routine to read the user's signature file. (set_editor_text): If the user has configured a signature, append it to the set text. (e_msg_composer_new): Call set_editor_text with "" to load the signature (if any). svn path=/trunk/; revision=3220
* Update for CamelMultipart changes.Dan Winship2000-05-261-0/+3
| | | | | | * e-msg-composer.c (build_message): Update for CamelMultipart changes. svn path=/trunk/; revision=3218
* Update for PersistStream changesDan Winship2000-05-261-2/+2
| | | | | | | * e-msg-composer.c (get_editor_text, set_editor_text): Update for PersistStream changes svn path=/trunk/; revision=3215
* Use camel_data_wrapper_new instead of camel_simple_data_wrapper_new.Not Zed2000-05-261-1/+1
| | | | | | | | | 2000-05-25 Not Zed <NotZed@HelixCode.com> * e-msg-composer.c (build_message): Use camel_data_wrapper_new instead of camel_simple_data_wrapper_new. svn path=/trunk/; revision=3209
* Use camel_simple_data_wrapper_new rather than camel_data_wrapper_new.Dan Winship2000-05-181-1/+1
| | | | | | | * e-msg-composer.c (build_message): Use camel_simple_data_wrapper_new rather than camel_data_wrapper_new. svn path=/trunk/; revision=3114
* NUL-terminate the data extracted from the BonoboStream.Dan Winship2000-05-131-1/+5
| | | | | | | * e-msg-composer.c (get_editor_text): NUL-terminate the data extracted from the BonoboStream. svn path=/trunk/; revision=3005
* make it really work with oaf. I need to recompile everyhting now.. shitMathieu Lacage2000-05-081-1/+1
| | | | svn path=/trunk/; revision=2914
* uhMathieu Lacage2000-05-081-1/+1
| | | | svn path=/trunk/; revision=2913
* make the composer work with oafMathieu Lacage2000-05-081-3/+9
| | | | svn path=/trunk/; revision=2912
* unref content, etc. after attaching it to message.Dan Winship2000-05-081-0/+4
| | | | | | | | | | * e-msg-composer.c (build_message): unref content, etc. after attaching it to message. * e-msg-composer-attachment-bar.c (attach_to_multipart): unref part after attaching it. svn path=/trunk/; revision=2884
* New routine, to process mailto URLs.Dan Winship2000-04-281-0/+125
| | | | | | | * e-msg-composer.c (e_msg_composer_new_from_url): New routine, to process mailto URLs. svn path=/trunk/; revision=2663
* Oops. Fix previous commit so we don't get a mime part nested directlyDan Winship2000-04-271-5/+15
| | | | | | inside a mime part svn path=/trunk/; revision=2651
* Only generate a multipart message if there are attachments. OtherwiseDan Winship2000-04-271-9/+11
| | | | | | | | * e-msg-composer.c (build_message): Only generate a multipart message if there are attachments. Otherwise generate a single part. svn path=/trunk/; revision=2648
* Remove. We weren't using the fields that made this different fromDan Winship2000-04-271-5/+4
| | | | | | | | | | | | | * camel-mime-body-part.[ch]: Remove. We weren't using the fields that made this different from camel-mime-part, so it basically just forced us to do lots of gratuitous typecasting. * camel-multipart.[ch]: Use CamelMimePart. Remove the multipart parent stuff, since we weren't using that either. * etc: update for CamelMimeBodyPart -> CamelMimePart svn path=/trunk/; revision=2645
* Update for camel_mime_part_set_content.Dan Winship2000-04-271-4/+2
| | | | svn path=/trunk/; revision=2644
* add a s/SIMPLE_// that notzed missed remove a now-unused variableDan Winship2000-04-261-1/+0
| | | | | | | | * e-msg-composer-attachment-bar.c (attach_to_multipart): add a s/SIMPLE_// that notzed missed * e-msg-composer.c (build_message): remove a now-unused variable svn path=/trunk/; revision=2630
* Use camel_mime_part_set_text() to set the text rather than messing withNotZed2000-04-261-6/+3
| | | | | | | | | | | | | 2000-04-26 NotZed <NotZed@HelixCode.com> * e-msg-composer.c (build_message): Use camel_mime_part_set_text() to set the text rather than messing with data wrappers. * e-msg-composer-attachment-bar.c (attach_to_multipart): Change for new camel-stream interfaces. (attach_to_multipart): Also set base64 encoding by default. svn path=/trunk/; revision=2623
* fix menu problem in composer windowRadek Doulik2000-04-261-7/+4
| | | | | | | | | | | | * fix menu problem in composer window 2000-04-25 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (create_editor): use uih here (e_msg_composer_construct): create menubar/toolbar before creating editor control svn path=/trunk/; revision=2604
* new function to make the composer record additional headers it shouldDan Winship2000-04-231-1/+45
| | | | | | | | | * e-msg-composer.c (e_msg_composer_add_header): new function to make the composer record additional headers it should output. (In-Reply-To), etc. (build_message): output them svn path=/trunk/; revision=2552
* Connect "Exit" menu item finally.Dan Winship2000-04-221-1/+21
| | | | | | * e-msg-composer.c (exit_cb): Connect "Exit" menu item finally. svn path=/trunk/; revision=2549
* new functionsDan Winship2000-04-221-0/+43
| | | | | | | | | | | | | * e-msg-composer.c (e_msg_composer_set_headers): (e_msg_composer_set_body_text): new functions * e-msg-composer-hdrs.c: const poisoning (e_msg_composer_hdrs_set_subject): (e_msg_composer_hdrs_get_subject): new functions * e-msg-composer-address-entry.c: const poisoning svn path=/trunk/; revision=2548
* new functions to get and set the contents of the HTML editor viaDan Winship2000-04-211-4/+77
| | | | | | | | | * e-msg-composer.c (get_editor_text, set_editor_text): new functions to get and set the contents of the HTML editor via Bonobo::PersistStream. (build_message): use get_editor_text. This works again. svn path=/trunk/; revision=2527
* Remove the "session" field from CamelMimeMessage. Nothing uses it, aboutDan Winship2000-04-181-1/+1
| | | | | | | | | | | | * camel-mime-message.[ch]: Remove the "session" field from CamelMimeMessage. Nothing uses it, about half of the existing calls to camel_mime_message_new_with_session pass NULL, and there's no obvious reason for it to be there. * others: Use camel_mime_message_new instead of camel_mime_message_new_with_session svn path=/trunk/; revision=2479
* Get the menubar to work.Bertrand Guiheneuf2000-03-171-2/+2
| | | | svn path=/trunk/; revision=2118
* Further work.Ettore Perazzoli2000-03-081-9/+15
| | | | svn path=/trunk/; revision=2088
* Bonobization of the message composer, part 1.Ettore Perazzoli2000-03-021-19/+120
| | | | svn path=/trunk/; revision=2012
* Don't use libglade for menus and toolbars in the message composerEttore Perazzoli2000-03-021-86/+2
| | | | | | anymore. This is the first step; next step is to use BonoboUIHandler. svn path=/trunk/; revision=2010
* More work:Ettore Perazzoli1999-11-171-0/+564
- Fixed some Camel API naming issues. - Moved the message composer stuff to the `composer' directory. svn path=/trunk/; revision=1395