Commit Graph

271 Commits

Author SHA1 Message Date
Ettore Perazzoli 91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
Jeffrey Stedfast 49ccbcf14e Emit the POSTPONE signal if we are offline. (setup_ui): If we are offline,
2001-06-21  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (menu_file_send_cb): Emit the POSTPONE signal
	if we are offline.
	(setup_ui): If we are offline, change the Control+Enter accel to
	be on the SendLater menu item.

svn path=/trunk/; revision=10372
2001-06-21 18:35:24 +00:00
Jeffrey Stedfast 1d48ee9a8b Save the formatting preference for this message draft using a
2001-06-20  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (save_draft): Save the formatting preference
	for this message draft using a X-Evolution-Format header.
	(e_msg_composer_new_with_message): Restore the format editing
	preference and also remove any other X-Evolution-* headers that we
	may have set.

svn path=/trunk/; revision=10348
2001-06-20 20:49:10 +00:00
Dave Camp 90aba2dbfd Changed attachData to accept a sequence of chars rather than a string.
2001-06-20  Dave Camp  <dave@ximian.com>

	* Evolution-Composer.idl: Changed attachData to accept a sequence of
	chars rather than a string.

	* evolution-composer.c (impl_Composer_attach_data): Changed the 'data'
	argument to a GNOME_Evolution_Composer_AttachmentData, and pass
	data->_buffer and data->_length to camel_mime_part_set_content().

2001-06-20  Dave Camp  <dave@ximian.com>

	* gui/itip-utils.c (itip_send_comp): Changed attach_data
	to be a GNOME_Evolution_Composer_AttachmentData rather than a
	CORBA_char*.

2001-06-20  Dave Camp  <dave@ximian.com>

	* backend/ebook/e-card.c (e_card_list_send): Changed attach_data
	to be a GNOME_Evolution_Composer_AttachmentData rather than a
	CORBA_char*.

svn path=/trunk/; revision=10343
2001-06-20 18:29:03 +00:00
JP Rosevear 477830f760 send the message
2001-06-19  JP Rosevear  <jpr@ximian.com>

	* evolution-composer.c (impl_Composer_send): send the message

	* Evolution-Composer.idl: add a "send" method to send a message
	without showing the editor

svn path=/trunk/; revision=10309
2001-06-19 23:01:33 +00:00
Jeffrey Stedfast 85698a3ff5 Don't define the drop_types here. (drag_data_received): Implement
2001-06-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_construct): Don't define the
	drop_types here.
	(drag_data_received): Implement message/rfc822 dnd drop type
	handling.

svn path=/trunk/; revision=10295
2001-06-19 18:46:47 +00:00
Dan Winship 1391cd5ced Replace the disposition option menu with a checkbox.
* e-msg-composer-attachment.glade: Replace the disposition option
	menu with a checkbox.

	* e-msg-composer-select-file.c
	(e_msg_composer_select_file_attachment): New function to select a
	file to attach. Adds a "suggest inline disposition" checkbox.

	* e-msg-composer-attachment.c (e_msg_composer_attachment_new): Add
	a disposition argument rather than always defaulting to
	"attachment".
	(struct _DialogData, ok_cb, e_msg_composer_attachment_edit):
	Update for optionmenu->checkbox change for disposition.

	* e-msg-composer-attachment-bar.c (add_from_file): Add a
	disposition argument.
	(add_from_user): Use e_msg_composer_select_file_attachment, pass
	chosen disposition to add_from_file.
	(e_msg_composer_attachment_bar_attach): Pass "attachment" to
	add_from_file for the disposition.

svn path=/trunk/; revision=10200
2001-06-12 18:04:15 +00:00
Dan Winship e3258e5bd7 Fix again... don't leave *encoding uninitialized in the US-ASCII case.
* e-msg-composer.c (best_charset): Fix again... don't leave
	*encoding uninitialized in the US-ASCII case.

svn path=/trunk/; revision=10193
2001-06-11 22:31:54 +00:00
Jon Trowbridge df452e3589 Rearranged gtk_widget_show()s a bit to fix Bug#3204. The composer is now
2001-06-11  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer.c (e_msg_composer_construct): Rearranged
	gtk_widget_show()s a bit to fix Bug#3204.  The composer is now
	(like the rest of Evo) properly network transparent.

svn path=/trunk/; revision=10191
2001-06-11 21:56:05 +00:00
Jon Trowbridge 1cb2bd29be When saving a draft, attach information about the From: identity via
2001-06-08  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer.c (save_draft): When saving a draft, attach
	information about the From: identity via X-Evolution-Account.
	This lets us select the correct identity when we edit it later.
	(e_msg_composer_new_with_message): If the message we are editting
	is tagged with an account (via X-Evolution-Account), make sure
	that the composer chooses that account's identity by default.

svn path=/trunk/; revision=10161
2001-06-08 20:00:54 +00:00
Dan Winship 1921719e0f Don't use the default charset if the message is US-ASCII.
* e-msg-composer.c (best_charset): Don't use the default charset
	if the message is US-ASCII.

svn path=/trunk/; revision=10157
2001-06-08 17:50:24 +00:00
Radek Doulik 30cd3d3957 just set sig_file field, but don't actualy insert signature, it will be
2001-06-07  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_with_sig_file): just set
	sig_file field, but don't actualy insert signature, it will be
	done by format menu item callback
	(e_msg_composer_set_body_text): don't set signature here

svn path=/trunk/; revision=10142
2001-06-07 11:07:04 +00:00
Jeffrey Stedfast f29afac4e6 If user is trying to sign his/her message, try first to use the key that
2001-06-01  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): If user is trying to sign
	his/her message, try first to use the key that they might have
	provided in their account settings. If that was never set, default
	to their email address. Also respect their config option to
	encrypt-to-self.

svn path=/trunk/; revision=10103
2001-06-02 21:07:44 +00:00
Jeffrey Stedfast 9d1e57701a Oops. Fix a few compile problems.
2001-05-31  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Oops. Fix a few compile problems.

svn path=/trunk/; revision=10076
2001-05-31 23:20:54 +00:00
Christopher James Lahey e5ecf5d84e Use --moddatadir to derive this.
2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* configure.in (GTKHTML_DATADIR): Use --moddatadir to derive this.

From composer/ChangeLog:

2001-05-31  Christopher James Lahey  <clahey@ximian.com>

	* Makefile.am (HTML_EDITOR_GENERATED): Use GTKHTML_DATADIR here.

svn path=/trunk/; revision=10070
2001-05-31 21:11:41 +00:00
Jeffrey Stedfast 097a78bccf Fixed up the S/MIME signing/encrypting code to work with the new API.
2001-05-31  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Fixed up the S/MIME
	signing/encrypting code to work with the new API.

svn path=/trunk/; revision=10069
2001-05-31 21:07:51 +00:00
Dan Winship d680763eba Add a missing iconv_close
* e-msg-composer.c (best_encoding): Add a missing iconv_close

svn path=/trunk/; revision=10060
2001-05-31 15:56:02 +00:00
Dan Winship fc68923b11 Use the config-specified default character set (which in turn defaults to
* e-msg-composer.c (build_message): Use the config-specified
	default character set (which in turn defaults to the locale
	character set) as the default for encoding non-US-ASCII messages,
	assuming it works. Fall back to camel_charset_best() if it fails.
	Also, pick the Content-Transfer-Encoding based on how the data
	looks in the destination charset, not in UTF8.

	While I was here, I also refactored a bunch and tried to reduce
	redundant code. There are still too many places that set the
	transfer-encoding on the plaintext part though... Also, I think
	some more cleanliness could happen if the sign/encrypt interfaces
	returned CamelMultiparts instead of CamelMimeParts.

svn path=/trunk/; revision=10058
2001-05-30 22:05:36 +00:00
Jeffrey Stedfast aaa9b9bb2a Use e_utf8_to_gtk_string() on the description of the attachment since
2001-05-28  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (update): Use
	e_utf8_to_gtk_string() on the description of the attachment since
	camel stores these as utf-8 strings.

svn path=/trunk/; revision=10036
2001-05-29 01:13:38 +00:00
Jason Leach b711b67347 srcdir != builddir fix.
2001-05-28  Jason Leach  <jleach@ximian.com>

	* Makefile.am (INCLUDES): srcdir != builddir fix.

svn path=/trunk/; revision=10031
2001-05-28 19:55:47 +00:00
Radek Doulik cd3efd875d (menu_edit_delete_all_cb): be more careful about text color and
style

svn path=/trunk/; revision=9965
2001-05-24 18:39:57 +00:00
Jeffrey Stedfast a0c112f4dc Populate the extra_hdr_* arrays with any non-special-case headers.
2001-05-24  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_with_message): Populate the
	extra_hdr_* arrays with any non-special-case headers.
	(is_special_header): New convenience function to determine if a
	header is a "special" header or not.

svn path=/trunk/; revision=9963
2001-05-24 17:27:51 +00:00
Radek Doulik 9da50381ab new callback (menu_edit_delete_all_cb): set orig to 0 too
2001-05-24  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (menu_edit_delete_all_cb): new callback
	(menu_edit_delete_all_cb): set orig to 0 too

svn path=/trunk/; revision=9961
2001-05-24 14:51:08 +00:00
Radek Doulik 6245eada6f new callback
2001-05-24  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (menu_edit_delete_all_cb): new callback

svn path=/trunk/; revision=9959
2001-05-24 14:42:19 +00:00
Radek Doulik e060e9b60c set orig to 0
2001-05-23  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (e_msg_composer_set_sig_file): set orig to 0

svn path=/trunk/; revision=9943
2001-05-23 11:33:06 +00:00
Jon Trowbridge 3ca3f79dbe Return the serialized EDestinations (rather than just a string w/ e-mail
2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * gui/component/select-names/e-select-names-bonobo.c
        (entry_get_property_fn): Return the serialized EDestinations
        (rather than just a string w/ e-mail addresses) through the bonobo
        component's property bag.

        * gui/component/select-names/e-select-names-model.c
        (e_select_names_model_export_destinationv): Added.  A convenience routine
        for serializing the model's EDestinations into a string.

        * gui/component/select-names/e-select-names-popup.c
        (add_html_mail): Added.  Puts in a check menu item for whether or
        not the recipient wants HTML mail.
        (popup_menu_card): Add menu item for HTML mail.  Enable edit
        contact info item.
        (popup_menu_nocard): Add menu item for HTML mail.  Enable edit
        contact info item.

        * backend/ebook/e-book-util.c (e_book_use_local_address_book):
        Added.  Fetches the local addressbook and caches it on the first
        call.  This is meant to be an easy and efficient way to get at the
        local addressbook with the minimum of code.
        (e_book_query_address_locally): Added.  Convenience code that
        does an e-mail only e_book_name_and_email_query against the
        local address book.

        * backend/ebook/e-destination.c
        (e_destination_set_html_mail_pref): Added.  Allows the intended
        recipient's HTML mail preference to be manipulated.
        (e_destination_get_email_verbose): Added.  Cleaned up to use
        e_destination_get_name.
        (e_destination_get_html_mail_pref): Added.  Read the recipient's HTML mail
        preference.  If the destination is linked to a card, the
        preference is taken from the card (unless it has been explicitly
        overridden by a called to e_destination_set_html_mail_pref).
        (e_destination_get_address_textv): Added.  Form a unified address string
        from a NULL-terminated vector of EDestinations.
        (e_destination_export): Added.  Serialize an EDestination to a string.
        (e_destination_import): Added.  Unserialize a string to build an
        EDestination.
        (e_destination_exportv): Added.  Serialize a NULL-terminated vector of
        EDestinations to a string.
        (e_destination_importv): Added.  Unserialize a string to build a
        NULL-terminated vector of EDestinations.

        * gui/component/select-names/e-select-names-completion.c:
        Implemented local versions of g_strcasecmp and g_strncasecmp
        (which should really be in glib, I think...) for utf8, and used
        them to make this code utf8-safe.

2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * Makefile.am (evolution_mail_LDADD): Added libebook.la (which is
        now required by the composer.)

2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * e-msg-composer-hdrs.c (set_recipients): Properly unserialize the
        string returned by the "text" property of the bonobo control,
        convert it into EDestinations, and use them to get the e-mail
        addresses of our recipients.

22001-05-18  Jon Trowbridge  <trow@ximian.com>

        * Makefile.am (SUBDIRS): Changed build order.  Now addressbook
        gets built before mail.

svn path=/trunk/; revision=9878
2001-05-18 07:10:04 +00:00
Dan Winship 7dac398365 Draft messages should be marked read.
* e-msg-composer.c (save_draft): Draft messages should be marked
	read.

svn path=/trunk/; revision=9871
2001-05-17 18:50:09 +00:00
Jeffrey Stedfast 1849ce6cd2 Added S/MIME sign/encrypt code. (init): Initalize smime_sign/encrypt.
2001-05-16  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Added S/MIME sign/encrypt code.
	(init): Initalize smime_sign/encrypt.
	(e_msg_composer_get_smime_encrypt): new
	(e_msg_composer_set_smime_encrypt): new
	(e_msg_composer_get_smime_sign): new
	(e_msg_composer_set_smime_sign): new
	(menu_security_smime_sign_cb): new
	(menu_security_smime_encrypt_cb): new
	(setup_ui): Setup the UI for S/MIME stuff.

svn path=/trunk/; revision=9858
2001-05-16 21:52:49 +00:00
Jeffrey Stedfast f6f8e3c3e8 If we are creating a message with only a single part (ie no attachments
2001-05-10  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): If we are creating a message
	with only a single part (ie no attachments and we will not be
	signing/encrypting the part) then `part = CAMEL_MIME_PART(message)`
	otherwise create a new MIME part and set it's content-object as the
	message's content-object at a later date.

svn path=/trunk/; revision=9749
2001-05-10 20:43:50 +00:00
Jeffrey Stedfast ffea73e2e6 Don't wrap content-id with brackets here as it is now done internally in
2001-05-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (add_inlined_image): Don't wrap content-id with
	brackets here as it is now done internally in camel.

svn path=/trunk/; revision=9736
2001-05-09 21:50:55 +00:00
Radek Doulik 57546880c8 signature editing fixes
* signature editing fixes

2001-05-03  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (get_signature_html): put signature in 100%
	width table
	(delete_old_signature): look only for first flow with signature == 1
	(e_msg_composer_new): don't insert <BR>
	(e_msg_composer_new_with_sig_file): ditto
	(delete_old_signature): don't delete whole signature paragraph,
	but just it's content
	(delete_old_signature): if signature isn't found, insert new empty
	paragraph to end of document for new signature
	(e_msg_composer_set_sig_file): delete signature always
	(e_msg_composer_set_sig_file): don't place signature to the end of
	document, but place it where previous one was (if there wasn't
	then new one is appended to the document)

2001-05-02  Radek Doulik  <rodo@ximian.com>

	* listener.c (impl_event): do automagic indenting only when
	in_signature_insert is FALSE

	* e-msg-composer.c (e_msg_composer_set_sig_file): do indent-zero
	before signature inserting
	(e_msg_composer_set_sig_file): use in_signature_insert flag

2001-05-01  Radek Doulik  <rodo@ximian.com>

	* listener.c (impl_event): set signature to 0 in newly created
	empty paragraphs
	(clear_signature): new helper function

svn path=/trunk/; revision=9658
2001-05-03 19:34:28 +00:00
Dan Winship 8af4ab06a2 Remove UNICODE_CFLAGS
* Makefile.am (INCLUDES): Remove UNICODE_CFLAGS

svn path=/trunk/; revision=9582
2001-04-26 15:13:40 +00:00
Radek Doulik 89c5aea7a6 block/unblock redraw
2001-04-25  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (e_msg_composer_set_send_html): block/unblock
	redraw

svn path=/trunk/; revision=9564
2001-04-25 17:06:45 +00:00
Radek Doulik 0f25a90781 signature changing
* signature changing

2001-04-25  Radek Doulik  <rodo@ximian.com>

        * listener.c (impl_event): reflect object data type change

        * e-msg-composer.c (get_sig_file_content): renamed from
        get_signature
        (get_signature_html): new helper function, uses
        get_sig_file_content
        (set_editor_text): removed signature parameters
        (from_changed_cb): new signal handler, sets signature by identity
        change
        (delete_old_signature): new function, deletes old signature from
        the document
        (e_msg_composer_set_sig_file): new method, set's signature
        filename
        (e_msg_composer_mark_text_orig): removed (obsolete)

        * e-msg-composer-hdrs.c: added signal FROM_CHANGED

svn path=/trunk/; revision=9557
2001-04-25 09:31:56 +00:00
Duncan Mak adb3761ed6 Set window_icon of the Composer window to be compose-message.png
svn path=/trunk/; revision=9489
2001-04-21 20:20:34 +00:00
Radek Doulik b9e1a09780 more auto-indentation magic
2001-04-17  Radek Doulik  <rodo@ximian.com>

	* listener.c (reply_indent): more auto-indentation magic

svn path=/trunk/; revision=9432
2001-04-17 20:42:43 +00:00
Michael Meeks 04fac44de1 Do this everywhere, also fixup CLEANFILES
Do this everywhere, also fixup CLEANFILES

2001-04-14  Michael Meeks  <michael@ximian.com>

	* Makefile.am (dist-hook): remove built sources from dist.

svn path=/trunk/; revision=9309
2001-04-14 08:02:59 +00:00
Jeffrey Stedfast 7729c3ca47 Use the mail-crypto pgp-mime wrappers. (build_message):
2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Use the mail-crypto pgp-mime
	wrappers.
	(build_message): s/CAMEL_PGP_HASH_TYPE_SHA1/CAMEL_CIPHER_HASH_SHA1

svn path=/trunk/; revision=9285
2001-04-12 21:27:55 +00:00
Jeffrey Stedfast fabdba6f1c Use the mail-crypto pgp-mime wrappers.
2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Use the mail-crypto pgp-mime
	wrappers.

svn path=/trunk/; revision=9268
2001-04-12 17:11:45 +00:00
Dan Winship ec65555bc0 Fix previous.
* e-msg-composer-select-file.c (create_file_selection): Fix
	previous.

svn path=/trunk/; revision=9254
2001-04-11 22:38:18 +00:00
Jeffrey Stedfast 4652efde7f Set the default filename to the user's homedir.
2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-select-file.c (create_file_selection): Set the
	default filename to the user's homedir.

svn path=/trunk/; revision=9243
2001-04-11 17:04:27 +00:00
Jeffrey Stedfast 0fa93ae9cf Change into the user's home dir before opening the filesel.
2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-select-file.c (create_file_selection): Change
	into the user's home dir before opening the filesel.

svn path=/trunk/; revision=9242
2001-04-11 16:47:11 +00:00
Gediminas Paulauskas f66390af64 Here goes my additional simple include fixes.
svn path=/trunk/; revision=9191
2001-04-05 00:39:19 +00:00
Kjartan Maraas 570cebb69a Fix headers. Same here.
2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

	* e-msg-composer-attachment.c: Fix headers.
	* e-msg-composer-hdrs.c: Same here.

svn path=/trunk/; revision=9181
2001-04-04 20:42:11 +00:00
Kjartan Maraas 8a0c0a6802 Replace #include <gtk/gtk.h> Replace #include <gnome.h> Remove #include
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* e-icon-list.c: Replace #include <gtk/gtk.h>
	* e-msg-composer-attachment-bar.c: Replace #include <gnome.h>
	* e-msg-composer-attachment-bar.h: Remove #include <gnome.h>
	* e-msg-composer-attachment.c: Remove #include <gnome.h>
	* e-msg-composer-attachment.h: Same here.
	* e-msg-composer-hdrs.c: Replace #include <gnome.h> and <bonobo.h>
	* e-msg-composer-hdrs.h: Replace #include <gnome.h>
	* e-msg-composer-file.c: #include <gtk/gtkmain.h>, <gtk/gtksignal.h>
	* e-msg-composer.c: Replace #include <bonobo.h>, <gnome.h>
	* e-msg-composer.h: Replace #include <gnome.h> and <bonobo.h>
	* evolution-composer.c: Replace #include <bonobo.h>
	* listener.c: Same here.

svn path=/trunk/; revision=9023
2001-03-29 20:22:54 +00:00
Dan Winship 4eef2ce98d Use the drafts folder specified by the account, if possible. Also, fix the
* e-msg-composer.c (save_draft): Use the drafts folder specified
	by the account, if possible. Also, fix the setting of "send_html"
	after saving the draft in case the user plans to keep editting...

svn path=/trunk/; revision=8992
2001-03-28 17:48:08 +00:00
Larry Ewing 385e0d6441 set the FormatHTML property on the editor to let it know the mode.
2001-03-27  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (e_msg_composer_set_send_html): set the
	FormatHTML property on the editor to let it know the mode.
	(e_msg_composer_construct): set the FormatHTML property at
	construct time.

svn path=/trunk/; revision=8982
2001-03-27 18:10:19 +00:00
Larry Ewing ad24594478 set the FormatHTML property on the editor to let it know the mode.
2001-03-27  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer.c (e_msg_composer_set_send_html): set the
	FormatHTML property on the editor to let it know the mode.

svn path=/trunk/; revision=8974
2001-03-27 10:37:07 +00:00
Jeffrey Stedfast 8019a39963 Set the mime part content-id.
2001-03-26  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.c (e_msg_composer_attachment_new): Set
	the mime part content-id.

svn path=/trunk/; revision=8951
2001-03-26 19:28:19 +00:00
Radek Doulik 5e4189e53c set default text color
2001-03-19  Radek Doulik  <rodo@ximian.com>

	* listener.c (reply_indent): set default text color

svn path=/trunk/; revision=8849
2001-03-20 16:54:50 +00:00