1 2008-08-11 Sankar P <psankar@novell.com>
3 * camel-db.c (cdb_sql_exec), (camel_db_count_message_info),
5 MONITOR_DB_PERFORMANCE . Set this const int to non-zero,
6 so as to know how much of time each db call takes.
8 2008-08-07 Srinivasa Ragavan <sragavan@novell.com>
10 * camel/camel-db.c: Fix return values.
11 * camel/camel-folder-search.c: Suppress No such table exception.
13 2008-08-07 Srinivasa Ragavan <sragavan@novell.com>
15 * camel/camel-folder-summary.c: Store to db intelligently.
17 2008-08-07 Srinivasa Ragavan <sragavan@novell.com>
19 * camel/camel-vee-folder.c: Fix load/save counts of vee folder.
20 * camel/camel-vee-summary.c:
22 2008-08-06 Matthew Barnes <mbarnes@redhat.com>
24 ** Fixes part of bug #545877
28 * camel-cipher-context.c:
29 * camel-cipher-context.h:
30 * camel-filter-driver.c:
32 * camel-index-control.c:
34 * camel-offline-journal.h:
35 * camel-offline-journal.c:
37 * camel-partition-table.c:
38 * camel-partition-table.h:
40 Use CamelDList instead of EDList.
42 2008-08-06 Srinivasa Ragavan <sragavan@novell.com>
44 ** Fix for bug #546613
46 * camel/camel-vee-folder.c: return NULL, if unmatched folder is
49 2008-08-06 Srinivasa Ragavan <sragavan@novell.com>
51 * camel/camel-db.c: Some formatting changes.
52 * camel/camel-vee-folder.c: Set query only when it changes.
54 2008-08-06 Srinivasa Ragavan <sragavan@novell.com>
56 * camel/camel-folder-summary.c: Remove some unwanted code.
58 2008-08-06 Srinivasa Ragavan <sragavan@novell.com>
60 * camel/camel-vee-folder.c: Redo vfolders. It now works.
61 * camel/camel-vee-folder.h:
62 * camel/camel-vee-summary.c:
63 * camel/camel-vtrash-folder.c:
65 2008-08-06 Srinivasa Ragavan <sragavan@novell.com>
67 ** Fix for bug #546544
69 * camel/camel-folder-summary.c: Don't try print folder name, when
70 folder is NULL. Print the summary path for such debugging purposes.
72 2008-08-06 Srinivasa Ragavan <sragavan@novell.com>
74 * camel/camel-db.c: Add apis to delete vuids in transaction and clean
78 2008-08-06 Srinivasa Ragavan <sragavan@novell.com>
80 * camel/camel-folder.c: Start fixing counts for vfolders.
82 2008-08-06 Srinivasa Ragavan <sragavan@novell.com>
84 * camel/camel-db.c: Added a api to drop and recreate vfolder table.
87 2008-08-06 Milan Crha <mcrha@redhat.com>
89 ** Part of fix for bug #546397
91 * camel-store.c: (construct): Do not use NULL in g_file_test.
92 * camel-folder-search.c: (read_uid_callback): Cast to right type.
93 * camel-folder-summary.c: (camel_folder_summary_remove_range):
94 Do not leak objects from loaded_infos array.
96 2008-08-05 Chenthill Palanisamy <pchenthill@novell.com>
99 * camel-offline-store.c: (camel_offline_store_get_network_state),
100 (camel_offline_store_set_network_state): set the network state to
101 online before calling camel_service_connect as the providers depend
103 * camel-offline-store.h:
104 * providers/Makefile.am: Disco->Offline migration code.
106 2008-08-05 Srinivasa Ragavan <sragavan@novell.com>
108 ** Fix for bug #545505
110 * camel/camel-folder-summary.c: Don't bother starting cache kick off
111 threads for zombie summaries.
112 * camel/camel-folder.c: When we unref a folder, kick off the freeing
115 2008-08-05 Srinivasa Ragavan <sragavan@novell.com>
117 * camel/camel-vee-folder.c:
118 * camel/camel-vee-summary.c: Safe guard against missing infos and
119 protect them and added debug logs for erring cases.
121 2008-08-05 Srinivasa Ragavan <sragavan@novell.com>
123 * camel/camel-folder-search.c: Load the summary from db, only if the
124 searching length is more than in memory cache.
126 2008-08-05 Srinivasa Ragavan <sragavan@novell.com>
128 * camel/camel-digest-folder.c: Fix search by uids. Pro'lly a typo.
130 2008-08-05 Srinivasa Ragavan <sragavan@novell.com>
132 ** Fix for bug #546184
134 * camel/camel-folder-search.c: Search if we are under match_all.
136 2008-08-04 Matthew Barnes <mbarnes@redhat.com>
138 * camel.pc.in: List sqlite3 as a requirement.
140 2008-08-04 Srinivasa Ragavan <sragavan@novell.com>
142 ** Fix for bug #546194
144 * camel/camel-folder.c: Use the right path for spool a/c
145 * camel/camel-store.c: Use the right path for spool a/c
147 2008-08-04 Srinivasa Ragavan <sragavan@novell.com>
149 * camel/camel-vee-folder.c: Fix some basic vfolder code for disk
152 2008-08-04 Srinivasa Ragavan <sragavan@novell.com>
154 * camel-folder-search.c: (camel_folder_search_search): Fix while
156 * camel-search-sql.c: (camel_sexp_to_sql):
158 2008-08-04 Srinivasa Ragavan <sragavan@novell.com>
160 * camel/camel-string-utils.c: Disable debug crashers.
162 2008-08-03 Srinivasa Ragavan <sragavan@novell.com>
164 * camel/camel-folder-summary.c: Make 5 minutes as cache drop interval.
166 2008-08-03 Srinivasa Ragavan <sragavan@novell.com>
168 * camel/camel-folder-summary.c: Don't free mi's in migration.
170 2008-08-03 Srinivasa Ragavan <sragavan@novell.com>
172 * camel/camel-folder-summary.c: Fix pstring crash issues.
174 2008-08-01 Matthew Barnes <mbarnes@redhat.com>
177 * camel-filter-driver.c:
178 * camel-folder-search.c:
179 * camel-index-control.c:
181 Remove unnecessary <libedataserver/e-memory.h> include.
183 2008-07-31 Matthew Barnes <mbarnes@redhat.com>
185 ** Fixes part of bug #545558
187 * providers/Makefile.am:
188 Disable the Hula provider unless --enable-hula was given at
191 2008-07-31 Srinivasa Ragavan <sragavan@novell.com>
193 * camel/camel-folder-search.c: Revamp search and make body search as
194 fallback to old search mechanism of loading infos and search.
195 * camel/camel-string-utils.c: Added a new api to get const string from
197 * camel/camel-string-utils.h:
199 2008-07-31 Sankar P <psankar@novell.com>
201 * camel-folder-search.c (camel_folder_search_class_init),
202 (camel_folder_search_finalize), (camel_folder_search_construct),
203 (camel_folder_search_set_folder),
204 (camel_folder_search_execute_expression),
205 (camel_folder_search_search), (camel_folder_search_free_result),
206 (search_match_all), (check_header), (search_header_contains),
207 (match_words_index), (search_user_flag), (search_system_flag),
209 * camel-folder-search.h:
210 Search goodness. Make use of the new sexp parser.
212 2008-07-31 Sankar P <psankar@novell.com>
214 * camel-vee-folder.c (vee_search_by_expression),
215 (vee_rebuild_folder):
216 Don't print debug statements
218 2008-07-31 Srinivasa Ragavan <sragavan@novell.com>
220 ** Fix for bug #545082
222 * camel/camel-db.c: Added support apis.
224 * camel/camel-folder.c: Added support to rename folder.
225 * camel/camel-store.c: Added code to delete folder cleanly
227 2008-07-31 Srinivasa Ragavan <sragavan@novell.com>
229 * camel/camel-db.c: Add delete folder functionality.
230 * camel/camel-folder-summary.c: Added code to check if the uid exists
232 * camel/camel-folder-summary.h:
234 2008-07-30 Milan Crha <mcrha@redhat.com>
236 ** Part of fix for bug #500389
238 * camel-provider.h: (enum CamelProviderConfType): New type 'OPTIONS'.
240 2008-07-30 Srinivasa Ragavan <sragavan@novell.com>
242 * camel/camel-folder.c: Remove the folder locks in refresh info. It
243 deadlocks while resyncing in IMAP.
245 2008-07-29 Srinivasa Ragavan <sragavan@novell.com>
247 ** Fix for bug #545099
249 * camel/camel-folder-summary.c: When new mails added, update the
252 2008-07-29 Srinivasa Ragavan <sragavan@novell.com>
254 * camel/camel-folder.c: Remove Update folder function.
256 2008-07-28 Srinivasa Ragavan <sragavan@novell.com>
258 * camel/camel-digest-folder.c: Fix uid/pstring issues.
259 * camel/camel-folder-summary.c:
260 * camel/camel-folder-summary.h: Make uid const char *
261 * camel/camel-vee-summary.c:
263 2008-07-28 Srinivasa Ragavan <sragavan@novell.com>
265 * camel/camel-disco-folder.c: Fix guint/int issues.
266 * camel/camel-folder-summary.c:
267 * camel/camel-folder-summary.h:
268 * camel/providers/imap/camel-imap-folder.c:
270 2008-07-28 Srinivasa Ragavan <sragavan@novell.com>
272 * camel/camel-folder.c: Add function to update summary.
273 * camel/camel-vtrash-folder.c: Fix compiler warnings
275 2008-07-28 Srinivasa Ragavan <sragavan@novell.com>
277 * camel/camel-folder-summary.c: Kick off debug lines.
279 2008-07-27 Srinivasa Ragavan <sragavan@novell.com>
281 * camel/camel-folder-summary.c: Fix unread count updates in folder
284 2008-07-27 Frederic Peters <fpeters@0d.be>
286 ** Fix for bug #544963
288 * Makefile.am: Include camel-search-sql.h in headers.
290 2008-07-26 Srinivasa Ragavan <sragavan@novell.com>
292 * camel/camel-folder-summary.c: Fix compiler warning and some crash
295 2008-07-26 Srinivasa Ragavan <sragavan@novell.com>
297 * camel/camel-folder-summary.c: Another possible deadlock. Never hold
298 summary lock and do a db operation.
300 2008-07-26 Srinivasa Ragavan <sragavan@novell.com>
302 ** Fix for bug #544825
304 * camel/camel-folder-summary.c:
305 * camel/providers/imap/camel-imap-folder.c: Never hold the summary
306 lock and do a disk operation. It leads to dead lock.
308 2008-07-25 Milan Crha <mcrha@redhat.com>
310 ** Part of fix for bug #544049
312 * camel-object.c: Initialize global variables, just to be sure.
314 2008-07-25 Milan Crha <mcrha@redhat.com>
316 ** Fix for bug #544651
318 * camel-folder-summary.c: (EXTRACT_FIRST_STRING), (EXTRACT_STRING):
319 Properly update string position after read (thanks to srag).
320 * camel-folder-summary.c: (EXTRACT_DIGIT):
321 Prevent moving beyond string limit.
322 * camel-folder-summary.c: (camel_read_mir_callback):
324 * camel-folder-summary.c: (my_list_append):
325 Interpret and update given list pointer properly.
327 2008-07-25 Milan Crha <mcrha@redhat.com>
329 ** Fix for bug #544031
331 * camel-vee-folder.c: (vee_folder_remove_folder):
332 * camel-folder-summary.c: (camel_folder_summary_migrate_infos),
333 (content_info_to_db): Compiler warnings cleanup.
335 2008-07-25 Srinivasa Ragavan <sragavan@novell.com>
337 * camel/camel-db.h: Disable share cache sql
339 2008-07-25 Srinivasa Ragavan <sragavan@novell.com>
341 ** Fix for bug #543569
343 * camel/camel-store.c: Recreate cache, if it was blown.
345 2008-07-25 Srinivasa Ragavan <sragavan@novell.com>
347 ** Reverse the meaning of debug/free safe handlers. Let it crash now, than
348 on a production build. We can fix it now. It would be turned off for a
349 release build. (CAMEL_SQLITE_FREE_CACHE, CAMEL_SQLITE_SHARED_CACHE,
350 CAMEL_FREE_INFOS, CDS_DEBUG)
353 * camel/camel-folder-summary.c:
354 * camel/camel-string-utils.c:
356 2008-07-25 Srinivasa Ragavan <sragavan@novell.com>
358 ** Fix for bug #544114
360 * camel/camel-folder-search.c:
361 * camel/providers/local/camel-mbox-folder.c: Do a sync before we
364 2008-07-25 Matthew Barnes <mbarnes@redhat.com>
366 ** Camel Reference Manual improvements:
367 Tag more symbols as deprecated. The documentation already
368 describes them as such.
370 * camel-debug.h (camel_verbose_debug):
371 * camel-store.h (CAMEL_STORE_FOLDER_INFO_FAST):
372 * camel-store.h (camel_folder_info_build):
374 2008-07-25 Matthew Barnes <mbarnes@redhat.com>
376 ** Camel Reference Manual improvements:
377 Add more sections to the Table of Contents.
378 Tag deprecated API with CAMEL_DISABLE_DEPRECATED.
380 2008-07-25 Srinivasa Ragavan <sragavan@novell.com>
382 * camel/camel-folder-search.c: Sync the db before we do a search. So
383 that we are always on sync with view.
385 2008-07-25 Srinivasa Ragavan <sragavan@novell.com>
387 ** Fix for bug #544491
389 * camel/camel-db.c: Lock while 2 thread try to access same folder's
390 table using same handle.
392 2008-07-25 Srinivasa Ragavan <sragavan@novell.com>
394 * camel/camel-search-sql.c: Further improve search.
396 2008-07-25 Srinivasa Ragavan <sragavan@novell.com>
398 * camel/camel-search-sql.c: Add more search crash handlers. Atm
399 body-search alone should fail.
401 2008-07-24 Srinivasa Ragavan <sragavan@novell.com>
403 ** Fix for bug #544501
405 * camel/camel-search-sql.c: Handle single node search queries.
407 2008-07-24 Srinivasa Ragavan <sragavan@novell.com>
409 ** Fix for bug #544528
411 * camel/camel-search-sql.c: Ignore match-threads. It wont be supported
412 with new disk summary. Handle cases where it crashes.
414 2008-07-24 Srinivasa Ragavan <sragavan@novell.com>
416 ** Rewrite camel search by converting sexp to sql.
418 * camel/camel-folder-search.c:
419 * camel/camel-folder-summary.c:
420 * camel/camel-search-sql.c:
422 2008-07-23 Srinivasa Ragavan <sragavan@novell.com>
424 * Makefile.am: Add core camel search in sql support.
425 * camel-db.c (camel_db_get_column_name):
427 2008-07-23 Milan Crha <mcrha@redhat.com>
429 ** Fix for bug #543943
431 * camel-store.c: (construct):
432 * camel-folder.c: (camel_folder_construct):
433 * camel-vee-folder.c: (summary_header_to_db):
434 * camel.c: (camel_init):
435 * camel-db.c: (cdb_sql_exec), (camel_db_count_message_info),
437 * camel-folder-summary.c: (camel_folder_summary_migrate_infos),
438 (message_info_from_uid), (camel_folder_summary_save_to_db),
439 (camel_folder_summary_header_load_from_db),
440 (camel_folder_summary_remove_range), (summary_header_to_db):
443 2008-07-22 Matthew Barnes <mbarnes@redhat.com>
445 ** Fix a bunch of Gtk-Doc warnings.
447 2008-07-22 Priit Laes <plaes@plaes.org>
451 * camel-store.c: (construct): Fix string usage after it is freed.
453 2008-07-22 Sankar P <psankar@novell.com>
455 * camel-folder-search.c (check_header), (search_system_flag):
456 Make search work and don't screw up when the system flags are included.
457 A better sexp parser is coming up.
459 2008-07-21 Tor Lillqvist <tml@novell.com>
461 * camel-db.c (camel_db_open): Check for
462 CAMEL_SQLITE_DEFAULT_CACHE_SIZE environment variable was
465 2008-07-21 Sankar P <psankar@novell.com>
467 * camel-db.c (cdb_sql_exec)
468 * camel-folder-summary.c (camel_folder_summary_migrate_infos): Hold the
469 rights when a transaction in place.
471 2008-07-21 Srinivasa Ragavan <sragavan@novell.com>
473 * camel/camel-folder-summary.c: Add migration support and fix some
476 2008-07-20 Matthew Barnes <mbarnes@redhat.com>
480 * camel-block-file.h:
481 #include <sys/types.h> (in the proper order)
483 2008-07-17 Sankar P <psankar@novell.com>
485 * camel-folder-summary.c (remove_item):
486 Make disk-summary don't crash for the time being.
487 We need to find out where the uid is getting leaked and fix that.
489 2008-07-16 Sankar P <psankar@novell.com>
491 Pushing disk summary changes from the madagascar branch
494 * camel-folder-search.c (camel_folder_search_class_init),
495 (camel_folder_search_finalize), (camel_folder_search_construct),
496 (camel_folder_search_set_folder),
497 (camel_folder_search_set_summary),
498 (camel_folder_search_execute_expression),
499 (camel_folder_search_search), (camel_folder_search_free_result),
500 (search_not), (search_match_all), (search_match_threads),
501 (check_header_deprecated), (check_header),
502 (search_header_contains), (db_search_header_contains),
503 (match_words_index), (match_words_messages),
504 (search_body_contains), (search_user_flag), (search_system_flag),
505 (search_user_tag), (search_uid), (read_uid_callback):
506 * camel-folder-search.h:
507 * camel-folder-summary.c (camel_folder_summary_init),
508 (camel_folder_summary_finalize), (camel_folder_summary_count),
509 (camel_folder_summary_index),
510 (camel_folder_summary_uid_from_index),
511 (camel_folder_summary_array), (message_info_from_uid),
512 (camel_folder_summary_uid), (perform_content_info_load_from_db),
513 (append_changed_uids), (camel_folder_summary_get_changed),
514 (remove_item), (remove_cache), (camel_folder_summary_cache_size),
515 (camel_folder_summary_reload_from_db),
516 (camel_folder_summary_load_from_db), (mir_from_cols),
517 (camel_read_mir_callback), (camel_folder_summary_load),
518 (perform_content_info_save_to_db), (save_to_db_cb),
519 (save_message_infos_to_db), (camel_folder_summary_save_to_db),
520 (camel_folder_summary_save),
521 (camel_folder_summary_header_load_from_db),
522 (camel_folder_summary_header_load), (summary_assign_uid),
523 (camel_folder_summary_add), (camel_folder_summary_insert),
524 (camel_folder_summary_add_from_header),
525 (camel_folder_summary_add_from_parser),
526 (camel_folder_summary_add_from_message),
527 (camel_folder_summary_clear), (camel_folder_summary_clear_db),
528 (summary_remove_uid), (camel_folder_summary_remove),
529 (camel_folder_summary_remove_uid),
530 (camel_folder_summary_remove_index_fast),
531 (camel_folder_summary_remove_index),
532 (camel_folder_summary_remove_range), (summary_meta_header_load),
533 (summary_header_from_db), (summary_header_to_db),
534 (camel_folder_summary_content_info_new), (message_info_from_db),
535 (message_info_to_db), (message_info_free), (content_info_from_db),
536 (content_info_to_db), (content_info_free), (camel_flag_set),
537 (camel_message_info_new), (info_set_flags), (info_set_user_flag),
538 (info_set_user_tag), (camel_folder_summary_class_init):
539 * camel-folder-summary.h:
540 * camel-folder-thread.c (camel_folder_thread_messages_new):
541 * camel-folder.c (camel_folder_finalize), (camel_folder_construct),
542 (camel_folder_refresh_info), (folder_getv), (folder_free),
543 (get_uids), (free_uids), (free_summary),
544 (camel_folder_free_summary), (search_free):
546 * camel-offline-journal.c:
547 * camel-store.c (camel_store_finalize), (construct):
549 * camel-string-utils.c (camel_pstring_free):
550 * camel-vee-folder.c (camel_vee_folder_get_location),
551 (summary_header_to_db), (vee_sync), (vee_get_message),
552 (vee_search_by_expression), (vee_folder_add_uid),
553 (vee_folder_remove_folder), (folder_added_uid),
554 (vee_rebuild_folder), (folder_changed_remove_uid),
555 (subfolder_renamed_update), (vee_set_expression),
556 (camel_vee_folder_finalise):
557 * camel-vee-store.c (camel_vee_store_class_init),
558 (camel_vee_store_init), (construct), (vee_get_folder_info):
559 * camel-vee-summary.c (vee_message_info_free),
560 (vee_message_info_clone), (vee_info_ptr), (vee_info_uint32),
561 (vee_info_time), (vee_info_user_flag), (vee_info_user_tag),
562 (vee_info_set_user_flag), (vee_info_set_user_tag),
563 (vee_info_set_flags), (message_info_from_uid),
564 (camel_vee_summary_class_init), (camel_vee_summary_new),
565 (camel_vee_summary_get_ids), (camel_vee_summary_add):
566 * camel-vee-summary.h:
567 * camel-vtrash-folder.c (vtrash_transfer_messages_to),
568 (vtrash_search_by_expression), (vtrash_search_by_uids),
569 (vtrash_uid_added), (vtrash_folder_changed), (vtrash_add_folder),
570 (vtrash_remove_folder):
572 2008-07-12 Srinivasa Ragavan <sragavan@novell.com>
574 ** Fix for bug #213072
576 * camel-folder.c: (camel_folder_refresh_info): Lock while rebuilding
579 2008-07-07 Matt McCutchen 2 <matt@mattmccutchen.net>
581 ** Fix for bug #503922
583 * camel-folder-summary.c: Fix typo in mapping flag name "draft".
585 2008-07-02 Jeffrey Stedfast <fejj@novell.com>
587 * camel-folder.c (camel_folder_sort_uids): New method to sort an
590 2008-06-25 Jeffrey Stedfast <fejj@novell.com>
592 * camel-mime-utils.c (camel_header_decode_date): Don't crash if
593 the str argument is NULL.
595 * camel-folder-summary.c (message_info_new_from_header): Don't
596 allow ourselves to pass NULL as the str argument to
597 camel_header_decode_date().
599 2008-06-21 Jeffrey Stedfast <fejj@novell.com>
601 * broken-date-parser.[c,h]: Removed, more-or-less moved into
602 camel-mime-utils.c (this code was basically the same as the GMime
603 date parser code except that it might not have been as
606 * camel-mime-utils.c (camel_header_decode_date): Copy/pasted
607 GMime's decode_date() code to replace really nasty code.
609 2008-06-20 Jeffrey Stedfast <fejj@novell.com>
611 * camel-mime-filter-progress.[c,h]: New progress-reporting stream
614 * camel-mime-utils.c: Get rid of the CLEAN_DATE #define
615 usage... we can never trust that dates are always properly
618 2008-06-18 Priit Laes <plaes@plaes.org>
620 ** Fix a regression introduced with bug #534080
622 * camel-stream-vfs.c: (stream_write):
623 Return correct bytes_written on success and -1 on error.
625 2008-06-18 Milan Crha <mcrha@redhat.com>
627 ** Fix for bug #340838
629 * camel-http-stream.c: (http_method_invoke):
630 Use the whole URL even when not the proxy set, because the URL can
631 contain parameters, which are not part of the path.
633 2008-06-18 Milan Crha <mcrha@redhat.com>
635 ** Fix for bug #334160
637 * camel-data-cache.c: (struct _CamelDataCachePrivate),
639 Changed the way when test the expiration of the cache.
641 2008-06-13 Milan Crha <mcrha@redhat.com>
643 ** Fix for bug #534080
645 * camel-stream-vfs.c: (stream_write):
646 Use g_output_stream_write_all instead of g_output_stream_write.
648 2008-06-13 Tor Lillqvist <tml@novell.com>
650 * camel-msgport.c: Make it compile on Win32.
652 2008-06-06 Tor Lillqvist <tml@novell.com>
655 * camel-win32.c: Drop the Win32 fsync() implementation. Instead
656 just use _commit() in the Microsoft C library which does the same.
658 * Makefile.am: Link libcamel with ICONV_LIBS.
660 2008-05-29 Milan Crha <mcrha@redhat.com>
662 ** Part of fix for bug #534312
664 * camel-folder-summary.h: (enum CamelMessageFlags):
665 Added new message flag CAMEL_MESSAGE_FORWARDED.
667 2008-05-22 Jeffrey Stedfast <fejj@novell.com>
669 * camel-mime-utils.c (camel_header_param_list_format_append): Work
670 around the broken "Jive Forums" NNTP gateway. Fixes bug #518312.
672 2008-05-27 Hiroyuki Ikezoe <poincare@ikezoe.net>
674 ** Fixes bug #534294.
676 * camel-folder-search.[ch]: Added accessor to _camel_header_param.
677 * camel-filter-search.c: Use camel_message_info_headers() instead of
678 direct access (i.e. ->headers) since the message does not have
679 headers' pointer if the message is in vitrual folder.
681 2008-05-19 Matthew Barnes <mbarnes@redhat.com>
683 ** Fixes part of bug #531591
685 * camel-disco-diary.c:
686 * camel-disco-folder.c:
687 * camel-disco-store.c:
688 * camel-folder-summary.c:
690 * camel-gpg-context.c:
692 * camel-offline-journal.c:
694 * camel-sasl-kerberos4.c:
697 * camel-smime-context.c:
700 * camel-vee-folder.c:
701 Don't use TeX-style quotes in user-visible messages.
703 2008-05-13 Tor Lillqvist <tml@novell.com>
705 * camel-net-utils.h [Win32]: Define WIN32_LEAN_AND_MEAN around
706 including <winsock2.h> to reduce the namespace pollution,
707 especially DATADIR clashes.
709 2008-05-07 Jeffrey Stedfast <fejj@novell.com>
711 * camel-uid-cache.c (camel_uid_cache_save): Check cache->fd after
712 we finish looping thru all of our uids; if cache->fd is -1, then
713 it means we failed somewhere along the lines and need to goto
716 2008-05-07 Matthew Barnes <mbarnes@redhat.com>
718 * camel-operation.c (camel_operation_unref):
719 A typo broke the mailer. Use camel_msgport_try_pop() (non-blocking)
720 instead of camel_msgport_pop() (blocking).
722 2008-05-06 Matthew Barnes <mbarnes@redhat.com>
724 ** Fixes part of bug #424744
728 * camel-msgport.[ch]:
730 Add camel-iconv.[ch], camel-msgport.[ch], camel-trie.[ch].
731 Essentially they're just renamed versions of equivalent but now
732 deprecated API in libedataserver.
735 #include <camel/camel-msgport.h>
736 #include <camel/camel-trie.h>
738 * camel-charset-map.c:
739 * camel-filter-search.c:
740 * camel-mime-utils.c:
742 * camel-sasl-digest-md5.c:
743 * camel-mime-message.c:
744 * camel-gpg-context.c:
745 * camel-mime-filter-charset.c:
746 * camel-folder-summary.c:
747 Use camel-iconv.h instead of e-iconv.h.
752 Use camel-msgport.h instead of e-msgport.h.
754 * camel-url-scanner.c:
755 Use camel-trie.h instead of e-trie.h.
757 2008-05-06 Sankar P <psankar@novell.com>
759 * Bad git-svn usage. Reverted.
761 2008-05-01 Jeffrey Stedfast <fejj@novell.com>
763 * camel-folder-summary.c: Don't limit references while loading the
764 summary, etc to 500 entries - especially since we don't force the
765 limit when outputting the summary. Fixes bug #347061.
767 2008-04-30 Matthew Barnes <mbarnes@redhat.com>
771 Replace assertions with g_return_val_if_fail().
772 Clean up coding style in the threading functions.
774 2008-04-27 Matthew Barnes <mbarnes@redhat.com>
778 * tests/Makefile.am: Do not ship .svn files.
780 2008-04-22 Milan Crha <mcrha@redhat.com>
782 ** Fix for bug #529339
784 * camel-folder-summary.c: (camel_system_flag):
785 Do not access NULL pointer, aka recognize sentinel properly.
787 2008-04-18 Sankar P <psankar@novell.com>
789 * camel-mime-filter-pgp.c: (filter_run):
790 Fix a build break. Use different variable names
791 for different purposes.
793 2008-04-17 Jeffrey Stedfast <fejj@novell.com>
795 * camel-mime-filter-pgp.c (filter_run): Properly handle CRLF
796 line-endings and fixed the logic so that we could never read
797 beyond the end of the buffer. Also fixed the "blank line end of
798 headers" case which only allowed a single whitespace character.
800 2008-04-17 Milan Crha <mcrha@redhat.com>
802 ** Part of fix for bug #526741
804 * camel-stream-vfs.h:
805 * camel-stream-vfs.c: Do not depend on gnomve-vfs, but use gio/gvfs
806 instead. Dropped camel_stream_vfs_new_with_handle, new function for
807 this is camel_stream_vfs_new_with_stream, also prototype for
808 camel_stream_vfs_new_with_uri has been changed.
809 CamelStreamVFS is not seekable anymore.
811 2008-04-16 Christian Kellner <gicmo@gnome.org>
815 * providers/imap/camel-imap-store.c:
816 Make sure we do the Inbox -> INBOX translation at the right place,
817 i.e. *after* we asked the camel_store_summary_path with the correct
818 folder_name that we got from the server.
820 2008-04-14 Milan Crha <mcrha@redhat.com>
822 ** Part of fix for bug #270406
824 * camel-folder.h: (CamelFolderClass):
825 * camel-folder.c: (camel_folder_class_init), (get_quota_info),
826 (camel_folder_get_quota_info), (camel_folder_quota_info_new),
827 (camel_folder_quota_info_clone), (camel_folder_quota_info_free):
828 Add virtual function get_quota_info on a folder. Also add functions
829 to work with CamelFolderQuotaInfo structure.
831 2008-04-07 Matthew Barnes <mbarnes@redhat.com>
835 * camel-mime-utils.c (camel_header_unfold):
836 Return NULL if the input string is NULL.
838 2008-04-04 Jeffrey Stedfast <fejj@novell.com>
840 * camel-folder-summary.c (summary_format_address): Unfold the
841 header before decoding it.
842 (summary_format_string): Same.
844 * camel-mime-message.c (process_header): Unfold certain headers.
846 * camel-mime-parser.c (folder_scan_header): Applied patch by Craig
847 Shelly to fix the PRESERVE_HEADERS logic. First step in fixing bug
850 2008-04-02 Jeffrey Stedfast <fejj@novell.com>
852 * camel-mime-utils.c (camel_header_fold): Fixed bug #417000.
854 2008-04-02 Milan Crha <mcrha@redhat.com>
856 ** Part of fix for bug #271863
858 * camel-folder.h: New CAMEL_FOLDER_JUNKED_NOT_DELETED property.
859 * camel-folder.c: (folder_getv):
860 Count junk messages which are not marked as deleted separately.
862 2008-03-31 Milan Crha <mcrha@redhat.com>
864 ** Fix for bug #524704
866 * camel-mime-utils.c: (quoted_decode):
867 Allow direct spaces in a string.
868 * camel-mime-utils.c: (rfc2047_decode_word):
869 Do not return empty string in case of malformed text.
870 * camel-mime-utils.c: (header_decode_text):
871 Be sure we access only allocated memory.
873 2008-03-27 Matthew Barnes <mbarnes@redhat.com>
875 ** Fixes part of bug #518710
877 * camel-folder-summary.c:
879 * camel-sasl-cram-md5.c:
880 * camel-sasl-digest-md5.c:
881 * camel-tcp-stream-ssl.c:
882 * camel-vee-folder.c:
883 Use GLib's new MD5 Checksum API. The MD5 utilities in
884 libedataserver are now deprecated.
886 * camel-multipart-signed.c:
887 * camel-store-summary.c:
888 Remove unneeded inclusion of <libedataserver/md5-utils.h>.
890 2008-03-17 Christian Kellner <gicmo@gnome.org>
892 ** Fix for bug #341004
894 * camel-url.c: (camel_url_to_string): Hide the auth mech when
895 CAMEL_URL_HIDE_AUTH is specified.
897 2008-02-20 Jeff Cai<jeff.cai@sun.com>
899 ** Fix for bug #517190
901 * camel-mime-utils.c: (decode_8bit):
902 Make sure the parameter is valid before being passed to
905 2008-02-18 Srinivasa Ragavan <sragavan@novell.com>
907 ** Fix for bnc #167638
909 * camel.c: Upstreamed OpenSUSE patch. Patch by Fejj to quit evolution
910 faster. (Dont try downloading while exitting).
912 2008-02-14 Matthew Barnes <mbarnes@redhat.com>
914 ** Fixes part of bug #516074
918 Don't assume NI_MAXHOST and NI_MAXSERV are defined in <netdb.h>
919 since these are GNU extensions.
921 2008-02-11 Milan Crha <mcrha@redhat.com>
923 ** Fix for bug #515054
925 * camel-folder-summary.h: (CamelMessageFlags):
926 New flag CAMEL_MESSAGE_NOTJUNK.
927 * camel-folder-summary.c: (flag_names):
928 New flag is system flag and check for changes on it.
929 * camel-filter-search.c: (junk_test):
930 Skip testing messages with this or CAMEL_MESSAGE_JUNK flag set.
932 2008-02-06 Matthew Barnes <mbarnes@redhat.com>
935 Fix a compilation error that occurs when building in a
936 remote object directory (#514682, patch by Paul Smith).
938 2008-02-04 Milan Crha <mcrha@redhat.com>
940 ** Fix for bug #513389
942 * camel-url.c: (camel_url_new):
943 It's possible to pass empty string as url, so return safely.
945 2008-02-01 Milan Crha <mcrha@redhat.com>
947 ** Fix for bug #211353
949 * camel-filter-driver.c: (do_label):
950 Use new label tags when setting old tags.
952 2008-01-11 Milan Crha <mcrha@redhat.com>
954 ** Fix for bug #324168
956 * camel-vee-summary.c: (vee_message_info_free),
957 (vee_message_info_clone) (camel_vee_summary_add): Ensure the owner
958 of the real message info will not be freed before we unref the
961 2008-01-27 Jeffrey Stedfast <fejj@novell.com>
963 * camel-mime-utils.c (rfc2047_encode_word): Use ssize_t for
964 proclen so that we can compare it against -1. Fixes a coverage
965 warning noticed by Nokia.
967 2008-01-24 Matthew Barnes <mbarnes@redhat.com>
969 * camel-object.c (camel_object_cast):
970 Check CamelObject pointer for NULL (#509124).
972 2008-01-24 Matthew Barnes <mbarnes@redhat.com>
974 * camel-store.c (camel_store_get_folder):
975 Call camel_object_bag_abort() before returning with an exception.
977 2008-01-24 Srinivasa Ragavan <sragavan@novell.com>
979 ** Fix for bug #510779
981 * camel-filter-search.c: (junk_test): Add contact lookup and header
983 * camel-folder-summary.c: (message_info_free): Add/Free headers
984 fetched into message info.
985 * camel-folder-summary.h: Add a headers param into message info
986 * camel-private.h: Add junk_headers into the session private which
987 holds the junk headers to be extracted.
988 * camel-session.c: (camel_session_init), (camel_session_finalise),
989 (camel_session_lookup_addressbook),
990 (camel_session_set_junk_headers), (camel_session_get_junk_headers):
993 2008-01-23 Tor Lillqvist <tml@novell.com>
996 * camel-filter-driver.c
997 * camel-filter-search.c
998 * camel-gpg-context.c: Include GLib headers before testing G_OS_WIN32.
1000 2008-01-21 Matthew Barnes <mbarnes@redhat.com>
1002 ** Fixes part of bug #510303
1004 * camel-gpg-context.c (gpg_ctx_parse_status):
1005 Escape the PIN and passphrase prompts so the markup parser
1006 will parse it verbatim.
1008 2008-01-21 Matthew Barnes <mbarnes@redhat.com>
1010 * camel.c (camel_shutdown):
1011 Save certificates _before_ calling PR_Cleanup(). Calling fsync()
1012 from camel_certdb_save() after we've called PR_Cleanup() appears to
1013 trigger a race between PR_Cleanup() -- which frees a lock protecting
1014 thread bookmarking data -- and _pt_thread_death_internal() -- which
1015 needs to temporarily lock the thread bookmarking data. (#445309)
1017 2008-01-17 Matthew Barnes <mbarnes@redhat.com>
1019 * camel-session.c (camel_session_build_password_prompt):
1020 Forgot to escape the user and host name strings. (#506250)
1022 2008-01-17 Matthew Barnes <mbarnes@redhat.com>
1024 ** Fixes part of bug #506250
1026 * camel-session.c (camel_session_build_password_prompt):
1027 New function constructs a password prompt markup string from the
1028 given account type, user name, and host name. The prompt string
1029 is suitable for use in a password prompt dialog.
1031 2008-01-16 Øystein Gisnås <oystein@gisnas.net>
1033 ** Fix for bug #300098
1035 * camel-provider.pc.in:
1037 Set proper dependencies for stand-alone programs linking against
1040 2008-01-14 Matthew Barnes <mbarnes@redhat.com>
1042 * camel-operation.c (camel_operation_end):
1043 Use g_slist_delete_link() to discard the list node (#509370).
1045 2008-01-12 Srinivasa Ragavan <sragavan@novell.com>
1047 * camel-mime-part.c: (camel_mime_part_get_content_size): Fixes few
1050 2008-01-12 Srinivasa Ragavan <sragavan@novell.com>
1052 * camel-mime-part.c: Fix a build break.
1054 2008-01-12 Srinivasa Ragavan <sragavan@novell.com>
1056 ** Fix for bug #379896
1058 * camel-mime-utils.c: (camel_header_param): Check the value for NULL
1061 2008-01-12 Srinivasa Ragavan <sragavan@novell.com>
1063 ** Fix for bug #500233
1065 * camel-url.c: (camel_url_new): Handle empty strings.
1067 2008-01-11 Jeffrey Stedfast <fejj@novell.com>
1069 Slightly modified version of a patch submitted by Jean-Christophe
1070 BEGUE for bug #329692.
1072 * camel-mime-part.c (camel_mime_part_get_content_size): Get the
1073 decoded content size of a MIME part.
1075 2008-01-09 Milan Crha <mcrha@redhat.com>
1077 * Reverted previous patch because it doesn't play well with
1078 prefer plain plugin.
1080 2008-01-09 Sankar P <psankar@novell.com>
1082 * camel-mime-part.c: (camel_mime_part_set_filename):
1083 Use the right API to get the mime_type. Accessing Data Wrapper's
1084 field directly is not advisable.
1086 ** Fix for bug #460204
1088 2008-01-07 Sankar P <psankar@novell.com>
1090 * camel-partition-table.c: (camel_key_table_add),
1091 (camel_key_table_set_flags):
1092 Convert a g_assert to g_warning.
1093 Reduces the severity of #348149
1095 2008-01-07 Srinivasa Ragavan <sragavan@novell.com>
1097 ** Fix for bug #405497
1099 * camel-vee-folder.c: (folder_changed_base),
1100 (camel_vee_folder_finalise): Don't pass events if the object is being
1103 2008-01-06 Bharath Acharya <abharath@novell.com>
1105 ** Fix for bug #474118
1107 * camel-offline-store.c: (camel_offline_store_prepare_for_offline):
1108 * camel-offline-store.h:
1109 Downsyncs all the messages from folders marked for offline use.
1111 2007-12-27 Jeffrey Stedfast <fejj@novell.com>
1113 * camel-mime-utils.c (rfc2047_decode_word): If we fail to
1114 completely convert the text using the supplied charset, pass the
1115 declared charset as the 'default_charset' argument to
1116 decode_8bit() rather than the default_charset argument we were
1118 (rfc2047_decode_word): Make sure inlen >= 8.
1120 2007-12-25 Jeffrey Stedfast <fejj@novell.com>
1124 * camel-charset-map-private.h: Regenerated.
1126 * camel-charset-map.c (main): Rewritten to be in-sync with GMime's
1127 implementation which has support for multibyte charsets and
1130 2007-12-25 Jeffrey Stedfast <fejj@novell.com>
1132 * camel-mime-utils.c (header_decode_domain): Check *inptr before
1133 calling camel_mime_is_dtext()
1135 2007-12-25 Jeffrey Stedfast <fejj@novell.com>
1137 Fixes the remainder of the "evolution won't decode
1138 this/that/whatever brokenly rfc2047 encoded header" bugs.
1140 * camel-mime-utils.c (camel_iconv_strndup): New (internal, tho
1141 could maybe be made public eventually) function to convert a
1142 string from one charset into another which returns NULL on
1144 (decode_8bit): New function to try to find the best charset to
1145 convert raw 8bit/multibyte strings into UTF-8 by any means
1147 (rfc2047_decode_word): Rewritten. Now also takes a default_charset
1148 argument to aid in charset conversion.
1149 (header_decode_text): Rewritten to handle a wider variety of
1150 utterly broken encodings from crap mailers. No longer takes an
1151 inlen argument because it wasn't necessary.
1153 2007-12-14 Milan Crha <mcrha@redhat.com>
1155 ** Part of fix for bug #211353
1157 * camel-filter-driver.c: (do_label):
1158 Labels are newly stored in user_flags, not in user_tags.
1160 2007-12-15 Matthew Barnes <mbarnes@redhat.com>
1162 * camel-tcp-stream-ssl.c (camel_tcp_stream_ssl_finalize),
1163 (stream_close), (socket_connect):
1164 Call PR_Shutdown() before PR_Close() (based on discussion with
1165 Philip Van Hoof on evolution-hackers).
1167 2007-12-12 Evil Ninja Squirrel <evilninjasquirrel@hotbrev.com>
1169 ** Fix for bug #486126
1171 * camel-filter-driver.c: (camel_filter_driver_filter_message):
1172 Fixed an incorrect format string usage that can lead to crashes.
1174 2007-12-11 Milan Crha <mcrha@redhat.com>
1176 ** Fix for bug #336074
1178 * camel-store.h: (struct CamelStoreClass::can_refresh_folder),
1179 (camel_store_can_refresh_folder):
1180 * camel-store.c: (can_refresh_folder), (camel_store_class_init),
1181 (camel_store_can_refresh_folder):
1182 New virtual function to check if folder can be refreshed or not.
1183 Default behavior of this function is that the Inbox will be refreshed.
1185 2007-12-05 Matthew Barnes <mbarnes@redhat.com>
1187 ** Fixes bug #501622
1189 * camel-sasl.c (camel_sasl_challenge_base64):
1190 Return an empty string instead of NULL for empty SASL responses.
1191 Fixes broken Digest-MD5 authentication.
1193 2007-12-03 Milan Crha <mcrha@redhat.com>
1195 ** Fix for bug #324008
1197 * camel-text-index.c: (text_index_sync):
1198 Don't sync when wasn't created successfully.
1200 2007-11-23 Milan Crha <mcrha@redhat.com>
1202 ** Fix for bug #461979
1204 * camel-url.c: (camel_url_new_with_base):
1205 The base URL can be without a path, so do not crash, if that happen.
1207 2007-11-22 Milan Crha <mcrha@redhat.com>
1209 ** Fix for bug #376425
1211 * camel-http-stream.c: (camel_http_stream_get_content_type):
1212 Use proxy if user uses it.
1213 * camel-http-stream.c: (camel_http_stream_set_proxy):
1214 Do not crash if have proxy without name and password.
1216 2007-11-15 Matthew Barnes <mbarnes@redhat.com>
1218 ** Fixes part of bug #474000
1220 * camel-mime-utils.c (camel_base64_decode_simple):
1221 * camel-sasl.c (camel_sasl_challenge_base64):
1222 Initialize 'length' before calling g_base64_decode().
1224 2007-11-15 Milan Crha <mcrha@redhat.com>
1226 ** Typo fix in previous commit causing crash.
1228 2007-11-14 Matthew Barnes <mbarnes@redhat.com>
1230 ** Merge a bunch of compiler warning fixes and cosmetic
1231 cleanups from camel-lite.
1233 2007-11-11 Matthew Barnes <mbarnes@redhat.com>
1235 * camel-tcp-stream-ssl.c (enable_ssl):
1236 Disable SSLv2 compatible HELLO on SSL stream when SSLv2 is
1237 disabled (#345135, patch from Niels Vorgaard Christensen).
1239 2007-11-09 Matthew Barnes <mbarnes@redhat.com>
1241 * camel-mime-utils.c (camel_base64_decode_simple):
1242 Add argument guards, although nothing should be using this anymore.
1244 2007-10-15 Jeffrey Stedfast <fejj@gnome.org>
1246 * camel-mime-message.c (camel_mime_message_set_subject): Protect
1247 against a NULL subject string.
1249 2007-10-01 Kjartan Maraas <kmaraas@gnome.org>
1251 * camel-folder-summary.c: (camel_folder_summary_finalize),
1252 (perform_content_info_load), (camel_folder_summary_load),
1253 (camel_folder_summary_clear), (camel_folder_summary_encode_token),
1254 (my_list_append), (camel_flag_set), (camel_tag_set):
1255 * camel-folder-thread.c: (prune_empty), (thread_summary),
1256 (camel_folder_thread_messages_new):
1257 * camel-folder.c: (camel_folder_get_message_user_tag), (thaw):
1258 * camel-mime-filter-charset.c: (reset), (complete):
1259 * camel-mime-message.c: (camel_mime_message_set_date),
1260 (find_best_encoding), (best_encoding):
1261 * camel-mime-parser.c: (camel_mime_parser_filter_add),
1262 (camel_mime_parser_filter_remove), (folder_seek),
1263 (folder_scan_skip_line), (folder_scan_header), (folder_scan_step):
1264 * camel-mime-part.c: (init_header_name_table), (write_to_stream):
1265 * camel-multipart.c: (set_boundary), (write_to_stream):
1266 * camel-object.c: (cobject_meta_get), (camel_object_hook_event),
1267 (camel_object_trigger_event), (camel_object_get_ptr),
1268 (camel_object_meta_get), (camel_object_bag_reserve):
1269 * camel-offline-folder.c: (camel_offline_folder_get_type):
1270 * camel-offline-journal.c: (camel_offline_journal_get_type):
1271 * camel-offline-store.c: (camel_offline_store_get_type):
1272 * camel-partition-table.c: (camel_key_table_lookup),
1273 (camel_key_table_next):
1274 * camel-sasl-digest-md5.c: (generate_response), (digest_response),
1275 (digest_md5_challenge):
1276 * camel-sasl-popb4smtp.c: (popb4smtp_challenge):
1277 * camel-search-private.h: Include "libedataserver/e-sexp.h" to
1278 get the _ESExpResult declaration.
1279 * camel-stream-buffer.c: (camel_stream_buffer_init), (stream_read):
1280 * camel-stream-mem.c: (camel_stream_mem_init):
1281 * camel-tcp-stream-raw.c: (camel_tcp_stream_raw_new),
1283 * camel-text-index.c: (text_index_add_name_to_word),
1284 (text_index_compress_nosync), (camel_text_index_dump),
1285 (text_index_cursor_reset):
1286 * camel-vee-store.c: (change_folder), (vee_get_folder),
1287 (vee_get_folder_info): NULL vs 0 and ANSIfy.
1289 2007-09-12 Milan Crha <mcrha@redhat.com>
1291 ** Fix for bug #231178
1293 * camel-filter-driver.c: (struct symbols), (do_label):
1294 New symbol 'set-label' defined and added corresponding callback.
1296 2007-09-27 Matthew Barnes <mbarnes@redhat.com>
1298 ** Fixes part of bug #474000
1300 * camel-mime-utils.c:
1301 * camel-mime-utils.h:
1302 Deprecate Camel's Base64 API and make the functions thin wrappers
1303 for GLib's Base64 API.
1305 * camel-multipart.c (set_boundary):
1306 * camel-vee-folder.c (camel_vee_folder_hash_folder):
1307 * camel-mime-filter-basic.c (complete):
1308 * camel-sasl-digest-md5.c (generate_response):
1309 * camel-http-stream.c (camel_http_stream_set_proxy):
1310 * camel-sasl.c (camel_sasl_challenge_base64):
1311 Use GLib's Base64 API instead of Camel's.
1313 2007-09-12 Milan Crha <mcrha@redhat.com>
1315 ** Fix for bug #231178
1317 * camel-filter-driver.c: (struct symbols), (do_label):
1318 New symbol 'set-label' defined and added corresponding callback.
1320 2007-09-10 Sankar P <psankar@novell.com>
1322 * camel-partition-table.c: (camel_key_table_lookup):
1323 Convert a g_assert to g_warning. Reduces the severity of
1326 2007-09-07 Milan Crha <mcrha@redhat.com>
1328 ** Fix for bug #469007
1330 * camel-search-private.c: (camel_search_header_match):
1331 Let work the code for skipping white spaces at the beginning of
1334 * camel-search-private.c: (camel_ustrcasecmp), (camel_ustrncasecmp):
1335 Fixed other compiler warnings in this file.
1337 2007-09-07 Milan Crha <mcrha@redhat.com>
1339 ** Fix for bug #473880
1341 * camel-mime-filter-tohtml.c: (writeln), (html_convert):
1342 * camel-utf8.c: (camel_utf8_ucs2):
1343 * camel-url-scanner.c: (camel_url_scanner_scan):
1344 * camel-sasl-gssapi.c: (removed header glib/gi18n.h):
1345 Fixes serious compiler warnings.
1347 2007-08-28 Ross Burton <ross@openedhand.com>
1350 Fix FSF address (Tobias Mueller, #470445)
1352 2007-08-27 Johnny Jacob <jjohnny@novell.com>
1354 ** Fix for 261084 by Jared Moore <cornflake.pirate@gmail.com>
1356 * camel-folder-search.c: String change.
1359 2007-08-27 Srinivasa Ragavan <sragavan@novell.com>
1361 ** Fix for bug #256878 from Vincent Untz
1363 * camel-cipher-context.h:
1364 * camel-gpg-context.c: (gpg_verify), (gpg_decrypt):
1366 2007-08-23 Matthew Barnes <mbarnes@redhat.com>
1368 * camel-tcp-stream-ssl.c (camel_certdb_nss_cert_get):
1369 Simplify the code; use g_file_get_contents() (#437331).
1371 2007-08-20 Matthew Barnes <mbarnes@redhat.com>
1374 Add argument checks to several public functions (#467883).
1376 2007-08-16 Milan Crha <mcrha@redhat.com>
1378 ** Part of fix for bug #350539
1380 * camel-filter-search.c: (check_header):
1381 * camel-smime-context.c: (camel_smime_context_describe_part):
1382 * camel-mime-part-utils.c:
1383 (camel_mime_part_construct_content_from_parser):
1384 * camel-gpg-context.c: (gpg_decrypt):
1385 Ensures non-NULL part/message/dw/ipart/content.
1387 2007-08-14 Jens Granseuer <jensgr@gmx.net>
1389 ** Fix for bug #466309
1391 * camel-folder-summary.c: (camel_folder_summary_add_from_parser):
1392 declare variables at the beginning of the block. Fixes building
1393 with non-C99 compilers.
1395 2007-08-13 Milan Crha <mcrha@redhat.com>
1397 ** Fix for bug #352346
1399 * camel-provider.h: Added new constants CAMEL_URL_PART_PATH_DIR and
1400 CAMEL_URL_NEED_PATH_DIR; when CAMEL_URL_NEED_PATH_DIR is set, then
1401 in editor dialog is choosing file, without it directory.
1403 2007-08-13 Srinivasa Ragavan <sragavan@novell.com>
1405 ** Fix for bug #420462
1407 * camel-store.c: (camel_folder_info_build): If the FolderInfo doesn't
1408 have a child, unset the NO_CHILDREN flag.
1410 2007-08-12 Rob Bradford <rob@openedhand.com>
1412 * camel-text-index.c: (camel_text_index_new):
1413 Fix syntax error introduced by my patch. Kudos to Theppitak
1414 Karoonboonyanan for discovering it.
1416 2007-08-12 Johnny Jacob <jjohnny@novell.com>
1418 ** Fix for 387806 by Rob Bradford <rob@openedhand.com>
1420 * camel-text-index.c: Add some checking of return values when
1421 calling camel_block_file_new_block.
1423 2007-08-12 Johnny Jacob <jjohnny@novell.com>
1425 ** Fix for Bug 261084 from Jared Moore
1427 * camel-folder-search.c :
1429 2007-07-28 Ross Burton <ross@openedhand.com>
1432 * camel-folder-summary.c:
1433 Add some sanity checks (#460861)
1435 2007-07-29 Srinivasa Ragavan <sragavan@novell.com>
1437 ** Fix for bug #402925 from hggdh
1439 * camel.c: (camel_init):
1441 2007-07-09 Gilles Dartiguelongue <gdartigu@svn.gnome.org>
1443 * camel-folder.c: (camel_folder_change_info_add_update),
1444 (change_info_remove), (camel_folder_change_info_add_uid),
1445 (camel_folder_change_info_remove_uid),
1446 (camel_folder_change_info_change_uid):
1447 * camel-gpg-context.c: (gpg_ctx_get_diagnostics),
1448 (gpg_ctx_parse_status):
1449 * camel-mime-filter-bestenc.c: (filter):
1450 * camel-mime-filter-tohtml.c: (writeln):
1451 * camel-search-private.c: (camel_ustrstrcase), (camel_ustrcasecmp),
1452 (camel_ustrncasecmp), (camel_search_header_match),
1453 (camel_search_message_body_contains), (camel_search_words_simple):
1454 * camel-url-scanner.c: (camel_url_scanner_scan):
1455 * camel-utf8.c: (g_string_append_u), (camel_utf8_ucs2):
1456 Fix compilation warnings (#363384)
1458 2007-06-20 Milan Crha <mcrha@redhat.com>
1460 ** Fix for bug #449531
1462 * camel-mime-filter-pgp.c: (filter_run):
1463 Accept one space on a line after signature header as separator.
1465 2007-07-09 Srinivasa Ragavan <sragavan@novell.com>
1467 ** Fix for bug #434356 from Jindrich Makovicka
1469 * camel-mime-utils.c: (header_decode_lwsp), (header_decode_domain):
1471 2007-07-02 Srinivasa Ragavan <sragavan@novell.com>
1473 ** Fix for bug #412735 from Pascal Terjan
1475 * camel-url-scanner.c: (url_stop_at_brace):
1477 2007-06-26 Philip Van Hoof <pvanhoof@gnome.org>
1479 * providers/local/camel-maildir-folder.c: Bugfix when renaming from
1480 tmp to cur didn't work (which can happen on FAT32 that doesn't allow
1481 certain special characters that are used by the Maildir spec).
1483 2007-06-21 Irene Huang <irene.huang@sun.com>
1485 * camel-sasl-gssapi.c: (gssapi_challenge): replace gss_nt_service_name
1486 with GSS_C_NT_HOSTBASED_SERVICE.
1488 2007-06-14 Philip Van Hoof <pvanhoof@gnome.org>
1490 * camel-net-utils.c: Memory leak fix
1492 2007-06-14 Philip Van Hoof <pvanhoof@gnome.org>
1494 * camel-imap-folder.c: Security bugfix. The sequence can be a negative
1495 value while it is being used as the index of an array (#447414)
1497 2007-06-10 Matthew Barnes <mbarnes@redhat.com>
1499 * camel-object.c (cobject_state_read), (cobject_state_write):
1500 Calculate CamelArgV sizes in such a way that it doesn't produce
1501 negative intermediate values. Negative values are bad because
1502 the terms of the expression are unsigned. (#331099)
1504 2007-06-06 Sankar P <psankar@novell.com>
1506 * camel-sasl-gssapi.c:
1507 Fixed some wrong pre-processor directives,
1508 that were causing build-break.
1511 2007-06-05 Irene Huang <irene.huang@sun.com>
1513 * camel-sasl-gssapi.c: Add headers for Sun Kerberos
1516 2007-06-05 Irene Huang <irene.huang@sun.com>
1518 * camel-sasl-gssapi.c:
1520 2007-06-01 Karl Relton <karllinuxtest.relton@ntlworld.com>
1522 ** Fix for bug #311512
1524 * camel-folder.c (folder_changed): Block "folder_changed" signal
1525 propagation until filtering has completed.
1526 (camel_folder_change_info_new): Added a new uid_filter array.
1527 (change_info_recent_uid, change_info_filter_uid): Silently add
1529 (camel_folder_change_info_cat): Silently add uids to recent and
1531 (camel_folder_change_info_recent_uid): Use the new
1532 change_info_recent_uid() function and also add the uid to the
1534 (camel_folder_change_info_clear): Clear the filter uid set.
1535 (camel_folder_change_info_free): Free the filter uid set.
1537 2007-05-24 Ross Burton <ross@openedhand.com>
1539 * providers/sendmail/Makefile.am:
1540 Add missing link flags to fix build with -z,defs. (#409542, Loic
1543 2007-05-16 Jules Colding <colding@omesc.com>
1545 * camel-lock.c (camel_lock_dot): Use g_mkstemp()
1547 * camel-folder-summary.c (camel_folder_summary_save): Fix file
1548 descriptor leak. fclose() a fdopen() stream instead of
1549 close()'ing the underlying file descriptor.
1551 * camel-uid-cache.c (camel_uid_cache_save): Cleanups, such as
1552 setting cache->fd = -1 when fd has been closed.
1554 * camel-block-file.c (key_file_use): Do not close() if (fd == -1)
1556 * camel-index-control.c (do_perf): Fix file descriptor leak
1558 * camel-charset-map.c (main): Check for return value
1560 * camel-text-index.c (dump_raw): Fix file descriptor leak
1562 * camel-lock.c (main): Fix file descriptor leak.
1564 * camel-lock-client.c (camel_lock_helper_init): Fix file
1567 * camel-process.c (camel_process_fork): Fix file descriptor leak
1569 2007-05-15 Srinivasa Ragavan <sragavan@novell.com>
1571 * camel-disco-store.c: (camel_disco_store_prepare_for_offline):
1572 Added a new api to fetch a folder for offline sync. *
1573 camel-disco-store.h:
1575 2007-05-12 Jules Colding <colding@omesc.com>
1577 * camel-store.h (CamelFolderInfo): Change type of unread and total
1578 members to gint32 instead of guint32. The previous unsigned members
1579 are initialized to a negative value (-1) by many CamelFolderInfo
1580 producers. To do that is ugly. Changing the type to a signed data
1581 type will make a negative initialization value acceptable. We
1582 won't be able to index folders with more than ~2 billion messages,
1583 but who has that many anyway?
1585 2007-05-07 Matthew Barnes <mbarnes@redhat.com>
1587 * camel-stream-vfs.c:
1588 * camel-stream-vfs.h:
1589 Fix warnings reported by 'sparse'. Patch from Kjartan Maraas.
1591 2007-04-30 Srinivasa Ragavan <sragavan@novell.com>
1593 * Makefile.am: Added the include files part of core to the
1594 installation path. Build break.
1596 2007-04-27 Matthew Barnes <mbarnes@redhat.com>
1598 ** Fixes part of bug #418852
1600 * Note, these changes touch almost every file in Camel.
1602 * Replace C++ declaration guards (extern "C" { ... }) with
1603 G_BEGIN_DECLS / G_END_DECLS, or add them to headers with
1604 no declaration guards at all.
1606 * Use GLib's i18n support instead of Camel's (now deprecated).
1608 * Use quotes and brackets consistently in #include directives.
1610 * Remove CAMEL_EXPLICIT_TRANSLATION_DOMAIN from Makefiles.
1612 * Fix documentation warnings identified by Gtk-Doc.
1615 Expose Camel's entire "core" (non-provider) API.
1618 Deprecate this API. Use GLib's i18n support instead.
1620 * camel-folder.h (camel_folder_get_message_flags):
1621 * camel-folder.h (camel_folder_set_message_flags):
1622 * camel-folder.h (camel_folder_get_message_user_flag):
1623 * camel-folder.h (camel_folder_set_message_user_flag):
1624 * camel-folder.h (camel_folder_get_message_user_tag):
1625 * camel-folder.h (camel_folder_set_message_user_tag):
1626 * camel-folder.h (camel_folder_get_unread_message_count):
1627 * camel-folder.h (camel_folder_ref_message_info):
1628 Add deprecation guards around these function declarations.
1630 2007-04-05 Ross Burton <ross@openedhand.com>
1632 * camel-data-cache.c: (camel_data_cache_new):
1633 * camel-object.c: (camel_object_state_write):
1634 * camel-session.c: (get_storage_path):
1635 * camel-uid-cache.c: (camel_uid_cache_new):
1636 Use g_mkdir_with_parents (#383686).
1638 2007-04-03 Srinivasa Ragavan <sragavan@novell.com>
1640 ** Fix for bug #322105
1642 * camel-folder-summary.c: (info_set_flags): Fix for non-junk messages
1645 2007-04-01 Matthew Barnes <mbarnes@redhat.com>
1647 * camel-mime-utils.c (rfc2047_encode_word):
1648 Properly escape what would otherwise be a trigraph (??=).
1649 Patch from Kjartan Maraas.
1651 * camel-search-private.c (header_match):
1652 * camel-url.c (camel_url_to_string):
1653 Fix a compiler warning. Patch from Kjartan Maraas.
1655 2007-03-29 Matthew Barnes <mbarnes@redhat.com>
1658 E-D-S requires GLib 2.10 now; remove dead backward-compatibility
1659 code for GLib < 2.8 (#418971).
1661 2007-03-16 Matthew Barnes <mbarnes@redhat.com>
1663 ** Fixes part of bug #360240
1665 * camel-stream-vfs.c (camel_stream_vfs_new_with_handle):
1666 Remove unused variable.
1668 2007-02-26 Srinivasa Ragavan <sragavan@novell.com>
1670 ** Fix for bug #331813
1672 * camel-mime-filter-tohtml.c: Patch from Gilles
1675 2007-02-23 Matthew Barnes <mbarnes@redhat.com>
1677 ** Fixes bug #356177
1685 * camel-text-index.c:
1686 Migrate from EMutex to GStaticMutex or GStaticRecMutex.
1688 2006-01-08 Veerapuram Varadhan <vvaradhan@novell.com>
1690 ** Fixes eds part of bgo #362638 - Patch submitted by Matthew
1693 * camel/camel-private.h:
1694 * camel/camel-session.c: Replace EThread with GThreadPool.
1696 2006-12-14 Veerapuram Varadhan <vvaradhan@novell.com>
1698 ** Fixes for bgo #349445 - Patch submitted by Bastien Nocera
1700 * camel-url-scanner.c: (url_stop_at_brace): Added parameter to
1701 return appropriate "open" equivalent of the url_braces array.
1702 (camel_url_web_end): Do not remove ')' and '\'' from the end of URL.
1704 2006-12-14 Veerapuram Varadhan <vvaradhan@novell.com>
1706 ** Fix for bnc #208395
1708 * camel-url.[ch]: (camel_url_decode_path): Added method to
1709 decode path, by preserving the path-delimiter.
1711 2006-11-08 Sankar P <psankar@novell.com>
1713 * camel-folder-summary.h: Added support for CAMEL_MESSAGE_HIDDEN and
1714 CAMEL_MESSAGE_USER_NOT_DELETABLE flags which can be used in mailer
1715 and for proxy rights management.
1717 2006-11-06 Srinivasa Ragavan <sragavan@novell.com>
1719 ** Fix for bug #330157
1721 * camel-vee-folder.c: (camel_vee_folder_remove_folder),
1722 (camel_vee_folder_finalise): Dont unref if the sub folder is a
1725 2006-11-02 Hans Petter Jansson <hpj@novell.com>
1727 * camel-mime-filter-tohtml.c (writeln): Prevent potential buffer
1728 overrun by one byte.
1730 * camel-gpg-context.c (gpg_ctx_op_step): Clear the poll structures'
1731 events fields, so we don't pass uninitialized values to poll().
1733 2006-11-02 Harish Krishnaswamy <kharish@novell.com>
1735 * camel-mime-filter-crlf.c (filter): Fixes buffer overrun.
1736 Bug #369168. Patch submitted by Hans Petter Jansson.
1738 2006-10-05 Tor Lillqvist <tml@novell.com>
1740 Fixes from Steffen Eschenbacher:
1742 * camel-stream-vfs.c (camel_stream_vfs_finalize): Call
1743 gnome_vfs_close() on the GnomeVFSHandle *, not close(). (#350576,
1746 * camel-url.c (camel_url_new_with_base, camel_url_to_string): On
1747 Win32, for file: urls, simply call g_filename_{to/from}_uri.
1748 (#358010) We could do this on all platforms maybe?
1750 2006-09-14 Veerapuram Varadhan <vvaradhan@novell.com>
1752 ** Fixes bug #350907
1754 * camel-filter-search.c: (run_command): Unref GMainContext
1755 * camel-filter-driver.c: (pipe_to_system): ditto
1757 2006-08-28 Veerapuram Varadhan <vvaradhan@novell.com>
1759 ** Fixes bug #331099 based on patches by Eric Anholt
1760 <anholt@FreeBSD.org> and Joe Marcus Clarke <marcus@FreeBSD.org>
1762 * camel-object.c: (cobject_state_read): Cast the input for
1763 g_try_malloc to gulong.
1765 2006-08-23 Wang Xin <jedy.wang@sun.com>
1769 * camel-stream-vfs.c: (stream_read), (stream_write), (stream_seek):
1770 GnomeVFSFileSize should be used, not ssize_t.
1772 2006-08-23 Srinivasa Ragavan <sragavan@novell.com>
1774 ** Fix for bug #349960 by Daniel Gryniewicz
1776 * camel-stream-vfs.c: (camel_stream_vfs_new_with_uri): Set the excl
1777 flag to FALSE to over write existing file.
1779 2006-07-24 Veerapuram Varadhan <vvaradhan@novell.com>
1781 * camel-folder-summary.h: Added CamelFolderMetaSummary structure
1782 that holds values for meta summary file.
1784 * camel-folder-summary.c (summary_meta_header_load),
1785 (summary_meta_header_save), (meta_message_info_save): Newly added
1786 virtual methods to load and save meta-headers and meta-message
1788 (camel_folder_summary_load), (camel_folder_summary_save): Load and
1789 save meta-summary information as well.
1791 * providers/local/camel-mbox-summary.c (meta_message_info_save):
1792 Save message offset in the meta-summary file.
1794 * camel-file-utils.[c,h] (camel_file_util_encode_fixed_string),
1795 (camel_file_util_decode_fixed_string): Encode and decode fixed
1798 2006-07-07 Jeffrey Stedfast <fejj@novell.com>
1800 Fix for a bug pvanhoof spotted with my last patch
1802 * camel-string-utils.c (camel_pstring_add): If the value is in the
1803 table already and 'own' is TRUE, g_free the passed-in string.
1805 2006-07-07 Sankar P <psankar@novell.com>
1807 * camel-string-utils.c (camel_pstring_add):
1808 Fixes a variable naming error. Fixes build break.
1810 2006-07-06 Jeffrey Stedfast <fejj@novell.com>
1812 Based on a suggestion/patch by pvanhoof
1814 * camel-string-utils.c (camel_pstring_add): New function that now
1815 holds the main logic of the old camel_pstring_strdup function. If
1816 'own' is TRUE, re-use the memory if the string doesn't already
1817 exist and free it otherwise. If FALSE, strdup the value if it
1818 doesn't already exist.
1819 (camel_pstring_strdup): Calls camel_pstring_add() with 'own' as
1822 * camel-folder-summary.c (message_info_new_from_header): Use
1823 camel_pstring_add instead of camel_pstring_strdup here to prevent
1824 unnecessary strdup/freeing.
1825 (message_info_load): Same.
1827 2006-06-26 Jeffrey Stedfast <fejj@novell.com>
1829 * camel-gpg-context.c (gpg_ctx_parse_status): Only set name to ""
1830 if it wasn't already set. Fixes bug #345965.
1832 2006-06-15 Tor Lillqvist <tml@novell.com>
1834 * camel.c (camel_init): On Win32, NSS wants the directory name in
1835 system codepage, not UTF-8. No need to handle g_atexit()
1836 differently on Win32 any longer, in current GLib it is on Win32
1837 just a #define for atexit().
1839 2006-06-15 Andre Klapper <a9016009@gmx.de>
1841 * camel-gpg-context.c:
1843 * camel-net-utils.c: changing "cancelled" to "canceled" in
1844 user-visible strings. Fixes bug #342163.
1846 2006-06-15 Andre Klapper <a9016009@gmx.de>
1848 * addressbook/libebook/e-book.c:
1850 * camel/camel-folder.c:
1852 * camel/providers/nntp/camel-nntp-folder.c:
1854 * camel/providers/pop3/camel-pop3-folder.c: changing "uri" to
1855 "URI" in user-visible strings. Fixes bug #342161.
1857 2006-06-09 Chris Heath <chris@heathens.co.nz>
1859 * camel-net-utils.c (camel_getnameinfo): Fix memory leak
1861 * camel-folder-search.c (camel_folder_search_search): Ditto
1863 * camel-digest-folder.c (digest_add_multipart): Ditto.
1866 2006-06-02 Tor Lillqvist <tml@novell.com>
1868 * camel-file-utils.c (camel_read, camel_write, camel_read_socket)
1869 (camel_write_socket): Improve doc comment, mention the Win32
1872 2006-05-25 Srinivasa Ragavan <sragavan@novell.com>
1874 * camel-stream-vfs.h: Added the missed file to commit.
1876 2006-05-24 Srinivasa Ragavan <sragavan@novell.com>
1878 * Makefile.am: Added new files for camel vfs stream
1879 * camel-stream-vfs.[ch]: Added a new gnome-vfs backend for
1882 2006-05-05 Jeffrey Stedfast <fejj@novell.com>
1884 * camel-charset-map.c (camel_charset_best_mask): Fixed a
1885 mis-ordering of an if-statement clause that caused bug #340717.
1887 2006-05-01 Jeffrey Stedfast <fejj@novell.com>
1889 * camel-gpg-context.c (gpg_ctx_parse_status): Handle prompts from
1890 GnuPG asking for the user's PIN for their SmartCard. Fixes bug
1893 2006-04-19 Jeffrey Stedfast <fejj@novell.com>
1895 * camel-mime-filter-pgp.c (filter_run): You cannot CANNOT modify
1896 the input strings. EVER. Fixed to not do that and to also work if
1897 there is preface before the pgp block (previous code failed in
1899 (reset): Reset the filter state.
1901 2006-04-13 Jeffrey Stedfast <fejj@novell.com>
1903 * camel-mime-utils.c (camel_header_raw_check_mailing_list): Fixed
1904 a goof in the last patch.
1906 2006-04-12 Jeffrey Stedfast <fejj@novell.com>
1908 * Fixes to many source files to suppress compiler warnings thanks
1911 2006-04-04 Jeffrey Stedfast <fejj@novell.com>
1913 * camel-charset-map.c (main): Set appropriate structs/struct
1914 elements to static/const.
1916 * camel-charset-map-private.h: Regenerated.
1918 2006-04-05 Simon Zheng <simon.zheng@sun.com>
1920 ** Fixes bug #333698
1922 * camel-search-private.c (header_match):
1923 (camel_search_header_match):
1924 To traverse strings by utf8 char order rather than one by one byte,
1925 use camel_utf8_getc() and other utf8-specific routines instead.
1927 2006-03-20 Parthasarathi Susarla <sparthasarathi@novell.com>
1931 * camel-mime-utils.c (header_decode_mailbox): Do not decode_lwsp
1932 if there is a space in mail id, just append it. Also do not
1933 truncate address if addr is not NULL.
1935 2006-03-20 Srinivasa Ragavan <sragavan@novell.com>
1937 * camel-gpg-context.c (gpg_ctx_parse_status): Added flag to ask
1940 * camel-session.h: Added the flag for passphrase.
1942 2006-03-20 Srinivasa Ragavan <sragavan@novell.com>
1944 * providers/groupwise/camel-groupwise-store.c:
1945 (groupwise_build_folder_info): Added flags for the system folders.
1947 2006-02-21 Rohini S <srohini@novell.com>
1951 * camel-url-scanner.c (camel_url_addrspec_start): conditions
1952 modified to parse only valid mailto links
1954 2006-02-21 Rohini S <srohini@novell.com>
1956 ** Fixes bug #328322
1958 * camel-mime-filter-tohtml.c: add new pattern for sftp urls.
1960 2006-02-21 Rohini S <srohini@novell.com>
1962 * camel-url-scanner.c (camel_url_web_end): Modified to accept urls
1966 2006-02-16 Parthasarathi Susarla <sparthasarathi@novell.com>
1968 * camel-disco-diary.c (camel_disco_diary_log): proceed only if
1969 diary is a valid pointer
1971 2006-02-13 Rohini S <srohini@novell.com>
1975 * camel-url-scanner.c (camel_url_addrspec_start): modified to
1976 remove all invalid characters in the beginning of a email address
1978 2006-02-02 Parthasarathi Susarla <sparthasarathi@novell.com>
1982 * camel-gpg-context.c (gpg_ctx_parse_status): do not search if the
1983 gpg->need_id is NULL
1985 2006-02-02 Parthasarathi Susarla <sparthasarathi@novell.com>
1987 * camel-object.c (object_finalise):
1988 (camel_message_info_free): decrement Ref count properly
1990 2006-02-02 Tor Lillqvist <tml@novell.com>
1993 * camel-net-utils.c: Make it compile on Win32 also without
1994 getaddrinfo() (with NEED_ADDRINFO).
1996 2006-01-25 Not Zed <NotZed@Ximian.com>
1998 * camel-folder-search.c (search_match_threads): add new
1999 match-thread type "unreplied", matches messages that are unreplied
2001 Committed to head on behaf of Notzed
2003 2006-01-23 Parthasarathi Susarla <sparthasarathi@novell.com>
2005 * camel-mime-utils.c (camel_content_type_unref):
2006 Id the content-type refcount is <1 then free it and
2009 2006-01-17 Parthasarathi Susarla <sparthasarathi@novell.com>
2011 * camel-service.c (camel_service_disconnect):
2012 set the service-status to CAMEL_SERVICE_DISCONNECTED
2014 2006-01-10 Simon Zheng <simon.zheng@sun.com>
2016 * camel-file-utils.h:
2017 * camel-file-utils.c: Delete function camel_mkdir().
2019 * camel-data-cache.c (camel_data_cache_new):
2020 * camel-object.c (camel_object_state_write):
2021 * camel-session.c (get_storage_path):
2022 * camel-uid-cache.c (camel_uid_cache_new):
2023 * providers/imap/camel-imap-folder.c (camel_imap_folder_new):
2024 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
2025 * providers/imapp/camel-imapp-folder.c (camel_imapp_folder_new):
2026 * providers/local/camel-local-store.c (get_folder):
2027 * providers/local/camel-mbox-store.c (get_folder):
2030 * providers/local/camel-spool-store.c (spool_get_meta_path):
2031 * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new):
2032 Because of deletion of camel_mkdir(), all the callers use
2033 e_util_mkdir_hier() instead and add the related header file
2034 <libedataserver/e-data-server-util.h>.
2037 * camel-win32.c: As file e-util.h is renamed,
2038 replace "libedataserver/e-util.h" as
2039 "libedataserver/e-data-server-util.h".
2041 2006-01-05 Kjartan Maraas <kmaraas@gnome.org>
2043 * camel-session.c (camel_session_get_network_state): Return stuff
2044 from this non-void function.
2046 * providers/imap4/camel-imap4-store.c (connect_to_server): Move
2047 some vars inside #ifdef HAVE_SSL
2049 * providers/local/camel-local-store.c (xrename): Use NULL not 0 as
2050 the last parameter to g_strconcat().
2052 2006-01-04 Tor Lillqvist <tml@novell.com>
2054 * camel-win32.c (setup): Modify calls to e_util_replace_prefix()
2055 according to its changed interface.
2057 * Makefile.am (INCLUDES): Need to pass also E_DATA_SERVER_PREFIX
2058 to the compilation because of the above.
2060 2005-12-22 Shreyas Srinivasan <sshreyas@novell.com>
2062 * Network Manager Support
2064 * camel-session.[h,c]: Add a gboolean network_state which the
2065 shell uses to set the current network state. Add new api's
2066 camel_session_get_network_state and
2067 camel_session_set_network_state.
2069 * camel-offline-folder.c: If network down then dont sync folders
2070 while going offline and send clean as FALSE to
2071 camel_service_disconnect.
2073 * camel-disco-folder.c: If network down then dont sync folders
2074 while going offline and send clean as FALSE to
2075 camel_service_disconnect.
2077 2005-12-13 Tor Lillqvist <tml@novell.com>
2079 * camel-filter-driver.c: Use gstdio wrappers. Use
2080 g_filename_to_uri().
2082 * camel-filter-driver.c (pipe_to_system)
2083 * camel-filter-search.c (run_command): Use
2084 g_spawn_async_with_pipes() instead of manual fork/dup/exec dance.
2087 * camel-junk-plugin.c: Just cosmetics.
2089 * camel-lock.c: Use g_usleep() instead of sleep() which isn't
2090 available (as such) on Win32. No locking implementation for Win32
2091 yet (none of USE_DOT, USE_FCNTL or USE_FLOCK get defined on
2092 Win32), I wonder whether it is necessary t ohave one? Is locking
2093 used to guard against several threads in Evolution (or Evolution
2094 and the E-D-S or E-E processes) accessing the same files
2095 simultaneously, not just against other apps accessing them while
2098 * camel-object.c: Use gstdio wrappers. Use binary mode when
2099 opening files. Use g_path_get_dirname().
2101 Use a separate have_owner boolean flag field to indicate whether
2102 the pthread_t owner field is valid in the _CamelObjectBagKey
2103 struct. There is no portable way to check a pthread_t for
2104 uninitializedness. Remove the E_THREAD_NONE magic constant. Use
2105 pthread_equal() to compare pthread_t values.
2107 * camel-tcp-stream.h: Include Winsock headers on Win32.
2109 * camel-tcp-stream-raw.h (struct _CamelTcpStreamRaw): There is no
2110 way to find out a socket's blockingness state on Win32, so keep
2111 the state in a separate flag field on Win32.
2113 * camel-tcp-stream-raw.c: Use socket API wrapper macros to hide
2114 Unix/Winsock differences. Use camel_read_socket() and
2115 camel_write_socket() to read and write from sockets. Use
2116 ioctlsocket(FIONBIO) to set and clean nonblocking mode on Win32.
2118 * camel-tcp-stream-ssl.c (set_errno): Most of the network related
2119 errno values don't exist in the Win32 C library, so use ifdef
2121 (stream_read, stream_write): Check PR_GetError() instead of errno.
2122 No ETIMEDOUT on Win32, so use the catch-all EIO instead.
2123 (cert_fingerprint): The fingerprint is used as a file name, and
2124 there can't be colons in file names on Win32, so use underscore
2126 (camel_certdb_nss_cert_get, camel_certdb_nss_cert_set): Use gstdio
2127 wrappers. Use g_get_home_dir() on Win32 instead of $HOME.
2129 2005-12-11 Tor Lillqvist <tml@novell.com>
2131 * camel-gpg-context.c: Use gstdio wrappers. Ifdef out
2132 implementation on Win32 for now. Will have to come back to this
2133 later. Probably running a gpg subprocess is not the right way to
2135 (swrite): Use g_get_tmp_dir(), g_build_filename(), g_mkstemp().
2137 * camel-net-utils.c (gai_strerror): Implement gai_strerror() for
2139 (cs_waitinfo): Use select() instead of poll() on Win32. Use
2140 g_win32_error_message(WSAGetLastError()) for socket API error
2143 * camel-net-utils.h: Include the Winsock2 headers on Win3.
2145 * camel-session.c (get_storage_path): No need to have ifdefs for
2146 g_access() here, camel-private #defines g_access as access when
2147 builing against an older GLib.
2149 2005-12-07 Jeff Cai <jeff.cai@sun.com>
2151 * camel-vee-folder.c (vee_search_by_expression),
2152 (vee_search_by_uids): if search expression of a vfolder is null,
2153 make it an empty string. Fix #323433
2155 2005-12-08 Tor Lillqvist <tml@novell.com>
2157 * camel-file-utils.c: Win32 port: Include <winsock2.h>. Use
2158 g_htonl() and g_ntohl().
2159 (camel_mkdir): Implement using g_mkdir_with_parents() when
2160 compiling against GLib 2.8 or later.
2161 (camel_file_util_safe_filename): Need to encode more unsafe chars
2163 (camel_read, camel_write): Not cancellable on Win32. But then
2164 these functions should be used only with regular files, not
2166 (camel_read_socket, camel_write_socket): New functions, to be used
2167 for sockets. On Unix just call camel_read() and camel_write(). On
2168 Win32 use recv() and write(). read() and write() can not be used
2169 on sockets in Windows. read() and write() are in the C library,
2170 which knows nothing about sockets.
2171 (camel_file_util_savename): Clarify doc comment. Use
2172 g_path_get_dirname() instead of looking for '/'. Use
2173 g_path_get_basename(), and g_build_filename() to construct the
2176 2005-12-06 Tor Lillqvist <tml@novell.com>
2179 * camel-mime-filter-basic.c
2180 * camel-mime-filter-charset.c
2181 * camel-mime-filter-from.c
2182 * camel-mime-filter-index.c
2183 * camel-mime-filter-windows.c
2184 * camel-mime-filter.c
2185 * camel-mime-part-utils.c
2186 * camel-multipart-encrypted.c
2187 * camel-multipart-signed.c
2189 * camel-offline-folder.c
2190 * camel-offline-store.c
2192 * camel-sasl-anonymous.c
2193 * camel-sasl-cram-md5.c
2194 * camel-sasl-digest-md5.c
2195 * camel-sasl-kerberos4.c
2196 * camel-sasl-login.c
2198 * camel-sasl-plain.c
2200 * camel-search-private.c
2202 * camel-smime-context.c
2204 * camel-stream-buffer.c
2205 * camel-stream-filter.c
2206 * camel-stream-process.c
2209 * camel-url-scanner.c
2210 * camel-vee-folder.c
2211 * camel-vee-summary.c
2212 * camel-vtrash-folder.c
2213 * camel.c: Unify header inclusion order and style purely for
2216 2005-12-02 Shi Pu <shi.pu@sun.com>
2220 * camel-exception.c: (camel_exception_get_description):
2223 2005-12-01 Tor Lillqvist <tml@novell.com>
2225 * camel-private.h: If building against a GLib older than 2.8, map
2226 those gstdio wrappers that were introduced only in 2.8 to their
2227 normal counterparts here. (When building for Win32, we require
2228 GLib and GTK+ 2.8, so this is for Unix only.)
2230 2005-12-01 Chenthill Palanisamy <pchenthill@novell.com>
2232 * camel-data-cache.c:
2233 * camel-session.c: (get_storage_path):Use the functions
2234 defined in glib -2.8 only for win32 as it fails to build
2235 for OS which has glib 2.4.
2237 2005-12-01 Tor Lillqvist <tml@novell.com>
2239 * camel-mime-message.c: Add gmtime_r() implementation (a simple
2242 * camel-win32.c: Drop the realpath() implementation. realpath() is
2243 only used in one place in providers/local/camel-local-folder.c,
2244 and it's better to just enclose that code snippet (which isn't
2245 needed on Win32 anyway) in an ifdef.
2247 * camel-private.h: Drop the realpath() declaration from
2248 here. Remove the S_ISLNK() and lstat() dummy definitions. They are
2249 also used only in the place mentioned above.
2251 2005-12-01 Chenthill Palanisamy <pchenthill@novell.com>
2253 reviewed by Srinivasa Ragavan <sragavan@novell.com>
2255 * camel-private.h: Declare the functions _camel_get_*
2256 only for win32 as camel-win32.c is inlcuded only for
2257 win32. Fixes a build break.
2259 2005-11-30 Tor Lillqvist <tml@novell.com>
2261 * camel-file-utils.h: Define O_BINARY as 0 on Unix. Add
2262 declarations for camel_read_socket() and camel_write_socket(). (In
2263 a not yet committed addition to camel-file-utils.c.)
2265 * camel-block-file.c
2267 * camel-data-cache.c
2268 * camel-disco-diary.c
2269 * camel-folder-summary.c
2270 * camel-mime-parser.c
2271 * camel-offline-journal.c
2274 * camel-store-summary.c
2276 * camel-text-index.c
2278 * camel-vee-store.c: Use gstdio wrappers for full non-ASCII
2279 filename support on Windows.
2281 * camel-block-file.c (key_file_use)
2282 * camel-certdb.c (camel_certdb_save)
2283 * camel-disco-diary.c (camel_disco_diary_new)
2284 * camel-folder-summary.c (camel_folder_summary_load)
2285 * camel-offline-journal.c (camel_offline_journal_construct)
2286 * camel-store-summary.c (camel_store_summary_load,
2287 camel_store_summary_save, camel_store_summary_header_load)
2288 * camel-stream-fs.c (camel_stream_fs_new_with_name)
2289 * camel-text-index.c (dump_raw)
2290 * camel-uid-cache.c (camel_uid_cache_new, camel_uid_cache_save):
2291 Open file in binary mode.
2293 * camel-data-cache.c (data_cache_expire)
2294 * camel-provider.c (camel_provider_init): Use GDir instead of
2295 dirent API for portability and full non-ASCII filename support on
2298 * camel-folder-summary.c (camel_folder_summary_load): On Win32
2299 unlink destination before attempting a rename.
2301 * camel-mime-parser.c: Drop unused includes. Use
2302 g_ascii_strcasecmp() instead of strcasecmp() for well-definedness,
2303 and the other string being compared is an ASCII literal anyway.
2305 * camel-provider.c (camel_provider_init) Use G_MODULE_SUFFIX
2306 instead of hardcoding .so.
2308 * camel-session.c (session_thread_wait): Use g_usleep() instead of
2309 usleep() for portability.
2311 * camel-utf8.c: Use g_htons() and g_ntohs() instead of htons() and
2312 ntohs() for portability.
2314 2005-11-25 Tor Lillqvist <tml@novell.com>
2316 * camel-private.h: Add declaration for our Win32-only fsync() and
2317 realpath() implementations. Define S_ISLNK() as 0 and lstat() as
2319 (realpath): Use gstdio wrappers.
2321 * camel-win32.c (_camel_get_localedir, _camel_get_libexecdir,
2322 _camel_get_providerdir): Run-time path construction
2323 machinery. Maybe these should just be in libedataserver instead,
2324 like _libedataserver_get_extensiondir() etc.
2326 2005-11-18 Jeff Cai <jeff.cai@sun.com>
2328 * camel-disco-store.c: (disco_connect):
2329 If no diary is created, no need to do resync.
2331 2005-11-15 Ross Burton <ross@burtonini.com>
2334 Use lazy bindings (#321515)
2336 2005-11-15 Harish Krishnaswamy <kharish@novell.com>
2338 * providers/Makefile.am: Add hula to SUBDIRS.
2340 2005-10-23 Parthasarathi Susarla <sparthasarathi@novell.com>
2344 * camel-vtrash-folder.c: (vtrash_remove_folder):
2345 check if mi->real exists, continue otherwise.
2347 2005-10-11 Vivek Jain <jvivek@novell.com>
2351 * camel-folder-summary.c : (camel_folder_summary_info_new_from_parser)
2352 Null check for p->index before using it.
2354 2005-09-22 Parthasarathi Susarla <sparthasarathi@novell.com>
2358 * camel-mime-filter-bestenc.c:(camel_mime_filter_bestenc_get_best_encode):
2359 Remove the last return statement that can never be reached.
2361 2005-09-15 Sankar P <psankar@novell.com>
2364 Defined new macro CAMEL_FOLDER_TYPE_SENT for identifying sent-folder.
2365 Needed for fixing #257321
2367 2005-09-15 Tor Lillqvist <tml@novell.com>
2369 * broken-date-parser.c (get_wday, get_month)
2370 * camel-folder-search.c (check_header)
2371 * camel-http-stream.c (http_connect, http_get_statuscode)
2372 * camel-mime-filter-enriched.c (param_parse_colour, enriched_to_html)
2374 * camel-mime-utils.c
2376 * camel-sasl-popb4smtp.c
2377 * camel-string-utils.c
2378 * camel-url.c: Use g_ascii_str(n)casecmp() instead of
2379 str(n)casecmp(). The strings we are comparing in these cases
2380 should be just ASCII anyway, so spell it out that we really do
2381 need ASCII casefolding only.
2383 * camel-debug.c: Use e_util_pthread_id() to identify threads.
2385 2005-09-12 Parthasarathi Susarla <sparthasarathi@novell.com>
2389 * camel-lock-client.c: (camel_lock_helper_init):
2390 remove an spurious ','.
2392 2005-09-01 Parthasarathi Susarla <sparthasarathi@novell.com>
2394 * camel-lock-client.c: (camel_lock_helper_init):
2395 use API_VERSION instead of the BASE_VERSION
2397 2005-08-22 Not Zed <NotZed@Ximian.com>
2399 * camel-store.c (camel_store_rename_folder): init folders and only
2402 * camel-offline-journal.c (CAMEL_OFFLINE_JOURNAL_GET_CLASS):
2403 move redefined macro to .h.
2405 * camel-gpg-context.c (gpg_decrypt): cast args properly.
2407 * camel-text-index.c (camel_text_index_validate): cast to int for
2410 * camel-object.c (co_metadata_get): assign metalast to remove
2413 2005-08-19 Not Zed <NotZed@Ximian.com>
2417 * camel-tcp-stream-ssl.c (stream_close): handle re-closing a
2420 2005-08-18 Not Zed <NotZed@Ximian.com>
2424 * camel-gpg-context.c (gpg_decrypt): use the content part's
2425 mime-type to determine options.
2427 2005-08-17 Tor Lillqvist <tml@novell.com>
2429 * camel-operation.c (stamp): Use g_get_current_time() instead of
2430 gettimeofday() for portability.
2432 * camel-cipher-context.c
2433 * camel-vee-folder.c: Drop unneeded <pthread.h>.
2435 * camel-block-file.c
2436 * camel-index-control.c
2438 * camel-partition-table.c
2439 * camel-text-index.c
2440 * camel-vee-summary.c
2441 * providers/groupwise/camel-groupwise-summary.c
2442 * providers/imap/camel-imap-summary.c
2443 * providers/local/camel-local-summary.c
2444 * providers/local/camel-mh-summary.c
2445 * providers/local/camel-spool-summary.c
2446 * providers/nntp/camel-nntp-summary.c: Drop unneeded <sys/uio.h>.
2448 * camel-sasl-digest-md5.h: Drop unneeded <netdb.h>.
2450 * camel-sasl-kerberos4.h
2451 * camel-sasl-kerberos4.c: Move inclusion of <netdb.h> to the
2452 source file so we don't need any Win32 ifdefs in the
2453 header. Include also <netinet/in.h> and "camel-net-utils.h" in the
2456 * camel-service.c: Drop unneeded <sys/poll.h>
2458 * providers/pop3/camel-pop3-store.c
2459 * providers/smtp/camel-smtp-transport.c: Drop unneeded <sys/socket.h>
2460 <netinet/in.h> and <arpa/inet.h>.
2462 2005-08-15 Not Zed <NotZed@Ximian.com>
2464 ** backported from disksummary-branch
2466 * camel-object.c: Change all ref-counting and bag-related
2467 operations to use a simple mutex rather than a recursive one.
2468 Then change the bag to use a cond rather than a semaphore. Fixes
2469 some nasty races exposed by extra paralellism in the code.
2470 (camel_iterator_*): small iterator interface, not used on this
2471 branch; backported to make later merging easier.
2473 2005-08-12 Not Zed <NotZed@Ximian.com>
2475 * camel-mime-filter-windows.c (filter_filter): same.
2477 * camel-mime-filter-charset.c
2478 (camel_mime_filter_charset_new_convert): remove another common
2481 * camel-block-file.c (block_file_validate_root): ifdef out the
2482 'invalid root' stuff.
2484 * camel-folder-summary.c (summary_build_content_info): turn off
2485 the annoying/pointless 'cannot convert xxx' message.
2489 * camel-mime-parser.c (folder_scan_content): make sure *data is
2490 set to something before we exit.
2492 * camel-mime-parser.c (folder_read): use memmove, not memcpy,
2493 since memory areas could overlap.
2495 * camel-html-parser.c (tokenise_step): use the length from the
2496 utf8 conversion, it isn't 0 terminated.
2498 * camel-mime-utils.c (header_decode_quoted_string): if we run out
2499 of string, then don't go past the 0.
2501 2005-08-13 Tor Lillqvist <tml@novell.com>
2503 * camel.c (camel_init): Call atexit() directly on Win32, not
2504 g_atexit(). As g_atexit() is currently implemented, the registered
2505 function gets called when the GLib DLL is detached, not when the
2506 process exits. This causes problems. Calling atexit() in the camel
2507 DLL at least means the function gets called when the camel DLL is
2508 detached, which works OK.
2510 2005-08-12 Tor Lillqvist <tml@novell.com>
2512 * Makefile.am: On Win32: Leave out camel-lock-client and
2513 camel-stream-process from libcamel-provider. Leave out
2514 camel-movemail and camel-sasl-kerberos4 from libcamel. Include
2515 camel-win32 in libcamel. Don't build lock-helper. Use
2516 -no-undefined. Link with CAMEL_LIBS, SOCKET_LIBS and REGEX_LIBS.
2518 * camel-win32.c: New file, some Win32-specific functions.
2520 * providers/Makefile.am: Leave out sendmail on Win32.
2522 2005-08-09 Not Zed <NotZed@Ximian.com>
2524 * camel-store.c (camel_store_get_folder): add some debug logging.
2526 2005-04-17 Changwoo Ryu <cwryu@debian.org>
2530 * Makefile.am (INCLUDES): define CAMEL_EXPLICIT_TRANSLATION_DOMAIN
2531 and EVOLUTION_LOCALEDIR.
2533 * camel.c (camel_init): initialize gettext with bindtextdomain()
2534 and bind_textdomain_codeset().
2536 2005-08-09 Changwoo Ryu <cwryu@debian.org>
2540 * camel-mime-utils.c (rfc2047_encode_word): if the last unicode
2541 character in the input string is non-ASCII, it is always encoded
2542 as a separated chunk.
2544 2005-08-08 Not Zed <NotZed@Ximian.com>
2548 * camel-folder-thread.c (prune_empty): change to depth-first
2549 search so we check for empty children before checking if we have
2551 (dump_tree_rec): update debug func.
2553 2005-08-03 Not Zed <NotZed@Ximian.com>
2557 * camel-mime-message.c (process_header): return false if we have a
2558 to/cc/etc, we can have multiple instances of all of these, and we
2559 dont want to strip them.
2561 2005-07-28 Not Zed <NotZed@Ximian.com>
2565 * camel-store.c (camel_folder_info_build): fix this, again, minor
2566 simplification. it was messing up the namespace != "" case
2569 2005-07-28 Shreyas Srinivasan <sshreyas@novell.com>
2571 * camel-offline-folder.c: (camel_offline_folder_init): Revert old
2572 patch. Copy folder contents locally by default makes evolution crawl.
2574 2005-07-27 Mengjie Yu <meng-jie.yu@sun.com>
2576 * camel-store.c: (camel_isubscribe_subscribe),
2577 (camel_isubscribe_unsubscribe):
2578 Void function should not return value.
2582 2005-07-25 Shreyas Srinivasan <sshreyas@novell.com>
2584 * camel-offline-folder.c (camel_offline_folder_init): Copy
2585 folder contents locally by default.
2587 2005-07-20 Not Zed <NotZed@Ximian.com>
2589 * camel-store.c (camel_store_get_folder_info): Changed the
2590 semantics slightly. !FAST makes no guarantees about message
2593 * camel-disco-store.c: fix up some stupid hidden logic here.
2595 2005-07-19 Not Zed <NotZed@Ximian.com>
2597 * camel-folder.c (camel_folder_refresh_info): remove the folder
2600 * camel-disco-store.c (disco_get_folder_info): dont force a
2601 connect here, it doesn't belong here.
2603 * camel-store.c (camel_store_get_folder_info): remove subscription
2606 2005-07-13 Not Zed <NotZed@Ximian.com>
2608 * camel-store.c (camel_store_init): initialise the mode to
2609 something which reflects the actual mode.
2611 * camel-store.h: fix the permission bit names and mode name.
2613 * camel-session.c (camel_session_class_init,
2614 camel_session_set_online): Create/emit a new event 'online'.
2616 2005-07-10 Shreyas Srinivasan <sshreyas@novell.com>
2618 * camel-store.h: Add a new #define to identify proxy stores
2619 and a new data member permissions to hold store specific permissions.
2621 2005-07-08 Harish Krishnaswamy <kharish@novell.com>
2623 ** Patch submitted by Greg Hudson <ghudson@mit.edu>
2625 * camel-sasl-login.c: (login_challenge): Wait for the
2626 server to initiate the challenge.
2628 2005-07-06 Vivek Jain <jvivek@novell.com>
2630 * camel-folder.c: (folder_changed) check if junk_plugin is
2631 supplied before starting any junk specific operation
2632 * camel-junk-plugin.[ch]: pass CamelJunkPlugin object in all the
2634 * camel-junk-plugin.c: (camel_junk_plugin_init) use csp->init(csp)
2635 style in place of (* csp->init)(csp) similar change in all other callbacks
2637 2005-06-24 Matt Brown <matt@mattb.net.nz>
2639 * camel-gpg-context.c: Extend verify and decrypt functions to support
2640 inline pgp signed messages via x-inlinepgp-signed/x-inlinepgp-encrypted
2642 * camel-mime-filter-pgp.h:
2643 * camel-mime-filter-pgp.c:
2644 New filter to strip dash encoding from inline pgp signed messages.
2646 2005-06-09 Sarfraaz Ahmed <asarfraaz@novell.com>
2648 * camel-store.c (camel_folder_info_build): Minor typo in debug message.
2650 2005-05-16 Jeffrey Stedfast <fejj@novell.com>
2652 * camel-mime-filter-basic.c (complete): Call
2653 camel_quoted_encode_close() instead of quoted_decode_close() when
2656 * camel-mime-utils.c (camel_quoted_decode_close): This function
2657 was named incorrectly, it's really camel_quoted_encode_close
2658 (camel_quoted_encode_close): New name.
2660 2005-05-07 Sankar P <psankar@novell.com>
2662 * camel-provider.h: Added a new flag
2663 CAMEL_PROVIDER_DISABLE_SENT_FOLDER so as to facilitate disabling
2664 sent button and prevent copying sent items. This flag is
2665 introduced for the GroupWise provider, but can be made use of by
2666 any other type of provider, if needed.
2668 2005-04-26 Ross Burton <ross@burtonini.com>
2670 * camel/broken-date-parser.c:
2671 * camel/camel-block-file.c:
2672 * camel/camel-charset-map-private.h:
2673 * camel/camel-mime-message.c:
2674 * camel/camel-mime-utils.c:
2675 * camel/camel-object.c:
2676 * camel/camel-url-scanner.c:
2677 * camel/camel-utf8.c:
2678 * camel/gentables.pl:
2679 Add the const keyword liberally.
2681 2005-04-18 Jeffrey Stedfast <fejj@novell.com>
2683 * camel-url-scanner.c (camel_url_web_end): Handle the case where
2684 the path doesn't exist in the url. See bug #301037 for more
2687 2005-04-07 Jeffrey Stedfast <fejj@novell.com>
2691 * camel-mime-utils.c (camel_header_encode_string): If
2692 camel_charset_best() returns NULL, default to UTF-8.
2693 (camel_header_encode_phrase): Same as above.
2695 2005-04-11 Harish Krishnaswamy <kharish@novell.com>
2698 * providers/local/Makefile.am:
2699 * providers/pop3/Makefile.am:
2700 * providers/smtp/Makefile.am:
2701 * tests/folder/Makefile.am:
2702 * tests/lib/Makefile.am:
2703 * tests/message/Makefile.am:
2704 * tests/mime-filter/Makefile.am:
2705 * tests/misc/Makefile.am:
2706 * tests/smime/Makefile.am:
2707 * tests/stream/Makefile.am:
2710 2005-03-31 Jeffrey Stedfast <fejj@novell.com>
2712 * camel-sasl-digest-md5.c (camel_sasl_digest_md5_finalize): If the
2713 SASL negotiation fails or is cancelled, then the challenge and/or
2714 response may be NULL and so dereferencing them will cause a
2715 crash. Possible fix for bug #72325.
2717 2005-03-25 Jeffrey Stedfast <fejj@novell.com>
2719 * camel-mime-utils.c (header_append_param): Don't try to convert
2720 boundary param values into UTF-8 even if they contain binary
2721 text. Based on a patch from Pavel Fedin.
2723 2005-03-15 Jeffrey Stedfast <fejj@novell.com>
2725 * camel-stream.c (camel_stream_read): Fix for systems where read
2726 is a macro by David Malcolm.
2728 2005-03-01 Not Zed <NotZed@Ximian.com>
2730 * tests/misc/test2.c: fix the case of the charset specification,
2731 now we properly canonicalise them.
2733 2005-03-01 Not Zed <NotZed@Ximian.com>
2737 * tests/misc/test1.c: Test case for references decoding.
2739 * camel-mime-utils.c (header_decode_addrspec): if we get no start
2740 word, then return NULL not "".
2742 2005-03-02 Not Zed <NotZed@Ximian.com>
2746 * camel-mime-utils.c (rfc2047_encode_word): if we fail to convert
2747 all the buffer, skip the content we didn't convert - don't just
2748 skip the number of bytes we didn't convert from the start of the
2750 (header_encode_phrase_merge_words): when we merge the word, make
2751 sure we merge the encoding too.
2753 2005-03-02 Not Zed <NotZed@Ximian.com>
2755 ** See bug #70590 (again)
2757 * camel-filter-driver.c (camel_filter_driver_filter_message):
2758 don't drop to default folder if we moved it.
2759 (do_move): mark moved, not copied.
2761 2005-03-01 Not Zed <NotZed@Ximian.com>
2765 * camel-mime-message.c (process_header): if there are no addresses
2766 in from or reply-to header, don't save empty address list.
2768 2005-02-28 Not Zed <NotZed@Ximian.com>
2772 * camel-mime-utils.c (header_encode_param): just call
2773 camel_charset_best once to get the best charset, and handle a NULL
2774 charset name case properly.
2776 * camel-charset-map.c (camel_charset_step): use the camel utf8
2777 functions for robustness (&fix possible buffer-read-overflow).
2778 Perform some short-circuit optimisation when we can.
2780 2005-02-28 Not Zed <NotZed@Ximian.com>
2784 * camel-filter-driver.c (do_move): Make this copy+delete, and
2785 terminate processing implicitly.
2787 2005-02-24 Not Zed <NotZed@Ximian.com>
2791 * camel-nntp-address.[ch]: cameladdress implementation for list of
2794 2005-02-11 Radek Doulik <rodo@novell.com>
2796 * camel-filter-search.c (junk_test): use camel debug
2798 * camel-junk-plugin.c: use camel debug
2800 2005-02-09 Jeffrey Stedfast <fejj@novell.com>
2802 * camel-store.c (camel_folder_info_build): Fix the FIXME about
2803 using fragment instead of path for those urls which use fragment
2804 instead. Also fixes bug #71747.
2806 2005-02-07 JP Rosevear <jpr@novell.com>
2808 * camel-iconv.c: remove dead file
2810 2005-02-07 Jeffrey Stedfast <fejj@novell.com>
2812 * tests/folder/test11.c: Fixed junk/trash folder names/paths.
2814 2005-02-04 Not Zed <NotZed@Ximian.com>
2816 * camel-filter-search.c (check_header): don't try to match against
2817 mlist if the mlist entry is NULL.
2819 * camel-store-summary.h: make the store-info flags match the
2820 store:folder_info flags.
2822 * Revert jeffs changes, they weren't needed.
2824 2005-02-02 Jeffrey Stedfast <fejj@novell.com>
2826 * camel-store.h (CAMEL_STORE_FOLDER_INFO_SUBSCRIPTION_INFO):
2827 Added. Hint to the provider that we want the
2828 CAMEL_FOLDER_SUBSCRIBED flag (even if we aren't requesting
2829 CAMEL_STORE_FOLDER_INO_SUBSCRIBED).
2830 * camel-folder-summary.h:
2831 Added some RESERVED bits for the summary->flags (last 24 bits are
2832 for provider specific flags).
2834 2005-02-01 Not Zed <NotZed@Ximian.com>
2838 * camel-vee-store.c (camel_vee-store_init): api chanes
2840 * camel-vtrash-folder.c (camel_vtrash_folder_new): api chagne and
2841 translate the short name.
2843 * camel-vee-folder.c (camel_vee_folder_construct): take full-name
2844 argument separately from short-name.
2845 (camel_vee_folder_new): calculate short-name.
2847 * camel-store.c (camel_store_get_folder_info): set the folder type
2850 * camel-store.h: add a bitfield for a folder-type hint. used to
2851 indicate inbox/trash/etc (mainly for gui icons).
2853 ** See bug #38791 and bug #36142.
2855 * camel-gpg-context.c (gpg_ctx_op_step): use poll rather than
2856 select, and listen to the cancellation fd as well. perform all
2858 (gpg_sign): remove cancellation check/processing.
2860 (gpg_encrypt): same.
2861 (gpg_decrypt): same.
2862 (gpg_ctx_op_step): remove the messy execption handling stuff, it
2864 (gpg_import_keys, gpg_export_keys): clean up exception case.
2868 * camel-filter-driver.c (do_score): don't use
2869 camel_folder_set_message_user_tag anymore, use the messageinfo
2871 (do_adjust_score): implement missing function.
2873 * camel-store.c (camel_store_folder_uri_equal): check the path
2874 isn't NULL before dereferencing it. Could happen with badly
2875 formed uris (since we're comparing folders, it MUST contain a path
2878 2005-01-31 Parthasarathi Susarla <sparthasarathi@novell.com>
2880 * providers/groupwise/camel-groupwise-folder.c
2881 (groupwise_folder_get_message): fixed a crash
2882 while getting message. also applied lock
2883 when getting message
2884 * providers/groupwise/camel-groupwise-store.c
2885 (gropuwise_get_folder_info),
2886 (groupwise_create_folder),
2887 (groupwise_delete_folder): applied locks which
2888 were missed out previously
2890 2005-01-31 Hans Petter Jansson <hpj@novell.com>
2892 * camel-mime-utils.c (camel_mime_special_table): Remove this, it's
2893 declared externally now.
2895 2005-01-31 Not Zed <NotZed@Ximian.com>
2899 * tests/mime-filter/test1.c: added new test for
2900 camel-mime-filter-canon.c
2902 * camel-mime-filter-canon.c (filter_run): separated out from
2903 filter. Fix a case when it finds an embedded "From " not to
2904 create "=46rom rom".
2905 (complete): Properly canonicalise \n -> \r\n rather than just
2906 copying it across (use filter_run now).
2910 * camel-vtrash-folder.h: move Junk and Trash into the ".#evolution"
2913 * camel-store.c (add_special_info): only compare the full name for
2918 * camel-filter-search.c (check_header): check all instances of
2919 headers for match string.
2921 2005-01-28 Not Zed <NotZed@Ximian.com>
2923 * camel-provider.h: Added CAMEL_URL_PART_HIDE* options, required
2924 for more flexible extensibility.
2926 2005-01-29 Sivaiah Nallagatla <snallagatla@novell.com>
2928 * providers/groupwise/camel-groupwise-store.c
2929 (groupwise_auth_loop) : change the default to 7191
2930 use "use_ssl" param from CamelUrl instead of soap_ssl
2932 2005-01-29 Sivaiah Nallagatla <snallagatla@novell.com>
2934 * providers/groupwise/camel-groupwise-provider.c
2935 (camel_provider_init) : Make the soap mailer
2936 default for groupwise accounts. exporting USE_IMAP
2937 will cause imap to be used
2939 2005-01-27 Jeffrey Stedfast <fejj@novell.com>
2941 * providers/imap4/camel-imap4-summary.c
2942 (camel_imap4_summary_init): Default the have_mlist bit to TRUE so
2943 that upgraders from 2.0 won't have their summaries rescanned.
2944 (camel_imap4_summary_flush_updates): Always update have_mlist to
2947 2005-01-27 Parthasarathi Susarla <sparthasarathi@novell.com>
2949 * providers/groupwise/camel-groupwise-folder.c
2950 (groupwise_refresh_info):
2951 (gw_update_summary): using getquickmessages instead of get items
2953 * providers/groupwise/camel-groupwise-store.c
2954 (groupwise_get_folder): using get quick messages instead of get
2957 2005-01-27 Jeffrey Stedfast <fejj@ximian.com>
2959 * providers/imap4/camel-imap4-summary.c (untagged_fetch_all):
2960 Decode References to improve threading code (In-Reply-To from
2961 ENVELOPE just wasn't good enough to make users happy). See bug
2963 (untagged_fetch_all): Look at the Content-Type header to decide if
2964 the message might contain attachments.
2965 (imap4_summary_fetch_all): Added References and Content-Type to
2968 * providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
2969 Fixed to handle "" as the delim portion of the NAMESPACE. Fixes
2972 2005-01-26 Jeffrey Stedfast <fejj@novell.com>
2974 * providers/imap4/camel-imap4-summary.c (imap4_header_load): Check
2975 whether or not we have mlist info in our summary.
2976 (imap4_header_save): Save have_mlist.
2977 (camel_imap4_summary_flush_updates): Modified to clear the summary
2978 and do a complete refetch if enable_mlist has been newly enabled
2979 and we don't already have mlist info in our summary info's.
2980 (imap4_fetch_all_add): If the \Recent flag is set, also add it to
2981 the "recent" changes structure so the filetr code knows to filter
2984 2005-01-25 Jeffrey Stedfast <fejj@novell.com>
2986 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
2987 Setup filtering and junk filtering stuff.
2989 2005-01-24 JP Rosevear <jpr@novell.com>
2991 * tests/folder/test6.c: get imap4 not imap
2993 * tests/folder/test4.c: ditto
2995 2005-01-24 Jeffrey Stedfast <fejj@novell.com>
2997 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
2998 Default enable_mlist to ON.
2999 (imap4_append_message): Don't compare date_received against -1,
3000 compare it to 0 (since that's what it'll be if unset).
3002 2005-01-24 Jeffrey Stedfast <fejj@ximian.com>
3004 * providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
3005 Respect the user's namespace override setting.
3006 (imap4_get_folder_info): Changed the behaviour a bit to work like
3007 the old imap code: only use the cache if the network is
3008 unavailable, otherwise always scan the server for the folder
3010 (imap4_get_folder_info): Always get INBOX (fix for cases where
3011 INBOX wasn't under the namespace and for cases where it's not
3014 2005-01-24 Parthasarathi Susarla <sparthasarathi@novell.com>
3016 * providers/groupwise/camel-groupwise-folder.c
3017 (groupwise_transfer_messages_to): using moveItemRequest for moving
3018 messages between folders.
3020 2005-01-23 Jeffrey Stedfast <fejj@ximian.com>
3022 * providers/imap4/camel-imap4-store.c (imap4_construct): Check if
3023 we have the use_lsub url param and set the store->flags
3026 2005-01-24 Not Zed <NotZed@Ximian.com>
3030 * providers/pop3/camel-pop3-store.c (pop3_connect): fix the
3031 exception case for re-prompting for the password.
3033 ** See bug #71625, and bug #56110.
3035 * providers/imap/camel-imap-folder.c (get_content): when getting a
3036 simple content for a message, don't get .TEXT, as that is the full
3037 content of a message, not the part itself.
3039 2005-01-23 Jeffrey Stedfast <fejj@ximian.com>
3041 * providers/imap4/camel-imap4-summary.c (untagged_fetch_all):
3042 Handle BODY[HEADER.FIELDS ...] responses for cases where we may
3043 wish to query for mailing-list headers.
3044 (imap4_summary_fetch_all): If enable_mlist is set for this folder,
3045 then query for mailing-list headers as well.
3047 * providers/imap4/camel-imap4-folder.c (imap4_getv): Added a new
3048 property to enable mlist detection (which will change our summary
3049 query to the same as the old imap code).
3050 (imap4_setv): Implemented.
3052 2005-01-21 Jeffrey Stedfast <fejj@novell.com>
3054 * providers/imap4/camel-imap4-summary.c (imap4_header_load): Fixed
3055 to load fixed_int32's rather than uint32's.
3056 (imap4_header_save): Fixed to save fixed_int32's rather than
3057 uint32's for compat with old imap code.
3059 * providers/Makefile.am: Removed "imap" from the build and made
3060 "imap4" the default.
3062 * providers/imap4/libcamelimap4.urls: Fixed to only list "imap"
3064 * providers/imap4/camel-imap4-provider.c: Changed the 'protocol'
3065 string to "imap" from "imap4" so we override the old imap urls.
3067 * providers/imap4/camel-imap4-summary.c: Updated to load/save in
3068 the same format as the old imap code so no migration is necessary.
3070 * camel-offline-journal.c: Same.
3072 * camel-offline-folder.c (camel_offline_folder_downsync): Use a
3073 new macro to get the class from the offline folder object, don't
3074 cast the object as a class.
3076 2005-01-20 Parthasarathi Susarla <sparthasarathi@novell.com>
3078 * providers/groupwise/camel-groupwise-folder.c
3079 (groupwise_folder_get_message) : support for status
3080 for message tracking.
3081 Removed compiler warnings.
3083 2005-01-20 Parthasarathi Susarla <sparthasarathi@novell.com>
3085 * providers/groupwise/camel-groupwise-folder.c
3086 (groupwise_folder_get_message):
3087 Show warning, but display message in case we cannot get
3089 Display the itip control for appointments even if no
3090 message body is present
3091 * providers/groupwise/camel-groupwise-store.c
3092 (groupwise_get_folder_info):
3093 Not displaying the Calendar and Contacts folders in the mail
3096 2005-01-20 Not Zed <NotZed@Ximian.com>
3098 * camel-lock-helper.c (main): since malloc(MAXINT+1) returns a
3099 valid pointer, validate the length of the path before using it.
3100 set maximum path to 65000 characters. Spotted by Max Vozeler
3103 2005-01-19 Jeffrey Stedfast <fejj@novell.com>
3105 * camel-offline-folder.c (camel_offline_folder_class_init): Only
3106 init the perperties list once (class_init can be called multiple
3109 * providers/imap4/camel-imap4-utils.c: disable debugging.
3111 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
3112 Set a cmeta file path.
3114 * providers/imap4/camel-imap4-command.c: Disable debugging spew
3115 unless imap4:command is enabled.
3117 * camel-offline-folder.c (camel_offline_folder_downsync): Documented.
3119 * camel-offline-store.c (camel_offline_store_set_network_state):
3120 Use NULL as the search expression which forces all messages to be
3123 2005-01-18 Jeffrey Stedfast <fejj@novell.com>
3125 * providers/imap4/camel-imap4-summary.c (imap4_header_load): Load
3126 the IMAP4 summary version.
3127 (imap4_header_save): Save the IMAP4 summary version.
3129 2005-01-13 Jeffrey Stedfast <fejj@novell.com>
3131 * providers/groupwise/camel-groupwise-journal.c
3132 (groupwise_entry_load): Simplified the exception case. Also, in
3133 the exception case don't abort() if entry->type is an unknown type
3134 (keeps us from "crashing" on invalid/corrupted journal data).
3135 (camel_groupwise_journal_append): Don't free the uid here.
3136 (camel_groupwise_journal_transfer): Same.
3137 (groupwise_entry_write): Save the original_uid for TRANSFER types
3138 as we need it when we later replay the journal.
3139 (groupwise_entry_load): Load the original_uid here for TRANSFER
3141 (groupwise_entry_free): Free the original_uid too.
3142 (groupwise_entry_play_transfer): Untangled from the APPEND entry
3143 replay because the code has very little to nothing in
3144 common. Also, after transfer we need to get the new message info
3145 structure and copy user tags/flags and system flags over or we
3146 lose that information.
3147 (play_update): Removed.
3149 2005-01-19 Parthasarathi Susarla <sparthasarathi@novell.com>
3151 * providers/groupwise/camel-groupwise-folder.c
3152 (groupwise_folder_get_message): set the message id as the uid
3153 for the CamelMimeMessage
3155 2005-01-18 Parthasarathi Susarla <sparthasarathi@novell.com>
3157 * providers/groupwise/camel-groupwise-store.c:
3158 Removed debug statements and compiler warnings
3160 2005-01-17 Sivaiah Nallagatla <snallagatla@novell.com>
3162 * camel-groupwise-provider.c : remove poa ip and
3163 soap ssl settings. We no longer need them as we now use soap for mail
3165 * camel-groupwise-store.c (groupwise_auth_loop) :
3166 when use_ssl is whenever possible try to login
3167 using https and them if it fails using http
3169 2005-01-17 Not Zed <NotZed@Ximian.com>
3171 * tests/lib/folders.c (test_folder_basic): dont enforce local
3172 store == no inbox; maildir implements one now.
3174 * camel-multipart-signed.c (skip_content): in the message state
3175 skip a state, otherwise we go nowhere but down an overflowed stack
3178 2005-01-14 Not Zed <NotZed@Ximian.com>
3180 ** Better fix for #65178.
3182 * tests/folder/test11.c: new maildir test.
3184 * camel-store.c (camel_store_folder_uri_equal): dont pass NULL
3185 values to compare_folder_name.
3187 * providers/local/camel-maildir-store.c (get_folder_info):
3188 reimplemented, now everything isn't a subfolder of INBOX ('.')
3190 (get_inbox): call main entry point so we don't create multiple
3192 (scan_dirs): re-implemented using non-recursive implementation.
3193 (scan_fi, scan_free, scan_equal, scan_hash): helpers for above.
3194 (md_canon_name): helper to canonicalise old-format names to new
3196 (maildir_hash_folder_name, maildir_compare_folder_name): implement
3197 custom folder hash functions so canonicalisation works.
3198 (get_folder): canoncalise name before using it. special case '.'
3199 aka 'inbox', so that it is implicitly created if accessed.
3200 (delete_folder): don't let the caller delete ".".
3201 (camel_folder_info_new): removed.
3203 2005-01-14 Jeffrey Stedfast <fejj@novell.com>
3205 * providers/smtp/camel-smtp-transport.c
3206 (connect_to_server_wrapper): if the first connection fails, clear
3207 the exception before trying again.
3208 (connect_to_server): Use ssl_new_raw() for STARTTLS mode
3209 conenctions. Fixes bug #71082.
3211 2005-01-14 Jeffrey Stedfast <fejj@novell.com>
3213 * providers/imap4/camel-imap4-journal.c (imap4_entry_play_append):
3214 Get the appended_uid from camel_folder_append_message() so that we
3215 can copy all user flags/tags over from the journal info over to
3216 the real summary info once the append has completed (assuming of
3217 course that the server supports UIDPLUS).
3218 (camel_imap4_journal_readd_failed): New function to readd
3219 message-info's from failed journal appends to the folder summary
3220 so that they aren't lost from the user's message-list (they have
3221 to temporarily be removed while the summary updates itself from
3222 the server or Bad Things (tm) would happen).
3224 * providers/imap4/camel-imap4-summary.c
3225 (camel_imap4_summary_flush_updates): Readd the failed journal
3226 replay info's to the summary so even if messages fail to be
3227 appended to the folder, the user will still see them in his/her
3230 2005-01-12 Jeffrey Stedfast <fejj@novell.com>
3232 * providers/imap4/camel-imap4-provider.c: Use the same key
3233 shortcuts as current imap code.
3235 2005-01-13 Not Zed <NotZed@Ximian.com>
3239 * providers/local/camel-maildir-store.c (get_folder_info)
3240 (get_folder): if the incoming folder name starts with /, convert
3241 it to implicit start with "./".
3245 * providers/nntp/camel-nntp-store.c
3246 (nntp_store_get_subscribed_folder_info): emit a folder_changed
3247 event if refreshing it added any changes.
3249 2005-01-12 Not Zed <NotZed@Ximian.com>
3253 * camel-multipart-signed.c (parse_content): re-implemented to use
3254 camel-mime-parser. For the annoying pathalogical case of re-used
3255 multipart boundary markers.
3257 * camel-mime-parser.c (folder_scan_step): modified the multipart
3258 state so that we don't try to match the same boundary again if
3259 we've already seen an end boundary for this part. This is for the
3260 annoying case of a multipart inside a multipart which shares an
3261 identical boundary marker (groupwise!).
3262 (camel_mime_parser_tell_start_boundary): new function to indicate
3263 the offset of the start of the last boundary.
3265 * tests/message/test3.c (main): remove the nonfatal fixme & put
3266 extra null check for pre/postface text checks.
3268 * tests/message/test2.c (convert): use size_t for iconv length
3271 2005-01-11 Jeffrey Stedfast <fejj@novell.com>
3273 * providers/imap4/camel-imap4-store-summary.c
3274 (camel_imap4_store_summary_get_folder_info): Fixed a possible
3275 uninitialised condition.
3277 2005-01-12 Sushma Rai <rsushma@novell.com>
3279 * camel-provider.[ch]: Removed camel_provider_validate_user()
3280 and added a void pointer to CamelProvider structure.
3282 2005-01-12 Not Zed <NotZed@Ximian.com>
3286 * camel-vee-folder.c (vee_delete): fix past-o, unlock not lock
3289 2005-01-08 Not Zed <NotZed@Ximian.com>
3291 * camel-sasl-ntlm.c: convert all the unsigned long/long stuff to
3292 guint32 since it seems to need 32 bit integers.
3294 * camel-url.c (camel_url_new_with_base): cast length to int.
3296 * providers/imap/camel-imap-command.c
3297 (imap_command_strdup_vprintf): cast strlen to int.
3299 * camel-mime-utils.c (append_quoted_pair, header_decode_text): use
3300 gssize for length to match dumb g-api.
3302 2005-01-11 Parthasarathi Susarla <sparthasarathi@novell.com>
3304 * providers/groupwise/camel-groupwise-store.c
3305 (groupwise_create_folder): fixed a crash when creating a folder.
3306 was not building the folder info
3308 2005-01-11 Parthasarathi Susarla <sparthasarathi@novell.com>
3310 * providers/groupwise/camel-groupwise-folder.c
3311 (groupwise_sync): to sync back flags to the server. currently
3312 can sync only read messages.
3313 (groupwise_append_message): set source based on folder
3314 * providers/groupwise/camel-groupwise-utils.[ch]
3315 (do_flags_diff): finds the difference between flags. Based on the
3318 2005-01-11 JP Rosevear <jpr@novell.com>
3320 * providers/groupwise/camel-groupwise-transport.h: remove defines
3322 * providers/groupwise/camel-groupwise-transport.c (groupwise_send_to)
3323 (groupwise_send_to): use util routine to build item
3325 * providers/groupwise/camel-groupwise-store.h: new protos
3327 * providers/groupwise/camel-groupwise-store.c
3328 (groupwise_rename_folder): use new api name and don't strdup the
3330 (camel_groupwise_store_folder_lookup): find folder from container id
3332 * providers/groupwise/camel-groupwise-journal.[hc]: implement
3333 journalling for append and transfer
3335 * providers/groupwise/camel-groupwise-folder.h: add journal member
3337 * providers/groupwise/camel-groupwise-folder.c
3338 (groupwise_folder_get_message): use new api name and don't strdup
3340 (groupwise_refresh_info): ditto
3341 (groupwise_append_message): ditto
3342 (groupwise_expunge): ditto
3343 (groupwise_transfer_messages_to): handle being in offline mode
3345 * providers/groupwise/Makefile.am: build journal sources
3347 2005-01-11 Parthasarathi Susarla <sparthasarathi@novell.com>
3349 * providers/groupwise/camel-groupwise-folder.c
3350 (groupwise_append_message): support for append messages
3351 into groupwise folders.
3352 * providers/groupwise/camel-groupwise-utils.[ch]
3353 (camel_groupwise_util_item_from_message): creates an groupwise
3354 item from CamelMimeMessage
3356 2005-01-11 Vivek Jain <jvivek@novell.com>
3357 * camel-store.h : defined flags for shared folders
3359 2005-01-11 Not Zed <NotZed@Ximian.com>
3363 * camel-multipart-signed.c (parse_content): treat the post pointer
3364 as binary, not 0 terminated.
3366 2004-12-23 Not Zed <NotZed@Ximian.com>
3370 * providers/imap/camel-imap-command.c (imap_read_untagged): scan
3371 the non-literal contnet for s-expression brackets, and if we seem
3372 to be outside of one, don't try the 'blank line after literal'
3375 2005-01-10 Jeffrey Stedfast <fejj@novell.com>
3377 * providers/groupwise/camel-groupwise-folder.c
3378 (groupwise_folder_get_message): Updated the offline check to use
3379 CamelOffline methods.
3380 (groupwise_refresh_info): Same.
3381 (groupwise_cache_message): Removed.
3382 (groupwise_folder_get_message): Use CAMEL_RECIPIENT_TYPE_* rather
3384 (groupwise_expunge): Updated to fit the normal CamelStore expunge
3385 API and fixed a deadlock condition.
3387 * providers/groupwise/camel-groupwise-store.c
3388 (groupwise_get_folder_offline): Removed.
3389 (groupwise_get_folder_online): Renamed to groupwise_get_folder()
3390 and made to handle offline case.
3391 (groupwise_connect_offline): Removed.
3392 (groupwise_disconnect_offline): Removed.
3393 (groupwise_get_fodler_info_online): Renamed
3394 groupwise_get_folder_info() - if in offline mode, do the offline
3396 (groupwise_create_folder): Updated for CamelOfflineStore stuff.
3397 (groupwise_delete_folder): Same.
3398 (groupwise_rename_folder): Same.
3400 * providers/imap4/camel-imap4-stream.c: Disable token debug spew
3401 unless imap4:stream debug is enabled.
3403 2005-01-10 Sushma Rai <rsushma@novell.com>
3405 * camel-provider.[ch] (camel_provider_validate_user):
3406 Given the server URL, validates the user credentials if
3407 the provider supports.
3408 Added temporarily for Exchange connector, will be removed
3409 once connector plugin is made external.
3411 2005-01-10 Parthasarathi Susarla <sparthasarathi@novell.com>
3413 * providers/groupwise/camel-groupwise-folder.c
3414 (groupwise_folder_get_message),
3415 (groupwise_refresh_info): included default and notification in
3416 the view list for e_gw_connection_get_item.
3418 * providers/groupwise/camel-groupwise-store.c
3419 (groupwise_get_folder_online):included default and notification
3420 in the view list for e_gw_connection_get_items.
3422 * providers/groupwis/camel-groupwise-transport.[ch]
3423 (groupwise_send_to): sets send options in EGwItem by parsing the
3424 camelmimemessage for send-option headers
3426 2005-01-10 Parthasarathi Susarla <sparthasarathi@novell.com>
3428 * providers/groupwise/camel-groupwise-store-summary.[ch]:
3429 implements the CamelStoreSummary Class providing support
3430 for store summary for the soap provider.
3432 * providers/groupwise/camel-groupwise-store.c
3433 (groupwise_get_folder_info_online): saves the store summary
3434 after building folder info.
3436 2005-01-07 Jeffrey Stedfast <fejj@novell.com>
3438 * providers/imap4/camel-imap4-store.c (imap4_connect): Same as
3439 imap4-folder changes.
3440 (imap4_disconnect): Same.
3441 (imap4_get_folder): Same.
3442 (imap4_query_auth_types): Same.
3443 (imap4_create_folder): Same.
3444 (imap4_delete_folder): Same.
3445 (imap4_rename_folder): Same.
3446 (imap4_subscribe_folder): Same.
3447 (imap4_unsubscribe_folder): Same.
3449 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
3450 Instead of checking the session online state, check the
3451 OfflineStore network availability state.
3453 (imap4_refresh_info): Same.
3454 (imap4_get_message): Here too.
3455 (imap4_append_message): Same.
3456 (imap4_transfer_messages_to): Same.
3458 2005-01-07 Parthasarathi Susarla <sparthasarathi@novell.com>
3460 * providers/groupwise/camel-groupwise-transport.c
3461 (groupwise_send_to): fixed the problem of the mail message (body)
3462 being treated as an attachment
3464 2005-01-07 JP Rosevear <jpr@novell.com>
3466 * providers/groupwise/camel-groupwise-store.c
3467 (groupwise_store_construct): don't free an alloca'd memory pointer
3469 2005-01-06 Jeffrey Stedfast <fejj@novell.com>
3471 * providers/imap4/camel-imap4-summary.c: Changed to use the new
3472 CamelOfflineJournal API.
3474 * providers/imap4/camel-imap4-journal.c: Changed to inherit from
3475 the new CamelOfflineJournal class.
3477 * providers/imap4/camel-imap4-folder.c: Changed to inherit from
3479 (camel_imap4_folder_class_init): Removed the properties setup code
3480 - no longer needed as it is handled in our parent class now.
3481 (camel_imap4_folder_finalize): Use camel_offline_journal_write()
3483 * providers/imap4/camel-imap4-store.c: Changed to inherit from
3484 CamelOfflineStore rather than CamelStore.
3486 * camel-offline-journal.[c,h]: New abstract class for keeping a
3487 journal of folder operations done while in offline mode. (Future
3488 replacement for CamelDiscoDiary?)
3490 * camel-offline-folder.[c,h]: New abstract class for offline
3491 folders - handles syncing messages from the server to disk for
3492 offline use. (Future replacement for CamelDiscoFolder?)
3494 * camel-offline-store.[c,h]: New abstract class for offline stores
3495 - handles switching between network avail/unavail. (Future
3496 replacement for CamelDiscoStore?)
3498 2005-01-06 Parthasarathi Susarla <sparthasarathi@novell.com>
3500 * providers/groupwise/camel-groupwise-store.[ch]
3501 (groupwise_get_folder_info_online): update the total and unread
3502 mail count from soap response
3503 (groupwise_rename_folder): fixed problems in renaming groupwise
3505 (storage_path_lookup): returns the storage path for the groupwise
3508 * providers/groupwise/camel-groupwise-folder.c
3509 (groupwise_folder_get_message): support for shared folder
3510 notification type. displaying the itip control for appoinments.
3511 (groupwise_folder_rename): support function for renaming cache and
3512 summary when a groupwise folder is renamed
3513 (groupwise_transfer_online): function for copying/moving messages
3515 (convert_to_calendar): function to populate data for displaying
3516 appointments by itip control
3518 * providers/groupwise/camel-groupwise-transport.c
3519 (groupwise_send_to): support for sending attachments
3521 2005-01-04 Sivaiah Nallagatla <snallagatla@novell.com>
3523 * providers/groupwise/camel-groupwise-store.c
3524 (groupwise_create_folder, groupwise_delete_folder),
3525 (groupwise_rename_folder): prevent these operations in offline
3528 2005-01-04 Parthasarathi Susarla <sparthasarathi@novell.com>
3530 * providers/groupwise/camel-groupwise-store.c
3531 (groupwise_store_construct): initialise the store summary.
3533 2005-01-04 Parthasarathi Susarla <sparthasarathi@novell.com>
3535 * providers/groupwise/camel-groupwise-transport.c
3536 (groupwise_send_to): freeing the recipient list and assigning to
3537 NULL, which was causing a crash while sending mails.
3539 2004-12-31 JP Rosevear <jpr@novell.com>
3541 * providers/groupwise/Makefile.am: dist the private header, fix
3544 * tests/smime/pgp.c (main): use define for data location
3546 * tests/smime/Makefile.am: define for the data dir
3548 * tests/mime-filter/test-charset.c (main): load and output to the
3551 * tests/message/Makefile.am: clean up generated files
3553 * Makefile.am: clean up the package config data
3555 * tests/Makefile.am: dist the data dir
3557 2004-12-23 Sivaiah Nallagatla <snallagatla@novell.com>
3559 * providers/groupwise/camel-groupwise-provider.c : changed the
3560 offline_sync setting label
3562 2004-12-23 Parthasarathi Susarla <sparthasarathi@novell.com>
3563 * providers/groupwise/camel-groupwise-private.h:
3564 Added the file which was missed out in the previous commit.
3566 2004-12-23 Parthasarathi Susarla <sparthasarathi@novell.com>
3568 * providers/groupwise/camel-groupwise-store.[ch]
3569 * providers/groupwise/camel-groupwise-transport.[ch]
3570 * providers/groupwise/camel-groupwise-utils.[ch]
3571 * providers/groupwise/camel-groupwise-store-summary.[ch]
3572 * providers/groupwise/camel-groupwise-summary.[ch]:
3573 Added the above files for implementing mailer for soap based
3574 camel provider for groupwise server.
3575 * providers/groupwise/Makefile.am : added new files to SOURCES
3576 * providers/groupwise/camel-groupwise-provider.c:(camel_provider_module_init):
3577 check for an environment variable SOAP_MAILER, if not present will use IMAP
3580 2004-12-23 Not Zed <NotZed@Ximian.com>
3582 * camel-folder-search.c (check_header): treat a missing header as
3583 if it was set to "".
3585 * camel-object.c (camel_object_is, camel_object_class_is)
3586 (camel_interface_is): check for null values before dereferencing
3589 2004-12-20 David Mosberger-Tang <David.Mosberger@acm.org>
3591 * camel-mime-parser.c: Include "libedataserver/e-memory.h".
3592 (STRUCT_ALIGN): Remove.
3593 (MemPoolNode): Likewise.
3594 (MemPoolThresholdNode): Likewise.
3595 (MemPool): Likewise.
3596 (mempool_new): Likewise.
3597 (mempool_alloc): Likewise.
3598 (mempool_flush): Likewise.
3599 (mempool_free): Likewise.
3600 (struct _header_scan_stack): Change type of "pool" from MemPool to
3602 (folder_pull_part): Call e_mempool_destroy() instead of
3604 (header_append_mempool): Call e_mempool_alloc() instead of
3606 (folder_scan_header): Call e_mempool_new() instead of
3609 2004-12-20 Not Zed <NotZed@Ximian.com>
3611 * camel-operation.c (camel_operation_init): remove
3612 (camel_operation_shutdown): remove.
3613 (co_getcc): new helper to get the current thread-specific value &
3616 * camel-mime-utils.c (camel_mime_utils_init): removed, taken from
3617 prebuilt tables now.
3618 (header_remove_bits, header_init_bits, header_decode_init)
3619 (base64_init): removed, handled by perl script now.
3621 * camel.c (camel_shutdown): dont shutdown mime utils anymore.
3623 * camel-mime-utils.c (mailing_list_init): move the mailing list
3624 init stuff from camel-mime-utils-init to here.
3625 (camel_header_raw_check_mailing_list): call mailing_list_once to
3626 init the regular expression tables.
3627 (camel_mime_utils_shutdown): removed, it can 'leak' the static
3629 (base64_init): removed, this data never changes, keep table in
3632 2004-12-15 Rodney Dawes <dobey@novell.com>
3634 * Makefile.am: Move camel-search-private.h to libcamelinclude_HEADERS
3635 so we can install it so Evolution can build from a disted tarball
3637 2004-12-14 Jeffrey Stedfast <fejj@novell.com>
3639 * providers/imap4/camel-imap4-folder.c
3640 (imap4_transfer_messages_to): Doh. Unlock the connect_lock at the
3641 end, don't lock it again :)
3643 * providers/imap4/camel-imap4-journal.c
3644 (camel_imap4_journal_append): Now takes an appended_uid
3645 argument. Also fixed to add a message-info place-holder to the
3648 * providers/imap4/camel-imap4-folder.c (imap4_append_message): get
3649 an appedned_uid for the journalled append.
3650 (imap4_transfer_messages_to): Updated for appended_uid API change.
3652 2004-12-14 Jeffrey Stedfast <fejj@novell.com>
3654 * providers/imap4/camel-imap4-journal.[c,h]: New source files
3655 implementing a basic journal.
3657 * providers/imap4/camel-imap4-summary.c
3658 (camel_imap4_summary_flush_updates): Replay the journal.
3660 * providers/imap4/camel-imap4-folder.c
3661 (camel_imap4_folder_finalize): Write/unref the journal.
3662 (camel_imap4_folder_new): Create a journal object.
3663 (imap4_append_message): Journal the message append if we're in
3665 (imap4_transfer_messages_to): Implement offline copy/move support
3666 using the new journal code.
3668 2004-12-09 Jeffrey Stedfast <fejj@novell.com>
3670 * providers/imap4/camel-imap4-folder.c (imap4_append_message):
3671 Don't bother sending UID APPEND if the caller doesn't care about
3674 2004-12-13 Not Zed <NotZed@Ximian.com>
3676 * tests/lib/Makefile.am: put the test-provider stuff back in.
3678 * tests/*/Makefile.am: version libcamel*.
3680 * tests/lib/camel-test-provider.[ch]: duh, re-implement, it got
3683 2004-12-07 Jeffrey Stedfast <fejj@novell.com>
3685 * providers/imap4/camel-imap4-folder.c (imap4_append_message):
3686 Need to have the folder as the first vararg.
3688 2004-12-06 Rodney Dawes <dobey@novell.com>
3690 * camel-lock-client.c (camel_lock_helper_init):
3691 Exec camel-lock-helper-$BASE_VERSION instead of just camel-lock-helper
3693 2004-12-06 Jeffrey Stedfast <fejj@novell.com>
3695 * camel-sasl-gssapi.c: #include "camel-net-utils.h"
3697 * camel-net-utils.h: #include sys/types.h for size_t, etc.
3699 2004-12-06 Rodney Dawes <dobey@novell.com>
3701 * Makefile.am: Fix pkgconfig bits to dist the unversioned .in files
3704 * tests/lib/Makefile.am: Removed camel-test-provider stuff, since it
3705 isn't in the source tree
3707 2004-11-29 Mengjie Yu <meng-jie.yu@sun.com>
3709 * providers/imap/camel-imap-provider.c:add mnemonic for checkboxes.
3711 2004-12-03 Jeffrey Stedfast <fejj@novell.com>
3713 * providers/imap4/camel-imap4-store.c (connect_to_server): Same.
3715 * providers/nntp/camel-nntp-store.c (connect_to_server): Same.
3717 * providers/imap/camel-imap-store.c (connect_to_server): Same.
3719 * providers/pop3/camel-pop3-store.c (connect_to_server): Same.
3721 * providers/smtp/camel-smtp-transport.c (connect_to_server): Wrap
3722 ssl stream stuff in #ifdef's so the code can be built without SSL
3723 support and not contain unresolved symbols.
3725 2004-12-03 Sivaiah Nallagatla <snallagatla@novell.com>
3727 * providers/groupwise/camel-groupwise-provider.c: Remove
3728 unnecessary includes . Remove camel-gw-listener stuff from here as
3729 we are going to make it a plugin
3731 * providers/groupwise/Makefile.am: Remove camel-gw-listner.c from
3734 * providers/Makefile.am: add groupwise to SUBDIRS
3736 2004-12-02 Not Zed <NotZed@Ximian.com>
3740 * providers/imap/camel-imap-command.c (imap_read_untagged): gross
3741 hack, if we get a blank line after a literal, assume the server
3742 (read: groupwise) made a mistake. Given the complexity of this
3743 code i'm not sure it is the server anyway but what can you do.
3745 2004-12-01 Not Zed <NotZed@Ximian.com>
3749 * camel-multipart-signed.c (parse_boundary): take end of data
3750 argument, so it handles binary data. Use a binary data string
3751 search rather than strstr.
3752 (parse_content): dont bother to append a \0 on the end of the
3753 data, not binary capable.
3755 2004-11-23 Not Zed <NotZed@Ximian.com>
3759 * camel-smime-context.c (sm_get_passwd): removed. All callers
3760 that passed it now pass NULL. This is so we don't override the
3761 password function set by e-cert-db. Seems to work ok, I think.
3763 2004-11-22 Not Zed <NotZed@Ximian.com>
3767 * providers/smtp/camel-smtp-transport.c (smtp_helo): if we have
3768 ipv6 address and it is numeric, prefix it with "IPv6:"
3770 2004-11-30 Not Zed <NotZed@Ximian.com>
3772 * providers/nntp/camel-nntp-stream.c (CAMEL_NNTP_STREAM_LINE):
3773 rename to STREAM_LINE_SIZE so it doesn't override the STREAM_LINE
3775 (camel_nntp_stream_init): fix for above change.
3777 2004-11-28 S.Çağlar Onur <caglar@uludag.org.tr>
3781 * camel-charset-map.c (camel_charset_iso_to_windows):
3783 * camel-filter-search.c (check_header):
3785 * camel-folder-search.c (check_header):
3787 * camel-folder-summary.c
3788 (message_info_new,summary_build_content_info,camel_system_flag):
3790 * camel-html-parser.c (camel_html_parser_attr):
3792 * camel-mime-filter-enriched.c
3793 (param_parse,camel_mime_filter_enriched_init):
3795 * camel-mime-parser.c (folder_scan_step,main):
3797 * camel-mime-utils.c (camel_header_param,camel_header_set_param),
3798 (camel_content_type_is,camel_transfer_encoding_from_string),
3799 (camel_content_type_format,camel_content_type_simple),
3800 (camel_header_decode_date,header_raw_find_node):
3802 * camel-sasl-digest-md5.c (decode_data_type):
3804 * providers/imap/camel-imap-command.c (camel_imap_response_free):
3806 * providers/imap/camel-imap-folder.c (camel_imap_folder_new),
3807 (camel_imap_folder_selected,imap_refresh_info),
3808 (camel_imap_folder_new,camel_imap_folder_selected):
3810 * providers/imap/camel-imap-store.c (imap_get_capability),
3811 (imap_connect_online,get_folder_online,get_folder_offline),
3812 (get_subscribed_folders,folder_hash,get_folders):
3814 * providers/pop3/camel-pop3-store.c (get_folder):
3816 * tests/lib/folders.c (test_folder_message_ops): some strcasecmp()
3817 calls changed with g_ascii_strcasecmp() for Turkish character
3818 conversiton problems
3819 [http://www.i18nguy.com/unicode/turkish-i18n.html]
3821 2004-10-12 Radek Doulik <rodo@ximian.com>
3823 * camel-junk-plugin.c: new init method implementation
3825 * camel-junk-plugin.h: added junk plugin init declaration
3827 2004-11-10 Not Zed <NotZed@Ximian.com>
3831 * camel-service.c (cs_getnameinfo): honour the NI_NAMEREQD flag.
3833 * providers/smtp/camel-smtp-transport.c (smtp_helo): change the
3834 nameinfo flags a bit so we know when we got a numeric name and
3835 need to wrap it in [].
3837 2004-11-21 Sivaiah Nallagatla <snallagatla@novell.com>
3839 * providers/groupwise/camel-groupwise-provider.c : added
3840 a setting to mark the account for offline usuage
3842 * providers/groupwise/came-gw-listener.c
3843 (add_esource) (modify_esource) : changed the prototypes
3844 to pass CamelUrl instead of individual properties
3845 Add offline_sync property on e-sources if account is
3848 2004-11-18 Not Zed <NotZed@Ximian.com>
3850 * providers/nntp/camel-nntp-stream.c:
3851 * providers/nntp/camel-nntp-store.c:
3852 * providers/nntp/camel-nntp-summary.c: Make debug run based on
3853 'nntp' debug option.
3855 * providers/nntp/camel-nntp-stream.c (stream_fill): if we get a 0
3856 read, return ECONNRESET. This should really have been put on the
3857 stream for that imap hack fix.
3859 * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
3860 retry if the password attempt failed.
3864 * providers/nntp/camel-nntp-store.c (xover_setup): don't overwrite
3865 exception if we get a failure.
3866 (camel_nntp_command): if we continue, then set the return code to
3867 -1, so we re-loop rather than abort.
3869 2004-11-15 Jeffrey Stedfast <fejj@novell.com>
3871 * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
3872 In the fallback cases, clear the exception first.
3874 * providers/imap/camel-imap-store.c (connect_to_server_wrapper):
3875 In the fallback cases, clear the exception first.
3877 * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
3878 In the fallback cases, clear the exception first.
3880 2004-11-15 Jeffrey Stedfast <fejj@novell.com>
3882 * providers/imap/camel-imap-store.c (connect_to_server): Use
3883 camel_tcp_stream_ssl_new_raw() for STARTTLS stream.
3885 * providers/imap4/camel-imap4-store.c (connect_to_server): Use
3886 camel_tcp_stream_ssl_new_raw() for STARTTLS stream.
3888 * providers/pop3/camel-pop3-store.c: Change default port numbers
3889 to be correct (they shouldn't all be the pop3s port).
3890 (connect_to_server): Moved the last tcp_stream unref to afetr the
3891 last fail-check so that we won't ever get a double-unref on
3892 something we only own one ref on.
3893 (connect_to_server): Unref the tcp_stream if we fail to create an
3894 engine object before returning fail.
3895 (connect_to_server): Use camel_tcp_stream_ssl_new_raw() for
3898 * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_line):
3899 Fix bug #69408 by filling our input buffer if inptr == inend.
3901 2004-11-13 Jeffrey Stedfast <fejj@ximian.com>
3903 * providers/imap4/camel-imap4-engine.c
3904 (camel_imap4_engine_parse_resp_code): Handle numeric tokens for
3905 the COPYUID set values as well.
3907 2004-11-12 Jeffrey Stedfast <fejj@novell.com>
3909 * providers/imap4/camel-imap4-summary.c (camel_imap4_summary_new):
3910 Folder now gets set on the CamelFolderSummary object rather than
3911 the CamelIMAP4Summary.
3912 (imap4_fetch_all_update): Base summary class now has a folder
3913 member, use that instead.
3914 (imap4_fetch_all_add): Same.
3915 (imap4_summary_fetch_all): Same.
3916 (imap4_summary_fetch_flags): Same.
3917 (camel_imap4_summary_set_uidvalidity): Same.
3918 (camel_imap4_summary_expunge): Same.
3919 (camel_imap4_summary_flush_updates): Same.
3921 * providers/imap4/camel-imap4-folder.c (imap4_append_message):
3922 Init appended_uid value to NULL
3924 * providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
3925 Properly handle NILs for the namespace separator (somehow I missed
3928 2004-12-02 Not Zed <NotZed@Ximian.com>
3930 * Makefile.am: version all the libraries with the base version of the
3931 package. move libcamel-1.2 into libdir, etc.
3933 * camel.pc.in: remove the provider stuff from here.
3935 * camel-provider.pc.in: create a camel-provider pc file.
3937 2004-11-16 Not Zed <NotZed@Ximian.com>
3939 * tests/lib/folders.c (test_folder_message_ops): updated counts for
3940 delete also marking unread.
3942 * tests/lib/camel-test.c (camel_test_provider_init): new api for
3943 initialising test system 'in-build'.
3945 * camel-provider.c: remove the assertions, init if we need to,k
3946 use pthread_once stuff to serialise it.
3948 * tests/folder/test3.c (main): remove gtk stuff (???).
3950 * tests/*: Fix all the makefiles. Made make-check work 'in-build'.
3952 * tests/lib/folders.c (test_folder_counts): update for api changes.
3953 (test_message_info): similar.
3955 * providers/Makefile.am: removed groupwise from the build, this
3956 can't go in here anymore, not in its current state.
3958 * camel-net-utils.c (camel_gethostbyaddr_r)
3959 (camel_gethostbyname_r): the old e_gethost* calls from
3962 2004-11-15 Not Zed <NotZed@Ximian.com>
3964 * providers/imap/camel-imap-utils.c (imap_path_to_physical):
3965 copied from e-path.c.
3966 (imap_path_find_folders): copied from e-path.c.
3968 * camel.h: remove the provider stuff from the header.
3970 * camel-provider.c: globalise provider_init variable, and asserton
3971 it in all functions that rely on it.
3973 * camel-service.c: removed getaddrinfo/etc.
3975 * camel-net-utils.[ch]: separate out camel_getaddrinfo etc.
3977 * Makefile.am: split camel into 2 libraries, libcamel and
3980 * camel-multipart-signed.c (camel_multipart_signed_sign)
3981 (camel_multipart_signed_verify, prepare_sign): remove old
3984 * camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt)
3985 (camel_multipart_encrypted_decrypt): remove old deprecated api.
3987 2004-11-12 Not Zed <NotZed@Ximian.com>
3989 ** Merge in notzed-messageinfo-branch, fix some minor conflicts.
3991 2004-11-11 Jeffrey Stedfast <fejj@novell.com>
3993 * providers/imap4/camel-imap4-store.c (imap4_reconnect): Free the
3994 passwd here if we need to retry to authenticate.
3996 2004-11-10 Jeffrey Stedfast <fejj@novell.com>
3998 * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
3999 Use the expanded ALL macro as on closer inspection of the RFC,
4000 we're not allowed to use macros in conjunction with other FETCH
4001 items (such as UID in our case).
4003 2004-11-09 Not Zed <NotZed@Ximian.com>
4005 * providers/imap/camel-imap-folder.c (imap_get_message): before
4006 short-circuiting the check for child content, check the child
4007 content info is actually correct.
4009 2004-11-08 Not Zed <NotZed@Ximian.com>
4013 * providers/imap/camel-imap-folder.c (get_message): remove spec
4014 argument, always calculate it from the content-info.
4015 (content_info_incomplete): recursively check the content-info for
4016 completeness, not just one level.
4018 2004-11-09 Jeffrey Stedfast <fejj@novell.com>
4020 * providers/imap4/camel-imap4-provider.c: Updated the properties
4021 to include all the same settings as the old imap code.
4023 * providers/imap4/camel-imap4-folder.c (imap4_getv): Implemented.
4024 (imap4_setv): Implemented.
4026 2004-11-08 Jeffrey Stedfast <fejj@novell.com>
4030 * camel-gpg-context.c (gpg_decrypt): We need to extract just the
4031 application/pgp-encrypted part from the multipart/encrypted that
4032 gets passed in. Added checks to verify that the input part is the
4033 correct type as well. Once we have the application/pgp-encrypted
4034 part, we need to use camel_data_wrapper_decode_to_stream() in case
4035 the part was encoded in any way.
4037 2004-11-09 Jeffrey Stedfast <fejj@novell.com>
4039 * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_line):
4040 Handle not getting the CRLF pair together. Also don't require that
4041 we have at least 3 bytes in the read buffer as it is possible we
4042 don't have that much (see bug #69160).
4044 2004-11-08 Jeffrey Stedfast <fejj@novell.com>
4046 * providers/imap4/camel-imap4-store.c (imap4_subscribe_folder):
4047 Note the folder-info just subscribed.
4048 (imap4_unsubscribe_folder): Unnote the folder-info.
4050 2004-11-04 Jeffrey Stedfast <fejj@novell.com>
4052 * providers/imap4/camel-imap4-engine.c: Added much in-line
4054 (engine_parse_capability): Use g_ascii_str[n]casecmp().
4055 (camel_imap4_engine_nstring): New convenience function.
4057 2004-11-02 Not Zed <NotZed@Ximian.com>
4059 * camel-object.c (camel_object_hook_event): check interfaces for
4061 (camel_object_trigger_event): check interfaces for events too.
4062 (camel_object_class_add_event): more checks for interfaces vs
4063 normal object classes.
4064 (camel_object_class_add_interface): add an interface to a class.
4065 (camel_object_get_interface): query for interfaces on an object.
4066 (camel_object_get_type): register the interface type.
4068 2004-11-02 Jeffrey Stedfast <fejj@novell.com>
4070 * providers/imap4/camel-imap4-store.c (imap4_folder_utf7_name):
4071 Don't bother getting the folder delim if the name is "" since we
4072 don't need it in that case.
4074 * providers/imap4/camel-imap4-utils.c
4075 (camel_imap4_get_path_delim): add an assert that s->namespaces is
4078 * providers/imap4/camel-imap4-stream.c
4079 (camel_imap4_stream_literal): Update stream->inptr after fetching
4082 * providers/imap4/camel-imap4-summary.c (envelope_decode_address):
4083 Do proper cleanup in case of error and also handle literals.
4085 * providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
4086 Removed camel_service_connect() call which is no longer needed.
4087 (imap4_connect): If engine is already connected, shortcut to
4088 simply returning success.
4089 (imap4_disconnect): Check engine state rather than poking at
4092 2004-11-01 Jeffrey Stedfast <fejj@novell.com>
4094 * providers/smtp/camel-smtp-transport.c
4095 (connect_to_server_wrapper): Do the same SSL->TLS and TLS->CLEAR
4096 fallbacks that the 2.0 (and older) code did.
4098 * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
4101 * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
4104 * providers/imap/camel-imap-store.c (connect_to_server_wrapper):
4107 2004-11-01 Jeffrey Stedfast <fejj@novell.com>
4109 * providers/imap4/camel-imap4-summary.c
4110 (camel_imap4_summary_expunge): Remove expunged messages from the
4112 (camel_imap4_summary_set_uidvalidity): Clear the cache if the
4113 UIDVALIDITY has changed.
4115 * providers/imap4/camel-imap4-folder.c (imap4_get_message): If the
4116 message exists in the cache, use that rather than fetching it from
4117 the server and cache messages fetched from the server for later
4119 (camel_imap4_folder_finalize): Unref the cache if non-NULL.
4120 (camel_imap4_folder_new): Create the CamelDataCache.
4122 * providers/imap4/camel-imap4-store.c (imap4_create_folder): Cache
4123 the folder-info on the summary if successful.
4124 (imap4_delete_folder): Un-cache the folder-info from the summary.
4126 * providers/imap4/camel-imap4-store-summary.c (load_namespaces):
4128 (save_namespaces): Same.
4129 (camel_imap4_store_summary_unnote_info): New function.
4130 (camel_imap4_store_summary_get_folder_info): Fixed the logic a
4133 2004-11-11 Not Zed <NotZed@Ximian.com>
4135 * providers/imap4/*: Update for folder-summary api changes.
4137 * providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
4138 clean up the logic for getting counts from the folder, we have
4139 code to do this already. Also always run it against the selected
4140 folder, does'nt need to have FAST bit unset.
4142 * camel-folder-summary.c (camel_folder_summary_info_new): removed.
4144 * camel-string-utils.c (camel_pstring_strdup, camel_pstring_free):
4145 pooled string allocators. Oh so much easier than the poolv thing,
4146 and these refcount too.
4148 * camel-folder-summary.h: put message_id back into the summary.
4150 2004-11-08 Not Zed <NotZed@Ximian.com>
4152 * camel-folder.c (camel_folder_get_deleted_message_count): use
4153 getv method to get the deleted count.
4154 (get_deleted_message_count): removed.
4156 * camel-vtrash-folder.c (vtrash_getv): override the unread count
4157 to ignore junked or deleted.
4159 * camel-folder.c (folder_getv): ignore junked and deleted in the
4162 * camel-vee-folder.c (camel_vee_folder_finalise): changed the
4163 logic slightly not to call internal functions directly.
4164 (vee_delete): implement, remove all our folders when we're
4165 deleted, to give unmatched at least a snowflakes chance in hell of
4168 * camel-vtrash-folder.c (vtrash_search_by_expression)
4169 (vtrash_search_by_uids, vtrash_folder_changed, vtrash_add_folder)
4170 (vtrash_remove_folder, vtrash_rebuild_folder): implement
4171 vtrash-optimised versions. Much faster.
4173 * camel-vee-folder.c (camel_vee_folder_set_folders): don't rebuild
4175 (camel_vee_folder_add_folder): track folders here, but invoke
4176 virtual method to let subclasses know about it.
4177 (camel_vee_folder_remove_folder): similar.
4178 (vee_search_by_uids): free the folder_uids array with TRUE,
4179 plugging memory leak.
4181 2004-11-06 Not Zed <NotZed@Ximian.com>
4183 * camel-vee-folder.c: Removed vname, use Folder->full_name
4184 instead. Make add_folder/remove_folder/set_expression/set_folders
4186 (vee_add_folder): virtual implementation.
4188 * camel-vee-summary.c (camel_vee_summary_add): remove folder arg.
4190 2004-11-05 Not Zed <NotZed@Ximian.com>
4192 * camel-vee-summary.c (vee_info_set_flags): don't emit changed for
4193 ourselves, let it filter through the changed handler, otherwise we
4195 (vee_info_set_user_tag, vee_info_set_user_flag): same.
4197 * camel-folder-summary.c (message_info_new_from_header): use the
4198 string pool for allocations.
4199 (message_info_load): same here.
4200 (camel_pstring_strdup): noop for NULL or ""
4201 (camel_pstring_free): same.
4202 (summary_assign_uid): don't always assing the flagged bit, der.
4204 2004-11-02 Not Zed <NotZed@Ximian.com>
4206 * camel-folder-summary.c (camel_pstring_strdup)
4207 (camel_pstring_free, message_info_free, message_info_clone):
4208 'uniquify' the strings.
4210 2004-10-28 Jeffrey Stedfast <fejj@ximian.com>
4212 * providers/imap4/camel-imap4-summary.c (envelope_decode_nstring):
4213 Handle literal strings.
4214 (envelope_decode_date): Same. Fixes bug #68894.
4216 * providers/imap4/camel-imap4-stream.c
4217 (camel_imap4_stream_next_token): Properly tokenise "\*" as a flag
4218 token. Fixes bug #68869.
4220 2004-10-21 Björn Torkelsson <torkel@acc.umu.se>
4222 * camel-sasl-kerberos4.c: #include "camel-i18n.h"
4224 2004-10-27 Julio M. Merino Vidal <jmmv@menta.net>
4226 * camel-operation.c (camel_operation_shutdown): fix the arguments
4227 to pthread_key_delete.
4229 2004-10-26 Jeffrey Stedfast <fejj@novell.com>
4231 * providers/imap4/camel-imap4-store-summary.[c,h]: New files
4232 implementing a folder-info cache for offline mode (and faster
4235 * providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
4236 Cache the folder-info for later use in offline mode.
4238 * providers/imap4/camel-imap4-utils.c
4239 (camel_imap4_get_path_delim): Instead of assigning top = "INBOX",
4240 do strcpy (top, "INBOX") so that we can later modify the
4241 string. Fixes bug #68814.
4243 2004-10-25 Jeffrey Stedfast <fejj@novell.com>
4245 * providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
4246 Updated to use the public function in camel-imap4-utils.c
4247 (camel_imap4_engine_finalize): Same.
4249 * providers/imap4/camel-imap4-store.c (imap4_construct): Setup and
4250 load the store summary.
4251 (camel_imap4_store_finalize): Unref the store summary.
4252 (imap4_get_folder): Implemented offline support.
4253 (imap4_folder_utf7_name): Pass the summary to get_delim rather
4255 (imap4_create_folder): Same.
4256 (imap4_reconnect): Update the namespaces on the store summary.
4257 (connect_to_server): Update the store summary capabilities.
4259 * providers/imap4/camel-imap4-utils.c
4260 (camel_imap4_get_path_delim): Now takes a store-summary rather
4261 than an engine so that it will work in offline mode.
4262 (camel_imap4_namespace_clear): Moved here from
4263 camel-imap4-engine.c
4264 (camel_imap4_namespace_list_copy): New convenience function.
4265 (camel_imap4_namespace_list_free): New.
4267 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
4268 Check the return value of summary loading in offline mode (if it
4269 fails, we can't get the folder).
4271 2004-10-21 Jeffrey Stedfast <fejj@novell.com>
4273 * camel-sasl-gssapi.c: #include "camel-i18n.h"
4275 2004-10-20 Jeffrey Stedfast <fejj@ximian.com>
4277 * providers/imap4/camel-imap4-store.c (imap4_get_folder): Don't
4278 allow users to create folders in offline mode. When in offline
4279 mode, use a different codepath to get a folder object.
4280 (imap4_noop): Handle offline mode.
4281 (imap4_unsubscribe_folder): Throw an exception if we are in
4283 (imap4_subscribe_folder): Same.
4284 (imap4_get_folder_info): Started to implement offline
4285 support. Also, even if we are in online mode but the engine has
4286 not yet been connected, we should follow the "offline" code path
4287 and get the folder info's from the cache.
4288 (imap4_rename_folder): Disallow in offline mode.
4289 (imap4_delete_folder): Same.
4290 (imap4_connect): Handle offline mode.
4291 (imap4_disconnect): Handle offline mode and do proper locking.
4292 (imap4_query_auth_types): Same.
4294 2004-10-19 Jeffrey Stedfast <fejj@ximian.com>
4296 * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
4297 Removed an already-fixed FIXME comment.
4298 (imap4_summary_fetch_flags): Same.
4300 * providers/imap4/camel-imap4-folder.c (imap4_get_path_delim):
4301 Removed. Use camel_imap4_get_path_delim() instead.
4302 (camel_imap4_folder_new): Updated.
4303 (imap4_sync): If we aren't online, we're done. nothing to do.
4304 (imap4_refresh_info): Same.
4305 (imap4_append_message): Same but set an exception.
4306 (imap4_transfer_messages_to): Same.
4308 * providers/imap4/camel-imap4-utils.c
4309 (camel_imap4_get_path_delim): Moved here from camel-imap4-store.c
4311 * providers/imap4/camel-imap4-store.c (imap4_try_authenticate):
4312 Change the service string for the sasl mechanism to"imap" rather
4314 (imap4_get_path_delim): Removed.
4315 (imap4_create_folder): Updated.
4316 (imap4_folder_utf7_name): Same.
4318 2004-10-13 Not Zed <NotZed@Ximian.com>
4320 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new)
4321 (imap4_sync_changes, imap4_sync):
4322 * providers/imap4/camel-imap4-summary.c (untagged_fetch_all): kill
4323 cast as lvalue warning.
4325 * camel-string-utils.h: add prototype for camel_toupper.
4327 * providers/imap4/camel-imap4-utils.c:
4328 * providers/imap4/camel-imap4-summary.c:
4329 * providers/imap4/camel-imap4-folder.c:
4330 * providers/imap4/camel-imap4-engine.c:
4331 * providers/imap4/camel-imap4-command.c:
4332 * providers/imap4/camel-imap4-store.c: include camel-i18n.h.
4334 2004-10-12 Not Zed <NotZed@Ximian.com>
4338 * providers/nntp/camel-nntp-store.c (connect_to_server): if we
4339 have a username, try to authenticate before doing anything else.
4343 * providers/nntp/camel-nntp-summary.c (add_range_xover)
4344 (add_range_head): use raw_command_auth since we might need auth
4347 * providers/nntp/camel-nntp-store.c (camel_nntp_raw_command_auth):
4348 new almost-raw command that also does auth.
4349 (xover_setup, connect_to_server, camel_nntp_command): use
4350 raw_command_auth since we might need auth here.
4352 2004-10-12 Not Zed <NotZed@Ximian.com>
4354 ** See bug #67898 and probably others.
4356 * providers/imapp/camel-imapp-store.c (connect_to_server):
4357 * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
4358 * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
4359 * providers/imap/camel-imap-store.c (connect_to_server_wrapper):
4360 * providers/nntp/camel-nntp-store.c (connect_to_server_wrapper):
4361 * providers/smtp/camel-smtp-transport.c (connect_to_server_wrapper):
4362 Fallback to hard-coded port number if the name lookup fails and no
4365 2004-10-11 Not Zed <NotZed@Ximian.com>
4369 * camel-mime-utils.c (camel_header_raw_check_mailing_list):
4370 initialise the match start/end pointers, since some regexec's
4371 don't seem to do it.
4373 2004-10-09 Sivaiah Nallagatla <snallagatla@novell.com>
4375 * providers/groupwise/camel-gw-listner.c (add_esource) : add the
4376 source uid to list of selected calendar and tasks so that
4377 groupwise calendar and tasks are automatically selected
4378 (remove_esource) : remove the uids from corresponding gconf keys
4381 2004-10-08 Not Zed <NotZed@Ximian.com>
4385 * providers/nntp/camel-nntp-store.c
4386 (nntp_store_get_cached_folder_info): compare newsgroup names case
4389 2004-10-05 Jeffrey Stedfast <fejj@novell.com>
4391 * camel-service.c (camel_getaddrinfo): Check msg->result for error
4392 and set an exception if appropriate.
4393 (camel_getnameinfo): Same.
4395 2004-10-04 Jeffrey Stedfast <fejj@novell.com>
4397 * camel-service.c (camel_getaddrinfo): Add a non-const cast for
4398 hints when changing the ai_family member in the IPv6-disabled
4399 case. Fixes bug #67028.
4401 2004-10-05 Not Zed <NotZed@Ximian.com>
4405 * camel-service.c (cs_getaddrinfo, cs_getnameinfo): don't loop on
4406 EAI_AGAIN, it doesn't appear to mean the same as EAGAIN does with
4407 system calls (i guess 'no shit sherlock' really).
4409 2004-10-04 JP Rosevear <jpr@novell.com>
4411 * providers/imap4/camel-imap4-provider.c: include camel-i18n.h
4413 2004-10-01 Jeffrey Stedfast <fejj@novell.com>
4415 * camel-service.c (camel_getaddrinfo): Avoid assigning a value to
4416 the member of a const struct (which newer gcc's apparently break
4417 over) by casting to non-const.
4419 2004-09-28 Not Zed <NotZed@Ximian.com>
4423 * providers/nntp/camel-nntp-store.c (camel_nntp_command): if we
4424 get an error selecting the folder, disconnect/include it in the
4426 (camel_nntp_command): don't set the exception based on errno,
4427 exception processing is already done. don't clear it if we're on
4430 2004-09-27 Not Zed <NotZed@Ximian.com>
4432 * providers/nntp/camel-nntp-store.c (nntp_get_folder_info): don't
4433 do any locking here.
4434 (nntp_store_get_folder_info_all): move the locking here.
4435 (nntp_store_get_subscribed_folder_info): and some here too.
4437 * providers/nntp/camel-nntp-store.c:
4438 * providers/nntp/camel-nntp-folder.c: Remove nntp command_lock and
4439 just use the service connect lock for serialisation.
4441 2004-09-14 Jeffrey Stedfast <fejj@novell.com>
4443 * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
4444 s/not/no/ in the error string. Fixes bug #65828.
4446 2004-09-24 Not Zed <NotZed@Ximian.com>
4448 * camel-vee-store.c (camel_vee_store_finalise): free the unmatched
4451 * camel-vee-folder.c (vee_folder_remove_folder): lock main folder
4452 summary lock before doing the unmatched stuff, so the order is
4455 2004-08-25 Ed Catmur <ed@catmur.co.uk>
4459 * camel-vee-store.c:
4460 * camel-vee-folder.c: move the unmatched
4461 folder onto the camel-vee-store object. Removede the global
4462 unmatched folder and associated locks/etc, fixed all the code up
4463 to work with the new unmatched folder, if present.
4465 2004-09-27 Not Zed <NotZed@Ximian.com>
4467 * providers/local/camel-spool-folder.c (camel_spool_folder_new):
4468 make sure body indexing is turned off always, missed the ~ bit.
4470 * providers/local/camel-spool-store.c (camel_folder_info_new):
4471 dont take unread count.
4472 (spool_fill_fi): copied from mbox more or less.
4473 (scan_dir): use fill_fi to setup counts.
4474 (spool_new_fi): replace camel_foldeR_info_new with one that does
4475 most of the work, also generates uri's properly.
4476 (get_folder_info_mbox): make the 'system' inbox name translatable.
4478 * providers/local/camel-mbox-folder.h: make the
4479 camel_mbox_folder_get* functions properly public.
4481 * providers/local/camel-local-folder.h: pass the object to the
4482 virtual methods now, fix all callers.
4484 * providers/local/camel-spool-folder.c (spool_get_full_path)
4485 (spool_get_meta_path): implement, this needs to work differnetly
4486 to the parent classes implementations :-/.
4488 2004-09-22 Jeffrey Stedfast <fejj@novell.com>
4490 * providers/imap/camel-imap-store.c (connect_to_server): Instead
4491 of doing a host-lookup ourselves, get it passed in to us as an
4492 argument. Also simplified a bit (try_starttls is no longer an
4494 (connect_to_server_wrapper): Simplified (we no longer have
4495 fallback cases for SSL stuff). Also, perform host lookup here.
4497 * providers/imap4/camel-imap4-store.c: Same changes as above.
4499 * providers/pop3/camel-pop3-store.c: Same.
4501 * providers/smtp/camel-smtp-transport.c: Same. Other changes
4502 include making the code consistant with the other providers.
4504 * providers/nntp/camel-nntp-store.c: Same as pop/imap.
4506 2004-09-21 Not Zed <NotZed@Ximian.com>
4510 * camel-movemail.c (camel_movemail): don't clear exception on entry.
4512 * camel-folder-search.c (match_words_message): use local exception.
4514 * camel-operation.c (camel_operation_cancel_check): soak up all
4515 cancellation requests as soon as we get one.
4516 (camel_operation_uncancel): soak up all cancellation reqeusts when
4519 * camel-uid-cache.c (camel_uid_cache_save): open the file O_TRUNC
4520 rather than O_EXCL, otherwise a crash would mean this file never
4522 (camel_uid_cache_save): block cancellation around writes otherwise
4523 we could be interupted from old cancellation.
4525 * providers/local/camel-local-folder.c
4526 (camel_local_folder_construct): don't clear exception here, just
4527 don't pass it to summary load.
4529 * providers/pop3/camel-pop3-store.c (pop3_connect): only clear the
4530 exception when we received one we handled.
4532 * camel-filter-driver.c (close_folder): if exception is already
4533 set, don't pass it to folder.sync().
4535 * camel-lock.c (camel_lock_folder): don't clear the exception
4536 here, if it came in set its a programming error.
4538 * camel-filter-driver.c (camel_filter_driver_filter_message): if
4539 the exception is set after evaluating the expression, stop
4542 2004-09-13 Not Zed <NotZed@Ximian.com>
4546 * camel-service.c: removed the old hostent based hostname interfaces.
4548 * camel-sasl-kerberos4.c (krb4_challenge): new hostname interfaces.
4550 * camel-sasl-gssapi.c (gssapi_challenge): new hostname interfaces.
4552 * camel-sasl-digest-md5.c (digest_md5_challenge): use new hostname
4554 (generate_response): just take hostname directly, not hostent.
4556 * camel-mime-utils.c (camel_header_msgid_generate): use new
4557 hostname interfaces.
4559 * providers/smtp/camel-smtp-transport.c (connect_to_server): fixed
4560 to use new addrinfo apis.
4562 * providers/pop3/camel-pop3-store.c (connect_to_server): fixed to
4563 use new addrinfo apis.
4565 * camel-tcp-stream-ssl.c (stream_connect): try all addresses
4568 * camel-tcp-stream.c (camel_tcp_stream_get_remote_address)
4569 (camel_tcp_stream_get_local_address): return a sockaddr now, and
4570 also the address length. Fixed all implementations and callers.
4571 (camel_tcp_stream_connect): use addrinfo rather than hostent for
4572 host AND port info. Fixed all implementations and callers.
4574 2004-09-22 Not Zed <NotZed@Ximian.com>
4576 * camel-folder-summary.c (camel_folder_summary_decode_token):
4577 handle a zero-length token read rather than failing.
4579 2004-09-21 Not Zed <NotZed@Ximian.com>
4583 * camel-http-stream.c (stream_read): handle relative url's in
4585 (camel_http_stream_set_proxy): generate the basic auth token for
4586 basic proxy auth if we have a user and password.
4588 * camel-http-stream.c: turn off debug.
4590 2004-09-08 Hannah & Fazlu <hannah_lins@yahoo.co.in>
4594 * camel/camel-smime-context.c: Change of strings.
4596 2004-09-15 Not Zed <NotZed@Ximian.com>
4600 * providers/local/camel-local-folder.c
4601 (camel_local_folder_construct): only emit folder_created if we
4602 actually created it.
4604 2004-09-03 Not Zed <NotZed@Ximian.com>
4606 * camel-tcp-stream-ssl.c (stream_connect): make ssl connection
4607 async and cancellable, and minor api update to async connection.
4609 2004-08-27 Not Zed <NotZed@Ximian.com>
4613 * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
4614 forget the password if it was wrong.
4616 2004-08-26 Sivaiah Nallagatla <snallagatla@novell.com>
4618 * providers/groupwise/camel-gw-listner.c
4619 (add_calendar_tasks_sources) : change the "CheckList" to "Tasks"
4620 as there is another foder called chekclist in groupwise not
4621 related to tasks Fixes #64092
4623 2004-08-25 Frederic Crozat <fcrozat@mandrakesoft.com>
4625 * camel-folder.c (folder_getv): Init one variable (remove warning)
4626 and don't redefine it.
4628 2004-08-23 Not Zed <NotZed@Ximian.com>
4632 * providers/imap/camel-imap-store.c (get_subscribed_folders): only
4633 LSUB folders we're interested in, and check full name of each path
4635 (imap_is_subfolder): helper for above.
4637 2004-08-23 Jeffrey Stedfast <fejj@novell.com>
4639 * providers/imap/camel-imap-store.c (get_folders): Check for an
4640 exception from get_folders_online() here so that we don't send
4641 commands to an IMAP server after a disconnect for example. See bug
4642 #63504 for an example.
4644 2004-08-23 Jeffrey Stedfast <fejj@novell.com>
4646 * camel-tcp-stream-openssl.c (open_ssl_connection): Call
4647 SSL_CTX_set_default_verify_paths() to initialise the certificate
4648 database paths. Thanks to Anton Altaparmakov for this fix.
4650 2004-08-21 Sivaiah Nallagatla <snallagatla@novell.com>
4652 * providers/groupwise/camel-gw-listener.c (account_changed) :
4653 if any of the settings required for soap interaction changes
4654 try connecting to server and resetup the ESources
4655 * providers/groupwise/camel-groupwise-provider.c ": don't
4656 check soap ssl setting by default to be in consistent with
4659 2004-08-16 Not Zed <NotZed@Ximian.com>
4661 * providers/groupwise/camel-groupwise-provider.c
4662 (camel_provider_module_init): pass an exception handle to
4665 2004-08-13 Jeffrey Stedfast <fejj@novell.com>
4667 * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
4668 Use g_ptr_array_sized_new() rather than using set_size() after
4669 creating a GPtrArray so that array->len starts out at 0.
4670 (imap4_summary_fetch_flags): Same.
4672 2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com>
4674 * providers/groupwise/camel-gw-listener.c (account_changed):
4675 remove the cal/taksks sources when account is disbaled. Also do
4676 not try to to create sources when a disabled account is changed to
4678 (camel_gw_listener_construct): do not add the disbaled accounts
4679 to exitsting groupwise accounts list
4681 2004-08-13 Sivaiah Nallagatla <snallagatla@novell.com>
4683 * providers/groupwise/camel-groupwise-provider.c: update ssl
4684 setting label and title of the soap settings section. Fixes #62747
4686 2004-08-13 Rodney Dawes <dobey@novell.com>
4688 * camel-sasl-gssapi.c: Handle et/comm_err.h as well as the
4691 2004-08-11 Jeffrey Stedfast <fejj@novell.com>
4695 * camel-mime-utils.c (append_quoted_pair): New function to append
4696 a string of text that may contain quoted-pairs.
4697 (header_decode_text): Now takes a ctext argument specifying
4698 whether or not to expect comments and to handle them.
4699 (camel_header_decode_string): Pass FALSE as ctext argument.
4700 (camel_header_format_ctext): New function to format text|comment
4701 header field bodies.
4703 2004-08-10 Not Zed <NotZed@Ximian.com>
4705 * providers/groupwise/camel-gw-listener.c
4706 (get_addressbook_names_from_server): fix for e_passwords api
4707 change, and handle reprompting as well.
4709 2004-08-06 Jeffrey Stedfast <fejj@novell.com>
4711 * providers/imap4/camel-imap4-summary.c (untagged_fetch_all): Call
4712 camel_operation_progress().
4713 (imap4_summary_fetch_all): Setup info we need for progress
4715 (imap4_summary_fetch_flags): Same.
4717 2004-08-04 Rodney Dawes <dobey@novell.com>
4719 * camel-charset-map.c: #include <gal/util/e-iconv.h>
4721 2004-08-03 Jeffrey Stedfast <fejj@novell.com>
4723 * camel-url-scanner.c (camel_url_scanner_scan): In the case of
4724 start() or end() failing, loop starting with the first character
4725 immediately following the failed match position. Fixes bug #62136.
4727 2004-08-03 Jeffrey Stedfast <fejj@novell.com>
4729 * providers/imap4/camel-imap4-store.c (imap4_construct): Pass a
4732 * providers/imap4/camel-imap4-engine.c
4733 (camel_imap4_engine_iterate): Reconnect if needed.
4734 (camel_imap4_engine_new): Now takes a reconnect func.
4736 2004-07-30 Jeffrey Stedfast <fejj@novell.com>
4738 * providers/imap4/camel-imap4-engine.c
4739 (camel_imap4_engine_capability): This needs to prequeue the
4740 CAPABILITY command rather than queue it normally for the case of
4742 (camel_imap4_engine_namespace): Same.
4744 2004-07-30 Jeffrey Stedfast <fejj@ximian.com>
4746 * camel-mime-utils.c (camel_header_encode_string): Similar fix as
4747 below in a later if-statement. Thanks to Suresh for spotting this
4750 2004-07-28 Jeffrey Stedfast <fejj@novell.com>
4752 * camel-mime-utils.c (camel_header_encode_string): Fixed an ABR
4753 that may have been responsible for bug #62029.
4755 2004-07-29 Sivaiah Nallagatla <snallagatla@novell.com>
4757 * proivders/groupwise/camel-groupwise-provider.c: Add an entry to
4758 specify POA address and a check box to say whehter ssl has to be
4759 used for SOAP or not
4760 (groupwise_auto_detect_cb): new function to automatically fill POA
4761 address with host specified in receiving mail page
4762 (camel_provider_module_init): use the new auto_detect funcntion
4764 * providers/groupwise/camel-gw-listener.c (modify_esource)
4765 (account_changed, add_calendar_tasks_sources)
4766 (remove_calendar_tasks_sources, get_addressbook_names_from_server)
4767 (add_addressbook_sources, modify_addressbook_sources)
4768 (remove_addressbook_sources): while forming the uri, use the value
4769 from new poa_address setting instead of url->host. Also use ssl
4770 setting from the new check box provider instaed of imap one
4771 (get_addressbook_names_from_server): display an error to user when
4772 connection cpuld not be established with server during account
4775 2004-07-26 Jeffrey Stedfast <fejj@novell.com>
4777 * camel-charset-map.c (camel_charset_best_mask): Changed the logic
4778 slightly to only match certain charsets if the locale matches
4779 (Macedonians don't want to use koi8-r for example).
4781 2004-07-27 Not Zed <NotZed@Ximian.com>
4785 * providers/groupwise/camel-groupwise-provider.c: added junk settings.
4787 2004-07-27 Jeffrey Stedfast <fejj@novell.com>
4789 * providers/imap4/camel-imap4-engine.c
4790 (camel_imap4_engine_prequeue): Changed to be the same prototype as
4792 (engine_prequeue_folder_select): Updated.
4794 * providers/imap4/camel-imap4-store.c (connect_to_server): Use
4795 engine_prequeue() for STARTTLS in case we are reconnecting and
4796 already have a command queue.
4797 (imap4_try_authenticate): Use prequeue() here too.
4798 (imap4_reconnect): Moved all the connect logic in here.
4799 (imap4_connect): just lock and call reconnect().
4801 2004-07-27 Sivaiah Nallagatla <snallagatla@novell.com>
4805 * providers/groupwise/camel-groupwise-provider.c
4806 (camel_provider_module_init): do not set transport object for
4807 groupwise provider. We want user to use SMTP itself instead of
4810 2004-07-26 Jeffrey Stedfast <fejj@novell.com>
4812 * providers/imap4/camel-imap4-store.c (connect_to_server): Don't
4813 instantiate an engine here. Instead, take an engine as an argument
4814 (it has a service pointer) and connect using that. Also, if
4815 connect fails, don't unref the engine.
4816 (connect_to_server_wrapper): Now also takes an engine argument
4817 rather than a service argument.
4818 (imap4_try_authenticate): Now also takes an engine argument.
4819 (imap4_connect): Pass the engine to connect/auth functions rather
4821 (imap4_query_auth_types): Updated.
4822 (imap4_disconnect): Don't unref the engine here.
4823 (camel_imap4_store_init): Create the engine here.
4824 (imap4_get_folder_info): Can't check engine == NULL to know to
4825 connect (that was a broken check anyway).
4827 * providers/imap4/camel-imap4-engine.c (camel_imap4_engine_new):
4828 Now simply takes a service argument rather than a session and url.
4829 (camel_imap4_engine_next_token): Set the state to DISCONNECTED.
4830 (camel_imap4_engine_eat_line): Same.
4831 (camel_imap4_engine_line): Same.
4832 (camel_imap4_engine_literal): Same.
4834 2004-07-22 Not Zed <NotZed@Ximian.com>
4838 * providers/pop3/camel-pop3-engine.c (camel_pop3_engine_iterate):
4839 if we get an io error, move every current/active and queued
4840 command to the done queue and mark as failed.
4842 2004-07-19 Jeffrey Stedfast <fejj@novell.com>
4844 * providers/imap/camel-imap-store.c (get_subscribed_folders): Free
4845 result after parsing it. Fixes a leak.
4847 2004-07-19 Not Zed <NotZed@Ximian.com>
4849 * camel-mime-filter-canon.c (filter): only copy 5 chars after the
4850 F if we actually have "From ", otherwise we might have F.{,4}\n
4851 instead and break eol canonicalisation. For #53355.
4853 2004-07-16 Not Zed <NotZed@Ximian.com>
4855 * camel-gpg-context.c: Added some debug stuff.
4857 2004-07-15 Jeffrey Stedfast <fejj@novell.com>
4859 * providers/imap/camel-imap-folder.c (imap_transfer_online): Don't
4860 grab the connect_lock before calling refresh_info so that we avoid
4861 the deadlock in bug #61551.
4863 2004-07-14 Jeffrey Stedfast <fejj@novell.com>
4867 * camel-process.c (camel_process_fork): Same.
4869 * camel-filter-driver.c (pipe_to_system): Fixed strings
4871 2004-07-12 Sivaiah Nallagatla <snallagatla@novell.com>
4873 * providers/groupwise/camel-gw-listener.c (add_esource)
4874 (modify_esource, add_addressbook_source)
4875 (modify_addressbook_sources): pass "use_ssl" value to these
4876 functions and set it on e-source
4877 (add_calendar_tasks_source): read the "use_ssl" param from camel
4878 url and pass it to add_esource) calls
4879 (get_addressbook_names_from_server): use "https" or http depending
4880 upon whther ssl is enabled or not
4881 (account_changed): compare urls from account instead of uris
4882 formed to know wheter somehting in the account changed
4884 2004-07-09 Not Zed <NotZed@Ximian.com>
4886 ** This is no guarantee of security, but its just a helper to
4887 prevent old memory accidentally being included/used elsewhere.
4889 * camel-smime-context.c (sm_decrypt): mark the output stream
4892 * camel-gpg-context.c (gpg_decrypt): set the output stream to
4893 secured, so we automagically blank it out on finalise.
4895 * camel-stream-mem.c (camel_stream_mem_set_secure): set the
4896 memory-stream 'secured', all we do at the moment is blank out the
4898 (camel_stream_mem_set_byte_array, camel_stream_mem_finalize):
4899 clear memory if owner and secured. kill dead comment.
4900 (clear_mem): utilitiy to set memory to 0xABADF00D
4902 2004-07-08 Not Zed <NotZed@Ximian.com>
4906 * camel-cipher-context.c (camel_cipher_sign):
4907 (camel_cipher_verify, camel_cipher_encrypt, camel_cipher_decrypt):
4908 Add preliminary progress reporting.
4910 2004-07-07 Chris Toshok <toshok@ximian.com>
4912 * providers/groupwise/Makefile.am (INCLUDES): use
4913 CAMEL_GROUPWISE_CFLAGS.
4914 (libcamelgroupwise_la_LIBADD): use CAMEL_GROUPWISE_LIBS.
4916 2004-09-07 Not Zed <NotZed@Ximian.com>
4918 * providers/groupwise/camel-groupwise-provider.c: put the options
4919 in their own section.
4921 2004-09-06 Not Zed <NotZed@Ximian.com>
4923 * camel-search-private.c (utf8_get): remove this, and make the
4924 code use camel_utf8_getc instead. Quite a bit faster esp if
4925 optimising with inlines.
4927 * camel-object.c (check_magic_fail): change the check_magic code
4928 to mostly run from a macro, its worth it.
4930 2004-09-04 Not Zed <NotZed@Ximian.com>
4932 * providers/local/camel-mbox-summary.c (message_info_new): fix
4935 * providers/pop3/camel-pop3-engine.c (get_capabilities): remove
4936 some unused variables.
4938 * camel-object.h: remove camel-i18n.h, fixed all c files where
4941 2004-08-25 Not Zed <NotZed@Ximian.com>
4943 * camel-list-utils.[ch]: Copied e_dlist* stuff to here, part of
4944 removing e-util dependency on camel.
4946 2004-08-05 Not Zed <NotZed@Ximian.com>
4948 * providers/local/camel-local-provider.c: same.
4950 * providers/imap/camel-imap-provider.c: put the extra stuff into a
4953 * providers/imapp/camel-imapp-provider.c: same.
4955 * providers/pop3/camel-pop3-provider.c: make sure each section
4958 2004-08-03 Not Zed <NotZed@Ximian.com>
4960 * camel-url.c (camel_url_set_param): when clearing a param, use
4961 remove_data instead of set_data_full. craptatious glib at it
4964 * providers/nntp/camel-nntp-provider.c: turn on ssl option.
4966 2004-07-07 Not Zed <NotZed@Ximian.com>
4968 * camel-folder.c: removed filter-rule.h ugh.
4970 2004-07-02 Christian Neumair <chris@gnome-de.org>
4972 * camel-smime-context.c: s/Can't/Cannot/.
4974 2004-06-30 Jeffrey Stedfast <fejj@novell.com>
4976 * providers/imap4/camel-imap4-search.c (imap4_body_contains): Set
4977 the size of the ptrarray to prevent potentially realloc'ing
4980 2004-06-29 Jeffrey Stedfast <fejj@novell.com>
4982 * providers/imap4/camel-imap4-command.c
4983 (camel_imap4_command_newv): Aded a new %formatter 'V' which takes
4984 a string vector (needed for SEARCH).
4986 * providers/imap4/camel-imap4-search.[c,h]: New source files
4987 implementing search functionality.
4989 * providers/imap4/camel-imap4-folder.c (imap4_sync_flag): Use the
4990 new public version of imap4_get_uid_set().
4991 (imap4_transfer_messages_to): Same.
4992 (camel_imap4_folder_new): Create a search context.
4993 (camel_imap4_folder_finalize): Unref the search context.
4994 (camel_imap4_folder_class_init): Override the search methods.
4995 (imap4_search_by_expression): New.
4996 (imap4_search_by_uids): New.
4997 (imap4_search_free): New.
4999 * providers/imap4/camel-imap4-utils.c (camel_imap4_get_uid_set):
5000 Moved here from camel-imap4-folder.c
5002 2004-06-29 Not Zed <NotZed@Ximian.com>
5004 * camel-vee-store.c (vee_rename_folder): add any parents of the
5005 new name before we actually do the rename so the rename has
5006 somewhere to go to. #60775.
5008 2004-06-28 Not Zed <NotZed@Ximian.com>
5010 * providers/local/camel-maildir-folder.c (maildir_folder_getv):
5011 override CAMEL_FOLDER_NAME arg so we can translate "." into
5014 * providers/local/camel-maildir-store.c (camel_folder_info_new):
5015 take url argument directly, fixes a memleak.
5016 (camel_folder_info_new): make the toplevel "." into "Inbox"
5018 (maildir_rename_folder): dont let users rename inbox.
5020 2004-06-27 Jeffrey Stedfast <fejj@novell.com>
5022 * camel-url-scanner.c (camel_url_web_end): More fixes.
5024 2004-06-25 Jeffrey Stedfast <fejj@novell.com>
5026 * camel-url-scanner.c (camel_url_web_end): Fixed to handle :pass
5027 in proto://user:pass@host. Fixes bug #60104.
5029 2004-06-24 Jeffrey Stedfast <fejj@novell.com>
5031 * providers/pop3/camel-pop3-store.c (connect_to_server): Error out
5032 and set an exception if camel_pop3_engine_new() returns NULL
5033 (which it can do now).
5035 * providers/pop3/camel-pop3-engine.c (get_capabilities): No longer
5037 (camel_pop3_engine_new): Reads the greeting itself and returns
5038 NULL if an error occurs (like stupid braindamaged piece of shit
5039 POP servers that spew debug prinfs).
5041 * providers/local/camel-spool-folder.c (spool_lock): If we fail to
5042 lock the folder, close the lockfd and reset it to -1. Fixes bug
5045 2004-06-23 Jeffrey Stedfast <fejj@novell.com>
5047 * providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
5048 First LIST/LSUB the toplevel folder, and then LIST/LSUB the
5049 subfolders (it needs to be 2 commands to work properly).
5050 (imap4_delete_folder): CLOSE the folder we are about to DELETE if
5051 it is currently SELECTED.
5053 * providers/imap/camel-imap-provider.c (imap_url_equal): Same.
5055 * providers/imap4/camel-imap4-provider.c (imap4_url_equal): Check
5058 * providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
5059 Hide password, etc info in the fi->uri's.
5060 (imap4_create_folder): Don't bother to use
5061 imap4_get_folder_info(), we can construct the fi ourselves.
5062 (imap4_delete_folder): Emit the folder_deleted signal and
5063 construct an fi ourselves.
5064 (imap4_subscribe_folder): Same.
5065 (imap4_unsubscribe_folder): Same.
5067 * providers/imap4/camel-imap4-provider.c: Specify that the
5068 fragment is the path.
5070 2004-06-21 Christian Kellner <gicmo@xatom.net>
5072 * camel-service.c (service_setv): Really set the path if tag is
5075 2004-06-21 Jeffrey Stedfast <fejj@novell.com>
5077 * camel-mime-filter-enriched.c (enriched_to_html): Fixed a number
5078 of issues described in bug #49497.
5080 2004-06-18 Jeffrey Stedfast <fejj@novell.com>
5082 * camel.c (camel_shutdown): Call camel_mime_utils_shutdown() and
5083 camel_operation_shutdown().
5085 * camel-operation.c (camel_operation_shutdown): New function.
5087 * camel-mime-utils.c (camel_mime_utils_shutdown): New function to
5088 clean up the compiled regexes.
5090 * camel-stream-buffer.c (set_vbuf): Need to re-init sbf->ptr and
5091 sbf->end too, or we'll be sorrryy!
5093 2004-06-18 Not Zed <NotZed@Ximian.com>
5095 * camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for
5096 static inititialisation.
5098 2004-06-17 Jeffrey Stedfast <fejj@ximian.com>
5100 * providers/imap4/camel-imap4-folder.c (uidset_init): init
5101 tail->last to (guint32) -1, so that index = tail->last + 1 will
5102 start at 0 at the top of uidset_add() :-)
5104 2004-06-17 Rodney Dawes <dobey@novell.com>
5106 * camel-mime-filter-tohtml.c: Add support for the webcal, callto, and
5107 h323 URIs when we get them in mails
5109 2004-06-17 Jeffrey Stedfast <fejj@novell.com>
5111 * camel-mime-filter-tohtml.c: Don't foolishly unmunge From_
5112 lines. First off, we don't even know if our input stream came from
5113 an mbox file and secondly, the ">From " may have been intentional
5114 by the author. We Just Don't Know (tm).
5116 2004-06-15 Jeffrey Stedfast <fejj@novell.com>
5118 * providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
5119 Make sure we have elements in the array, if not then we're done
5122 2004-06-17 Jeffrey Stedfast <fejj@ximian.com>
5124 * providers/imap4/camel-imap4-folder.c (imap4_get_uid_set): Fixed
5125 to work properly. It was getting ranges wrong before sometimes
5126 which was making me lose mail! Ugh.
5128 Thanks to Christian Kellner for pointing out these bugs (and
5129 submitting the original patch for service_setv)
5131 * camel-service.c (service_setv): Don't use (tag &
5132 CAMEL_ARG_IGNORE) to determine if we should ignore this
5133 tag. CAMEL_ARG_IGNORE is not a bit flag.
5135 * providers/imap/camel-imap-store.c (imap_setv): Don't use (tag &
5136 CAMEL_ARG_IGNORE) to determine if we should ignore this
5137 tag. CAMEL_ARG_IGNORE is not a bit flag.
5139 2004-06-16 Jeffrey Stedfast <fejj@ximian.com>
5141 * providers/imap4/camel-imap4-folder.c (imap4_refresh_info): Only
5142 force a re-update of all FLAGS if this folder wasn't in the
5143 SELECTED state. Otherwise, simply send a NOOP.
5145 * providers/imap4/camel-imap4-summary.c: Added a 'first' member to
5146 the imap_fetch_all_t struct so we can use that as a base offset in
5147 our GPtrArray, allowing us to limit resource consumption which
5148 could otherwise get quite large. Also added a ChangeInfo member
5149 that was needed for changes to untagged_fetch_all().
5150 (imap4_fetch_all_add): Use fetch->first as a base offset and
5151 change int i to guint32 i. Also updated to sue the fetch->changes.
5152 (imap4_fetch_all_update): Same.
5153 (untagged_fetch_all): Same - this is where it is really valuable,
5154 since we can avoid adding elements to the GPtrArray that we won't
5155 even use. Also needed to change code a big in case index <
5156 fetch->first (which could happen if a server notified us of a
5157 FLAGS change for a message we didn't request info about).
5158 (imap4_fetch_all_free): Free the ChangeInfo.
5159 (imap4_summary_fetch_all): Init fetch->changes and fetch->first.
5160 (imap4_summary_fetch_flags): Same.
5161 (camel_imap4_summary_flush_updates): Only request envelope info if
5162 first <= summary->exists. Avoids needless queries.
5163 (info_uid_sort): #if 0'd
5164 (camel_imap4_summary_flush_updates): No need to sort the summary -
5165 this should never have been needed. I can't remember why I did
5168 2004-06-15 Jeffrey Stedfast <fejj@ximian.com>
5170 * camel-gpg-context.c (gpg_verify): Use
5171 camel_multipart_signed_get_content_stream() rather than getting
5172 the first part and canonicalising it ourselves. Fixes bug #60159.
5174 * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_init):
5175 Init have_unget to FALSE. Don't set unget to NULL, it's no longer
5177 (camel_imap4_stream_finalize): No need to g_free() unget anymore.
5178 (camel_imap4_stream_next_token): Check have_unget rather than
5179 unget != NULL. Set have_unget to FALSE if we get an unget'd token.
5180 (camel_imap4_stream_unget_token): Don't malloc space for an unget
5181 token. The unget token is no longer a pointer.
5183 2004-06-14 Not Zed <NotZed@Ximian.com>
5185 * providers/smtp/camel-smtp-transport.c (smtp_data): use
5187 (smtp_connect): do not re-helo after we've authenticated. This
5188 was a misreading of the spec. We must only re-helo after a
5189 transport layer negotiation.
5191 2004-06-12 Jeffrey Stedfast <fejj@ximian.com>
5193 * providers/imap4/camel-imap4-store.c (imap4_noop): Flush summary
5194 updates for the currently selected folder.
5195 (imap4_noop): Sync the currently selected folder before sending
5198 * providers/imap4/camel-imap4-summary.c
5199 (camel_imap4_summary_set_exists): Don't bother with
5200 exists_changed. We don't need it afterall.
5201 (camel_imap4_summary_flush_updates): Instead of updating flags if
5202 update_flags or exists_changed is set, only bother if update_flags
5203 is set or if exists is smaller than the summary count (since
5204 updating flags is also sueful for determining which messages have
5207 2004-06-11 Jeffrey Stedfast <fejj@novell.com>
5209 * providers/imap4/camel-imap4-folder.c (imap4_refresh_info): Force
5210 updating of the emsage flags (normally this only happens if
5211 something has changed that warrants rescanning them).
5213 2004-06-11 Jeffrey Stedfast <fejj@ximian.com>
5215 * providers/imap4/camel-imap4-folder.c (untagged_fetch): Handle
5216 getting FLAGS even though we didn't request it (server can send us
5217 FLAGS info if another client changed them recently, for
5218 example). Also fixed to handle the fact that not every bit of info
5219 has to be in a single untagged FETCH response - it may come in
5220 several untagged responses.
5222 * providers/imap4/camel-imap4-summary.c (envelope_decode_address):
5223 Decode the email address name token.
5224 (envelope_decode_nstring): rfc2047 decode strings if requested.
5225 (decode_envelope): Request that the subject string be rfc2047
5228 2004-06-11 Not Zed <NotZed@Ximian.com>
5230 * providers/local/camel-maildir-store.c (get_folder_info): if we
5231 scan from "" or top == NULL, then we really want to scan from "."
5234 * camel-url.c (camel_url_new_with_base): don't check the for a
5235 character after the # before extracting the fragment. An empty
5236 fragment is still allowed and # should never be added to the path.
5239 2004-06-11 Jeffrey Stedfast <fejj@ximian.com>
5241 * providers/imap4/camel-imap4-summary.c
5242 (camel_imap4_summary_flush_updates): Don't bother scanning summary
5243 info if EXISTS was 0.
5244 (camel_imap4_summary_set_uidvalidity): Emit the folder_changed
5245 event after clearing the summary.
5246 (camel_imap4_summary_expunge): Emit the folder_changed event after
5247 removing the message from the summary.
5248 (camel_imap4_summary_set_exists): Only set exists_changed if the
5249 new and old exists values are different.
5250 (imap4_fetch_all_add): Emit a folder_changed signal if any new
5252 (imap4_fetch_all_update): Emit a folder_changed event if any uids
5253 were removed or otherwise updated.
5254 (camel_imap4_summary_expunge): Use seqid-1 to determine the actual
5256 (camel_imap4_summary_flush_updates): Added some logic to
5257 distinguish between EXISTS value changing because it changed and
5258 because messages got expunged.
5260 * providers/imap4/camel-imap4-folder.c (imap4_sync): Flush updates
5261 after an EXPUNGE and don't unset expunge if we didn't delete
5262 anything (the logic was wrong anyway).
5263 (imap4_refresh_info): Implemented.
5265 2004-06-10 Jeffrey Stedfast <fejj@ximian.com>
5267 * providers/imap4/camel-imap4-engine.c
5268 (camel_imap4_engine_handle_untagged_1): Don't always try and parse
5269 a RESP-CODE in the BYE case as the RESP-CODE is optional.
5271 2004-06-10 Jeffrey Stedfast <fejj@novell.com>
5273 * providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
5274 If flags does not include FOLDER_INFO_FAST, get the total/unread
5275 counts for the folder-info.
5277 * providers/imap4/camel-imap4-engine.c (engine_parse_status):
5279 (camel_imap4_engine_handle_untagged_1): Don't handle untagged
5280 STATUS responses anymore. Let the STATUS requestor handle them
5283 * providers/imap4/camel-imap4-utils.c
5284 (camel_imap4_untagged_status): New function to parse untagged
5287 2004-06-10 Not Zed <NotZed@Ximian.com>
5289 * camel-filter-driver.c (camel_filter_driver_filter_message): add
5291 (open_folder): only ignore the get_folder exception if we have a
5292 default folder, otherwise don't. See #59727.
5294 * providers/nntp/camel-nntp-store.c (camel_nntp_command): move the
5295 stream based checking into the loop, after we connect. Fixes a
5298 2004-06-09 Jeffrey Stedfast <fejj@novell.com>
5300 * camel-gpg-context.c (gpg_verify): Fixed a case where it was
5301 possible to double-free the gpg context.
5302 (gpg_verify): If we don't have a public key, then the signature is
5305 2004-06-09 Jeffrey Stedfast <fejj@ximian.com>
5307 * camel-gpg-context.c (gpg_verify): Don't assign trust to be
5308 UNKNOWN if gpg sent us a NODATA status.
5310 2004-06-07 Jeffrey Stedfast <fejj@novell.com>
5312 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
5313 Load the entire summary, not just the summary header. This way
5314 when the user opens the folder, we don't do a complete re-sync
5315 with the server unnecessarily.
5317 * providers/imap4/camel-imap4-summary.c (untagged_fetch_all): New
5318 info's always have a uid of "", so don't checkagainst NULL.
5320 2004-06-06 Jeffrey Stedfast <fejj@ximian.com>
5322 * providers/imap4/camel-imap4-store.c (imap4_rename_folder):
5323 Implemented, mostly. Still need to update state on the renamed
5324 folder object if instantiated and rename the on-disk cache
5327 * providers/imap4/camel-imap4-folder.c
5328 (camel_imap4_folder_finalize): Free the cachedir.
5329 (camel_imap4_folder_new): Init the cachedir and load the saved
5330 summary before updating it against the server summary.
5332 * providers/imap4/camel-imap4-store.c
5333 (camel_imap4_store_finalize): Free the storage_path.
5334 (imap4_construct): Init the storage_path.
5336 2004-06-04 Jeffrey Stedfast <fejj@novell.com>
5338 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
5339 Initialise the folder->summary and force an update of the message
5340 info cache by selecting the folder and flushing the updates to the
5341 imap4 summary object.
5343 * providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
5344 Lock the connect_lock before we check if the engine is NULL and
5345 after we connect (assuming we need to), initialise the engine
5347 (imap4_get_folder_info): Doh. Need to escape the "'s in the LIST
5349 (imap4_get_folder): Same.
5351 * camel-stream-buffer.c (stream_flush): Fixed to work
5352 properly. After we've flushed the buffer, we want to set sbf->ptr
5353 to sbf->buf, we don't want to do sbf->ptr += written, that'll just
5354 corrupt our next write.
5356 * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
5357 Duh. If the user doesn't care about SSL/TLS - use USE_SSL_NEVER,
5360 * camel-tcp-stream-ssl.c (stream_flush): Always just return 0,
5361 don't try to PR_Sync() - fsync on a socket causes an error.
5363 * providers/imap4/camel-imap4-command.c
5364 (camel_imap4_command_step): Set exceptions when write/flush fail.
5366 * providers/imap4/camel-imap4-engine.c
5367 (camel_imap4_engine_take_stream): Set an exception in the case
5368 where we get an unexpected greeting from the server.
5370 * providers/imap4/camel-imap4-store.c (imap4_create_folder):
5371 store->dir_sep no longer exists, so query the engine for the
5372 directory separator for the parent_folder.
5373 (imap4_build_folder_info): CamelFolderInfo no longer has a path
5376 2004-06-03 Not Zed <NotZed@Ximian.com>
5378 * providers/nntp/camel-nntp-store.c (camel_nntp_command):
5379 disconnect if we get an io error or user cancellation.
5380 (nntp_disconnect_online): reset current folder.
5381 (connect_to_server): and here too just to make sure.
5383 * providers/nntp/camel-nntp-folder.c (nntp_folder_sync_online):
5384 only save the summary, don't update from server, thats what
5386 (nntp_folder_download_message): fix exception handling.
5387 (nntp_folder_cache_message): same.
5388 (nntp_folder_get_message): ditto, plus major cleanup.
5389 (nntp_folder_download_message): take combined uid so it can cache
5390 and lookup properly. duh.
5392 * providers/nntp/camel-nntp-store.c
5393 (nntp_store_get_subscribed_folder_info): if not fast, then open
5394 the folder, and update it. Yeah i've given up trying to worry
5395 about performance vs usability.
5397 * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check):
5398 update the storesummary if we update the folder summary. Hmm,
5399 isn't duplicated data meant to be a bad thing? :P
5401 * providers/nntp/camel-nntp-store.c (camel_nntp_store_set_folder):
5402 removed, now handled by nntp_command.
5403 (nntp_connected): removed, now handled by nntp_command.
5405 * camel-string-utils.c (camel_tolower): added ascii to-lower
5407 (camel_toupper): and upper, for completeness.
5409 * camel-store-summary.c (CAMEL_STORE_SUMMARY_VERSION): bumped file
5410 version by 1. This is a mess, version 1 files treated the
5411 bitfield 'flags' with bit number values not bits. Messy.
5413 * providers/nntp/camel-nntp-store-summary.c (store_info_save):
5414 write last/first count.
5415 (CAMEL_NNTP_STORE_SUMMARY_VERSION): bump version to 1.
5416 (store_info_load): if we're loading >= version 1, then load
5419 * providers/nntp/camel-nntp-store.c
5420 (nntp_store_get_folder_info_all): pass the whole line to
5421 store_info_from_line, dont strip last/first info.
5422 (nntp_store_info_update): renamed from info_new_from_line. only
5423 add if not present. handle updates, try and handle unread counts
5424 and readonly status.
5426 2004-06-02 Not Zed <NotZed@Ximian.com>
5428 * providers/nntp/camel-nntp-store.c: setup xover once we've
5431 * providers/nntp/camel-nntp-summary.c: (xover_setup): moved to
5434 * providers/nntp/camel-nntp-folder.c (folder_check)
5435 (folder_check_free, camel_nntp_folder_new): remove async summary
5438 * providers/nntp/camel-nntp-store.c (camel_nntp_command): take
5439 exception argument again, and folder argument. do retry logic and
5440 auth logic differently.
5441 (camel_nntp_raw_command): raw command interface, dont try
5442 reconnect or anything fancy. pass i/o errors straight out, etc.
5443 (camel_nntp_try_authenticate): change to return return codes &
5446 * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_new):
5447 just take path argument.
5448 (camel_nntp_summary_check): take a store, and a folder name.
5449 (add_range_head, add_range_xover): remove the time based update
5450 events, they never had any effect anyway. Take store argument.
5451 (xover_setup): take store argument.
5453 * camel-folder-search.c (search_match_threads): remove debug.
5455 2004-06-01 Not Zed <NotZed@Ximian.com>
5457 ** A few fixes for better rfc compliance, and cleaner code.
5459 * camel-mime-utils.c (header_encode_param): a bunch of logic
5460 cleanups with new util functions.
5461 (header_decode_init): setup a new type ATTR_CHAR, for
5464 * tests/misc/test2.c (main): new test for rfc2184 stuff.
5466 * camel-mime-utils.c (header_convert): helper to convert between
5468 (rfc2184_decode): fix a bunch of logic problems and use the helper
5469 above to simplify code.
5470 (decode_param_token): removed, not needed.
5471 (header_decode_rfc2184_param): removed, not needed.
5472 (header_decode_param): removed, not needed. ugh.
5473 (header_decode_param_list): completely rewritten, hence lack of
5476 2004-05-31 Jeffrey Stedfast <fejj@ximian.com>
5478 * camel-mime-filter-gzip.c (camel_mime_filter_gzip_finalize):
5479 Don't leak the zlib stream internals.
5481 2004-05-27 Jeffrey Stedfast <fejj@novell.com>
5485 * providers/imap/camel-imap-store.c (camel_imap_store_readline):
5486 Don't override the exception with g_strerror() since presumably
5487 camel_imap_store_is_connected() will have set that for us (and
5488 will have a much more accurate exception anyway).
5490 2004-05-26 Dan Winship <danw@novell.com>
5492 * camel-store.c (camel_store_get_trash): If the store is not a
5493 vtrash store, just invoke the virtual method. (In particular,
5494 don't assume that the trash folder's name is CAMEL_VTRASH_NAME).
5495 If it is a vtrash store, just let camel_store_get_folder() do the
5496 work since it's duplicated there anyway. #57114
5497 (camel_store_get_junk): Likewise.
5499 2004-05-25 Sivaiah nallagatla <snallagatla@novell.com>
5500 * providers/groupwise/came;-gw-listener.c (add_addressbook_sources):
5501 set port property on e-source
5503 2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com>
5505 * providers/groupwise/camel-gw-listener.c (lookup_account_info):
5506 return NULL when there is no existing gw account with same uid
5508 2004-05-25 Not Zed <NotZed@Ximian.com>
5510 * camel-store.c (camel_folder_info_build_path): removed.
5512 * camel-store.h (CamelFolderInfo): removed 'path', fixed all
5514 (struct _CamelStore): removed 'dir_sep' fixed all uses.
5516 2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com>
5518 * providers/groupwise/camel-gw-listener.c (add_addressbook_sources)
5519 (add_calendar_tasks_sources) : remove /soap part from uri.
5520 make port as a e-source property instead of putting it in uri
5521 to amek the uris same as that of mail for password sharing
5523 2004-05-24 Not Zed <NotZed@Ximian.com>
5525 * camel-mime-utils.c (camel_header_newsgroups_decode):
5526 fix/rearrange logic. It was using the wrong working pointer.
5528 2004-05-24 Sivaiah Nallagatla <snallagatla@novell.com>
5530 * camel-provider.h: Added CAMEL_PROVIDER_CONF_HIDDEN to
5531 conf item type enum. This is used by groupwise provider
5533 * providers/groupwise/camel-groupwise-provider.c: Added
5534 CAMEL_PROVIDER_CONF_HIDDEN to groupwise_conf_entries to pass the
5537 * providers/imap/camel-imap-store.c (imap_auth_loop): Read the
5538 auth-domain property from imap url and pass it camel sesstion apis
5540 2004-05-22 Not Zed <NotZed@Ximian.com>
5542 * camel-store.c: oops, forgot folder_created. Removed locking, the
5543 object bag serialises stuff for us.
5544 (camel_store_get_junk): same.
5546 ** Another unread count bug, #58814.
5548 * camel-store.c (camel_store_class_init): added a folder_opened
5550 (camel_store_get_folder): emit a folder_opened event whenever we
5551 [re] open the physical folder.
5553 2004-05-21 Jeffrey Stedfast <fejj@novell.com>
5555 * providers/imap/camel-imap-store.c (connect_to_server): Added a
5556 workaround for broken IMAP. Hopefully by forcing only the IMAP4
5557 command subset, we can work around their suckage.
5559 2004-05-21 Not Zed <NotZed@Ximian.com>
5561 * camel-session.c (camel_session_get_password): added a 'domain'
5562 argument, and rearragned arguments to be prettier and more
5563 consistent. Fixed all callers.
5564 (camel_session_forget_password): added a domain argument. Fixed
5569 * camel-folder.c (set_message_flags): if system flags change, then
5570 don't trigger a folder changed event.
5572 * camel-folder-summary.h (CAMEL_MESSAGE_SYSTEM_MASK): added this
5573 to indicate which flags are internal/apps not interested in.
5575 * camel-folder.c (filter_free): rearrange and use some helpers.
5576 (folder_changed): if we're frozen, dont go firing off threads to
5577 do any processing on each change, wait until we're called
5578 unfrozen. Slight code rearragnement.
5579 (filter_filter): add progress to junk learn/unlearn, and separate
5582 2004-05-19 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
5584 Fix for #58738 ja_JP.UTF-8: Evolution crashes when certain
5585 ASCII/non-ASCII combination is used in mail subject
5587 * camel-mime-utils.c (camel_header_encode_string) Use
5588 camel_mime_is_lwsp for determining word separators,
5589 according to rfc822 (which's also same for rfc2047).
5590 g_unichar_isspace as word separator is illegal.
5592 2004-05-20 Jeffrey Stedfast <fejj@novell.com>
5594 Fixes bug #42295 and the infinite loop part of bug #58766 (these 2
5595 bugs are almost identical, except the server responses are broken
5598 * providers/imap/camel-imap-folder.c (imap_update_summary): Remove
5599 the kludge to re-SELECT the folder to force a re-FETCH of
5600 message-info's. This 1) doesn't do what it was meant to do and 2)
5601 has a tendency to cause infinite loops with broken servers such as
5603 (imap_update_summary): Rework the loop that adds messages to the
5604 summary such that if we encounetr an error, we break out and set
5605 an exception (we can keep the messages up to the point of failure,
5606 but none after that because otherwise our uid-to-seqid mapping
5607 would be inconsistant with that of the server and could
5608 potentially cause data loss).
5610 2004-05-20 Not Zed <NotZed@Ximian.com>
5612 * camel-exception.c (camel_exception_setv): re-arrange the code so
5613 exception debug will print the expanded description.
5614 (camel_exception_set): print exception debug.
5616 * providers/pop3/camel-pop3-folder.c (pop3_get_message): same.
5618 * providers/local/camel-mh-folder.c (mh_get_message) *
5619 providers/local/camel-mbox-folder.c (mbox_get_message): *
5620 providers/local/camel-maildir-folder.c (maildir_get_message):
5621 Don't use INVALID_UID for errors which are more system related.
5622 And sync up all the error messages.
5624 * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
5625 oops, poke the right uid to get the article number.
5626 (nntp_folder_cache_message): & here too. Somehow fixes #58700,
5627 but i don't know why.
5629 2004-05-19 Not Zed <NotZed@Ximian.com>
5631 * camel-folder.c (transfer_message_to): copy the messageinfo
5632 rather than reference the source folder's one, we poke its flags
5633 variable if the message is deleted. And dont re-delete the
5634 message if its already deleted.
5636 * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
5637 use the article number instead of the messageid. Some servers are
5639 (nntp_folder_cache_message): same. See #58655.
5641 * camel-smime-context.c (sm_verify_cmsg): import the certs as
5642 UsageEmailRecipient as well as signer, and also save the certs
5647 * camel-vee-folder.c (vee_sync): don't rebuild auto-type vfolders.
5648 they should always be consistent and it saves a lot of unecessary
5651 * camel-store.c (store_sync): we don't want to sync any vfolders
5652 as part of the store sync call. its used for a different purpose
5653 in vFolders. oh well its a hack.
5655 2004-05-18 Not Zed <NotZed@Ximian.com>
5657 * providers/local/camel-maildir-store.c (fill_fi): do the same
5658 load of mailbox if we're in slow mode as we did for maildir.
5661 * camel-disco-folder.c (disco_expunge_uids): check for NULL
5662 implementation before calling it.
5663 (disco_sync): similar. Fixes crash #58278.
5665 2004-05-17 Jeffrey Stedfast <fejj@novell.com>
5667 * camel-folder-search.c (search_match_threads): Fixed a string type-o.
5669 * camel-smime-context.c (sm_verify_cmsg): Fixed some spelling mistakes.
5671 * camel-gpg-context.c (gpg_decrypt): If the encrypted block was
5672 also signed, set the signature verification status on the Validity
5675 2004-05-17 Not Zed <NotZed@Ximian.com>
5679 * providers/imap/camel-imap-store.c (imap_get_trash)
5680 (imap_get_junk): similar to below.
5682 * providers/local/camel-local-store.c (local_get_trash)
5683 (local_get_junk): set state file on trash/junk to something we know
5686 2004-05-17 Not Zed <NotZed@Ximian.com>
5687 * providers/local/camel-mh-store.c (fill_fi): if we have no folder
5688 in-memory, load it if we're not doing it fast to get really up to
5689 date unread counts. #57616.
5691 2004-05-14 Not Zed <NotZed@Ximian.com>
5693 * camel-store.c (camel_store_create_folder): don't allow creation
5694 of Trash or Junk folders.
5695 (camel_store_rename_folder): similar for rename. #57250.
5697 2004-05-13 Not Zed <NotZed@Ximian.com>
5699 * camel-folder-summary.c (summary_build_content_info): set secure
5700 flag if we have a known security type.
5701 (flag_names[]): Added secure bit.
5702 (summary_build_content_info_message): set secure flag as
5704 (summary_build_content_info_message): dont set attachments for
5705 simple types (non text), only base it on multipart/* stuff.
5706 (summary_build_content_info): same.
5708 * camel-folder-summary.h: added SECURE flag. Indicates signed or
5711 2004-05-12 Jeffrey Stedfast <fejj@novell.com>
5713 * providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
5714 Ignore PERMANENTFLAGS if it gives us an empty set. Works around
5715 broken IMAP servers like the one in bug #58355.
5717 2004-05-12 Not Zed <NotZed@Ximian.com>
5719 * camel-folder-search.c (search_threads): changed to match_threads.
5720 (camel_folder_search_search): remove thread matching stuff from here.
5722 2004-05-11 Jeffrey Stedfast <fejj@novell.com>
5724 * camel-smime-context.c (sm_signing_cmsmessage): Fixed a
5725 type-o. Fixes bug #58348.
5727 2004-05-10 Jeffrey Stedfast <fejj@novell.com>
5729 * camel-mime-filter-gzip.[c,h]: New class for zipping/unzipping
5732 * camel-mime-filter-yenc.[c,h]: New class for encoding/decoding
5733 the crack known as YEncode.
5735 2004-05-07 Not Zed <NotZed@Ximian.com>
5737 * camel-folder-thread.c (thread_summary): properly set the parent
5738 nodes for the re-parented phantom-node children. Wasn't that fun
5741 * camel-folder-thread.h: make order and re bitfields, saves 4
5744 2004-05-06 Not Zed <NotZed@Ximian.com>
5746 * camel-digest-folder.c (digest_search_by_expression)
5747 (digest_search_by_uids):
5748 * providers/nntp/camel-nntp-folder.c (nntp_folder_search_by_expression)
5749 (nntp_folder_search_by_uids):
5750 * providers/imap/camel-imap-folder.c (imap_search_by_expression)
5751 (imap_search_by_uids):
5752 * providers/local/camel-local-folder.c (local_search_by_expression)
5753 (local_search_by_uids): use camel_folder_search_search & some minor cleanups.
5755 * camel-folder-search.c (search_threads): keep track of the match
5756 threads option for this search.
5757 (camel_folder_search_match_expression): Removed, not used anymore.
5758 (camel_folder_search_search): new api entry point for searching, a
5759 bit easier to use and needed for thread matching.
5761 * camel-folder-search.c (camel_folder_search_search): new search
5762 api entry point, take a full summary and optionally a subset of
5763 uids to match against.
5764 (search_match_all): use the uids' passed in to only search a
5767 * providers/imap/camel-imap-store.c (connect_to_server): set
5768 nodelay and keepalive on the socket.
5770 * camel-file-utils.c (camel_read): put a timeout on the select.
5771 Logic shuffle to match the ssl stuff.
5772 (camel_write): Similar.
5774 * camel-tcp-stream-ssl.c (stream_connect): remove timeout, use
5775 CONNECT_TIMEOUT directly.
5776 (stream_read): put a timeout on the poll. IO_TIMEOUT. And a
5777 little logic shuffle.
5778 (stream_write): similar.
5779 (CONNECT_TIMEOUT): make this 4 minutes === tcp-raw timeout.
5781 2004-05-05 Not Zed <NotZed@Ximian.com>
5783 * providers/imap/camel-imap-folder.c (get_message_simple): dont
5784 set X-Evolution-Source here anymore, set in caller.
5785 (imap_get_message): move the busted server get into the retry
5786 loop. only leave the simple cache test outside of it.
5788 2004-05-04 Jeffrey Stedfast <fejj@ximian.com>
5790 * camel-session.h: Get rid of #ifdef ENABLE_THREADS stuff, that
5791 was done away with a while back and is causing problems for 3rd
5792 parties trying to use camel unless they explicityly #define
5793 ENABLE_THREADS in their code.
5795 2004-05-04 Christian Kellner <gicmo@xatom.net>
5797 * providers/groupwise/camel-gw-listener.h: Fixed typo.
5799 2004-05-04 Not Zed <NotZed@Ximian.com>
5803 * camel-vee-folder.c (subfolder_renamed_update): when the
5804 subfolder gets renamed, remove all the old uid's and add the new
5805 ones (since the uid is based on the subordinate folder name).
5806 (subfolder_renamed): listen to renamed folder events.
5808 * providers/local/camel-mbox-store.c (get_folder_info): if we're
5809 getting a single folder with no children, make sure we fill the
5810 counts out. Fixes some rename strangeness.
5812 * camel-vee-folder.c (camel_vee_folder_add_folder): hook onto the
5813 folder renamed signal.
5814 (camel_vee_folder_finalise): unhook folder_renamed signal.
5815 (camel_vee_folder_remove_folder): same.
5817 2004-05-03 Not Zed <NotZed@Ximian.com>
5821 * camel-vee-folder.c (camel_vee_folder_add_folder): use the
5822 folder's change log and frozen count, not our copy.
5823 (vee_thaw): dont maintain our frozen count.
5825 (folder_changed_change): if we get changed messages that dont
5826 match, make sure they're also propagated as a change too.
5828 * camel-private.h: remove the freeze_count from
5829 camelveefolderprivate. We already have that in the camel folder
5832 2004-04-30 Priit Laes <amd@tt.ee>
5834 * providers/nntp/camel-nntp-summary.c: Fix typo. #53466.
5836 2004-04-28 Jeffrey Stedfast <fejj@ximian.com>
5838 * providers/imap/camel-imap-folder.c: Change the UID_SET_LIMIT to
5839 768 (something <1000 octets as suggested by rfc2683). Fixes bug
5842 * camel-smime-context.c: Mark exception strings for translation
5843 and fixed a spelling mistake.
5845 2004-04-27 Not Zed <NotZed@Ximian.com>
5849 * camel-vee-store.c (vee_get_folder_info): translate Unmatched in
5850 the folder display name.
5852 * camel-store.c (add_special_info): dont translate full_name or
5853 path, only do that for name.
5855 2004-04-23 Sarfraaz Ahmed <asarfraaz@novell.com>
5857 * camel-provider.h: Added HAS_LICENSE flag for allowing camel
5858 providers to display license file.
5860 2004-04-22 Not Zed <NotZed@Ximian.com>
5862 * providers/imap/camel-imap-folder.c (imap_expunge_uids_online)
5863 (imap_expunge_uids_resyncing): Send a flag list rather than
5864 \Deleted by itself. See #57381.
5866 2004-04-21 Jeffrey Stedfast <fejj@ximian.com>
5868 * providers/imap4/camel-imap4-folder.c (imap4_sync_changes): Don't
5869 bother doing any work if perm_flags is 0.
5871 2004-04-21 Sivaiah Nallagatla <snallagatla@novell.com>
5873 * providers/groupwise/Makefile.am: added CAMEL_LIBS to LIBADD
5875 * providers/groupwise/camel-gw-listener.c
5876 (get_addressbook_names_from_server): added new function to get
5877 addres book names from server.
5878 (add_addressbook_sources) (modify_addressbook_sources) : changed
5879 the implementation to use address book returned form above call
5880 while creating e-sources
5882 2004-04-21 Not Zed <NotZed@Ximian.com>
5884 * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): set
5885 the meta data file on nntp folders.
5887 * camel-disco-folder.c (disco_refresh_info_online): implement
5888 dummy virtual method.
5890 * providers/nntp/camel-nntp-folder.c
5891 (nntp_folder_refresh_info_online): implement. Fixes #57280.
5893 2004-04-19 Jeffrey Stedfast <fejj@ximian.com>
5895 * providers/imap4/camel-imap4-folder.c (untagged_fetch): Fixed to
5896 not expect ]'s as part of the BODY atom token.
5898 2004-04-16 Jeffrey Stedfast <fejj@ximian.com>
5900 * camel-vee-store.c (change_folder): (flags & 0) will never be
5901 true. Fixes bug #56982.
5903 2004-04-15 Jeffrey Stedfast <fejj@ximian.com>
5905 * providers/imap/camel-imap-utils.c: Changed imap_atom_specials[]
5906 to not treat ']' as an atom char (as per rfc3501). Fixes bug
5909 2004-04-14 Jeffrey Stedfast <fejj@ximian.com>
5911 * providers/imap/camel-imap-store.c
5912 (imap_check_folder_still_extant): Use %F instead of %S so that the
5913 folder name gets properly converted from using '/' path delimeters
5914 to whatever the native character the server uses. Should fix bug
5917 2004-04-14 Not Zed <NotZed@Ximian.com>
5919 * camel-disco-store.c (set_status): do offline mail syncing (only
5920 for open folders so far). If we fail doing syncing or store sync,
5923 2004-04-13 Jeffrey Stedfast <fejj@ximian.com>
5925 * providers/imap/camel-imap-store.c (get_folder_online):
5926 Rearranged some error checking code to fix bug #56405.
5928 2004-04-13 Not Zed <NotZed@Ximian.com>
5930 * camel-folder.c (folder_getv): implement the new counts, and get
5931 them all atomically so they're only calculated once and can return
5934 * camel-folder.h: Added CAMEL_FOLDER_DELETED, CAMEL_FOLDER_JUNKED,
5935 and CAMEL_FOLDER_VISIBLE args, to support client display of
5938 2004-04-13 Jeffrey Stedfast <fejj@ximian.com>
5940 * camel-folder.h (camel_folder_delete_message): Fix NotZed's fix
5941 to not mark messages as unseen. Fixes bug #56879.
5943 2004-04-13 Sivaiah Nallagatla <snallagatla@novell.com>
5945 * providers/groupwise/camel-gw-listener.c
5946 (add_addressbook_sources): change the auth type string from
5947 Password to plain/password
5949 2004-04-12 Jeffrey Stedfast <fejj@ximian.com>
5953 * camel-gpg-context.c (gpg_verify): Don't rely on the exit code of
5954 gpg, we already save enough state to decide if the sig is valid
5955 without it. Modified to only set BAD if gpg->validsig and
5956 gpg->nopubkey are both FALSE. If we get a NO_PUBKEY status
5957 message, then it simply means that the the sender could not be
5959 (gpg_ctx_parse_status): Listen for NO_PUBKEY status messages.
5961 2004-04-11 Sivaiah Nallagatla <snallagatla@novell.com>
5963 * providers/groupwise/camel-gw-listener.c
5964 (add_addressbook_sources) (modify_addressbook_sources) : add
5967 2004-04-09 Jeffrey Stedfast <fejj@ximian.com>
5969 * providers/imap/camel-imap-provider.c: Fix capitalisation of the
5970 "mailcheck" section title and move it to the top (so it matches
5973 * providers/imap/camel-imap-folder.c (imap_get_message): Fetch the
5974 entire message in one fell swoop even if the message size is
5975 larger than 5k *if* the message is a single part. Fixes bug #56686.
5977 2004-04-08 Jeffrey Stedfast <fejj@ximian.com>
5979 * providers/imap/camel-imap-store.c (get_folder_online): Changed
5980 (!flags & _CREATE) to (!(flags & _CREATE))
5981 (get_folder_online): Do what create_folder() does and if the
5982 parent folder has \NoInferiors set but contains no messages,
5983 delete the parent folder and recreate it before creating the child
5984 folder. Fixes bug #56651.
5986 2004-04-08 Not Zed <NotZed@Ximian.com>
5988 * camel-folder.h (camel_folder_delete_message): always set the
5989 seen flag when we delete a message. I demand that this may, or
5990 may not, fix #56549.
5992 * camel-folder.c: include camel-debug.h
5993 (camel_folder_set_message_flags): fixed the doco slightly (well
5994 reversed the flag and set explanation) and give an example.
5996 * providers/local/camel-mbox-folder.c
5997 (mbox_set_message_user_flag): message changed to folder_changed.
5998 (mbox_set_message_user_tag): ditto.
6000 * camel-vee-folder.c (camel_vee_folder_finalise): dont hook onto
6002 (camel_vee_folder_add_folder): or unhook.
6003 (camel_vee_folder_remove_folder): "
6004 (message_changed): or proxy.
6006 * camel-folder.c (camel_folder_class_init): removed the
6007 message_changed event - its redundant, and covered by
6008 folder_changed, and just makes life difficult for everything using
6009 message_changed/folder_changed (and nothing uses it anyway).
6010 (message_changed): removed.
6011 (set_message_user_flag): emit a folder_changed event instead of
6013 (set_message_user_tag): "
6014 (set_message_flags): "
6016 * camel-object.h: revered the CAMEL_OBJECT_TYPE change, it should
6017 be a global variable access.
6019 2004-04-06 Jeffrey Stedfast <fejj@ximian.com>
6021 * providers/imap4/camel-imap4-folder.c: Added mutex locking where
6024 * providers/imap4/camel-imap4-store.c: Added mutex locking where
6027 * camel-folder-summary.h (CAMEL_FOLDER_SUMMARY_TYPE): Defined.
6029 * camel-object.h (CAMEL_OBJECT_TYPE): Fixed.
6031 * providers/imap4/camel-imap4-folder.c
6032 (camel_imap4_folder_utf7_name): Implemented.
6034 * providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
6035 Use camel_folder_info_build() to build the folder-info tree.
6037 2004-04-06 Not Zed <NotZed@Ximian.com>
6039 * camel-debug.c: #if 0 out the sys/debugreg stuff.
6043 * providers/imap/camel-imap-folder.c (get_content): more debug!
6044 (get_content): if we have no content-type header set on a sub-part
6045 of a multipart/digest, then we need to set it to message/rfc822 as
6046 in the multipart/digest rfc (2046 or so?).
6048 * camel-folder.c (camel_folder_get_message): output this stuff as
6051 * providers/imap/camel-imap-folder.c (imap_get_message): add some
6053 (get_content): get xx.TEXT rather than xx if we're from a message
6058 * camel-folder.c (camel_folder_transfer_messages_to): do not lock
6060 (transfer_message_to): call the main entry point for get message
6065 * camel-vee-store.c (vee_delete_folder): delete the state file if
6068 * camel-object.c (camel_object_state_write): create the parent dir
6069 if we need to. Also spit a warning if we fail in the end.
6071 * camel-vee-folder.c (camel_vee_folder_new): set the persistent
6072 state file location.
6073 (vee_sync): write the state file when we sync.
6075 2004-04-05 Not Zed <NotZed@Ximian.com>
6077 * providers/imap/camel-imap-store.c (get_folders): dont add
6078 folders to folders_out here, only in get_folders_add_folders.
6080 * camel-store.c (camel_folder_info_build): simplify 'list append'
6081 since we have next pointer at the head of the struct.
6083 * providers/imap/camel-imap-store.c (create_folder): fixed
6084 "containes" spelling count.
6085 (get_folder_online): "
6086 (get_folders_add_folders): duh, add the folder info to the
6089 2004-04-02 Jeffrey Stedfast <fejj@ximian.com>
6091 * camel-folder.c (camel_folder_get_deleted_message_count): New
6092 function to get the deleted message count (used for Outbox count
6093 which is total minus deleted).
6095 2004-04-02 Not Zed <NotZed@Ximian.com>
6097 * camel-exception.c (w): turn this on, this should always be on,
6098 it points to real bugs in the code.
6100 * camel-folder-summary.c (summary_build_content_info): dont set
6101 attachments if its a signature block.
6102 (summary_build_content_info_message): same.
6104 2004-04-01 Jeffrey Stedfast <fejj@ximian.com>
6106 * camel-exception.c (w): Wrap annoying exeption warnings with w().
6108 2004-03-30 Jeffrey Stedfast <fejj@ximian.com>
6110 * providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
6111 Partially implemented.
6112 (imap4_get_folder): Implemented.
6114 2004-03-30 Jeffrey Stedfast <fejj@ximian.com>
6116 * camel-mime-utils.c (header_decode_param): Use
6117 header_decode_text() rather than rfc2047_decode_word() to decode
6118 the brokenly rfc2047 encoded param value string in case it is
6119 actually made up of multiple rfc2047 encoded words. Thanks to
6120 Andrei Nigmatulin for the fix.
6122 2004-03-30 Not Zed <NotZed@Ximian.com>
6124 * camel-store.c (camel_store_get_folder_info): added some debug to
6125 dump the whole folderinfo tree if store:folder_info is set.
6127 * providers/imapp/camel-imapp-driver.c: #if 0 out some code, to
6130 * camel-url-scanner.c: include ctype.h for isspace (wonder if it
6131 should use utf8 funcs?).
6133 2004-03-29 Not Zed <NotZed@Ximian.com>
6137 * providers/imap/camel-imap-store.c (get_folders): check the
6138 top-level folders list for duplicates as well.
6139 (get_folders_add_folders): split out the folder return merging
6140 code from get_folders. Absolute mess of crap to deal with more
6143 * camel-debug.c (camel_debug_start, camel_debug_end): some helpers
6144 to wrap debug output for atomicicity.
6146 2004-03-29 Jeffrey Stedfast <fejj@ximian.com>
6148 * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
6151 * providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
6152 If the namespace begins with "INBOX", canonicalise the INBOX
6153 portion (ie, make it all caps).
6155 * providers/imap4/camel-imap4-store.c (imap4_noop): Implemented.
6157 2004-03-29 Jeffrey Stedfast <fejj@ximian.com>
6159 * providers/imap/camel-imap-store.c (get_folder_status): Updated
6160 to actually parse the STATUS response into a list of item/value
6162 (create_folder): Updated for above change.
6163 (get_folder_counts): Only call get_folder_status() once (we can
6164 get both values with a single call now). Fixes a FIXME and might
6165 also fix bug #55784.
6167 * providers/local/camel-mbox-store.c (get_folder_info): Removed
6170 * providers/local/camel-local-folder.c
6171 (camel_local_folder_construct): Since the folder was *just*
6172 created, it shouldn't have any subfolders so set the
6173 CAMEL_FOLDER_NOCHILDREN flag (altho, ideally, we wouldn't be
6174 guessing these flags at all - rather we'd call get_folder_info()
6175 or some such). Fixes bug #56010.
6177 2004-03-29 Radek Doulik <rodo@ximian.com>
6179 * camel-mime-filter-tohtml.c (html_convert): close pre tag in case
6180 we just flush. I am not sure if it's still worth to check for
6181 inlen == 0 and handle it specially, but didn't want to make too
6186 2004-03-29 Not Zed <NotZed@Ximian.com>
6188 * providers/imap/camel-imap-store.c (get_folder_counts): use
6189 object_bag_peek instead of _get, since we dont want to clash/wait
6190 for reservations. More #56045 related fixes.
6191 (get_folder_counts): revert the lookup/hashtable stuff for the
6192 folder, and use object_bag_peek.
6194 * camel-object.c (camel_object_bag_peek): new method to get an
6195 object bag entry without worrying about if its reserved or not.
6197 * camel-gpg-context.c (gpg_verify): get the content-type off of
6198 the multipart-signed, not its container. This seems wrong
6199 ... but might fix #56084.
6201 * providers/imap/camel-imap-store.c (get_folder_counts): remove
6202 locking here, we're locked whne we enter.
6203 (fill_fi): call refresh_info unlocked. More for #56045.
6205 2004-03-28 Jeffrey Stedfast <fejj@ximian.com>
6207 * providers/imap4/camel-imap-folder.[c,h]: New source files
6208 implementing the CamelFolder class for the new IMAP4
6211 * providers/imap4/camel-imap-summary.[c,h]: New source files
6212 implementing the CamelFolderSummary class for the new IMAP4
6215 2004-03-26 Jeffrey Stedfast <fejj@ximian.com>
6217 * providers/imap/camel-imap-folder.c (imap_update_summary):
6218 Reverted imap.web.de fix.
6220 2004-03-26 Not Zed <NotZed@Ximian.com>
6222 * providers/local/camel-maildir-summary.c (flagbits[]): Added new
6223 maildir flags D for draft and commented P for forwarded.
6225 * providers/imap/camel-imap-store.c (get_folder_counts): Instead
6226 of looking up the folder in the object bag which will handle
6227 reservations and perhaps deadlock, just get the list of opened
6228 folders and use them if they're available. Should fix #56045.
6230 2004-03-25 Jeffrey Stedfast <fejj@ximian.com>
6232 * providers/imap4/camel-imap-engine.c
6233 (camel_imap_engine_parse_resp_code): No longer need to split ']'
6234 tokens from atom tokens due to a fixup in the ABNF grammar in
6237 * providers/imap4/camel-imap-specials.c: Changed ATOM_SPECIALS to
6238 include ']' (this is an addition in rfc3501).
6240 * providers/imap4/camel-imap-store.[c,h]: New Store class for
6241 IMAP. Implemnted a bunch of but still got a ways to go.
6243 2004-03-25 Jeffrey Stedfast <fejj@ximian.com>
6245 * providers/imap/camel-imap-folder.c (imap_update_summary): If the
6246 server is imap.web.de, just ask for all the headers rather than
6247 "HEADER.FIELDS.NOT (RECEIVED)". Actually, maybe we should always
6248 just query for the entire header block?
6249 (imap_get_message): If the server is brain-damaged (that's a
6250 technical term), always fetch the message in whole, never bother
6251 to try and fetch partial messages (Courier-IMAP gives us the wrong
6252 BODY responses fairly often).
6254 * providers/imap/camel-imap-store.c (connect_to_server): Set
6255 store->braindamaged to TRUE if we find the string "Courier-IMAP"
6258 2004-03-25 Jeffrey Stedfast <fejj@ximian.com>
6262 * providers/imap/camel-imap-store.c (create_folder): Don't allow
6263 the user to create folders with #, %, * or the directory separator
6264 in the folder name (added the checks for %, * and #).
6265 (get_folder_online): Add a check to make sure the folder name is
6266 sane before sending a CREATE (ie. we want to allow getting of
6267 folders with discouraged characters in them if they exist, but we
6268 don't want to allow the user to create them).
6270 2004-03-25 Martyn Russell <ginxd@btopenworld.com>
6272 * providers/smtp/camel-smtp-provider.c: Removed newline character
6273 from the provider description
6275 2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com>
6277 * providers/groupwise/camel-groupwise-provider.c: removed ldap
6278 seetings and added a settng for SOAP port
6280 * providers/groupwise/camel-gw-listner.h
6281 (add_calendar_tasks_sources, remove_calendar_tasks_sources),
6282 (modify_calendar_tasks_sources): read port number from url instead
6283 of hardcoding. Also removed code for adding e-sources for ldap
6284 address book and adding now e-sources for groupwise address book
6286 2004-03-24 Jeffrey Stedfast <fejj@ximian.com>
6288 * providers/imap4/camel-imap-engine.c (camel_imap_engine_literal):
6289 New convenience wrapper function.
6290 (engine_parse_status): Fixed to handle literal mailbox strings.
6292 * providers/imap4/camel-imap-command.c (camel_imap_command_newv):
6293 Changed how %L works - create the CamelIMAPLiteral for our caller
6294 instead of expecting them to create it for us. We can autodetect
6295 what type of object (stream vs data-wrapper) the literal is, so
6298 2004-03-23 Jeffrey Stedfast <fejj@ximian.com>
6300 * providers/imap/camel-imap-folder.c (imap_get_message): Reworked
6301 the else bit to fix a bug where if we had the BODY structure, we simply
6302 wouldn't try fetching the actual message.
6304 2004-03-23 Not Zed <NotZed@Ximian.com>
6306 * camel-exception.c (camel_exception_setv): use camel debug to add
6309 * camel.c (camel_init): call camel_debug_init().
6311 * camel-debug.c (camel_debug_init, camel_debug): new util stuff
6312 for extended debug options.
6314 * providers/imap/camel-imap-folder.c (imap_get_message): if we're
6315 supposed to be online, check we are online before proceeding.
6316 Actually major restructure so we re-try the fetch a couple of
6317 times first before failing. i.e. silent reconnect. See #55381.
6319 * providers/imap/camel-imap-store.c (get_folder_info_online):
6320 connect lock around this. was getting a race with mem corruption
6323 2004-03-22 Not Zed <NotZed@Ximian.com>
6325 * camel-mime-utils.c (camel_header_newsgroups_decode)
6326 (camel_header_newsgroups_free): decode newsgroups header into a
6331 * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check):
6332 NOOP if we're offline.
6334 * providers/nntp/camel-nntp-store.c (nntp_connected): spit a
6335 warning if we try to do stuff whilst offline, rather than crash.
6337 2004-03-19 Not Zed <NotZed@Ximian.com>
6339 * camel-disco-store.c (disco_connect): ref the diary before
6340 replaying it. it could get unreffed during replay if there's an
6341 error and we disconnect.
6343 * camel-store.c (camel_store_get_folder): no longer use
6344 folder_lock, we already have adequate serialisation code here or
6346 (camel_store_get_folder_info): same here.
6348 * providers/imap/camel-imap-store.h: remove async_thread thing.
6350 2004-03-17 Jeffrey Stedfast <fejj@ximian.com>
6352 * providers/imap/camel-imap-folder.c (imap_get_message): Checking
6353 that mi->content->type != NULL is no longer good enough to tell if
6354 a ContentInfo is complete (ie. contains the parsed BODY
6355 response). We need to check that th ContentInfo has children if
6356 the part is a multipart of message/rfc822 part. Apparently Zucchi
6357 didn't test his camel-folder-summary changes using IMAP.
6359 2004-03-17 Radek Doulik <rodo@ximian.com>
6361 * camel-folder-summary.h: use 1<<30 for CAMEL_MESSAGE_JUNK_LEARN,
6362 1<<17 was already used by imap provider and maybe others
6364 2004-03-17 Not Zed <NotZed@Ximian.com>
6366 * providers/local/camel-maildir-store.c: Reverted jeff's fix for
6367 #55018, since it wasn't tested, and doesn't work. Wrote an
6368 alternate implementation, and tested it at least once. Turns out
6369 it was a one line error, it still wasn't tested. Oh well, its
6374 * camel-disco-diary.c (camel_disco_diary_new): seek to the end of
6375 the file after we open it. c99 apparently says the file merely
6376 adds to the end of the file when you write, not that it is opened
6377 and positioned at the end of the file (linux's man pages are out
6380 * camel-folder-summary.c (content_info_new): setup the content
6381 type as well, from the headers.
6383 * providers/imap/camel-imap-summary.c
6384 (camel_imap_summary_add_offline): copy size from the source info.
6386 2004-03-15 Jeffrey Stedfast <fejj@ximian.com>
6388 * camel-folder.c (folder_rename): Always use '/' to derive the
6389 basename of the folder. folder->full_name is always the UNIX-path
6390 evrsion of the folder name, no matter what the actual path
6391 delimeter is on the underlying store.
6393 * providers/imap/camel-imap-store.c (get_folder_online): If the
6394 initial SELECT fails and CREATE is specified, clear the exception
6395 before attempting to CREATE, this way we don't have an exception
6396 set even if the CREATE passes. Fixes bug #55607.
6398 2004-03-16 Not Zed <NotZed@Ximian.com>
6400 * camel-mime-message.c (camel_mime_message_init): rever previous
6401 patch. We don't want to set the default mime/type, it'll break
6404 2004-03-15 Not Zed <NotZed@Ximian.com>
6406 * providers/local/camel-mbox-store.c (delete_folder): same as
6409 * providers/local/camel-local-store.c (delete_folder): NULL out
6410 str before looking up the state file using it. Otherwise we
6413 * camel-mime-parser.c (folder_scan_skip_line): we want to scan
6414 till in-end-1. If we've been called we're either at the end of
6415 data, or we know we have an end of line character within memory.
6416 Another case in Bug #53355.
6418 * providers/imap/camel-imap-folder.c (get_content, get_message):
6419 set the mime-type field on the content the same way as
6420 construct_from_stream does. Bug #55472.
6422 * camel-mime-message.c (camel_mime_message_dump): utility function
6423 to dump message content to stdout.
6424 (camel_mime_message_init): default mime type to message/rfc822.
6426 * camel.c (camel_init): change camel verbose debug to be an int, a
6427 bitmask of debug options.
6429 * camel-mime-utils.c (camel_header_location_decode): drop embedded
6430 whitespace characters, and don't do unquoting, etc. See rfc2557
6431 4.4.2 and rfc2017 3.1.
6433 2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
6435 * providers/smtp/camel-smtp-transport.c (smtp_set_exception): Now
6436 takes an argument to specify whether disconnecting when respbuf is
6437 NULL is safe (to prevent us from recursively disconnecting or
6438 disconnecting during a connect).
6440 2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
6444 * providers/smtp/camel-smtp-transport.c (smtp_helo): Instead of
6445 unreffing the streams, call camel_service_disconnect().
6449 (smtp_send_to): Ignore exceptions for smtp_rset(). Also, check
6450 that we are connected before we try to send (in Evolution's
6451 current usage scenario, this isn't a problem but in the future if
6452 we ever try to fire off several messages via the same smtp
6453 connection, it may be - especially if RSET failed during the
6456 2004-03-12 Radek Doulik <rodo@ximian.com>
6458 * camel-folder.c (folder_changed): clearn the learn bit only if
6461 2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
6463 Fixes for bug #55018.
6465 * providers/local/camel-local-folder.c
6466 (camel_local_folder_construct): Use camel_url_to_string() here
6467 too, so we properly encode the fragment.
6469 * providers/local/camel-mbox-store.c (get_folder_info): Use
6470 CamelURL to properly encode the fi->uri. Pass the CamelURL into
6471 scan_dir() so that scan_dir() can re-use it (rather than having to
6472 malloc/parse/free for each file/dir)
6473 (scan_dir): Use camel_url_to_string().
6475 * providers/local/camel-maildir-store.c (get_folder_info): Same as
6477 (scan_dir): Same as mbox. We also need to set the
6478 CAMEL_FOLDER_NOSELECT flag if appropriate.
6480 * providers/local/camel-mh-store.c (get_folder_info): Same as mbox
6482 (folders_scan): Now takes a url argument which we pass off to
6484 (recursive_scan): Same.
6485 (folder_info_new): Use camel_url_to_string().
6487 2004-03-11 Radek Doulik <rodo@ximian.com>
6489 * camel-folder.c (camel_folder_set_message_flags): watch for
6490 setting JUNK flag, if JUNK_LEARN is not set as well then reset
6492 (folder_changed): look for junk changes in uid_changed's messages,
6493 if these changes request junk filter learning
6494 (CAMEL_MESSAGE_JUNK_LEARN bit set) then prepare junk and nonjunk
6495 uid arrays, clear CAMEL_MESSAGE_JUNK_LEARN bit so that we don't
6497 (folder_changed): start filter thread if there's junk and/or
6499 (filter_filter): if junk/nonjunk arrays are non-NULL, call junk
6500 filter report to learn junk/non-junk messages
6501 (filter_free): free junk/nonjunk uids and arrays
6503 * camel-folder-summary.h: added CAMEL_MESSAGE_JUNK_LEARN to
6504 CamelMessageFlags, used when setting CAMEL_MESSAGE_JUNK flag to
6505 say that we request junk plugin to learn that message as
6508 2004-03-12 Jeffrey Stedfast <fejj@ximian.com>
6510 * providers/smtp/camel-smtp-transport.c (connect_to_server): If
6511 errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE or
6520 (smtp_set_exception): Here too.
6521 (smtp_auth): If the AUTH response code is not 334, then use
6522 smtp_set_exception() to get the most accurate error report we can.
6524 2004-03-11 Jeffrey Stedfast <fejj@ximian.com>
6526 * camel-object.c (cobject_state_read): Sanity check that count is
6527 <1024 and also use g_try_malloc so that we can recover if malloc
6530 2004-03-11 Not Zed <NotZed@Ximian.com>
6532 * providers/imap/camel-imap-store.c (no_such_folder): removed
6533 this. not sure what it was doing there, a 1 line funciton used
6535 (get_folder_online): pass exception to camel_imap_command. if we
6536 got a user cancel, pass it up. See #55388.
6537 (hash_folder_name, compare_folder_name): more g_ascii_strcasecmp
6540 2004-03-11 Not Zed <NotZed@Ximian.com>
6542 * camel-vee-store.c (vee_get_folder_info): we need to add the
6543 folderinfo always if we're recursive from top. Should fix #52965
6544 and maybe the other vfolders not showing on startup bug.
6546 * providers/imap/camel-imap-store.c (get_one_folder_offline):
6547 (parse_list_response_as_folder_info): turn off NOINFERIORS always,
6548 translate to nochildren.
6549 (imap_store_refresh_folders): check we're updating an imap folder,
6550 we could also have trash folders in the store too.
6552 2004-03-08 Not Zed <NotZed@Ximian.com>
6554 * camel-vee-store.c (vee_get_folder_info): setup virtual/system
6555 flags as appropriate.
6556 (change_folder): setup flags properly.
6558 * providers/nntp/camel-nntp-store.c
6559 (nntp_store_get_subscribed_folder_info): mark all folders as
6562 * providers/local/camel-mh-store.c (fill_fi): add this to setup
6564 (folder_info_new): call fill_fi to fill unread/total.
6565 (recursive_scan, folders_scan): ahh yeah, so wtf was i thinking,
6566 store->flags != get_folder_info flags!!!!
6568 * providers/local/camel-maildir-store.c (camel_folder_info_new):
6569 remove unread count arg & setup total.
6570 (fill_fi): setup total field.
6571 (scan_dir): remove the code that checked the directory directly -
6572 use fill_fi instead. It will more accurately reflect what you get
6573 when you visit the folder.
6574 (camel_folder_info_new): mark "." as a system folder.
6575 (scan_dir): try to setup children/no children flags properly.
6577 * providers/local/camel-mbox-store.c (fill_fi): setup total field.
6578 (scan_dir): init total.
6579 (get_folder_info): "
6581 2004-03-05 Not Zed <NotZed@Ximian.com>
6583 * providers/imap/camel-imap-store.c
6584 (parse_list_response_as_folder_info): mark INBOX as a system
6585 folder. Can't be renamed/deleted.
6586 (fill_fi): setup total field.
6587 (get_folder_counts): ditto.
6589 * camel-store.c (add_special_info): set the system folder flag.
6591 * camel-store.h: time to fix up the camelfolderinfo mess. fix
6592 some member names, and add some type fields. Fixed all uses.
6594 2004-03-04 Not Zed <NotZed@Ximian.com>
6598 * providers/imap/camel-imap-folder.c (get_content): if the parent
6599 isn't a message/rfc822 type, we don't want to get the section.TEXT
6600 for multipart/signed, we just want to get section.
6602 2004-03-03 Rodrigo Moya <rodrigo@ximian.com>
6604 * providers/groupwise/camel-gw-listener.c
6605 (add_calendar_tasks_sources): use "Calendar" and "Checklist" for the
6606 folder names, instead of "Default".
6607 (remove_calendar_tasks_sources): remove the correct folder.
6609 2004-03-03 Not Zed <NotZed@Ximian.com>
6611 * camel-operation.c (camel_operation_uncancel): attempt at
6612 uncancelling a cancelled operation.
6614 * camel-stream-filter.c (do_write, do_write): fun dun diddley un
6615 fun. Since we're writing a const buffer, we need to copy it
6618 2004-02-27 Not Zed <NotZed@Ximian.com>
6622 * camel-vtrash-folder.c (vtrash_append_message)
6623 (vtrash_transfer_messages_to): error/fail out if the user tries to
6624 copy messages to the trash.
6625 (vtrash_transfer_messages_to): use the destination bit not the
6626 source bit for moving messages to a vtrash folder.
6628 * camel-gpg-context.c (gpg_ctx_parse_status): ignore NODATA
6629 response, otherwise we abort in a meaningless way. See #52939.
6631 * providers/imap/camel-imap-utils.c: use g_ascii_str[n]casecmp
6633 * providers/imap/camel-imap-utils.c (imap_body_decode): fix the
6634 sense of the nil check for the subtype of a mutlipart. See
6637 2004-02-26 Not Zed <NotZed@Ximian.com>
6639 * camel-session.c (camel_session_check_junk_for_imap)
6640 (camel_session_set_check_junk_for_imap): removed.
6642 * providers/imap/camel-imap-provider.c: Add filter_junk and
6643 filter_junk_inbox options to the receive option page.
6645 * providers/imap/camel-imap-store.c (imap_setv, imap_getv): handle
6646 FILTER_JUNK and FILTER_JUNK_INBOX parameters.
6647 (imap_setv): conver to switch rather than if statement.
6648 (construct): handle url args for filter_junk and
6651 * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Set
6652 the folder's flags based on the stores junk settings.
6653 (imap_update_summary): remove the test for
6654 session_check_junk_for_imap, its handled per-store now.
6656 * camel-folder.c (folder_changed): only check for FILTER_RECENT or
6657 FILTER_JUNK to see if we need to do filtering.
6659 * camel-folder.h (CAMEL_FOLDER_FILTER_JUNK): renamed from
6660 CAMEL_FOLDER_SUPRESS_JUNK_TEST (and obviously inverted logic).
6662 2004-03-02 Jeffrey Stedfast <fejj@ximian.com>
6664 * providers/local/camel-mbox-summary.c
6665 (mbox_summary_encode_x_evolution): Overrides the parent method. We
6666 don't want to encode user flags/tags or the size of the header
6667 will change and force a complete rewrite of the mbox file.
6669 2004-02-25 Jeffrey Stedfast <fejj@ximian.com>
6671 * camel-filter-driver.c (camel_filter_driver_filter_folder): Free
6672 the uids *after* reporting Complete, otherwise we get an FMR if
6673 our caller didn't pass in the uids.
6675 * camel-sasl-gssapi.c (gssapi_challenge): #ifdef out another
6676 gss_release_buffer() call as this function causes memory
6677 corruption if using Heimdal's implementation of Kerberos5. Yay
6680 2004-02-25 Radek Doulik <rodo@ximian.com>
6682 * camel-folder.c (get_unread_message_count): do not avoid junk
6683 mails in unread count
6685 2004-02-25 Not Zed <NotZed@Ximian.com>
6687 * providers/imap/camel-imap-summary.h (CAMEL_IMAP_MESSAGE_RECENT):
6688 moved the RECNET flag into the folder area (bit 17-30).
6690 2004-02-24 Not Zed <NotZed@Ximian.com>
6694 * providers/imap/camel-imap-command.c (camel_imap_command): ref
6695 the folder before unreffing store->current_folder, incase they're
6696 the same. Do a select anyway.
6698 * providers/imap/camel-imap-folder.c (imap_refresh_info): keep the
6699 connect_lock for longer, imap_rescan for one assumes its locked.
6700 Fixes a race selecting the folder for refresh.
6702 2004-02-24 Jeffrey Stedfast <fejj@ximian.com>
6704 * camel-stream-process.c: #include <signal.h>, we don't need limits.h
6706 * camel-store.c (camel_store_folder_uri_equal): New function to do
6707 what camel_store_uri_cmp() was supposed to do.
6709 2004-02-23 Rodney Dawes <dobey@ximian.com>
6711 * providers/local/camel-mbox-store.c (scan_dir): If our folder has
6712 a subdir, but no actual children, then we need to unset the flag for
6713 CAMEL_FOLDER_CHILDREN
6717 2004-02-23 Jeffrey Stedfast <fejj@ximian.com>
6719 * camel-store.c (camel_store_uri_cmp): Removed. Useless/broken
6722 2004-02-20 Jeffrey Stedfast <fejj@ximian.com>
6724 * camel-provider.c (camel_provider_list): Init list to NULL to
6725 prevent the crash in bug #54574.
6727 2004-02-19 Chris Toshok <toshok@ximian.com>
6729 * camel-smime-context.c: wrap this file with #ifdef ENABLE_SMIME
6730 instead of #ifdef HAVE_NSS.
6732 2004-02-19 Jeffrey Stedfast <fejj@ximian.com>
6734 * providers/local/camel-mbox-store.c (get_folder): Add sanity
6735 checking to the folder name if we are going to create it, just
6736 like we do in create_folder().
6738 2004-02-19 Not Zed <NotZed@Ximian.com>
6740 * providers/*/camel-*-provider.c
6741 (camel_provider_module_init): Fixes for api changes.
6743 * camel-provider.c (camel_provider_load): no longer take session
6744 argument. the providers are global resources.
6745 (camel_provider_init): dont return anything anymore. (error?)
6746 call from camel_init now. Use a recursive lock too.
6748 * camel-session.c (camel_session_register_provider)
6749 (camel_session_list_providers, camel_session_get_provider): Moved
6750 to camel-provider, camel_provider_register/list/get.
6751 (vee_provider): moved to camel-provider.c
6753 2004-02-18 Jeffrey Stedfast <fejj@ximian.com>
6755 * camel-gpg-context.c (gpg_verify): Use the trust to decide the
6756 validity signature status. (Better way of solving yesterday's
6759 * camel-cipher-context.h: Revert change from yesterday.
6761 2004-02-17 Jeffrey Stedfast <fejj@ximian.com>
6763 * camel-gpg-context.c (gpg_verify): Set the trust.
6765 * camel-cipher-context.h: Add a trust metric to signatures.
6767 2004-02-17 Not Zed <NotZed@Ximian.com>
6769 * camel-vee-store.c (vee_sync): implment, make sync a noop on vee
6770 stores. Speeds up exit, so we don't try and sync and re-sync
6771 folders multiple times.
6775 * providers/nntp/camel-nntp-summary.c (add_range_xover): Fix from
6776 Edd Dumbill <edd@usefulinc.com> to avoid aborting on irrelevently
6779 2004-02-16 Not Zed <NotZed@Ximian.com>
6783 * providers/imap/camel-imap-store.c (fill_fi): similar to mbox
6785 (get_folder_counts): use fill_fi to try and get folder counts if
6786 we're not doing the hard slog.
6787 (get_one_folder_offline): use fill_fi to try to get folder counts
6788 from open folders or summaries.
6790 * providers/local/camel-maildir-store.c (fill_fi): similar to mbox
6792 (scan_dir): use fill_fi to get the unread count now.
6794 * providers/local/camel-mbox-store.c (fill_fi): helper to lookup
6795 unread count either from active folder or from summary file, if
6797 (scan_dir, get_folder_info): use helper above to get folder info.
6799 * devel-docs/camel-folder-summary.txt: New document describing the
6800 format/conventions in the CamelFolderSummary file.
6802 * providers/nntp/camel-nntp-summary.c (summary_header_load/save):
6803 * providers/imapp/camel-imapp-summary.c (summary_header_load/save):
6804 * providers/imap/camel-imap-summary.c (summary_header_load/save):
6805 Handle versions, per-class version number (1).
6807 * providers/local/camel-mbox-summary.c (summary_header_load/save):
6808 Handle versions properly, add a per-class version (1). Write out the
6809 folder size as a size_t rather than 32 bit int.
6811 * providers/local/camel-local-summary.c (summary_header_load/save):
6812 read/write the per-class version number (1).
6814 * camel-folder-summary.c (summary_header_load): do version
6815 checking differently, allow the version to be bumped without
6816 aborting the load. Added unread/deleted/junk counts to base
6818 (summary_header_save): Save out the new-format header. Version
6821 * camel.c (camel_init): return 0 rather than spit a compiler warning.
6823 * camel-file-utils.c (camel_file_util_encode_*_t): macro-ise the
6824 type encoder/decoders. Also add size_t encoder/decoder.
6826 2004-02-13 Jeffrey Stedfast <fejj@ximian.com>
6828 * providers/imap/camel-imap-store.c (get_folder_online): Same.
6830 * providers/local/camel-mh-store.c (get_folder): Same as maildir
6833 * providers/local/camel-maildir-store.c (get_folder): Make
6834 exceptions strings consistanmt with the mbox exception strings
6835 (and vise versa). Also handle the CAMEL_STORE_FOLDER_EXCL flag.
6837 * providers/local/camel-mbox-store.c (get_folder): Check
6838 CAMEL_STORE_FOLDER_EXCL flag.
6840 * providers/local/camel-local-store.c (get_folder): Simplified by
6841 using camel_mkdir instead of doing it manually.
6843 * camel-store.c (camel_store_get_folder): If the folder exists in
6844 the cache and the O_EXCL flag was passed, return NULL and set an
6847 * camel-store.h: Added a new CAMEL_STORE_FOLDER_EXCL flag for use
6850 2004-02-12 Jeffrey Stedfast <fejj@ximian.com>
6852 * camel-file-utils.c (camel_file_util_encode_string): Since
6853 decoding a string doesn't allow strings longer than 65536,
6854 truncate strings that are longer than 65536 here. Fixes bug
6857 2004-02-09 Not Zed <NotZed@Ximian.com>
6861 * providers/local/camel-mbox-store.c: added ".lock" to the list of
6863 (ignore_file): ignore anything ending in ~ too.
6867 * providers/local/camel-local-folder.c
6868 (camel_local_folder_construct): re-enable indexing when folder is
6869 first opened. Also load defaults if no meta-data present.
6871 2004-02-06 Jeffrey Stedfast <fejj@ximian.com>
6873 * camel-provider.c (camel_provider_init): Use strrchr, not strchr.
6875 * camel-gpg-context.c (gpg_ctx_parse_status): Forget the need_id,
6876 not the userid. Fixes bug #53908.
6878 * camel-store.c (add_special_info): Set a CAMEL_FOLDER_VIRTUAL bit
6879 on the special folder info so our UI can know if it is virtual or
6880 not (meant for vTrash/vJunk).
6881 (camel_store_get_folder_info): Don't add vTrash/vJunk if the
6882 NO_VIRTUAL flag bit is set. Used by the subscriptions editor.
6884 2004-02-06 Not Zed <NotZed@Ximian.com>
6886 * camel-folder.c (camel_folder_set_message_flags): changed to
6887 return a boolean to indicate if the flags were actually changed or
6888 not. Fixed all implementors.
6890 2004-02-05 Not Zed <NotZed@Ximian.com>
6892 * providers/local/camel-mbox-store.c (rename_folder): rename
6893 .cmeta file too, and fix the recovery order.
6895 * providers/local/camel-local-store.c (rename_folder): rename the
6898 * providers/local/camel-local-folder.c (local_rename): fix this to
6899 use local_get_full_path stuff.
6901 * camel-store.c (camel_store_rename_folder): fix umr's comparing
6904 2004-02-05 Not Zed <NotZed@Ximian.com>
6908 * camel-provider.c (camel_provider_init): changed to return a
6909 hashtable of url protocols to CamelProviderModule structs, rather
6910 than simple strings.
6912 * camel-session.c (get_provider): if we load a provider module,
6914 (ensure_loaded): Check the module loaded flag before trying to
6917 * providers/local/libcamellocal.urls: Remove spoold from the list,
6918 since it doesn't exist anymore. Actually fixes #53553, the rest
6919 is to robustify the code.
6921 2004-02-05 Not Zed <NotZed@Ximian.com>
6923 * camel-session.c (CS_CLASS): dont typecheck cast.
6925 * camel-store.c (camel_vjunk_folder_new): removed, use
6927 (setup_special): changed to get_special, with a type now, and
6928 dont add vtrash folders to the sources.
6929 (get_trash, get_junk): down to 1 liners, call get_special
6931 * camel-vtrash-folder.c (CF_CLASS): dont use cast typecheck macros
6932 here, makes debugging easier and removes redundant checks.
6933 (camel_vtrash_folder_init): dont set flags here.
6934 (camel_vtrash_folder_new): takes a new argument, type, for junk
6935 folders too, removed name arg (taken from type).
6936 (vtrash_transfer_messages_to): parameterise flag processing.
6938 2004-02-04 Jeffrey Stedfast <fejj@ximian.com>
6940 * providers/imap/camel-imap-store.c: Get rid of some unnecessary
6941 CAMEL_OBJECT() casts.
6943 * providers/imap/camel-imap-folder.c (camel_imap_folder_new): The
6944 folder_name argument passed to this function is ALWAYS in the UNIX
6945 path form (ie. using '/' as the dir sep) and so when getting the
6946 short_name, don't use imap_store->dir_sep as the dir sep, always
6947 use '/'. Fixes bug #53755 for the IMAP case.
6949 2004-02-04 Jeffrey Stedfast <fejj@ximian.com>
6951 Fix for bug #53755 (local folders case)
6953 * providers/local/camel-mbox-store.c (xrename): No longer takes an
6954 exception arg, we just set errno. Our caller can take care of
6955 setting an exception.
6956 (rename_folder): Don't pass an exception to xrename(), we always
6957 overwrote if an error occured it anyway.
6958 (rename_folder): Rename the .sbd as well.
6960 2004-02-04 Not Zed <NotZed@Ximian.com>
6962 * camel-store.c (camel_store_sync): added 'expunge' parameter,
6963 easier 'empty trash on exit' call.
6964 (store_sync): duh, actually pass expunge to folder_sync.
6966 2004-02-04 Not Zed <NotZed@Ximian.com>
6968 * providers/imap/camel-imap-store.c
6969 (parse_list_response_as_folder_info): if we can't add the folder
6970 to the summary {i.e. duplicate}, then ignore it. See #53836.
6972 * camel-store.c (camel_store_delete_folder): changed order around,
6973 first try to delete and only remove from the object bag if the
6974 delete worked. If vjunk/vtrash enabled, don't allow those to be
6976 (cs_delete_cached_folder): helper to delete the folder if its in
6977 the cache, remove it from trash/junk, etc.
6978 (camel_store_unsubscribe_folder): changed similarly to
6981 * camel-vee-store.c (vee_delete_folder): dont do any trash/junk
6984 2004-02-03 Not Zed <NotZed@Ximian.com>
6986 * camel-store.c: use the folders object bag to manage the trash
6987 folder and junk folders. Remove the init_trash and init_junk
6988 stuff, just use get_trash and get_junk to mean the same thing.
6989 Get rid of the hacked up vjunk and vtrash "uri" stuff too.
6991 * camel-object.c (camel_object_bag_add): null out the pair->func,
6992 otherwise we get an uninitalised memory read during unhook event.
6994 2004-02-03 Jeffrey Stedfast <fejj@ximian.com>
6996 * camel-vee-folder.c (vee_folder_build_folder): Use macro casts
6997 from int to pointer.
6999 * camel-folder.c (camel_folder_change_info_add_source): Same as below.
7000 (camel_folder_change_info_add_source_list): Same.
7002 * camel-folder-search.c (camel_folder_search_execute_expression):
7003 Use GINT_TO_POINTER() to cast 1 to a pointer for
7004 g_hash_table_insert().
7006 * camel-vee-folder.c (vee_folder_remove_folder): 64bit fixes.
7007 (folder_added_uid): Same.
7008 (vee_folder_build_folder): Here too.
7009 (folder_changed_add_uid): And here.
7010 (folder_changed_remove_uid): Same.
7012 2004-02-03 Jeffrey Stedfast <fejj@ximian.com>
7014 * tests/misc/url-scan.c: New test suite for url scanning.
7016 * camel-url-scanner.c: Added single/double quotes to url_braces[]
7017 in case the user is quoting the url.
7018 (camel_url_web_end): Add "-;:" to list of punctuation to strip off
7019 the end of urls. Also fixed to handle user@domain's
7020 (camel_url_addrspec_start): Strip open brace characters from the
7021 beginning of the addr.
7022 (camel_url_web_start): Make sure "www" wasn't part of something
7023 not a url (like "Ewww.Gross") by check that pos[-1] is either an
7024 open brace or whitespace.
7025 (camel_url_addrspec_end): Don't allow toplevel domain addr-specs
7026 (if we encounter something that looks like it is a toplevel domain
7027 addr, it is more likely to be bogus than correct).
7029 2004-02-02 Jeffrey Stedfast <fejj@ximian.com>
7031 Fixes for bug #53091.
7033 * providers/imap/camel-imap-store.c (create_folder): Set the new
7034 folder's fi->flags to CAMEL_FOLDER_NOCHILDREN since we know it
7035 doesn't have any (we just created it!).
7036 (subscribe_folder): Same.
7038 * camel-store.c (folder_info_clone_rec): Copy the flags too. Fixes
7039 the local folder case of bug #53091.
7041 2004-01-31 Jeffrey Stedfast <fejj@ximian.com>
7043 * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Same
7046 * providers/smtp/camel-smtp-transport.c (smtp_connect): Instead of
7047 using the form %s@%s in the password prompt, use %s on host %s,
7048 hopefully this will be less confusing to users who have usernames
7049 of the form user@vhost.
7051 2004-01-30 Rodney Dawes <dobey@ximian.com>
7053 * providers/groupwise/camel-groupwise-provider.c: Fix spelling error in
7054 provider description
7058 2004-01-30 Jeffrey Stedfast <fejj@ximian.com>
7060 * camel.c (camel_init): Protect against multiple camel_init()
7061 calls. Remember if we've already been called.
7063 2004-01-30 Not Zed <NotZed@Ximian.com>
7065 * camel-store.c (camel_store_rename_folder): copy the old_name
7066 that comes in, since it might be the actual folder_name, which
7067 will go away during processing. Related to #53123.
7069 2004-01-29 Not Zed <NotZed@Ximian.com>
7073 * providers/nntp/camel-nntp-store.c
7074 (nntp_store_get_cached_folder_info): don't dereference last before
7075 checking if its null.
7077 * camel-object.c (camel_object_bag_rekey): added a doc comment.
7081 * camel-session.c (get_service): free the url once done, it now
7082 gets copied by the service.
7084 * camel-service.c (construct): copy the url that comes in, don't
7085 just '0Wn34z' it. clena up exception handling too.
7087 2004-01-29 Not Zed <NotZed@Ximian.com>
7089 * camel-object.c (cobject_state_write): output scan->name and
7090 scan->value for writing metadata, rather than meta->name/value
7091 which just duplicates the last entry, related to #53195.
7093 * camel-url.c (camel_url_free): zero out passwd/user/host before
7096 2004-01-28 Jeffrey Stedfast <fejj@ximian.com>
7098 * providers/local/camel-mbox-store.c (rename_folder): Make sure
7099 the new dir path exists before trying to rename files to avoid
7100 ENOENT errors. Also save errno when we encounter errors so that we
7101 can report the true error later rather than an error we may get
7102 while reverting changes. Also, it is OK if the ibex files don't
7103 exist, so check for that errno case.
7105 2004-01-28 Sivaih Nallagatla <snallagatla@novell.com>
7107 * providers/groupwise/camel-gw-listener.c (account_changed)
7108 (modify_esources) : add port and /soap parts to relative uri while
7109 updating it when account changed
7111 2004-01-27 Radek Doulik <rodo@ximian.com>
7113 * providers/imap/camel-imap-folder.c (camel_imap_folder_new): set
7114 CAMEL_FOLDER_SUPRESS_JUNK_TEST flag
7115 (imap_update_summary): update CAMEL_FOLDER_SUPRESS_JUNK_TEST flag
7117 * camel-folder.c (folder_changed): use
7118 CAMEL_FOLDER_SUPRESS_JUNK_TEST flag instead of check_junk_for_imap
7120 * camel-folder.h (CAMEL_FOLDER_SUPRESS_JUNK_TEST): added new flag
7122 2004-01-27 Not Zed <NotZed@Ximian.com>
7126 * camel-store.c (camel_store_rename_folder): use object_bag_rekey
7127 to rename the object. object_bag use was broken.
7129 * camel-object.c (camel_object_bag_rekey): new api to atomically
7132 2004-01-23 Radek Doulik <rodo@ximian.com>
7134 * camel-folder.c (folder_changed): use check_junk_for_imap flag
7136 * camel-session.c: add check_junk_for_imap flag
7138 2004-01-23 Not Zed <NotZed@Ximian.com>
7140 * providers/imap/camel-imap-folder.c (IMAP_SMALL_BODY_SIZE):
7141 removed the meaningless fixme, a butt-retrieved-number is as good
7142 as any in this case.
7143 (imap_get_message): revert peterw's change of 2002-07-15, instead
7144 of checking for online mode here, let get_message do it when you
7145 retrieve the parts. This lets a multi-fetch (i.e. large) message
7146 work more betterer in offline mode.
7148 2004-01-22 Jeremy Katz <katzj@redhat.com>
7150 * camel-mime-part.c: Fix prototype to be consistent.
7152 2004-01-21 Not Zed <NotZed@Ximian.com>
7156 * camel-data-cache.c (camel_data_cache_add): put a do-loop around
7157 the object_bag_reserve stuff, otherwise we can add/abort out of
7158 sync (i.e. when object_bag_reserve returned a pointer we mustn't
7161 * camel-object.c (camel_object_bag_*): Added some inline doco.
7163 2004-01-20 Not Zed <NotZed@Ximian.com>
7167 * camel-session.c (camel_session_get_password): merged reprompt
7168 and secret into a flags field, and add more options. Fixed all
7173 * camel-gpg-context.c (gpg_ctx_parse_status): use need_id as the
7174 password key, not userid.
7176 2004-01-19 Siviaah Nallagatla <snallagatla@novell.com>
7178 * providers/groupwise/camel-gw-listener.c
7179 (remove_calender_tasks_sources, modify_calender_tasks_sources):
7180 add port and "/soap" to source uri
7182 2004-01-19 Not Zed <NotZed@Ximian.com>
7184 * camel-vee-store.c (change_folder): use a CamelURL to properly
7185 encode the url we generate.
7186 (vee_get_folder_info): ditto.
7187 (vee_get_folder_info): removed unused variable/warning.
7189 * camel-session.c (vee_provider): Update the provider flags for
7190 URL_FRAGMENT_IS_PATH.
7192 * providers/imapp/camel-imapp-utils.c (imap_parse_addfress_list):
7193 namespaces fixes for HEADER_ADDRESS*
7195 2004-01-17 Jeffrey Stedfast <fejj@ximian.com>
7197 * providers/imap/camel-imap-folder.c (imap_sync_online): Limit the
7198 flags we set (or unset) to the folder's permanent flags.
7200 2004-01-16 Jeffrey Stedfast <fejj@ximian.com>
7202 * camel-mime-message.c (camel_mime_message_build_mbox_from): Same.
7204 * camel-internet-address.c (internet_decode): Same.
7206 * camel-mime-utils.[c,h]: Namespaced camel_header_address_t enums
7207 s/HEADER_ADDRESS_/CAMEL_HEADER_ADDRESS_/g
7209 2004-01-16 Sivaiah Nallagatla <snallagatla@novell.com>
7211 * providers/groupwise/camel-groupwise-provider.c: added some conf
7212 entries for LDAP address setup
7214 * providers/groupwise/camel-gw-listener.c: added
7215 add_ldap_addressbook_source, modify_ldap_addressbook_source,
7216 remove_ldap_addressbook_source functions for setting up LDAP
7217 address book. Also setting "username" property on cal/tasks
7220 2004-01-15 Not Zed <NotZed@Ximian.com>
7224 * camel-object.c (camel_object_bag*): Support reserving different
7225 keys from the same thread. Oh the pain.
7227 * camel-vee-store.c (vee_get_folder_info): implement child flags
7228 properly. Changed to build tree itself rather than calling
7229 camel_folder_info_build.
7230 (vee_get_folder): if we're adding a folder with dummy parents,
7231 create and add the dummy parent folders too (as real folder
7232 objects). We are the only owner of the ref, so this sort of leaks
7233 the folder, but they're small.
7235 2004-01-14 Rodrigo Moya <rodrigo@ximian.com>
7237 * providers/groupwise/camel-groupwise-provider.c
7238 (camel_provider_module_init): missing renaming.
7240 2004-01-14 Rodrigo Moya <rodrigo@ximian.com>
7242 * providers/groupwise/camel-gw-listener.c (add_esource): set the
7243 "auth" property on the ESource's we create, to get authentication.
7245 2004-01-14 Not Zed <NotZed@Ximian.com>
7247 ** Patch from Timo Sirainen <tss@iki.fi> to honour read-only
7248 status for imap folders.
7250 * providers/imap/camel-imap-folder.c (camel_imap_folder_selected):
7251 check for read-only status response.
7252 (imap_sync_online): only call sync_offline if we're read-only.
7253 (imap_expunge_uids_resyncing): NOOP for read-only.
7255 2004-01-14 Not Zed <NotZed@Ximian.com>
7257 * providers/local/camel-local-folder.c (local_getv): remove debug
7262 * camel-smime-context.c (sm_get_passwd): removed debugging. If we
7263 get called multiple times in a row, then forget the old password
7264 and re-prompt - it was a bad password. Zero out password memory
7267 2004-01-13 Rodrigo Moya <rodrigo@ximian.com>
7269 * providers/groupwise/camel-groupwise-provider.c: missing renaming.
7271 2004-01-13 Sivaiah Nallagatla <snallagatla@novell.com>
7273 * providers/groupwise/camel-gw-listener.[ch]: renamed
7274 groupwise-config-listener.[ch] to these file names and also
7275 changed code to use CamelURL insted of EUri
7277 * providers/groupwise/camel-groupwise-provider.c: use the renamed
7278 config listener apis
7280 * providers/groupwise/Makefile.am: changed the source file names
7282 2004-01-12 Meilof Veeningen <meilof@wanadoo.nl>
7284 * providers/nntp/camel-nntp-folder.[ch]: now based on discofolder,
7285 cache_message and append_message implemented, only retrieve messages
7286 when we are subscribed, some stubs
7288 * providers/nntp/camel-nntp-provider.c: newsgroup name display
7289 settings, password authentication, fix for check_equal where the
7290 protocols wouldn't be checked
7292 * providers/nntp/camel-nntp-store.[ch]: base on discostore with
7293 online/offline support, subscriptions, downloading changed parts of
7294 the newsgroup list, some stubs, authentication, automatic reconnect
7296 * providers/nntp/camel-nntp-store-summary.[ch]: NNTP store
7297 summary based on IMAP code
7299 * providers/nntp/camel-nntp-summary.c: save summary after xover
7301 * providers/nntp/camel-nntp-grouplist.h: added CamelNNTPGroupList
7304 * providers/nntp/Makefile.am: added store summary
7306 2004-01-12 Not Zed <NotZed@Ximian.com>
7310 * providers/imap/camel-imap-folder.c (get_content): pass in
7311 transfer encoding when setting up wrapper part.
7313 * providers/imap/camel-imap-wrapper.c (camel_imap_wrapper_new):
7314 Added an encoding type parameter, set on data wrapper.
7316 2004-01-10 Jeffrey Stedfast <fejj@ximian.com>
7318 * camel-mime-utils.c (rfc2047_encode_word): if e_iconv() returns
7319 -1, check that errno != EINVAL - if errno *is* EINVAL, it just
7320 means that our convlen wasn't long enough to include the whole
7321 sequence. This is fine, we'll just start where we left off next
7322 loop thru. Fixes bug #52593 (the buffer was duplicated because
7323 state wasn't flushed).
7324 (camel_header_encode_string): Fixed a type-o in loop where
7325 encoding=0, don't g_string_append_len starting at 'word'
7326 inptr-start bytes long - 'word' could be NULL and/or inptr-start
7327 could be longer than inptr-word.
7329 2004-01-09 Rodney Dawes <dobey@ximian.com>
7331 * providers/groupwise/Makefile.am (EXTRA_DIST): libcamelgroupwise.urls
7332 instead of libcamelimap.urls
7334 2004-01-09 Sivaiah Nallagatla <snallagatla@novell.com>
7336 * providers/groupwise/groupwise-config-listener.c
7337 (is_groupwise_account): added null check for source url to take
7338 care of accounts with Server Types as "None"
7340 2004-01-09 Not Zed <NotZed@Ximian.com>
7342 * providers/imap/camel-imap-store.c (imap_forget_folder): fix
7343 removal of journal file, and remove the cmeta state file too.
7345 * providers/imap/camel-imap-folder.c (imap_getv): count up so we
7346 call parent class if we missed any, rather than only if we didn't
7348 (imap_rename): rename the object state file.
7349 (camel_imap_folder_new): set the object state file for persistent
7352 * camel-disco-folder.c (disco_getv): support
7353 (PERSISTENT_)PROPERTIES & OFFLINE_SYNC.
7354 (disco_setv): implement OFFLINE_SYNC.
7355 (camel_disco_folder_get_type): setup disco properties list.
7356 (cdf_folder_changed): honour the offline_sync setting on the
7358 (disco_sync): save object state.
7359 (disco_setv): save object state if it changed.
7361 * camel-data-wrapper.c (camel_data_wrapper_set_mime_type_field):
7362 move assertions here.
7363 (set_mime_type_field): change order slightly to properly handle
7364 setting the same object. removed assertions from internal method.
7366 2004-01-08 Sivaiah Nallagatla <snallagatla@novell.com>
7368 * providers/Makefile.am : add groupwise to SUBDIRS
7370 * providers/groupwise/camel-groupwise-provider.c: new camel
7371 provider for groupwise
7373 * providers/groupwise/groupwise-config-listener.[ch] : new class
7374 to add e-sources for groupwise calender and tasks
7376 * providers/groupwise/Makefile.am : added new files to Makefile.am
7378 2004-01-05 JP Rosevear <jpr@ximian.com>
7380 * camel-utf8.c: include sys/types.h for freebsd
7382 2004-01-05 Rodrigo Moya <rodrigo@ximian.com>
7384 * providers/groupwise/camel-groupwise-provider.c (groupwise_url_hash,
7385 groupwise_url_equal): renamed from imap_*.
7387 2004-01-05 Not Zed <NotZed@Ximian.com>
7389 * camel-tcp-stream-raw.c (socket_connect): check the right return
7390 of the socket call, dont set fd to the value of the -1 check!
7392 2003-12-27 Jeffrey Stedfast <fejj@ximian.com>
7394 * camel-tcp-stream-raw.c (socket_connect): Save errno and check
7395 the return of the socket() call.
7397 2003-12-24 Rodrigo Moya <rodrigo@ximian.com>
7399 * providers/groupwise/camel-groupwise-provider.c
7400 (camel_provider_module_init): g_module_open the other providers we
7401 depend on to avoid load ordering problems.
7403 2003-12-22 Rodrigo Moya <rodrigo@ximian.com>
7405 * providers/groupwise/camel-groupwise-provider.c: removed useless
7406 configuration options, and added other options from the IMAP
7408 (camel_provider_module_init): register a SMTP transport object
7409 also, and removed SASL registration, since we don't support it.
7411 2003-12-19 Sivaiah Nallagatla <snallagatla@novell.com>
7413 * providers/groupwise/Makefile.am:
7414 * providers/groupwise/libcamelgroupwise.urls:
7415 * providers/groupwise/camel-groupwise-provider.c: added Camel
7416 provider for Groupwise accounts, based on the IMAP one.
7418 2003-12-11 Jeffrey Stedfast <fejj@ximian.com>
7420 * camel-gpg-context.c (gpg_ctx_parse_status): Don't immediately
7421 prompt for a passwd after receiving the NEED_PASSPHRASE status
7422 message. Instead, parse the userid that gpg needs a passwd for and
7423 store it on our context. Wait for a GET_HIDDEN status message
7424 before prompting, this way if the user has their gpg configured to
7425 use gpg-agent, the user won't get 2 passwd prompts.
7426 (gpg_sign): Fixed to not free a gpg context that we have not
7427 allocated (could happen in a fail case).
7429 2003-12-10 Jeffrey Stedfast <fejj@ximian.com>
7431 * providers/local/camel-mbox-store.c (get_folder_info): Use
7432 CAMEL_FODLER_NOCHILDREN rather than NOINFERIORS because
7433 NOINFERIORS means the folder cannot contain subfolders. However,
7434 our mbox structure always allows subfolders.
7437 * camel-store.h: Add a CAMEL_FOLDER_NOCHILDREN flag.
7439 * providers/imap/camel-imap-store.c (get_folders): Same as below.
7441 * providers/imap/camel-imap-utils.c (imap_parse_list_response):
7442 s/CAMEL_IMAP_FOLDER_NOCHILDREN/CAMEL_FOLDER_NOCHILDREN/
7444 2003-12-10 Not Zed <NotZed@Ximian.com>
7446 * camel-smime-context.c (sm_verify): also check
7447 application/pkcs7-signature (bloody applemail).
7448 (camel_smime_context_describe_part): as above, and fix the logic.
7449 dont think its used anyway. Bug #51750.
7451 2003-12-10 Not Zed <NotZed@Ximian.com>
7453 * Makefile.am (libcamel_la_SOURCES): put the
7454 camel-smime-context.[ch] back in here, remove it from EXTRA_DIST,
7455 and make it compile optinally the same way camel-tcp-stream-ssl.c
7458 * camel-smime-context.c (sm_verify_cmsg): add signer info to
7461 * camel-cipher-context.c (CamelCipherValidity): Added certinfo to
7462 validity for signing and encrypting, so we can find the keys later
7464 (camel_cipher_validity_add_certinfo): add signer or
7465 encrypter info to the validity.
7466 (camel_cipher_validity_envelope): add sign/encrypt keys.
7468 2003-12-10 Not Zed <NotZed@Ximian.com>
7470 * camel-stream-process.c (do_exec_command): remove dthe clearenv
7471 stuff, not sure why its there. s/setenv/putenv/ for portability.
7474 2003-12-08 Jeffrey Stedfast <fejj@ximian.com>
7476 * camel-mime-utils.c (header_decode_rfc2184_param): Revert the
7477 s/is_/camel_mime_is_/ changes or we get really long variable
7479 (header_decode_param): Same.
7480 (header_decode_param_list): Here too.
7482 2003-12-09 Not Zed <NotZed@Ximian.com>
7486 * providers/imap/camel-imap-store.c (get_folders): add the first
7487 fi to the info's hash, so we dont duplicate it if we come across
7488 it again (which we generally will).
7490 2003-12-09 Not Zed <NotZed@Ximian.com>
7492 * providers/smtp/camel-smtp-transport.c (smtp_send_to): encode the
7493 address before sending it out, rather than using the raw/utf8
7496 * camel-internet-address.c
7497 (camel_internet_address_encode_address): check for quoting the
7498 local part of the address before outputting it.
7499 (cia_encode_addrspec): quote local part if need be.
7500 (camel_internet_address_encode_address): make folding optional
7501 based on whether inlen is null or not.
7503 * camel-mime-utils.[ch]: rename is_* to camel_mime_is_* and export
7506 2003-12-08 Not Zed <NotZed@Ximian.com>
7508 * providers/imap/camel-imap-utils.c (imap_atom_specials): add } to
7509 the atom specials list. This isn't correct, but some busted
7510 servers expect it. Bug #50728.
7512 2003-12-08 Jeffrey Stedfast <fejj@ximian.com>
7516 * providers/local/camel-mbox-store.c (delete_folder): Same.
7518 * providers/local/camel-local-store.c (delete_folder): Unlink the
7521 2003-12-06 JP Rosevear <jpr@ximian.com>
7523 * */Makefile.am: Remove hard coded disable deprecated flags
7525 2003-12-05 Jeffrey Stedfast <fejj@ximian.com>
7527 * camel-gpg-context.c (gpg_ctx_op_start): Properly set the
7528 O_NONBLOCK flag along with any previously set flags.
7530 * camel-filter-search.c (run_command): Don't set O_NONBLOCK on the
7531 pipe (1. we don't need to, and 2. we should have been setting
7532 O_NONBLOCK|prev_flags but we weren't, and so the pipe got
7533 O_RDONLY|O_NONBLOCK even tho we wanted to write to it).
7535 * camel-filter-driver.c (pipe_to_system): Same.
7537 2003-12-04 Radek Doulik <rodo@ximian.com>
7539 * camel-folder.c (folder_changed): check recent messages for junk
7542 * camel-session.c (camel_session_check_junk): new wrapper method
7544 (camel_session_set_check_junk): ditto
7546 * camel-session.h (struct _CamelSession): added check_junk flag
7547 (if to check incoming mail for junk messages)
7549 2003-12-03 Jeffrey Stedfast <fejj@ximian.com>
7551 * camel-store.c (add_special_info): Free fi->path if we are gonna
7552 replace it with the vinfo path.
7554 * providers/local/camel-mbox-store.c (create_folder): Treat
7555 parent_name == NULL and parent_name == "" the same.
7557 * camel-store.c (camel_store_get_folder_info): Only add
7558 vTrash/vJunk info's if we've requested the toplevel folder tree,
7559 otherwise we get vTrash/vJunk folders in odd places in the folder
7561 (add_special_info): Use the provider->url_flags to determine if
7562 the url uses the fragment or not for the path.
7564 2003-12-02 Not Zed <NotZed@Ximian.com>
7566 * providers/local/camel-local-folder.c (local_setv): remove some
7571 * camel-url.c (camel_url_decode): robustify url decoding for bad
7572 input, addresses a crash.
7576 * camel-gpg-context.c (gpg_ctx_free): handle the context being
7577 NULL, and exit silently.
7579 2003-12-01 Jeffrey Stedfast <fejj@ximian.com>
7581 * camel-process.c (camel_process_fork): Start at fd = 3.
7583 * camel-gpg-context.c (gpg_ctx_op_start): Same.
7585 * camel-filter-driver.c (pipe_to_system): Same.
7587 * camel-filter-search.c (run_command): Start at fd = 3.
7589 2003-12-01 Jeffrey Stedfast <fejj@ximian.com>
7591 * camel-stream-process.c (do_exec_command): Same.
7593 * camel-process.c (camel_process_fork): Same.
7595 * camel-filter-search.c (run_command): Same as below.
7597 * camel-filter-driver.c (pipe_to_system): Same as below.
7599 * camel-gpg-context.c (gpg_ctx_op_start): Use fcntl() to set
7600 FD_CLOEXEC on each fd rather than close()ing it. Apparently
7601 Linux's older pthread implementations use sockets and so this
7602 fouls threading up. GO LINUX! GO!
7604 2003-12-01 Radek Doulik <rodo@ximian.com>
7606 * camel-store.c (add_special_info): set SUBSCRIBED and NOINFERIORS
7607 flags to special folders, renamed method from
7608 add_vtrash_or_vjunk_info
7609 (camel_store_get_folder_info): call add_special_info directly
7611 2003-11-28 Radek Doulik <rodo@ximian.com>
7613 * camel-store.c (camel_store_get_folder_info): use old code from
7614 mail-ops to add vtrash/vjunk info
7616 2003-11-28 David Woodhouse <dwmw2@redhat.com>
7618 * providers/imap/camel-imap-provider.c: Enable GUI option for
7619 'custom command' connection.
7620 * providers/imap/camel-imap-store.c: Don't g_free strings in
7621 .rodata. It's considered rude.
7623 2003-11-28 Not Zed <NotZed@Ximian.com>
7625 * camel-mime-utils.c (mail_list_magic[]): Added list-unsubscribe
7628 2003-11-26 Not Zed <NotZed@Ximian.com>
7630 * camel-smime-context.c (sm_verify_cmsg): take a stream rather
7631 than a part for the content.
7632 (sm_verify): get the content directly as a stream.
7634 * camel-multipart-signed.c
7635 (camel_multipart_signed_get_content_stream): new api to get the
7636 content stream which will match the signed version.
7638 2003-11-26 JP Rosevear <jpr@ximian.com>
7640 * Makefile.am: make sure we always dist the smime stuff
7642 2003-11-26 JP Rosevear <jpr@ximian.com>
7644 * Makefile.am (libcamelinclude_HEADERS): conditionally compile
7647 2003-11-25 Not Zed <NotZed@Ximian.com>
7649 * camel-cipher-context.c (camel_cipher_validity_envelope): change
7650 args to make it suit storing the validity in a tree.
7651 (camel_cipher_validity_init): init the list header.
7652 (camel_cipher_validity_clone): call validity_new so it gets init
7654 (camel_cipher_validity_free): free any children nodes recursively.
7656 * camel-cipher-context.h (CamelCipherValidity): added next/prev
7659 2003-11-18 Jeffrey Stedfast <fejj@ximian.com>
7661 * camel-session.c (camel_session_finalise): Don't destroy the
7662 providers as it mans we can never ever have more than 1 session
7663 object. See bug #51119 for details.
7665 2003-11-17 Jeffrey Stedfast <fejj@ximian.com>
7667 * providers/local/camel-mbox-store.c (create_folder): Fixed an
7668 exception to give a more meaningful description.
7669 (get_folder_info): We always want to scan at least one level deep.
7671 2003-11-14 Jeffrey Stedfast <fejj@ximian.com>
7673 * providers/local/camel-mbox-store.c (get_folder_info): Handle ""
7674 as a request for a full dirscan as well (not just NULL). Makes it
7675 consistant with other stores.
7676 (scan_dir): Set the fi->flags appropriately.
7678 * providers/local/camel-mbox-folder.c
7679 (camel_mbox_folder_get_full_path): Removed temporary hack.
7681 2003-11-14 Not Zed <NotZed@Ximian.com>
7683 * camel-mime-parser.c (SCAN_BUF): oops, put the mempool stuff
7684 back, we don't use e-memory afterall. Damn plane hacking.
7686 2003-11-13 Not Zed <NotZed@Ximian.com>
7688 * camel-mime-parser.c: Remove mempool code, we use the stuff in
7690 (PRESERVE_HEADERS): new compile option, if on, we preserve headers
7691 and folding exactly rather than unfolding all input. THIS BREAKS
7692 EVERYTHING right now, so don't turn it on.
7694 * camel-gpg-context.c (gpg_decrypt): reset the input memstream
7695 before passing it to the gpg engine.
7697 * tests/smime/pgp-mime.c (main): redirect /dev/null to stdin so it
7698 doesn't hang waiting for input.
7699 (main): removed from build - this tests multipart/signed
7700 explictly, but now the details of this is handled directly by the
7703 * tests/smime/pgp.c (main): fixes for api changes.
7704 (main): redirect /dev/null to stdin so it doesn't hang waiting for
7707 * tests/message/test1.c (main): update for api changes.
7709 * camel-smime-context.c (sm_verify): look at the content object's
7710 mime type, not the container's type.
7712 2003-11-11 Not Zed <NotZed@Ximian.com>
7714 * camel-cipher-context.c (camel_cipher_validity_set_valid): take
7715 into account the @valid argument and set validity properly.
7716 (camel_cipher_validity_clone): new method to copy validities.
7718 * camel-smime-context.c (sm_signing_cmsmessage): removed a todo.
7720 2003-11-10 Not Zed <NotZed@Ximian.com>
7722 * camel-smime-context.c (sm_verify_cmsg): split out the CMSMessage
7723 verification code so it can be used from enveloped or externally
7726 * camel-cipher-context.c (camel_cipher_verify): only take a
7727 mimepart, internally handle multiparts and the hash.
7729 2003-11-07 Not Zed <NotZed@Ximian.com>
7731 * camel-cipher-context.c: make ciphervalidity a public structure,
7732 added encrypt status.
7733 (camel_cipher_decrypt): changed to return a ciphervalidity. fixed
7735 (camel_cipher_validity_*): Fixed implementations to match new
7736 structure, some of this is now redundant.
7738 2003-11-06 Not Zed <NotZed@Ximian.com>
7740 * camel-smime-context.c (camel_smime_context_describe_part):
7743 2003-11-05 Jeffrey Stedfast <fejj@ximian.com>
7745 * providers/smtp/camel-smtp-transport.c (connect_to_server): Don't
7746 bother trying to see if the server advertises EHLO. Simply always
7747 try EHLO and fall back to HELO if EHLO fails. Fixes bug #50535.
7749 2003-11-05 Not Zed <NotZed@Ximian.com>
7751 * camel-smime-context.c (camel_smime_context_describe_part): new
7752 (unfinished) api to peek inside smime parts to tell us whats in
7755 2003-11-03 Not Zed <NotZed@Ximian.com>
7757 * camel-gpg-context.c (gpg_encrypt): Make this output the
7758 full multipart/encrypted part, not just the encrypted content part.
7760 * camel-cipher-context.c (camel_cipher_sign): change to output
7761 full mime part, not just a stream.
7762 (camel_cipher_canonical_to_stream): utility function to
7763 canonicalise a mimepart to a stream.
7765 * camel-smime-context.c (sm_encode_cmsmessage): removed.
7766 (sm_sign): change interface to output a full mime-part, not just a
7767 part of a mime part in multipart/signed mode.
7769 2003-11-04 Jeffrey Stedfast <fejj@ximian.com>
7771 * camel-gpg-context.c (gpg_ctx_parse_status): We might need to
7772 convert the passwd from UTF-8 into the locale charset. Fixes bug
7775 2003-10-31 Not Zed <NotZed@Ximian.com>
7777 * camel-cms-context.[ch]: removed, now redundant.
7779 2003-10-30 Not Zed <NotZed@Ximian.com>
7781 * camel-smime-context.c (sm_get_passwd): implement something basic.
7783 * camel-cipher-context.h: Added a note about api inconsistencies.
7785 2003-10-30 Not Zed <NotZed@Ximian.com>
7787 * camel-multipart-encrypted.c (camel_multipart_encrypted_decrypt):
7788 fix for cipher_decrypt changes.
7790 * camel-gpg-context.c, camel-cipher-context.c: moved all the init
7791 code to the end to save having to keep forward declarations
7793 (camel_cipher_decrypt): changed to take mimepart input and return
7795 (gpg_decrypt): fix for changed args.
7797 2003-10-29 Not Zed <NotZed@Ximian.com>
7799 * camel-smime-context.[ch]: replaced entirely with a new
7800 implementation which inherits from camel-cipher-context, and add
7803 * camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt):
7804 fix for cipher_encrypt api changes.
7805 (camel_multipart_encrypted_decrypt): use g_ascii_strcasecmp.
7807 * camel-gpg-context.c (gpg_encrypt): Fix to handle input/output as
7810 * camel-cipher-context.c (camel_cipher_encrypt): change to take
7811 mimeparts rather than streams as input/output. And remove the
7812 'sign' argument, it is implied if userid is supplied.
7814 2003-10-28 Not Zed <NotZed@Ximian.com>
7816 * tests/smime/pgp.c (main): fix for ciphercontext api changes.
7818 * camel-multipart-signed.c (camel_multipart_signed_verify): pass
7819 in the part to cipher_verify directly.
7820 (camel_multipart_signed_sign): let the cipher context setup the
7823 * camel-gpg-context.c (gpg_sign): put the signature stream into a
7824 mimepart, with appropriate headers/encoding.
7825 (swrite): write out a mimepart rather than a stream.
7826 (gpg_verify): handle changed args.
7828 * camel-cipher-context.c (camel_cipher_sign): write the signature
7829 to a mimepart rather than a simple stream.
7830 (camel_cipher_verify): take the signature as a mimepart not a
7833 2003-10-22 Not Zed <NotZed@Ximian.com>
7835 * camel-utf8.c (camel_ucs2_utf8, camel_utf8_ucs2): helpers for
7836 ucs2 stuff. ucs2 is 16 bit truncated unicode.
7838 2003-10-28 Jeffrey Stedfast <fejj@ximian.com>
7840 * camel-mime-utils.c: We should check List-Post before List-Id
7841 (List-Post has to contain the mailing-list posting address,
7842 whereas List-Id does not.) WAlso moved X-Loop to after List-Id to
7843 make FreeBSD lusers happy. Fixes bug #32297.
7845 2003-10-28 Jeffrey Stedfast <fejj@ximian.com>
7849 * providers/imap/camel-imap-store.c (connect_to_server): Same
7852 * providers/pop3/camel-pop3-store.c (connect_to_server): Same as
7855 * providers/smtp/camel-smtp-transport.c (connect_to_server): If
7856 HAVE_SSL is undefined, don't default to raw connections if the
7857 option to connect via ssl is set. Instead set an exception and
7860 2003-10-27 Frederic Crozat <fcrozat@mandrakesoft.com>
7862 * camel-mime-utils.c: (camel_header_decode_date):
7863 better detection of broken date to give to broken_date_parser.
7865 2003-10-24 Jeffrey Stedfast <fejj@ximian.com>
7867 * camel-text-index.c (text_index_name_add_buffer): If a word is
7868 longer than CAMEL_TEXT_INDEX_MAX_WORDLEN, then ignore it. This
7871 2003-10-23 Jeffrey Stedfast <fejj@ximian.com>
7873 * *.c: Removed unneeded CAMEL_OBJECT() casts.
7875 2003-10-21 Not Zed <NotZed@Ximian.com>
7877 * providers/local/camel-local-folder.c (local_getv, local_setv):
7878 use the right tag name for the index_body arg.
7879 (local_sync): write any persistent metadata - to make it
7881 (camel_local_folder_construct): turn off indexing, for now, it
7882 should be done in local_setv.
7884 * providers/local/camel-local-folder.h: change body_index to a bool
7887 * camel-object.c (cobject_state_read, cobject_state_write): handle
7889 (cobject_state_write): make sure we free all arg types.
7891 * camel-arg.c (camel_argv_build):
7892 (camel_arggetv_build): handle bool type.
7894 * camel-arg.h: Added BOO (bool) type.
7896 2003-10-15 Not Zed <NotZed@Ximian.com>
7898 * camel-store.c (camel_folder_info_build): Fix so we output the
7899 tree in sorted depth-first order, rather in reverse.
7901 2003-10-16 Jeffrey Stedfast <fejj@ximian.com>
7903 * camel-sasl-kerberos4.c: Fixed a #include.
7905 2003-10-10 Not Zed <NotZed@Ximian.com>
7907 * providers/local/camel-local-provider.c: set the url fragment
7908 flag for local providers.
7910 * camel-provider.h: Move the URL_PART_NEED bits to the high 16
7911 bits, to allow for easier changes in the future. Added a
7912 URL_PART_FRAGMENT flag for providers that use fragment = folder
7915 2003-10-09 Jeffrey Stedfast <fejj@ximian.com>
7917 * camel-mime-utils.c (header_decode_date): Allow timezone offsets
7918 to be up to 14 hours ahead of UTC. Fixes bug #49357.
7920 * broken-date-parser.c (get_tzone): Same.
7922 2003-10-08 Jeffrey Stedfast <fejj@ximian.com>
7924 * providers/smtp/camel-smtp-transport.c (smtp_helo): Removed an
7927 2003-09-25 Jeffrey Stedfast <fejj@ximian.com>
7929 * providers/smtp/camel-smtp-transport.c (smtp_helo): If the
7930 localhost lookup results in a numeric IPv6 host, use the form
7931 "[IPv6:<addr>]" as specified in rfc2821. Fixes bug #46006.
7933 2003-09-23 Ettore Perazzoli <ettore@ximian.com>
7935 * providers/local/camel-local-provider.c: Set the IS_STORAGE bit
7936 in the mbox provider, since it can now contain a hierarchy of
7939 2003-09-23 Jeffrey Stedfast <fejj@ximian.com>
7941 * providers/local/camel-mbox-store.c (get_folder): If the CREATE
7942 flag is set and the parent .sbd directory does not exist, create
7945 * camel-mime-utils.c (append_8bit): Don't forget to flush the
7948 * tests/message/test4.c (main): Don't try dot-files.
7950 2003-09-22 Not Zed <NotZed@Ximian.com>
7954 * providers/pop3/camel-pop3-folder.c (cmd_tocache): protect a
7955 divide by 0 for 0 length messages.
7957 2003-09-22 Not Zed <NotZed@Ximian.com>
7959 * providers/imap/camel-imap-provider.c: Added "offline_sync"
7960 option, which lets you synchronise all mail to local storage
7963 * camel-disco-folder.c (cdf_folder_changed): hook onto the folder
7964 changed single, for all new messages, check that they are online
7965 using another thread, if the offline_sync option has been enabled
7968 2003-09-21 Not Zed <NotZed@Ximian.com>
7970 * camel-session.c (session_thread_destroy): call proper entry
7971 point for freeing the message.
7973 2003-09-18 Not Zed <NotZed@Ximian.com>
7975 * camel-folder.c (filter_filter): register the filtering process
7976 for progress, and do progress of the filtering process.
7978 2003-09-17 Not Zed <NotZed@Ximian.com>
7980 * camel.c (camel_init): init camel operation.
7982 * camel-operation.c (camel_operation_reset): removed, not used,
7984 (camel_operation_mute): new method to stop all status updates
7986 (*): Changed to use thread specific data and a list rather than a
7988 (cancel_thread): removed.
7989 (camel_operation_register): return the previously registered op.
7991 2003-09-22 Jeffrey Stedfast <fejj@ximian.com>
7993 * providers/nntp/camel-nntp-store.c (connect_to_server): Fix the
7994 code that creates a new ssl stream to pass the correct arguments
7995 and the proper flags.
7997 * providers/imapp/camel-imapp-folder.c (imap_sync): Cast the
7998 CamelFolder to a CamelIMAPPFolder to hush some compiler warnings.
8000 * camel-mime-utils.h: Define a struct _CamelContentDisposition
8001 (allows the imapp code to compile)
8003 * providers/imapp/camel-imapp-driver.c: #include <string.h>
8005 2003-09-18 Jeffrey Stedfast <fejj@ximian.com>
8007 * camel-mime-utils.c (camel_transfer_encoding_to_string): New
8008 function to replace the one from camel-mime-part.c
8009 (camel_transfer_encoding_from_string): Same.
8010 (camel_content_transfer_encoding_decode): Renamed from
8011 camel_header_content_encoding_decode().
8013 * camel-mime-part.c (camel_mime_part_encoding_to_string): Removed.
8014 (camel_mime_part_encoding_from_string): Removed.
8016 * camel-data-wrapper.[c,h]: updated for CamelTransferEncoding
8019 * camel-folder-summary.c: updated for CamelTransferEncoding
8022 * camel-mime-filter-bestenc.[c,h]: updated for CamelTransferEncoding
8025 * camel-mime-message.c: updated for CamelTransferEncoding
8028 * camel-mime-part-utils.c: updated for CamelTransferEncoding
8031 * camel-multipart-signed.c: updated for CamelTransferEncoding
8034 * camel-smime-context.c: updated for CamelTransferEncoding
8037 * providers/imapp/camel-imapp-utils.c: updated for
8038 CamelTransferEncoding namespace changes
8040 * tests/lib/messages.c: updated for CamelTransferEncoding
8043 * tests/message/test1.c: updated for CamelTransferEncoding
8046 2003-09-18 Jeffrey Stedfast <fejj@ximian.com>
8048 * camel-mime-utils.[c,h]: namespaced the encoding/decoding
8051 * camel-mime-filter-basic.c: updated for namespace changes to the
8052 encoding/decoding routines in camel-mime-utils.c
8054 * camel-multipart.c: updated for namespace changes to the
8055 encoding/decoding routines in camel-mime-utils.c
8057 * camel-sasl-digest-md5.c: updated for namespace changes to the
8058 encoding/decoding routines in camel-mime-utils.c
8060 * camel-sasl.c: updated for namespace changes to the
8061 encoding/decoding routines in camel-mime-utils.c
8063 * camel-vee-folder.c: updated for namespace changes to the
8064 encoding/decoding routines in camel-mime-utils.c
8066 * providers/imap/camel-imap-search.c: updated for namespace
8067 changes to the encoding/decoding routines in camel-mime-utils.c
8069 * providers/pop3/camel-pop3-folder.c: updated for namespace
8070 changes to the encoding/decoding routines in camel-mime-utils.c
8072 2003-08-26 Jeffrey Stedfast <fejj@ximian.com>
8074 * camel-mime-parser.[c,h]: s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g and
8075 s/_header_state/_camel_mime_parser_state/g
8077 * camel-filter-driver.c: Same.
8079 * camel-folder-summary.c: Here too.
8081 * camel-http-stream.c: And here.
8083 * camel-mime-message.c: ...
8085 * camel-mime-part-utils.c: ...
8087 * camel-mime-part.c: ...
8089 * camel-movemail.c: ...
8091 * camel-multipart-signed.c: ...
8093 * camel-multipart.c: ...
8095 * providers/local/camel-mbox-folder.c: ...
8097 * providers/local/camel-mbox-summary.c: ...
8099 * providers/local/camel-mh-summary.c: ...
8101 * providers/nntp/camel-nntp-summary.c: ...
8103 * providers/pop3/camel-pop3-folder.c: ...
8105 2003-08-25 Jeffrey Stedfast <fejj@ximian.com>
8107 * camel-mime-utils.[c,h]: Namespaced.
8109 * camel-data-wrapper.c: updated for namespace changed made to
8110 camel-mime-utils.[c,h]
8112 * camel-digest-folder.c: updated for namespace changed made to
8113 camel-mime-utils.[c,h]
8115 * camel-filter-driver.c: updated for namespace changed made to
8116 camel-mime-utils.[c,h]
8118 * camel-filter-search.c: updated for namespace changed made to
8119 camel-mime-utils.[c,h]
8121 * camel-folder-search.c: updated for namespace changed made to
8122 camel-mime-utils.[c,h]
8124 * camel-folder-summary.[c,h]: updated for namespace changed made
8125 to camel-mime-utils.[c,h]
8127 * camel-http-stream.c: updated for namespace changed made to
8128 camel-mime-utils.[c,h]
8130 * camel-http-stream.h: updated for namespace changed made to
8131 camel-mime-utils.[c,h]
8133 * camel-internet-address.c: updated for namespace changed made to
8134 camel-mime-utils.[c,h]
8136 * camel-medium.[c,h]: updated for namespace changed made to
8137 camel-mime-utils.[c,h]
8139 * camel-mime-message.c: updated for namespace changed made to
8140 camel-mime-utils.[c,h]
8142 * camel-mime-parser.[c,h]: updated for namespace changed made to
8143 camel-mime-utils.[c,h]
8145 * camel-mime-part-utils.c: updated for namespace changed made to
8146 camel-mime-utils.[c,h]
8148 * camel-mime-part.[c,h]: updated for namespace changed made to
8149 camel-mime-utils.[c,h]
8151 * camel-movemail.c: updated for namespace changed made to
8152 camel-mime-utils.[c,h]
8154 * camel-multipart-encrypted.c: updated for namespace changed made
8155 to camel-mime-utils.[c,h]
8157 * camel-multipart-signed.c: updated for namespace changed made to
8158 camel-mime-utils.[c,h]
8160 * camel-multipart.c: updated for namespace changed made to
8161 camel-mime-utils.[c,h]
8163 * camel-search-private.[c,h]: updated for namespace changed made
8164 to camel-mime-utils.[c,h]
8166 * camel-types.h: updated for namespace changed made to
8167 camel-mime-utils.[c,h]
8169 * providers/imap/camel-imap-folder.c: updated for namespace
8170 changed made to camel-mime-utils.[c,h]
8172 * providers/imap/camel-imap-store-summary.c: updated for namespace
8173 changed made to camel-mime-utils.[c,h]
8175 * providers/imap/camel-imap-utils.c: updated for namespace changed
8176 made to camel-mime-utils.[c,h]
8178 * providers/imapp/camel-imapp-utils.[c,h]: updated for namespace
8179 changed made to camel-mime-utils.[c,h]
8181 * providers/local/camel-local-summary.[c,h]: updated for namespace
8182 changed made to camel-mime-utils.[c,h]
8184 * providers/local/camel-maildir-summary.c: updated for namespace
8185 changed made to camel-mime-utils.[c,h]
8187 * providers/local/camel-mbox-summary.c: updated for namespace
8188 changed made to camel-mime-utils.[c,h]
8190 * providers/local/camel-spool-summary.h: updated for namespace
8191 changed made to camel-mime-utils.[c,h]
8193 * providers/nntp/camel-nntp-summary.c: updated for namespace
8194 changed made to camel-mime-utils.[c,h]
8196 * providers/nntp/camel-nntp-utils.c: updated for namespace changed
8197 made to camel-mime-utils.[c,h]
8199 * providers/pop3/camel-pop3-folder.c: updated for namespace
8200 changed made to camel-mime-utils.[c,h]
8202 * providers/sendmail/camel-sendmail-transport.c: updated for
8203 namespace changed made to camel-mime-utils.[c,h]
8205 * providers/smtp/camel-smtp-transport.c: updated for namespace
8206 changed made to camel-mime-utils.[c,h]
8208 2003-09-16 Jeffrey Stedfast <fejj@ximian.com>
8210 * providers/local/camel-mbox-folder.c
8211 (camel_mbox_folder_get_full_path): Implement a temp hack so trunk
8212 works until we merge in new-ui-branch.
8214 * camel-stream-filter.c (do_flush): Don't warning about how we
8215 haven't written anything to the stream, this is not an
8216 error. fflush() doesn't care if you try to fflush() a stream
8217 without writing to it, so we shouldn't care either.
8219 2003-09-15 Not Zed <NotZed@Ximian.com>
8221 * providers/imapp/camel-imapp-store.c (store_resp_list)
8222 (imap_login, try_sasl, imap_try_authenticate): removed dead code.
8224 * providers/imapp/camel-imapp-stream.c: return -1 if stream not
8227 * providers/imapp/camel-imapp-engine.c (iterate_completion): put
8228 done request on the done queue, so all requests are always
8230 (camel_imapp_engine_command_free): just spit warnings of active
8231 messages being freed, but abort if the item isn't in any list.
8232 Also remove the node from its list before going on.
8233 (iterate_untagged, iterate_continuation, iterate_completion):
8236 * providers/imapp/camel-imapp-provider.c
8237 (camel_imapp_module_init): move camel_exception_setup call here.
8239 * providers/imapp/camel-imapp-driver.c
8240 (camel_imapp_driver_get_type): remove execption setup here, it
8242 (camel_imapp_driver_list): handle exceptions.
8244 2003-09-12 Jeffrey Stedfast <fejj@ximian.com>
8246 * providers/local/camel-mbox-folder.c
8247 (camel_mbox_folder_get_full_path): Implements
8248 CamelLocalFolder::get_full_path() (publicly namespaced so that
8249 CamelMboxStore can re-use them).
8250 (camel_mbox_folder_get_meta_path): Same.
8252 * providers/local/camel-mbox-store.c (get_folder): Changed the way
8253 the path is constructed, since we now handle subdirectories and
8255 (delete_folder): Try deleting the Folder.sbd directory. We also
8256 need to manage our own meta files since CamelLocalStore's impl
8257 constructs paths differently than what we need.
8258 (create_folder): Implemented.
8259 (rename_folder): Implemented.
8260 (scan_dir): Scan an mbox tree
8261 (get_folder_info): Implemented using scan_dir().
8263 * providers/local/camel-local-store.c (delete_folder): Set fi->url
8264 to the correct value, meaning we need to prefix it with the
8265 protocol and the folder_name is not actually part of the path, it
8266 is a separate component to the url.
8268 * providers/local/camel-local-folder.c
8269 (camel_local_folder_construct): Use the new class virtual method
8270 to construct the full folder path and all the meta files.
8271 (local_get_full_path): Implemented default get_full_path method.
8272 (local_get_meta_path): Implemented default get_meta_path method.
8274 2003-09-11 Dan Winship <danw@ximian.com>
8276 * Makefile.am (noinst_LTLIBRARIES): Remove libcamel-static.la
8278 2003-09-05 Not Zed <NotZed@Ximian.com>
8280 * providers/imap/camel-imap-store.c (imap_noop): call
8281 camel_folder_sync bypassing the folder lock. See
8282 imap_store_refresh_folders too.
8284 2003-09-04 David Woodhouse <dwmw2@infradead.org>
8286 * providers/camel-imap-store.[ch]: Add PREAUTH handling and
8287 pine/mutt/etpan/etc.-style 'ssh <mailhost> exec imapd' support.
8289 2003-09-03 David Woodhouse <dwmw2@infradead.org>
8291 * camel-stream-process.[ch]: New stream implementation for running
8293 * Makefile.am: Compile the above
8295 2003-08-20 Not Zed <NotZed@Ximian.com>
8299 * camel-folder-search.h: Removed match1 member.
8301 * camel-folder-search.c (camel_folder_search_match_expression):
8302 use current directly rather than match1. This method isn't used
8304 (search_not): remove match1 stuff.
8305 (search_match_all): properly handle the match-all against 1
8306 message as a scalar result, not an array result.
8308 2003-09-03 Not Zed <NotZed@Ximian.com>
8310 * camel-http-stream.c (camel_http_stream_set_proxy): handle NULL
8311 proxy_url - unset the proxy.
8313 2003-08-29 Not Zed <NotZed@Ximian.com>
8315 * camel-object.c (camel_object_state_write):
8317 (cobject_setv, cobject_state_read, cobject_state_read)
8318 (cobject_state_write): removed debug printfs.
8320 * providers/local/camel-local-folder.c (local_getv): Need to copy
8321 the local properties list before passing it out, since it's freed.
8323 2003-08-27 Not Zed <NotZed@Ximian.com>
8325 * providers/local/camel-local-folder.c (local_getv): implement
8326 PERSISTENT_PROPERTIES, for index mode.
8328 * camel-object.c (cobject_state_read): Also add property reading,
8329 and bump version to 1.
8330 (cobject_state_write): add persistent property writing.
8332 2003-08-26 Not Zed <NotZed@Ximian.com>
8334 * camel-folder.c (folder_getv): chain up properly.
8336 * camel-file-utils.c (camel_file_util_savename): helper to create
8337 a .#filename filename.
8339 * providers/local/camel-local-folder.c
8340 (camel_local_folder_construct): init meta-data for local folders.
8341 (local_getv): chain up properly, if args are not processed, rather
8342 than don't if they aren't.
8344 2003-08-23 Not Zed <NotZed@Ximian.com>
8346 * camel-object.c (cobject_class_init): added a new event,
8348 (camel_object_meta_set, camel_object_meta_get): meta-data api.
8349 (camel_object_free_hooks): Free meta-data if it is set on the
8352 * providers/local/camel-local-folder.c
8353 (camel_local_folder_get_type): setup a property list for local
8354 folders, just 'index_body' at present.
8356 2003-08-25 Jeffrey Stedfast <fejj@ximian.com>
8358 * camel-filter-driver.c (pipe_to_system): Added some more error
8359 checking for reading/writing to the pipes. Fixes bug #47880.
8361 2003-08-21 Jeffrey Stedfast <fejj@ximian.com>
8363 * camel-data-wrapper.c (decode_to_stream): Don't poke
8364 wrapper->stream directly, use camel_data_wrapper_write_to_stream()
8365 instead as this simplifies things and makes the imap data wrapper
8366 implementation Just Work (tm).
8368 * providers/imap/camel-imap-wrapper.c: changed prototype of
8369 write_to_stream() to return ssize_t.
8371 2003-08-20 Jeffrey Stedfast <fejj@ximian.com>
8373 * providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate): Make
8374 sure to ref the stream. Fixes bug #47749.
8376 2003-08-18 Not Zed <NotZed@Ximian.com>
8378 * camel-http-stream.c: Various fixes to make it work.
8380 * tests/smime/pgp-mime.c (main): added missing 'ret' variable.
8382 * providers/smtp/camel-smtp-transport.c (connect_to_server):
8383 * providers/imapp/camel-imapp-store.c (connect_to_server:
8384 * providers/imap/camel-imap-store.c (connect_to_server):
8385 * providers/pop3/camel-pop3-store.c (connect_to_server):
8386 * camel-http-stream.c (http_connect): change service->session for
8389 * camel-tcp-stream-ssl.c: Changed service to session, and fix some
8391 include camel-operation.h
8393 2003-08-15 Not Zed <NotZed@Ximian.com>
8397 * tests/lib/messages.c (test_message_compare): check
8398 write_to_stream returns.
8399 (message_dump_rec): helper to dump message structure.
8401 * camel-mime-part-utils.c
8402 (simple_data_wrapper_construct_from_parser): dont set content
8404 (camel_mime_part_construct_content_from_parser): set it here
8405 instead, on every part. basically same as setting the
8406 mime_type_field always.
8408 * camel-multipart-signed.c (camel_multipart_signed_class_init):
8409 * camel-mime-message.c (camel_mime_message_class_init):
8410 * camel-multipart.c (camel_multipart_class_init): override
8411 decode_to_stream to always do the same as write_to_stream, since
8412 we can never be encoded.
8414 2003-08-15 Jeffrey Stedfast <fejj@ximian.com>
8416 * providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate):
8417 Don't attach any filters to decode base64/qp/etc.
8419 2003-08-14 Jeffrey Stedfast <fejj@ximian.com>
8421 * camel-mime-part.c (write_to_stream): Save errno when
8422 flushing/unreffing the filter stream.
8424 2003-08-13 Jeffrey Stedfast <fejj@ximian.com>
8426 * camel-mime-part.c (write_to_stream): If the content is
8427 base64/qp/uu/etc encoded but the part is 7bit/8bit/(or otherwise
8428 non-encoded), set reencode to TRUE so that we decode the original
8429 content stream. Fixes a bug noticed on
8430 evolution-patches@ximian.com where a patch had a
8431 Content-Transfer-Encoding of 7bit but was base64 encoded.
8433 2003-08-13 Not Zed <NotZed@Ximian.com>
8435 * camel-folder-summary.c (camel_folder_summary_remove_range): Fix
8436 the range check, we were stopping removal of 1 or 2 removals, for
8437 some odd and completely uncomprehensible reason. Perhaps debug
8440 2003-08-13 Not Zed <NotZed@Ximian.com>
8444 * camel-vee-folder.c (vee_sync): Always rebuild folder on any
8445 sync, not just expunge ones.
8447 2003-08-11 Not Zed <NotZed@Ximian.com>
8449 * providers/imapp/camel-imapp-store.c (imap_get_folder_info):
8450 force connect manually so basics work.
8454 * camel-service.c (camel_gethostbyname): duh, pthread_create
8455 returns the error code directly, not via errno.
8456 (camel_gethostbyaddr): Same, also properly handle the failure
8459 2003-08-01 Not Zed <NotZed@Ximian.com>
8463 * camel-filter-search.c (match_all): match-all with no arguments
8464 should always return TRUE.
8466 * camel-folder-search.c (camel_folder_search_execute_expression):
8467 print a warning when we get an invalid result type & fixed a leak
8470 2003-08-08 Jeffrey Stedfast <fejj@ximian.com>
8472 * tests/message/test4.c: New test suite for the mime parser (which
8473 is where the below 2 fixes were noticed).
8475 * camel-mime-parser.c (folder_boundary_check): Calculate 'len' by
8476 subtracting the boundary start from inend rather than 'atleast'.
8477 (folder_scan_content): Calculate 'inend' differently depending on
8480 2003-08-08 Jeffrey Stedfast <fejj@ximian.com>
8482 * camel-mime-filter-tohtml.c (html_convert): Rather than checking
8483 *inptr == '\n', check inptr >= inend - this gets rid of an Invalid
8484 Read report from valgrind.
8486 * camel-mime-part.c (write_to_stream): Don't necessarily re-encode
8487 just because the encodings differ. Need to look into making it so
8488 that message/rfc822 and multipart parts ignore the
8489 Content-Transfer-Encoding header and just keep their 'encoding'
8490 bits set to DEFAULT.
8492 2003-08-05 Jeffrey Stedfast <fejj@ximian.com>
8494 * providers/imap/camel-imap-folder.c (get_content): Updated.
8496 * camel-mime-message.c (camel_mime_message_init): Don't override
8498 (process_header): Updated to use CamelDataWrapper's mime_type
8500 (find_best_encoding): Same.
8501 (best_encoding): Here too.
8503 * camel-digest-folder.c (camel_digest_folder_new): Updated for
8504 CamelMimePart::content_type change.
8506 * camel-mime-part.c (camel_mime_part_init): Override our parent
8507 class's default mime_type.
8508 (camel_mime_part_finalize): Don't need to unref the content_type
8510 (process_header): Updated to use CamelDataWrapper's mime_type
8512 (camel_mime_part_set_filename): Same.
8513 (camel_mime_part_get_filename): Same.
8514 (camel_mime_part_get_content_type): Same.
8515 (set_content_object): Here too.
8516 (write_to_stream): Updated.
8517 (construct_from_parser): Updated.
8519 * camel-mime-part.h: Remove the content_type field.
8521 2003-07-31 Jeffrey Stedfast <fejj@ximian.com>
8523 * tests/lib/messages.c (test_message_compare_content): If the
8524 chunks differ, perform a hexdump on the data being compared so
8525 that we may analyse it easier.
8527 * camel-multipart-signed.c (write_to_stream): Return ssize_t.
8529 * camel-mime-utils.h: Added the CamelMimePartEncodingType enum
8532 * camel-mime-part.h: Removed the CamelMimePartEncodingType enum
8535 * camel-mime-part.c (write_to_stream): Updated to return
8536 ssize_t. Also minor changes to only re-encode the content stream
8537 if the charset or encoding changed (this way we write it out in
8538 the original raw form if nothing changed).
8540 * camel-mime-part-utils.c
8541 (simple_data_wrapper_construct_from_parser): Drastically
8542 simplify. We no longer scan html content to try and find the
8543 charset, nor do we care about converting the content to UTF-8 and
8544 handling broken windows charsets.
8546 * camel-mime-message.c (find_best_encoding): Use
8547 decode_to_stream() here. Also updated to not assume the content
8548 charset is UTF-8 since it is very likely not the case anymore
8549 since data-wrappers no longer are converted to UTF-8 at parse
8552 * camel-folder-summary.c (summary_build_content_info_message): Use
8553 decode_to_stream instead here too.
8555 * camel-folder-search.c (match_words_1message): Use
8556 decode_to_stream instead of write_to_stream so we can search the
8559 * camel-data-wrapper.c (camel_data_wrapper_init): Set the default
8560 encoding to DEFAULT.
8561 (write_to_stream): Updated to return ssize_t
8562 (camel_data_wrapper_decode_to_stream): New virtual function to
8563 decode a data wrapper to a stream (results in nearly identical
8564 behaviour to the old write_to_stream method).
8565 (decode_to_stream): Default implementation of above virtual
8566 method. Decodes base64/qp/etc streams.
8568 * camel-data-wrapper.h: Removed the rawtext bit and added an
8571 2003-08-01 Jeffrey Stedfast <fejj@ximian.com>
8573 * tests/smime/pgp-mime.c: Same.
8575 * tests/smime/pgp.c: Updated to build and to import some custom
8576 gpg keys for use with testing.
8578 2003-07-30 Jeffrey Stedfast <fejj@ximian.com>
8580 * camel-mime-message.c (write_to_stream): Also updated.
8582 * camel-data-wrapper.c (write_to_stream): This should return ssize_t
8584 * camel-multipart-signed.c (write_to_stream): Updated.
8586 * camel-multipart.c (write_to_stream): Same.
8588 * camel-mime-part.c (write_to_stream): Here too.
8590 2003-07-11 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
8592 * camel-iconv.c: Fix for #46168 'some additional locale aliases
8593 required for chinese support'.
8595 2003-07-25 Jeffrey Stedfast <fejj@ximian.com>
8597 * camel-mime-utils.c (header_decode_word): Revert NotZed's fix for
8598 bug #42170 - this causes even more problems than it solves. See
8599 bug #46331 for info. Basically, each address header would be
8600 converted to UTF-8 twice which means no raw 8bit address header
8601 would render correctly.
8602 (header_decode_mailbox): Perform a sanity check on the resultant
8603 addr->str to make sure that it is valid UTF-8, if not convert it
8604 to UTF-8. Fixes bug #42170.
8606 2003-07-23 Ettore Perazzoli <ettore@ximian.com>
8608 * camel-provider.c (camel_provider_init): Print the provider
8609 directory as well, for debugging.
8611 2003-07-23 Jeffrey Stedfast <fejj@ximian.com>
8613 * camel-mime-message.c (find_best_encoding): Revert my previous
8614 changes to this function.
8616 * camel-mime-utils.h: Revert previous changes.
8618 * camel-mime-part.h: Revert previous changes.
8620 * camel-mime-part-utils.c: Revert previous changes.
8622 * camel-data-wrapper.c (camel_data_wrapper_init): Revert previous
8624 (write_to_stream): Revert previous changes.
8626 2003-07-23 Dan Winship <danw@ximian.com>
8628 * camel-block-file.c: #include camel-file-utils.h for camel_read()
8630 * camel-uid-cache.c (camel_uid_cache_save): Remove unused variable
8633 * camel-url.c: #include camel-string-utils.h for camel_strdown
8635 * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Cast
8636 an (unsigned char *) to (char *) to fix a warning
8638 2003-07-17 Jeffrey Stedfast <fejj@ximian.com>
8640 * camel-mime-message.c (find_best_encoding): Updated to convert
8641 to/from the correct charset (since content is no longer
8642 necessarily in UTF-8).
8643 (best_encoding): Free the charset string when we're done with it.
8645 * camel-stream-fs.c (stream_read): Increment the seekable stream
8646 position by the number of bytes read. Oops.
8647 (stream_write): Same here.
8649 2003-07-17 Timo Sirainen <tss@iki.fi>
8653 * providers/imap/camel-imap-folder.c (do_append): Only free the
8654 response after we have finished the literal request, otherwise we
8655 could try processing folder updates incorrectly.
8657 2003-07-14 Jeffrey Stedfast <fejj@ximian.com>
8659 * camel-mime-utils.h: Add the CamelMimePartEncodingType definition
8662 * camel-mime-part.h: Remove the CamelMimePartEncodingType
8665 * camel-mime-part-utils.c
8666 (simple_data_wrapper_construct_from_parser): Don't do any of the
8667 auto-detection we used to do here anymore. Just read the content
8668 into a memory buffer and record the encoding type.
8669 (camel_mime_part_construct_content_from_parser): Don't mangle the
8670 Content-Type struct here anymore.
8672 * camel-data-wrapper.c (camel_data_wrapper_init): Init encoding to
8674 (write_to_stream): If the stream needs to be decoded, decode it.
8676 2003-07-15 Jeffrey Stedfast <fejj@ximian.com>
8678 * camel-stream-fs.c (stream_read): If we read 0 bytes, then set
8681 2003-07-09 Jeffrey Stedfast <fejj@ximian.com>
8683 Get rid of the #ifdef ENABLE_THREADS since we no longer plan to
8684 support/maintain this.
8686 * providers/nntp/camel-nntp-store.c: Here.
8688 * providers/nntp/camel-nntp-newsrc.c: And here.
8690 * providers/nntp/camel-nntp-folder.c: Same.
8692 * providers/local/camel-local-folder.c: And here.
8694 * camel-block-file.c: Here too.
8698 * camel-certdb.c: Here too.
8700 * camel-charset-map.c: And here.
8702 * camel-cipher-context.c: "
8704 * camel-data-wrapper.c: "
8706 * camel-digest-folder.c: "
8708 * camel-exception.c: "
8712 * camel-folder-summary.c: "
8714 * camel-lock-client.c: "
8716 * camel-mime-utils.c: "
8720 * camel-operation.c: "
8722 * camel-partition-table.c: "
8724 * camel-sasl-popb4smtp.c: "
8726 * camel-service.c: "
8728 * camel-session.c: "
8732 * camel-store-summary.c: "
8734 * camel-text-index.c: "
8736 * camel-transport.c: "
8738 * camel-vee-folder.c: "
8740 * camel-tcp-stream-openssl.c: Removed pthread.h, it isn't needed.
8742 2003-07-09 Larry Ewing <lewing@ximian.com>
8744 * camel.h: remove reference to camel-pgp-mime.h
8746 2003-07-08 Jeffrey Stedfast <fejj@ximian.com>
8748 * camel-pgp-mime.[c,h]: Removed.
8750 * camel-iconv.c: Updated (new copy/paste from e-iconv).
8752 * camel-block-file.c (camel_block_file_get_block): Use
8753 camel_read() rather than libc read.
8755 * camel-tcp-stream-raw.c (stream_read): Use camel_read().
8756 (stream_write): Use camel_write().
8758 * camel-stream-fs.c (stream_read): Use camel_read().
8759 (stream_write): Use camel_write().
8761 2003-07-07 Jeffrey Stedfast <fejj@ximian.com>
8763 * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): Use
8766 * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Use
8769 * camel-session.c (get_storage_path): Use camel_mkdir().
8771 * camel-store.c (camel_mkdir_hier): Removed.
8773 * camel-data-cache.c (camel_data_cache_new): Updated to use
8775 (data_cache_path): Same.
8777 * camel-file-utils.c (camel_mkdir): Renamed and documented.
8778 (camel_file_util_safe_filename): Documented.
8779 (camel_read): Moved here from camel-io.c
8780 (camel_write): Same.
8782 * camel-io.[c,h]: Removed.
8784 * camel-uid-cache.c (camel_uid_cache_new): Use the
8785 camel-file-utils.c version of mkdir.
8787 2003-07-07 Jeffrey Stedfast <fejj@ximian.com>
8789 * camel-session.c (camel_session_init): Updated for string-utils
8792 * camel-provider.c: Updated for string-utils namespace changes.
8794 * camel-mime-part.c (init_header_name_table): Updated for
8795 string-utils namespace changes.
8797 * camel-mime-message.c (camel_mime_message_class_init): Updated
8798 for string-utils namespace changes.
8799 (camel_mime_message_init): Same.
8801 * camel-mime-filter-enriched.c
8802 (camel_mime_filter_enriched_class_init): Updated for string-utils
8805 * camel-folder-summary.c (camel_folder_summary_init): Updated for
8806 string-utils namespace changes.
8808 * camel-string-utils.[c,h]: Renamed from string-utils.[c,h] and
8809 also namespaced all functions.
8811 2003-07-01 Jeffrey Stedfast <fejj@ximian.com>
8813 * camel-sasl-digest-md5.c (digest_response): Don't quote the
8814 charset value, the qop value, nor the response value. Fixes bug
8817 2003-07-01 Jeffrey Stedfast <fejj@ximian.com>
8819 * camel-mime-utils.c (header_format_date): Use gmtime_r() instead
8820 of using gmtime() and memcpy() to try and be "atomic".
8822 2003-06-30 Dan Winship <danw@ximian.com>
8824 * camel-folder-search.c (camel_folder_search_finalize): free the
8827 2003-06-24 David Woodhouse <dwmw2@infradead.org>
8829 * camel-mime-utils.c (header_format_date): Put day of week into
8833 2003-06-25 Jeffrey Stedfast <fejj@ximian.com>
8835 * camel-folder-summary.h: Added prototype for
8836 camel_folder_summary_remove_range().
8838 2003-06-25 Not Zed <NotZed@Ximian.com>
8842 * camel-service.c (camel_gethostbyname, camel_gethostbyaddr): Make
8843 sure we have an exception that we test against.
8845 2003-06-20 Not Zed <NotZed@Ximian.com>
8849 * camel-mime-filter-enriched.c (camel_enriched_to_html): simple
8850 wrapper to convert enriched to html in one go.
8852 2003-06-18 Not Zed <NotZed@Ximian.com>
8854 * camel-service.c (get_hostbyaddr, get_hostbyname): if we got
8855 cancelled, the message is floating, so free it.
8856 (struct _lookup_msg): Add a cancelled tag.
8857 (camel_gethostbyname, camel_gethostbyaddr): if we get a
8858 failure/cancel, cancel the lookup thread and detach, so we dont
8859 have to wait for it to return. cleanup changed to handle the case
8860 where we didn't get a reply message.
8862 2003-06-13 Jeffrey Stedfast <fejj@ximian.com>
8864 * providers/pop3/camel-pop3-folder.c (pop3_finalize): Made static
8865 (to match the prototype).
8867 2003-06-13 Larry Ewing <lewing@ximian.com>
8869 * camel-folder-thread.c (camel_folder_thread_messages_apply):
8870 don't leak the summary when reloading it. Fixes a very large
8873 2003-06-17 Not Zed <NotZed@Ximian.com>
8875 * camel-vee-folder.c (vee_folder_remove_folder): Calculate ranges
8876 to remove folder info's more efficiently. affects shutdown
8877 performance on big vfolders signifinantly.
8878 (vee_folder_build_folder): do the same here, when rebuilding a
8879 folder's definition.
8881 * camel-folder-summary.c (camel_folder_summary_remove_index): new
8882 function to drop a range of index entries in one hit.
8884 2003-06-16 Not Zed <NotZed@Ximian.com>
8888 * providers/imap/camel-imap-store-summary.c
8889 (camel_imap_store_summary_namespace_new): Workaround a shell bug -
8890 if the namespace has '#' in it, then strip it.
8892 2003-06-16 Not Zed <NotZed@Ximian.com>
8896 * providers/imap/camel-imap-command.c (imap_command_strdup_vprintf):
8897 If we are outputting a folder name, make sure we calculate buffer
8898 size based on the raw/utf7 version
8902 * camel-multipart-signed.c (signed_get_part): If we can't parse
8903 the content, but we have a stream, just use that as the content.
8905 2003-06-05 Jeffrey Stedfast <fejj@ximian.com>
8909 * providers/pop3/camel-pop3-engine.c (camel_pop3_engine_new): Now
8910 takes a flags argument. Currently there is only 1 flag which can
8911 be used to disable Pop3 server extensions.
8912 (get_capabilities): Don't check for Pop3 server extensions if the
8913 DISABLE_EXTENSIONS flag is set on the engine.
8914 (camel_pop3_engine_iterate): If we get a response that is neither
8915 +OK nor -ERR, default to treating it like a -ERR.
8917 * providers/pop3/camel-pop3-store.c (connect_to_server): Check for
8918 the disable_extensions param.
8920 * providers/pop3/camel-pop3-provider.c: Define a checkbox to
8921 disable all POP3 extension support.
8923 2003-06-11 Jeffrey Stedfast <fejj@ximian.com>
8925 Partial fix for bug #44457.
8927 * camel-mime-part-utils.c
8928 (simple_data_wrapper_construct_from_parser): Make sure to set
8929 rawtext to FALSE if we successfully convert the text to UTF-8.
8931 * camel-data-wrapper.c (camel_data_wrapper_init): Default the
8932 value of rawtext to TRUE instead of FALSE. This way if the mailer
8933 decides to try displaying a non-textual part as text, it knows
8934 that it needs to convert the content to UTF-8.
8936 2003-06-04 Jeffrey Stedfast <fejj@ximian.com>
8938 * camel-uid-cache.c (camel_uid_cache_new): Create the directory
8939 with mode 0777 and the cache file itself with mode 0666. Let the
8940 user's umask filter the permissions. Instead of saving the fd on
8941 the Cache object, instead save the filename. Use camel_read()
8942 instead of expecting read() to just always work without getting an
8944 (maybe_write_uid): Don't do anything if cache->fd == -1, this
8945 means an error has occured in a previous callback. Replace the 2
8946 calls to write() with camel_write() and check their return
8947 values. If either of them fails, set cache->fd to -1 (GHashTable
8948 doesn't give us a way to abort foreach'ing thru the table).
8949 (camel_uid_cache_save): Save to a temp file instead of overwriting
8950 the original. Do proper error checking, etc. Also added some
8951 smarts about whether to try and overwrite the old cache even if we
8952 haven't successfully saved all the uids in the cache.
8953 (camel_uid_cache_destroy): Free the cache->filename, no longer
8954 need to close (cache->fd).
8956 2003-06-11 Larry Ewing <lewing@ximian.com>
8958 * camel-text-index.c (text_index_normalise): use g_utf8_strdown
8961 2003-06-09 Jeffrey Stedfast <fejj@ximian.com>
8963 * camel-mime-message.c (find_best_encoding): Add the
8964 CAMEL_BESTENC_TEXT bit to enctype if the part is a text part.
8966 * camel-mime-filter-bestenc.c
8967 (camel_mime_filter_bestenc_get_best_encoding): If we have any
8968 nul-bytes or if the content is non-text and contains any 8bit
8969 octets, we need to use base64. Fixes bug #44344.