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
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
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
* 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
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
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
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
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
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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