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
* acinclude.m4: Move EVO_CHECK_LIB into here, and also create
EVO_PURIFY_SUPPORT, EVO_TIMEZONE_CHECK, and EVO_LDAP_CHECK from
stuff in configure.in. (This stuff is also used by Connector.)
* configure.in: Remove the stuff that was moved to acinclude.m4.
* evolution_addressbookConf.sh.in: Remove db3 and ldap references
since pas-backend-file and pas-backend-ldap are no longer in
libpas, and those flags weren't doing anything useful here before
anyway. (Our attempts to force static linking to those libraries
end up getting mangled when passed through gnome-config.)
* evolution_calendarConf.sh.in: Likewise, remove db3 references.
svn path=/trunk/; revision=17531
* pcs/Makefile.am: Split pcs-backend-file out of libpcs and build
it as a separate (noinst) library libpcsfile.a. This gets the db3
dependencies out of libpcs, and people trying to create a calendar
backend shouldn't be calling functions from the existing backends
anyway so there's no reason to install them.
svn path=/trunk/; revision=17529
* backend/pas/Makefile.am: Split pas-backend-file and
pas-backend-ldap out of libpas and build them as separate (noinst)
libraries libpasfile.a and libpasldap.a. This gets the db3 and
LDAP dependencies out of libpas, and people trying to create an
addressbook backend shouldn't be calling functions from the
existing backends anyway so there's no reason to install them.
svn path=/trunk/; revision=17528
* configure.in: Check if we're trying to build with the old
libversit module borrowed from gnome-pim instead of our own new
one, and refuse to build if so.
* libversit/Makefile.am: Remove libversit.la stuff since we don't
want it and it messes up the build slightly.
svn path=/trunk/; revision=17526
2002-07-22 Not Zed <NotZed@Ximian.com>
* message-list.c (regen_list_regened): Remove the assert, and
always copy over the threadtree which represents the current view,
unreffing the old one if set. For #28021. Haven't tested this a
lot, but i guess it cant be worse than what is there.
svn path=/trunk/; revision=17524
2002-07-22 Not Zed <NotZed@Ximian.com>
* mail-vfolder.c (store_folder_renamed): When renaming, use
full_name to set the folder, not name, so the path is preserved.
svn path=/trunk/; revision=17523