Completely rewrite how composer headers are managed. There's now two
sets of headers (with some overlap): one set is for sending an email
message, the other is for posting to a newsgroup. The correct set of
headers is chosen on-the-fly based on the currently selected account
type. The user's "view" preferences for these two sets are stored
separately, so that switching between an email account and a news
account will no longer stomp on your preferences.
This also eliminates the need for the "Post New Message to Folder" and
"Post a Reply" actions, so they've been removed. Usenet users can now
just highlight a newsgroup in the folder tree and click New or Reply,
and the composer window will show the correct set of headers with the
Post-To field filled in automatically.
Comment #6 in the bug discusses other standard news reader behaviors we
still don't get right, particularly the missing "Followup To" header.
These will be dealt with separately.
According to https://wiki.ubuntu.com/SavingTheWorld (and of course according to
the gtk docs) using g_timeout_add_seconds is preferred over g_timeout_add if a
timeout in seconds is desired.
** Fix for bug #553535
* e-msg-composer.c: (is_top_signature), (get_signature_html),
(set_editor_text), (e_msg_composer_show_sig_file): Do not eat
lines of text when changing signature at top of the message.
Add one extra empty line between the signature and the body
of the mail when placing signature to the bottom.
2009-04-12 Matthew Barnes <mbarnes@redhat.com>
** Remove a bunch of juvenile comments. Source code should
look professional, even if some developers are not.
svn path=/trunk/; revision=37514
2009-03-19 Milan Crha <mcrha@redhat.com>
** Fix for bug #574680
* e-msg-composer.c: (is_special_header): Function removed.
* e-msg-composer.c: (e_msg_composer_new_with_message):
Remove all headers except "References" and "In-Reply-To" when
composing from an existing message.
svn path=/trunk/; revision=37462
2009-02-25 Milan Crha <mcrha@redhat.com>
** Fix for bug #551470
* e-composer-private.h:
* e-msg-composer.c: (add_signature_delim), (get_signature_html),
(set_editor_text): Do not force adding "-- \n" above the signature.
svn path=/trunk/; revision=37322
2009-02-12 Milan Crha <mcrha@redhat.com>
** Fix for bug #567089
* e-msg-composer.c: (get_signature_html):
Do not crash when no From set yet.
svn path=/trunk/; revision=37251
2009-01-09 Takao Fujiwara <takao.fujiwara@sun.com>
Reviewed by Matthew Barnes <mbarnes@redhat.com>
* Fix for bug #566011
* addressbook/gui/component/Makefile.am:
* addressbook/gui/component/addressbook-component.c
(addressbook_component_class_init):
Include <glib/gi18n-lib.h> instead of <glib/gi18n.h> and
add bindtextdomain().
* calendar/gui/Makefile.am:
* calendar/gui/calendar-component.c (calendar_component_class_init):
* calendar/gui/dialogs/comp-editor.c:
* calendar/gui/memos-component.c (memos_component_class_init):
* calendar/gui/tasks-component.c (tasks_component_class_init):
Include <glib/gi18n-lib.h> instead of <glib/gi18n.h> and
add bindtextdomain().
* composer/e-composer-header-table.c:
* composer/e-composer-private.h:
Include <glib/gi18n-lib.h> instead of <glib/gi18n.h>.
* mail/mail-component.c (mail_component_class_init):
Include <glib/gi18n-lib.h> instead of <glib/gi18n.h> and
add bindtextdomain().
* shell/e-user-creatable-items-handler.c
(e_user_creatable_items_handler_class_ini):
Include <glib/gi18n-lib.h> instead of <glib/gi18n.h> and
add bindtextdomain().
* widgets/misc/e-charset-picker.c:
* widgets/misc/e-signature-combo-box.c:
Include <glib/gi18n-lib.h> instead of <glib/gi18n.h>.
svn path=/trunk/; revision=37021
2008-12-18 Matthew Barnes <mbarnes@redhat.com>
* e-composer-actions.c:
Change "Save Draft" menu item to "Save as Draft" to be consistent
with "Save as Template". I like that better. But leave the toolbar
button alone.
svn path=/trunk/; revision=36915
2008-12-16 Milan Crha <mcrha@redhat.com>
** Fix for bug #564248
* e-msg-composer.c: (msg_composer_paste_clipboard):
Attach images pasted from a clipboard.
Note: Requires at least gtkhtml revision 9067.
svn path=/trunk/; revision=36906
2008-12-11 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #562450
* composer/e-msg-composer.c (handle_multipart_signed):
Fix a typo that broke "Edit as New Message" for signed messages.
svn path=/trunk/; revision=36869
2008-11-07 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #559701
* e-msg-composer.c: (e_load_spell_languages): Don't save when its
NULL.
svn path=/trunk/; revision=36775
2008-11-05 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #559371
* composer/e-msg-composer.c (e_load_spell_languages):
New function loads a list of GtkhtmlSpellLanguage structs from
GConf, taking care of details like converting language codes to
structs and ensuring the returned list is non-empty.
* composer/e-msg-composer.c (e_save_spell_languages):
New function saves a list of GtkhtmlSpellLanguage structs to
GConf, taking care of details like converting the structs to
language codes.
* composer/e-msg-composer.c (msg_composer_constructor):
* mail/em-composer-prefs.c (spell_language_save), (spell_setup):
Simplify the logic by using e_load_spell_languages() and
e_save_spell_languages().
svn path=/trunk/; revision=36743
2008-11-04 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #554450
* composer/e-msg-composer.c (msg_composer_init):
Get drag-and-drop to the attachment bar working again, but see
my note in the source code. I'm still not sure why it broke.
svn path=/trunk/; revision=36741
2008-11-02 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #559028
* composer/e-msg-composer.c (msg_composer_key_press_event):
Skip over the style toolbar when tabbing in reverse.
svn path=/trunk/; revision=36720
2008-10-13 Bharath Acharya <abharath@novell.com>
** Updated fix for bug #555775
* e-composer-private.c: (e_composer_private_init): Reverting a
hunk from the previous patch as suggested by Matthew Barnes.
svn path=/trunk/; revision=36605
2008-10-10 Bharath Acharya <abharath@novell.com>
** Fix for bug #555775
* e-composer-private.c: (e_composer_private_init): Include
e-util-private.h for Win32 redefinition of EVOLUTION_UIDIR and
build the filename using it.
svn path=/trunk/; revision=36587
2008-10-03 Milan Crha <mcrha@redhat.com>
** Fix for bug #554664
* e-composer-actions.c: (action_attach_cb):
Call attach_remote_file when knows the URI points to it.
svn path=/trunk/; revision=36549
2008-10-01 Milan Crha <mcrha@redhat.com>
** Fix for bug #554418
* e-util/e-util.h: (e_util_guess_mime_type):
* e-util/e-util.c: (e_util_guess_mime_type): Guess mime_type based on
the file content only when permitted by the caller, otherwise
check based on the filename only, where it fallbacks if file
content guess fails.
* mail/em-utils.c: (em_utils_snoop_type):
* mail/em-popup.c: (emp_standard_menu_factory):
Guess mime_type based on the filename only.
* composer/e-msg-composer.c: (handle_uri),
(e_msg_composer_add_inline_image_from_file): Guess mime_type based
on the file content, if failed, then on the filename.
* widgets/misc/e-attachment.c: (attachment_guess_mime_type):
Allow guessing mime_type based on the file content.
* calendar/gui/dialogs/comp-editor.c: (set_attachment_list):
* calendar/gui/e-cal-popup.c: (ecalp_standard_menu_factory):
Allow/disallow guessing of the mime_type based on the file content.
svn path=/trunk/; revision=36529