2004-03-16 Not Zed <NotZed@Ximian.com>
* camel-mime-message.c (camel_mime_message_init): rever previous
patch. We don't want to set the default mime/type, it'll break
stuff.
svn path=/trunk/; revision=25074
2004-03-14 Sivaiah Nallagatla <snallagatla@novell.com>
* gui/contact-editor/e-contact-editor.c (enable_writable_fields) :
loop only up to < G_N_ELEMENTS instead of <= G_N_ELEMENTS. Prevents
out of bound indexing of addresses array
svn path=/trunk/; revision=25073
2004-03-15 JP Rosevear <jpr@ximian.com>
Fixes#52253
* gui/print.c (print_week_summary_cb): copy component data
* gui/gnome-cal.c (get_times_for_views): calculate the time range
for each view
(set_search_query): set the search query on the model
(set_week_start): set the week start day
(week_start_changed_cb): track if it changes
(setup_config): set its notification
(setup_widgets): update the view times and date navigator
(gnome_calendar_init): remove dead values
(gnome_calendar_goto_date): just calc the new time and let
update_view_times handle it
(gnome_calendar_goto): ditto
(gnome_calendar_direction): ditto
o (gnome_calendar_set_selected_time_range): ditto
(gnome_calendar_dayjump): ditto
(update_view_times): set the time ranges on the models
(set_view): use the new preserve day setting
(gnome_calendar_set_view): don't update the view times, just
switch
(gnome_calendar_get_selected_time_range): get the time range
(gnome_calendar_on_date_navigator_selection_changed): don't
re-update the date navigator, centralize the view setting
* gui/e-week-view.c (time_range_changed_cb): handle the time range
changing
(process_component): move here
(model_changed_cb): handle the model changing
(update_row): updated a changed row
(model_row_changed_cb): update a row
(model_cell_changed_cb): ditto
(model_rows_inserted_cb): handle events being added
(row_deleted_check_cb, remove_uid_cb, model_rows_deleted_cb):
handle events being deleted
(timezone_changed_cb): handle timezone changing
(e_week_view_init): create the model and listen to it
(e_week_view_new): don't create the model here
(e_week_view_set_selected_time_range): no need to cast
(e_week_view_set_first_day_shown): ditto
(e_week_view_set_weeks_shown): ditto
(e_week_view_update_event_cb): free and copy the data using new
routines
(e_week_view_foreach_event): step through every event
(e_week_view_remove_event_cb): we no longer track allocated status
(e_week_view_on_button_release): don't set the seleciton in the
calendar
(e_week_view_free_events): free the data with the util
(e_week_view_add_event): no need to track allocated status
(e_week_view_on_adjustment_changed): no need to cast
* gui/e-day-view.c (e_day_view_class_init): update query is no
longer used via class method
(time_range_changed_cb): handle the time range changing
(process_component): move here
(model_changed_cb): handle the model changing
(update_row): updated a changed row
(model_row_changed_cb): update a row
(model_cell_changed_cb): ditto
(model_rows_inserted_cb): handle events being added
(row_deleted_check_cb, remove_uid_cb, model_rows_deleted_cb):
handle events being deleted
(timezone_changed_cb): handle timezone changing
(e_day_view_init): create a model, connect to its signals
(e_day_view_destroy): we don't have our own query anymore
(e_day_view_update_event_cb): free and copy the data using new
routines
(e_day_view_remove_event_cb): we no longer track allocated status
(e_day_view_set_selected_time_range): actually set the selection
(e_day_view_recalc_day_starts): no need to cast
(e_day_view_recalc_work_week): ditto
(e_day_view_update_calendar_selection_time): don't call back to
the main calendar
(e_day_view_free_event_array): use the free util
(e_day_view_add_event): don't track allocated status
* gui/e-calendar-marshal.list: add marshaller
* gui/e-cal-view.h: remove field
* gui/e-cal-view.c: no longer listen for model signals
(e_calendar_view_class_init): make the model arg not construct
time
* gui/e-cal-model.h: update/add protos
* gui/e-cal-model.c (e_cal_model_class_init): set the dispose
handler and add a time_range_changed signal
(e_cal_model_init): defaults for queries
(e_cal_model_dispose): dispose of things
(e_cal_model_finalize): remove bits that are in dispose now
(search_by_uid_and_client): allow NULL client to find any uid
(e_cal_view_objects_added_cb): ref the client
(update_e_cal_view_for_client): use the full query
(remove_client): pre change for each row and emit deleted signals
(redo_queries): relaunch the query for each client
(e_cal_model_get_time_range): get the time range
(e_cal_model_set_time_range): set the time range and redo the
queries
(e_cal_model_set_search_query): get the search query
(e_cal_model_set_search_query): set the search query and redo the
queries
(e_cal_model_get_component_for_uid): get the component info based
on uid
(copy_ecdv): copy and ECellDateEditValue
(e_cal_model_copy_component_data): copy component data
(e_cal_model_free_component_data): unref the client
svn path=/trunk/; revision=25072
2004-03-15 JP Rosevear <jpr@ximian.com>
* e-calendar-item.c (e_calendar_item_class_init): change arg name
(e_calendar_item_init): ditto
(e_calendar_item_get_arg): ditto
(e_calendar_item_set_arg): ditto
(e_calendar_item_preserve_day_selection): set the selection day to
the given selection
(e_calendar_item_set_first_month): use above to preserve selected
day of week
* e-calendar-item.h: change field name
svn path=/trunk/; revision=25071
2004-03-15 Not Zed <NotZed@Ximian.com>
* em-format.c (em_format_format_error): make this a varags
function, which then calls the virtual method to do the work.
(emf_multipart_appledouble, emf_multipart_mixed)
(emf_multipart_alternative, emf_multipart_related)
(emf_message_rfc822): print an error to explain why you're getting
source content displayed.
(em_format_format_secure): make this a function. and if we're
done formatting a secure part, and we dont have a parent anymore,
null out the validity. See #55541.
svn path=/trunk/; revision=25070
2004-03-15 Not Zed <NotZed@Ximian.com>
* providers/local/camel-mbox-store.c (delete_folder): same as
below for path.
* providers/local/camel-local-store.c (delete_folder): NULL out
str before looking up the state file using it. Otherwise we
double-free str.
* camel-mime-parser.c (folder_scan_skip_line): we want to scan
till in-end-1. If we've been called we're either at the end of
data, or we know we have an end of line character within memory.
Another case in Bug #53355.
svn path=/trunk/; revision=25068
2004-03-15 Rodrigo Moya <rodrigo@ximian.com>
Fixes#48112
* gui/calendar-commands.c (calendar_control_sensitize_calendar_commands):
disable the 'Delete' menu item on recurring meetings, since 'Delete all
Occurrences' already deals with that.
svn path=/trunk/; revision=25067
2004-03-15 Rodrigo Moya <rodrigo@ximian.com>
Fixes#35577
* gui/e-cal-view.c (e_calendar_view_delete_selected_occurrence):
if the component is an instance, pass the recurrence ID to
e_cal_remove_object_with_mod. Also, make the user confirm the
deletion, and send the cancellation message for meetings.
svn path=/trunk/; revision=25066
2004-03-15 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-folder.c (get_content, get_message):
set the mime-type field on the content the same way as
construct_from_stream does. Bug #55472.
* camel-mime-message.c (camel_mime_message_dump): utility function
to dump message content to stdout.
(camel_mime_message_init): default mime type to message/rfc822.
* camel.c (camel_init): change camel verbose debug to be an int, a
bitmask of debug options.
svn path=/trunk/; revision=25064
2004-03-15 Hao Sheng <hao.sheng@sun.com>
* gui/component/Makefile.am : build a11y/addressbook dir
* gui/widgets/e-addressbook-view.c :
(eab_view_class_init) : add the accessibility support for e_addressbook_view
* gui/widgets/e-minicard-view.c :
(e_minicard_view_class_init) : add the accessibility support for e_minicard_view
* gui/widgets/e-minicard.c :
(e_minicard_class_init) : add the accessibility support for e_minicard
svn path=/trunk/; revision=25059
2004-03-15 Not Zed <NotZed@Ximian.com>
* camel-mime-utils.c (camel_header_location_decode): drop embedded
whitespace characters, and don't do unquoting, etc. See rfc2557
4.4.2 and rfc2017 3.1.
svn path=/trunk/; revision=25058
2004-03-13 Trent Lloyd <lathiat@sixlabs.org>
* e-search-bar.c (remove_bonobo_menus): move function about
setup_bonobo_menus which requires it so its not implicitly defined
svn path=/trunk/; revision=25055
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (smtp_set_exception): Now
takes an argument to specify whether disconnecting when respbuf is
NULL is safe (to prevent us from recursively disconnecting or
disconnecting during a connect).
svn path=/trunk/; revision=25054
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #53497.
* providers/smtp/camel-smtp-transport.c (smtp_helo): Instead of
unreffing the streams, call camel_service_disconnect().
(smtp_mail): Same.
(smtp_rcpt): Same.
(smtp_data): Same.
(smtp_send_to): Ignore exceptions for smtp_rset(). Also, check
that we are connected before we try to send (in Evolution's
current usage scenario, this isn't a problem but in the future if
we ever try to fire off several messages via the same smtp
connection, it may be - especially if RSET failed during the
previous send).
svn path=/trunk/; revision=25053
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
* em-folder-browser.c (emfb_search_search_activated): No-op if
emfv->folder is NULL (this means we are looking at a store folder?
or else the folder hasn't loaded yet). Fixes bug #55293.
svn path=/trunk/; revision=25052
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #55018.
* providers/local/camel-local-folder.c
(camel_local_folder_construct): Use camel_url_to_string() here
too, so we properly encode the fragment.
* providers/local/camel-mbox-store.c (get_folder_info): Use
CamelURL to properly encode the fi->uri. Pass the CamelURL into
scan_dir() so that scan_dir() can re-use it (rather than having to
malloc/parse/free for each file/dir)
(scan_dir): Use camel_url_to_string().
* providers/local/camel-maildir-store.c (get_folder_info): Same as
mbox.
(scan_dir): Same as mbox. We also need to set the
CAMEL_FOLDER_NOSELECT flag if appropriate.
* providers/local/camel-mh-store.c (get_folder_info): Same as mbox
and maildir.
(folders_scan): Now takes a url argument which we pass off to
folder_info_new().
(recursive_scan): Same.
(folder_info_new): Use camel_url_to_string().
svn path=/trunk/; revision=25050
2004-03-11 Radek Doulik <rodo@ximian.com>
* camel-folder.c (camel_folder_set_message_flags): watch for
setting JUNK flag, if JUNK_LEARN is not set as well then reset
JUNK_LEARN bit
(folder_changed): look for junk changes in uid_changed's messages,
if these changes request junk filter learning
(CAMEL_MESSAGE_JUNK_LEARN bit set) then prepare junk and nonjunk
uid arrays, clear CAMEL_MESSAGE_JUNK_LEARN bit so that we don't
process it again
(folder_changed): start filter thread if there's junk and/or
nonjunk arrays
(filter_filter): if junk/nonjunk arrays are non-NULL, call junk
filter report to learn junk/non-junk messages
(filter_free): free junk/nonjunk uids and arrays
* camel-folder-summary.h: added CAMEL_MESSAGE_JUNK_LEARN to
CamelMessageFlags, used when setting CAMEL_MESSAGE_JUNK flag to
say that we request junk plugin to learn that message as
junk/non-junk
svn path=/trunk/; revision=25045
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
* providers/smtp/camel-smtp-transport.c (connect_to_server): If
errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE or
whatever.
(smtp_helo): Same.
(smtp_auth): Same.
(smtp_mail): Same.
(smtp_rcpt): Same.
(smtp_data): Same.
(smtp_rset): Same.
(smtp_quit): Same.
(smtp_set_exception): Here too.
(smtp_auth): If the AUTH response code is not 334, then use
smtp_set_exception() to get the most accurate error report we can.
svn path=/trunk/; revision=25044
2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_mail): Removed. No longer in use (hasn't
been since before 1.2).
(send_queue_send): Before enetring the main send loop, create a
temporary uid array containing ONLY the messages we will send
(ie. not any that have been marked deleted) so that we can more
accurately report the number of messages total that we are
sending. Also continue sending even if we encounter an exeption in
mail_send_message() (unless, of course, it is a
user-cancel). Merge any exceptions we get into the master
exception variable and ALWAYS sync/expunge the queue folder.
svn path=/trunk/; revision=25043
2004-03-12 Not Zed <NotZed@Ximian.com>
* gui/e-cal-model.c (ecm_initialize_value): return "" instead of
NULL if there is no default_category set. Fixes#53419.
svn path=/trunk/; revision=25042
2004-03-12 Not Zed <NotZed@Ximian.com>
* e-shell.c (detect_version): when we check the evolution dir
exists, check the evolution dir exists, not the config.xmldb file.
Move filename building/usage into the else condition so it can't
happen again. Fixes#53277.
svn path=/trunk/; revision=25040
2004-03-09 Kidd Wang <kidd.wang@sun.com>
* gui/e-day-view.c: (e_day_view_finish_long_event_resize): add a call
to e_cal_component_commit_sequence since we have changed the property
of the component. Whether the new event is all day should also be
set properly according to the value of the original event.
svn path=/trunk/; revision=25039
2004-03-11 Jeffrey Stedfast <fejj@ximian.com>
* camel-object.c (cobject_state_read): Sanity check that count is
<1024 and also use g_try_malloc so that we can recover if malloc
fails.
svn path=/trunk/; revision=25036
2004-03-11 Jeffrey Stedfast <fejj@ximian.com>
* em-folder-browser.c (emfb_set_folder): Reverted signal blocking
stuff. Doesn't work and is unneeded with the proper fix.
svn path=/trunk/; revision=25034
2004-03-11 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #55267.
* e-filter-bar.c (set_property): Use efb->setquery properly (set
to TRUE before calling set_item_id and FLASE afterwards). Also
setquery to TRUE before emitting the "search-activated" signal so
that we don't run the callback for the signal we are emitting.
svn path=/trunk/; revision=25032
2004-03-11 Jeffrey Stedfast <fejj@ximian.com>
* e-filter-bar.c (set_property): Use efb->setquery properly (set
to TRUE before calling set_item_id and FLASE afterwards). Also
setquery to TRUE before emitting the "search-activated" signal so
that we don't run the callback for the signal we are emitting.
svn path=/trunk/; revision=25031
2004-03-11 Jeffrey Stedfast <fejj@ximian.com>
* em-format-html.c (efh_format_header): Fixed a bug where txt
wasn't being properly initialised in all cases for Date
headers. Also fixed the x-evolution-mailer code to simply use the
ehader->value that was passed in.
(efh_format_headers): Fixed to handle the special
X-Evolution-Mailer header.
svn path=/trunk/; revision=25028
2004-03-11 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (emfb_set_folder): a really gross hack,
disable all search handlers before setting the search and set hte
search manually rather than going through the callbacks. Partial
fix for #55267, and ugly as it is.
(emfb_init): save the search signal id's.
(emfb_set_folder): ugh, properly set the defaults if the settings
haven't been stored on the folder, and properly move them upstream
to the bonobo menus.
svn path=/trunk/; revision=25027
2004-03-11 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (no_such_folder): removed
this. not sure what it was doing there, a 1 line funciton used
once.
(get_folder_online): pass exception to camel_imap_command. if we
got a user cancel, pass it up.
(hash_folder_name, compare_folder_name): more g_ascii_strcasecmp
stuff.
svn path=/trunk/; revision=25026
2004-03-11 Not Zed <NotZed@Ximian.com>
* camel-vee-store.c (vee_get_folder_info): we need to add the
folderinfo always if we're recursive from top. Should fix#52965
and maybe the other vfolders not showing on startup bug.
svn path=/trunk/; revision=25025
2004-03-11 Not Zed <NotZed@Ximian.com>
* em-folder-tree-model.c (sort_cb): when we sort, handle not
having the node in the tree. otherwise we always compare against
"" which puts it at the head of the branch, rather than the tail.
See #55428.
svn path=/trunk/; revision=25024
2004-03-11 Not Zed <NotZed@Ximian.com>
* mail-component.c: change stores hash to point to a structure, in
which we maintain the vtrash and vjunk folders for the entirety of
the session. memory use be damned i guess. #55417 and partially
#55391.
svn path=/trunk/; revision=25022