2002-07-25 Jeffrey Stedfast <fejj@ximian.com>
* filter-int.[c,h]: Use GtkType (I only changed this one because I
turned on debugging for a bit).
* filter-file.c (validate): Fix the strcmp logic a bit, I had it
the exact opposite of what I really wanted. Oops :-)
svn path=/trunk/; revision=17586
2002-07-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_execute_shell_command): Update to take argc and
argv arguments since this is the new definition for the
CamelFilterDriverShellFunc.
* mail-session.c (main_get_filter_driver): Updated for the renamed
function.
svn path=/trunk/; revision=17585
2002-07-25 Jeffrey Stedfast <fejj@ximian.com>
* filter-file.c (validate): Do some minimalistic validation of
command-lines (ie, make sure it isn't an empty string).
* filtertypes.xml: s/shell-exec/shell/ (for the action) and pass
"/bin/sh" "-c" as the first 2 arguments. For the shell-exec
*rule*, change the name to "pipe-message" and add the "/bin/sh"
"-c" arguments too.
svn path=/trunk/; revision=17584
2002-07-25 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (do_shell): Renamed from
shell_exec(). Also, we now want to pass argc/argv on to the
CamelFilterDriverShellFunc.
(camel_filter_driver_set_shell_func): Renamed a bit.
* camel-filter-search.c (pipe_message): Renamed from shell_exec().
svn path=/trunk/; revision=17583
2002-07-25 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (link_open_in_browser): Mae sure that the
html->pointer_url is non-NULL. Should fix bug #28159 (this seems
to be the only questionable way for a NULL url to be passed into
on_link_clicked).
svn path=/trunk/; revision=17581
2002-07-24 Peter Williams <peterw@ximian.com>
* mail-callbacks.c (do_mail_fetch_and_print): Check for whether
current_message is NULL as well as preview_shown (if we tried to
load the message and failed, as may happen in offline mode.)
(done_message_selected): Only print if we actually got the message.
* folder-browser.c (folder_browser_query_changed): New function,
use this on the query_changed signal. Don't run the search if
they only changed the dropdown.
svn path=/trunk/; revision=17580
2002-07-23 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (message_tag_followup_decode): Don't pass
the length of the tag name into strncmp, instead use the length up
to the first ':' in the value string.
svn path=/trunk/; revision=17579
2002-07-24 JP Rosevear <jpr@ximian.com>
* gui/e-itip-control.c (write_html): display the location in the
itip information
svn path=/trunk/; revision=17578
2002-07-23 Peter Williams <peterw@ximian.com>
* mail-ops.c (get_store_get): Call camel_session_get_service
instead of camel_session_get_store, as _get_store calls
_get_service_connected which is not what we want to do on startup.
(set_offline_do): Rework the logic here. It was failing when
trying to go online with a disco store that couldn't work offline.
* mail-folder-cache.c (mail_note_store): If we're using an offline
(well, non-online) disco store that cannot work offline, don't get
the folderinfo as that will fail.
svn path=/trunk/; revision=17576
2002-07-24 JP Rosevear <jpr@ximian.com>
* gui/calendar-model.c (set_percent): set status to in progress if
the percent is between 0 and 100
(set_status): if the value is set to in process, change the
percent to 50
svn path=/trunk/; revision=17574
2002-07-24 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (sig_add): use
mail_config_get_send_html for html format flag
* mail-account-gui.c (sig_add_new_signature): use
mail_config_get_send_html for html format flag
svn path=/trunk/; revision=17573
2002-07-24 <jpr@ximian.com>
* cal-util/timeutil.c (time_day_of_year): add a day for the leap
year only if we are currently counting Feb., not if the month
passed in is Feb. Fixes#23446.
svn path=/trunk/; revision=17571
2002-07-25 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (camel_folder_summary_save): When writing
the summary, use TRUNC flag, duh. Also, write to a temp file
first, and rename when closed successfully, and check ferror() and
fclose() against 0 rather than -1.
* providers/local/camel-mbox-summary.c (summary_update): Decrement
i if we remove the summary item so we dont skip every 2nd one.
* camel-mime-utils.c (header_decode_mailbox): Use
rfc2047_decode_word explicitly incase we just found an encoded
word. Stops us re-decoding the string twice, which fixes memory
corruption in #26330 when the HUGE string is used later.
2002-07-24 Not Zed <NotZed@Ximian.com>
* camel-partition-table.c (camel_key_table_next): Didn't unlock if
we exited on an empty key list.
svn path=/trunk/; revision=17570
2002-07-24 Not Zed <NotZed@Ximian.com>
* mail-folder-cache.c (real_flush_updates): Propagate name changes
or removes to the mail config. #15951. Doesn't enitrely work for
local folders, because they are never renamed only removed and
added thanks to the shell's api.
* mail-config.c (mail_config_uri_renamed): If a store folder is
renamed, this checks for any config that needs updating, so far
sent and drafts folders.
(mail_config_uri_deleted): Same, for deleted folders.
svn path=/trunk/; revision=17568
2002-07-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_multipart_encrypted): Commit a fix that I
thought I committed a while ago:
* mail-format.c (handle_multipart_encrypted): Pass the correct
pointer into camel_multipart_encrypted_decrypt().
* mail-ops.c (mail_send_message): Rework the logic a bit. If we
find an account, use that to set the sent_folder_uri and the
transport_url, otherwise use the X-Evolution-Transport and
X-Evolution-Fcc headers.
svn path=/trunk/; revision=17566
2002-07-24 Not Zed <NotZed@Ximian.com>
* component-factory.c (owner_set_cb): Initialise the standard
uri's before doing anything else.
* mail-vfolder.c (uri_is_ignore): Return true if the uri is any
sent, drafts or outbox folder uri.
(mail_vfolder_add_uri): Dont automagically add any
sent/outbox/drafts folder with "local" or "remote" etc rules, only
add sent folders if explictly listed as folder rules. Maintain
the remote/local folders list accordingly.
(vfolder_adduri_do): dont check against sent_folder, drafts_folder
or outbox_folder, this is checked by above code. For #14863.
svn path=/trunk/; revision=17564
2002-07-24 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-folder.c (imap_expunge_uids_online):
Sync before doing an expunge if we dont have uidplus. See #25766.
(imap_expunge_uids_resyncing): Same here.
svn path=/trunk/; revision=17562
2002-07-24 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (get_folder_online): Move
folders to a subdirectory of storage_path, rather than in it.
Bye bye everyones settings. See 24947.
(get_folder_offline): And here too.
(delete_folder): And here too.
(rename_folder): and here too.
(get_folder_info_offline): And here too. I love code reuse.
svn path=/trunk/; revision=17561
2002-07-24 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (get_folder_info_online):
Duplicated the very much hack in imap_store_refresh_folders() to
avoid a deadlock in #27959. A decent fix has to wait for a
rewrite.
svn path=/trunk/; revision=17560
2002-07-23 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (message_tag_followup_decode): Don't use
strncmp here or reply-all will match reply.
svn path=/trunk/; revision=17558
* evolution-mail-message.xml: Bind MessageMove to Control-Shift-V.
[#24394]
* evolution-addressbook.xml: Bind ContactsMoveToFolder and
ContactsCopyToFolder to Control-Shift-V and Control-Shift-Y for
consistency with the mailer. Also move "Select All" up in the
Edit menu and add a separator before "Delete".
svn path=/trunk/; revision=17554
2002-07-23 Larry Ewing <lewing@ximian.com>
* evolution-message-composer.xml: changed accel for HTML from T to
M to avoid conflict with other menu items.
svn path=/trunk/; revision=17552
2002-07-22 Peter Williams <peterw@ximian.com>
* folder-browser.c (folder_browser_gui_init): Also perform a search
on the query_changed signal, which is what gets emitted when the
Search menu is used.
2002-07-22 Peter Williams <peterw@ximian.com>
* e-filter-bar.c (do_advanced): Break out the code for creating
the advanced rule editor into a separate function, so that...
(menubar_activated): ... can also create an Advanced dialog;
needed when the Search menu's advanced button is used.
(option_changed): Change this to call the function instead of
having all the code to itself.
* e-search-bar.h: Add id's for the FIND_NOW and CLEAR actions
so that other code (eg, EFilterBar) doesn't get confused by
an old id being used when the search-activated signal gets
emitted.
* e-search-bar.c (clear_search): Set the item_id to CLEAR
before emitting the signal.
(search_now_verb_cb): Just make this emit query_changed,
as the button in the toolbar does.
svn path=/trunk/; revision=17550
2002-07-24 Not Zed <NotZed@Ximian.com>
* mail-display.c (drag_data_delete_cb): use uri_list before we set
"uri-list" to NULL, which will automagically free it for us, so
dont free it either. Found with vagrind.
svn path=/trunk/; revision=17549
2002-07-23 Not Zed <NotZed@Ximian.com>
* Applied patch below.
2002-07-19 Christian Kreibich <christian@whoop.org>
* e.msg-composer.c (get_signature_html): Test for the signature
delimiter not only at the beginning of a signature file, but also
inside the signature.
svn path=/trunk/; revision=17547
2002-07-23 Not Zed <NotZed@Ximian.com>
* message-browser.c (message_browser_destroy): Disconnect from
folderbroser signals when we unref it, so we dont get signals
later on if someone else has a ref on it (causing crash).
svn path=/trunk/; revision=17543
2002-07-22 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c: Removed a lot of extra g_return_if_fail's that
we don't need (if we are going to check if the pointer is a a
composer widget using the gtk type-check macros, then there is no
need to first check that it isn't NULL).
(get_file_content): Signatures are now supposed to be in UTF-8 and
not the user's locale charset, so we must first read in the
content, then check that it is valid UTF-8. If it isn't, then we
need to try to convert it to UTF-8.
svn path=/trunk/; revision=17538
2002-07-22 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c: Removed a lot of extra g_return_if_fail's that
we don't need (if we are going to check if the pointer is a a
composer widget using the gtk type-check macros, then there is no
need to first check that it isn't NULL).
svn path=/trunk/; revision=17537
2002-07-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_signature_run_script): Check to make
sure the script output is valid UTF-8, if not then attempt to
convert it into UTF-8. Fixes bug #28086.
svn path=/trunk/; revision=17536