Commit Graph

418 Commits

Author SHA1 Message Date
9634666fca This needs to return a const char * and not a char *, because we're not
2000-09-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer.c (e_msg_composer_get_sig_file): This needs to
	return a const char * and not a char *, because we're not actually
	allocating memory here.

svn path=/trunk/; revision=5173
2000-09-01 22:23:40 +00:00
248cb28e52 Always request to import the HTML version if at all possible so that we
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
2000-08-28 19:46:10 +00:00
1e291c07c0 Set the "From" address in the CamelMimeMessage. Also updated to use
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
2000-08-28 19:33:45 +00:00
9d00925828 kill using_oaf assertion.
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
2000-08-12 05:04:43 +00:00
64c6a63cf2 Check nrow, not srow.
2000-08-11  JP Rosevear  <jpr@helixcode.com>

	* mail-config-gui.c (news_edit_clicked): Check nrow, not srow.

svn path=/trunk/; revision=4738
2000-08-11 16:13:15 +00:00
ca25daf7b1 Remove unneeded e-setup.h include
* e-msg-composer.c: Remove unneeded e-setup.h include

svn path=/trunk/; revision=4709
2000-08-10 22:30:28 +00:00
8d36ddc51a Made async
2000-08-10  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer.c (exit_dialog_cb): Made async

svn path=/trunk/; revision=4698
2000-08-10 19:29:42 +00:00
9eebb1486e Workaround Zucchi's new append_message
svn path=/trunk/; revision=4693
2000-08-10 18:03:20 +00:00
8cb514d6dd Merge with camel-async.
svn path=/trunk/; revision=4687
2000-08-10 17:30:50 +00:00
17f64223d5 Fixed some warnings.
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
2000-08-09 23:01:03 +00:00
eb23edd391 Modified to allow dropdown entry-boxes as well (for headers like From:)
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
2000-08-09 22:19:41 +00:00
95684042a2 s/strncasecmp/g_strncasecmp - this will help later with building on
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
2000-08-07 18:27:17 +00:00
a7efe01005 Added code to set the body text based on the CamelMimeMessage.
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
2000-08-07 08:37:59 +00:00
c6c1164cca Prompt the user to save their composition in Drafts. (set_editor_text):
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
2000-08-07 06:22:02 +00:00
52fac8a12c Constify param
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
2000-08-01 21:27:39 +00:00
7f807a631f Typo fix
svn path=/trunk/; revision=4447
2000-08-01 15:50:39 +00:00
121d056d45 New function to create composer with sig file set.
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
2000-07-29 06:04:24 +00:00
fc661fb23a add textual exception printout. (set_editor_text): close pre tags & check
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
2000-07-25 21:14:58 +00:00
44f34e693b Update the insert text file command. Still waiting on GtkHtml.
svn path=/trunk/; revision=4315
2000-07-25 15:30:06 +00:00
c09bf79964 Remove GOAD support. (create_editor): Try to give a more helpful error
* 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
2000-07-25 01:20:48 +00:00
e3f8e22df0 Add a "Send HTML mail" toggle in the message composer.
svn path=/trunk/; revision=4284
2000-07-23 13:55:13 +00:00
9433853ca6 Change the message composer to use BonoboUIHandler directly instead of
translated GnomeUIInfo.

svn path=/trunk/; revision=4282
2000-07-23 12:15:07 +00:00
49618ae6eb Fix bug #345: Command to show/hide attachments in the composer
svn path=/trunk/; revision=4117
2000-07-12 18:27:34 +00:00
b3e9f04b68 Make the wm close button in the message composer work the same as
"File/Close".

svn path=/trunk/; revision=4040
2000-07-10 17:24:57 +00:00
815c033842 Don't load "" into the editor, because it will cause the editor component
* 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
2000-07-09 23:24:24 +00:00
4e266ce3d2 Create an empty "Edit" menu for the editor control to insert itself into.
* e-msg-composer.c (create_menubar): Create an empty "Edit" menu
	for the editor control to insert itself into.

svn path=/trunk/; revision=3985
2000-07-09 00:32:31 +00:00
f1b8cb078f Added code for initializing the values of the fields in the message
composer.  Unfortunately the ESelectNames crashes when you do this...

svn path=/trunk/; revision=3975
2000-07-08 12:01:12 +00:00
3fb1708c2c changed "Exit" to "Close" in the File menu
svn path=/trunk/; revision=3838
2000-06-30 22:52:59 +00:00
a2a6d4d922 Changed "Exit" to "Close" in the File menu. This is a little more
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
2000-06-29 22:34:21 +00:00
a612351173 Implement "Save"/"Save As...".
svn path=/trunk/; revision=3739
2000-06-26 18:07:22 +00:00
105f78dbe8 I18N the message composer's title bar. Don't install header files.
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
2000-06-17 03:10:38 +00:00
f73a4deee4 Don't line-wrap lines that start with ">".
* e-msg-composer.c (format_text): Don't line-wrap lines that start
	with ">".

svn path=/trunk/; revision=3569
2000-06-14 15:49:14 +00:00
c0748cf4f1 implemented a temp hack for the imap fetch by uid code
(works something like the POP code, should be fixed to work like we originally planned)

svn path=/trunk/; revision=3540
2000-06-13 00:27:30 +00:00
3fbf507949 If a paragraph starts with TABs, indent the whole paragraph to that tab
* 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
2000-06-12 20:40:16 +00:00
c845d685bb Make the message composer use a EScrollFrame for the attachment bar
and make the quit message I18N aware.

svn path=/trunk/; revision=3533
2000-06-12 20:29:39 +00:00
870e780ce2 Don't break on non-breaking spaces, don't keep non-breaking spaces that
* 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
2000-06-12 18:41:59 +00:00
5ec9e5b228 New convenience function.
* 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
2000-06-05 21:14:32 +00:00
147be136c4 Added the ability to save plain text mail.
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
2000-06-02 19:18:34 +00:00
9b1893e93d add a "format" argument so we can fetch different kinds of text.
* 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
2000-05-29 19:34:43 +00:00
f7f298203f #include <errno.h>
* e-msg-composer.c: #include <errno.h>

svn path=/trunk/; revision=3251
2000-05-28 19:58:14 +00:00
c6af86a140 routine to read the user's signature file. (set_editor_text): If the user
* 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
2000-05-26 15:40:50 +00:00
3c89185e9f Update for CamelMultipart changes.
* e-msg-composer.c (build_message): Update for CamelMultipart changes.

svn path=/trunk/; revision=3218
2000-05-26 14:46:56 +00:00
5de3176b65 Update for PersistStream changes
* e-msg-composer.c (get_editor_text, set_editor_text): Update for
	PersistStream changes

svn path=/trunk/; revision=3215
2000-05-26 14:28:04 +00:00
bd7bb08d47 Use camel_data_wrapper_new instead of camel_simple_data_wrapper_new.
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
2000-05-25 23:43:34 +00:00
52363dd1a2 Use camel_simple_data_wrapper_new rather than camel_data_wrapper_new.
* e-msg-composer.c (build_message): Use
	camel_simple_data_wrapper_new rather than camel_data_wrapper_new.

svn path=/trunk/; revision=3114
2000-05-18 01:03:44 +00:00
0e5f158b52 NUL-terminate the data extracted from the BonoboStream.
* e-msg-composer.c (get_editor_text): NUL-terminate the data
	extracted from the BonoboStream.

svn path=/trunk/; revision=3005
2000-05-12 18:20:47 +00:00
d901164ccc make it really work with oaf. I need to recompile everyhting now.. shit
svn path=/trunk/; revision=2914
2000-05-08 12:08:21 +00:00
b74fafebab uh
svn path=/trunk/; revision=2913
2000-05-08 11:55:53 +00:00
980f3552f4 make the composer work with oaf
svn path=/trunk/; revision=2912
2000-05-08 11:42:33 +00:00
7bd8141a28 unref content, etc. after attaching it to message.
* 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
2000-05-07 21:57:20 +00:00