afaadef06b39f71787b5eca1c125b56fe3d9033d
[platform/upstream/evolution-data-server.git] / camel / ChangeLog
1 2008-08-11  Sankar P  <psankar@novell.com>
2
3         * camel-db.c (cdb_sql_exec), (camel_db_count_message_info),
4         (camel_db_select):
5         MONITOR_DB_PERFORMANCE . Set this const int to non-zero,
6         so as to know how much of time each db call takes.
7
8 2008-08-07  Srinivasa Ragavan  <sragavan@novell.com>
9
10         * camel/camel-db.c: Fix return values.
11         * camel/camel-folder-search.c: Suppress No such table exception.
12
13 2008-08-07  Srinivasa Ragavan  <sragavan@novell.com>
14
15         * camel/camel-folder-summary.c: Store to db intelligently.
16
17 2008-08-07  Srinivasa Ragavan  <sragavan@novell.com>
18
19         * camel/camel-vee-folder.c: Fix load/save counts of vee folder.
20         * camel/camel-vee-summary.c:
21
22 2008-08-06  Matthew Barnes  <mbarnes@redhat.com>
23
24         ** Fixes part of bug #545877
25
26         * camel-block-file.c:
27         * camel-block-file.h:
28         * camel-cipher-context.c:
29         * camel-cipher-context.h:
30         * camel-filter-driver.c:
31         * camel-iconv.c:
32         * camel-index-control.c:
33         * camel-object.c:
34         * camel-offline-journal.h:
35         * camel-offline-journal.c:
36         * camel-operation.c:
37         * camel-partition-table.c:
38         * camel-partition-table.h:
39         * camel-text-index.c:
40         Use CamelDList instead of EDList.
41
42 2008-08-06  Srinivasa Ragavan  <sragavan@novell.com>
43
44         ** Fix for bug #546613
45
46         * camel/camel-vee-folder.c: return NULL, if unmatched folder is
47         requested.
48
49 2008-08-06  Srinivasa Ragavan  <sragavan@novell.com>
50
51         * camel/camel-db.c: Some formatting changes.
52         * camel/camel-vee-folder.c: Set query only when it changes.
53
54 2008-08-06  Srinivasa Ragavan  <sragavan@novell.com>
55
56         * camel/camel-folder-summary.c: Remove some unwanted code.
57
58 2008-08-06  Srinivasa Ragavan  <sragavan@novell.com>
59
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:
64
65 2008-08-06  Srinivasa Ragavan  <sragavan@novell.com>
66
67         ** Fix for bug #546544
68
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.
71
72 2008-08-06  Srinivasa Ragavan  <sragavan@novell.com>
73
74         * camel/camel-db.c: Add apis to delete vuids in transaction and clean
75         up add vuid api.
76         * camel/camel-db.h:
77
78 2008-08-06  Srinivasa Ragavan  <sragavan@novell.com>
79
80         * camel/camel-folder.c: Start fixing counts for vfolders.
81
82 2008-08-06  Srinivasa Ragavan  <sragavan@novell.com>
83
84         * camel/camel-db.c: Added a api to drop and recreate vfolder table.
85         * camel/camel-db.h:
86
87 2008-08-06  Milan Crha  <mcrha@redhat.com>
88
89         ** Part of fix for bug #546397
90
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.
95
96 2008-08-05  Chenthill Palanisamy  <pchenthill@novell.com>
97
98         Fixes part of #533823
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
102         on that.                                                 
103         * camel-offline-store.h:
104         * providers/Makefile.am: Disco->Offline migration code.
105
106 2008-08-05  Srinivasa Ragavan  <sragavan@novell.com>
107
108         ** Fix for bug #545505
109
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
113         thread from summary.
114
115 2008-08-05  Srinivasa Ragavan  <sragavan@novell.com>
116
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.
120
121 2008-08-05  Srinivasa Ragavan  <sragavan@novell.com>
122
123         * camel/camel-folder-search.c: Load the summary from db, only if the
124         searching length is more than in memory cache.
125
126 2008-08-05  Srinivasa Ragavan  <sragavan@novell.com>
127
128         * camel/camel-digest-folder.c: Fix search by uids. Pro'lly a typo.
129
130 2008-08-05  Srinivasa Ragavan  <sragavan@novell.com>
131
132         ** Fix for bug #546184
133
134         * camel/camel-folder-search.c: Search if we are under match_all.
135
136 2008-08-04  Matthew Barnes  <mbarnes@redhat.com>
137
138         * camel.pc.in: List sqlite3 as a requirement.
139
140 2008-08-04  Srinivasa Ragavan  <sragavan@novell.com>
141
142         ** Fix for bug #546194
143
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
146
147 2008-08-04  Srinivasa Ragavan  <sragavan@novell.com>
148
149         * camel/camel-vee-folder.c: Fix some basic vfolder code for disk
150         summary.
151
152 2008-08-04  Srinivasa Ragavan  <sragavan@novell.com>
153
154         * camel-folder-search.c: (camel_folder_search_search): Fix while
155         moving to offline.
156         * camel-search-sql.c: (camel_sexp_to_sql):
157
158 2008-08-04  Srinivasa Ragavan  <sragavan@novell.com>
159
160         * camel/camel-string-utils.c: Disable debug crashers.
161
162 2008-08-03  Srinivasa Ragavan  <sragavan@novell.com>
163
164         * camel/camel-folder-summary.c: Make 5 minutes as cache drop interval.
165
166 2008-08-03  Srinivasa Ragavan  <sragavan@novell.com>
167
168         * camel/camel-folder-summary.c: Don't free mi's in migration.
169
170 2008-08-03  Srinivasa Ragavan  <sragavan@novell.com>
171
172         * camel/camel-folder-summary.c: Fix pstring crash issues.
173
174 2008-08-01  Matthew Barnes  <mbarnes@redhat.com>
175
176         * camel-exception.c:
177         * camel-filter-driver.c:
178         * camel-folder-search.c:
179         * camel-index-control.c:
180         * camel-object.c:
181         Remove unnecessary <libedataserver/e-memory.h> include.
182
183 2008-07-31  Matthew Barnes  <mbarnes@redhat.com>
184
185         ** Fixes part of bug #545558
186
187         * providers/Makefile.am:
188         Disable the Hula provider unless --enable-hula was given at
189         configure-time.
190
191 2008-07-31  Srinivasa Ragavan  <sragavan@novell.com>
192
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
196         the pool.
197         * camel/camel-string-utils.h:
198
199 2008-07-31  Sankar P  <psankar@novell.com>
200
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),
208         (search_user_tag):
209         * camel-folder-search.h:
210         Search goodness. Make use of the new sexp parser.
211
212 2008-07-31  Sankar P  <psankar@novell.com>
213
214         * camel-vee-folder.c (vee_search_by_expression),
215         (vee_rebuild_folder):
216         Don't print debug statements
217
218 2008-07-31  Srinivasa Ragavan  <sragavan@novell.com>
219
220         ** Fix for bug #545082
221
222         * camel/camel-db.c: Added support apis.
223         * camel/camel-db.h:
224         * camel/camel-folder.c: Added support to rename folder.
225         * camel/camel-store.c: Added code to delete folder cleanly
226
227 2008-07-31  Srinivasa Ragavan  <sragavan@novell.com>
228
229         * camel/camel-db.c: Add delete folder functionality.
230         * camel/camel-folder-summary.c: Added code to check if the uid exists
231         in summary.
232         * camel/camel-folder-summary.h:
233
234 2008-07-30  Milan Crha  <mcrha@redhat.com>
235
236         ** Part of fix for bug #500389
237
238         * camel-provider.h: (enum CamelProviderConfType): New type 'OPTIONS'.
239
240 2008-07-30  Srinivasa Ragavan  <sragavan@novell.com>
241
242         * camel/camel-folder.c: Remove the folder locks in refresh info. It
243         deadlocks while resyncing in IMAP.
244
245 2008-07-29  Srinivasa Ragavan  <sragavan@novell.com>
246
247         ** Fix for bug #545099
248
249         * camel/camel-folder-summary.c: When new mails added, update the
250         summary.
251
252 2008-07-29  Srinivasa Ragavan  <sragavan@novell.com>
253
254         * camel/camel-folder.c: Remove Update folder function.
255
256 2008-07-28  Srinivasa Ragavan  <sragavan@novell.com>
257
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:
262
263 2008-07-28  Srinivasa Ragavan  <sragavan@novell.com>
264         
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:
269
270 2008-07-28  Srinivasa Ragavan  <sragavan@novell.com>
271
272         * camel/camel-folder.c: Add function to update summary.
273         * camel/camel-vtrash-folder.c: Fix compiler warnings
274
275 2008-07-28  Srinivasa Ragavan  <sragavan@novell.com>
276
277         * camel/camel-folder-summary.c: Kick off debug lines.
278
279 2008-07-27  Srinivasa Ragavan  <sragavan@novell.com>
280
281         * camel/camel-folder-summary.c: Fix unread count updates in folder
282         tree. 
283
284 2008-07-27  Frederic Peters  <fpeters@0d.be>
285
286         ** Fix for bug #544963
287
288         * Makefile.am: Include camel-search-sql.h in headers.
289
290 2008-07-26  Srinivasa Ragavan  <sragavan@novell.com>
291
292         * camel/camel-folder-summary.c: Fix compiler warning and some crash
293         possibilities.
294
295 2008-07-26  Srinivasa Ragavan  <sragavan@novell.com>
296
297         * camel/camel-folder-summary.c: Another possible deadlock. Never hold
298         summary lock and do a db operation.
299
300 2008-07-26  Srinivasa Ragavan  <sragavan@novell.com>
301
302         ** Fix for bug #544825
303
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.
307
308 2008-07-25  Milan Crha  <mcrha@redhat.com>
309
310         ** Part of fix for bug #544049
311
312         * camel-object.c: Initialize global variables, just to be sure.
313
314 2008-07-25  Milan Crha  <mcrha@redhat.com>
315
316         ** Fix for bug #544651
317
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):
323         Do not access NULL.
324         * camel-folder-summary.c: (my_list_append):
325         Interpret and update given list pointer properly.
326
327 2008-07-25  Milan Crha  <mcrha@redhat.com>
328
329         ** Fix for bug #544031
330
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.
334
335 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
336
337         * camel/camel-db.h: Disable share cache sql
338
339 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
340
341         ** Fix for bug #543569
342
343         * camel/camel-store.c: Recreate cache, if it was blown.
344
345 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
346         
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)
351
352         * camel/camel-db.h: 
353         * camel/camel-folder-summary.c:
354         * camel/camel-string-utils.c:
355
356 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
357
358         ** Fix for bug #544114
359
360         * camel/camel-folder-search.c:
361         * camel/providers/local/camel-mbox-folder.c: Do a sync before we
362         reload things.
363
364 2008-07-25  Matthew Barnes  <mbarnes@redhat.com>
365
366         ** Camel Reference Manual improvements:
367         Tag more symbols as deprecated.  The documentation already
368         describes them as such.
369
370         * camel-debug.h (camel_verbose_debug):
371         * camel-store.h (CAMEL_STORE_FOLDER_INFO_FAST):
372         * camel-store.h (camel_folder_info_build):
373
374 2008-07-25  Matthew Barnes  <mbarnes@redhat.com>
375
376         ** Camel Reference Manual improvements:
377         Add more sections to the Table of Contents.
378         Tag deprecated API with CAMEL_DISABLE_DEPRECATED.
379
380 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
381
382         * camel/camel-folder-search.c: Sync the db before we do a search. So
383         that we are always on sync with view.
384
385 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
386
387         ** Fix for bug #544491
388
389         * camel/camel-db.c: Lock while 2 thread try to access same folder's
390         table using same handle.
391
392 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
393
394         * camel/camel-search-sql.c: Further improve search.
395
396 2008-07-25  Srinivasa Ragavan  <sragavan@novell.com>
397
398         * camel/camel-search-sql.c: Add more search crash handlers. Atm
399         body-search alone should fail.
400
401 2008-07-24  Srinivasa Ragavan  <sragavan@novell.com>
402
403         ** Fix for bug #544501
404
405         * camel/camel-search-sql.c: Handle single node search queries.
406
407 2008-07-24  Srinivasa Ragavan  <sragavan@novell.com>
408
409         ** Fix for bug #544528
410
411         * camel/camel-search-sql.c: Ignore match-threads. It wont be supported
412         with new disk summary. Handle cases where it crashes.
413
414 2008-07-24  Srinivasa Ragavan  <sragavan@novell.com>
415
416         ** Rewrite camel search by converting sexp to sql.
417
418         * camel/camel-folder-search.c:
419         * camel/camel-folder-summary.c:
420         * camel/camel-search-sql.c:
421
422 2008-07-23  Srinivasa Ragavan  <sragavan@novell.com>
423
424         * Makefile.am: Add core camel search in sql support.
425         * camel-db.c (camel_db_get_column_name):
426
427 2008-07-23  Milan Crha  <mcrha@redhat.com>
428
429         ** Fix for bug #543943
430
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),
436         (camel_db_select):
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):
441         Leak fix.
442
443 2008-07-22  Matthew Barnes  <mbarnes@redhat.com>
444
445         ** Fix a bunch of Gtk-Doc warnings.
446
447 2008-07-22  Priit Laes  <plaes@plaes.org>
448
449         ** Fixes bug #544202
450
451         * camel-store.c: (construct): Fix string usage after it is freed.
452
453 2008-07-22  Sankar P  <psankar@novell.com>
454
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.
458
459 2008-07-21  Tor Lillqvist  <tml@novell.com>
460
461         * camel-db.c (camel_db_open): Check for
462         CAMEL_SQLITE_DEFAULT_CACHE_SIZE environment variable was
463         backwards.
464
465 2008-07-21  Sankar P  <psankar@novell.com>      
466
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.
470
471 2008-07-21  Srinivasa Ragavan  <sragavan@novell.com>
472
473         * camel/camel-folder-summary.c: Add migration support and fix some
474         warnings
475
476 2008-07-20  Matthew Barnes  <mbarnes@redhat.com>
477
478         ** Fixes bug #541347
479
480         * camel-block-file.h:
481         #include <sys/types.h> (in the proper order)
482
483 2008-07-17  Sankar P  <psankar@novell.com>
484
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.
488
489 2008-07-16  Sankar P  <psankar@novell.com>
490
491         Pushing disk summary changes from the madagascar branch
492
493         * Makefile.am:
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):
545         * camel-folder.h:
546         * camel-offline-journal.c:
547         * camel-store.c (camel_store_finalize), (construct):
548         * camel-store.h:
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):
571
572 2008-07-12  Srinivasa Ragavan  <sragavan@novell.com>
573
574         ** Fix for bug #213072
575
576         * camel-folder.c: (camel_folder_refresh_info): Lock while rebuilding
577         summaries.
578
579 2008-07-07  Matt McCutchen 2  <matt@mattmccutchen.net>
580
581         ** Fix for bug #503922
582
583         * camel-folder-summary.c: Fix typo in mapping flag name "draft".
584
585 2008-07-02  Jeffrey Stedfast  <fejj@novell.com>
586
587         * camel-folder.c (camel_folder_sort_uids): New method to sort an
588         array of uids.
589
590 2008-06-25  Jeffrey Stedfast  <fejj@novell.com>
591
592         * camel-mime-utils.c (camel_header_decode_date): Don't crash if
593         the str argument is NULL.
594
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().
598
599 2008-06-21  Jeffrey Stedfast  <fejj@novell.com>
600
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
604         up-to-date).
605
606         * camel-mime-utils.c (camel_header_decode_date): Copy/pasted
607         GMime's decode_date() code to replace really nasty code.
608
609 2008-06-20  Jeffrey Stedfast  <fejj@novell.com>
610
611         * camel-mime-filter-progress.[c,h]: New progress-reporting stream
612         filter.
613
614         * camel-mime-utils.c: Get rid of the CLEAN_DATE #define
615         usage... we can never trust that dates are always properly
616         formatted.
617
618 2008-06-18  Priit Laes  <plaes@plaes.org>
619
620         ** Fix a regression introduced with bug #534080
621
622         * camel-stream-vfs.c: (stream_write):
623         Return correct bytes_written on success and -1 on error.
624
625 2008-06-18  Milan Crha  <mcrha@redhat.com>
626
627         ** Fix for bug #340838
628
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.
632
633 2008-06-18  Milan Crha  <mcrha@redhat.com>
634
635         ** Fix for bug #334160
636
637         * camel-data-cache.c: (struct _CamelDataCachePrivate),
638         (data_cache_path):
639         Changed the way when test the expiration of the cache.
640
641 2008-06-13  Milan Crha  <mcrha@redhat.com>
642
643         ** Fix for bug #534080
644
645         * camel-stream-vfs.c: (stream_write):
646         Use g_output_stream_write_all instead of g_output_stream_write.
647
648 2008-06-13  Tor Lillqvist  <tml@novell.com>
649
650         * camel-msgport.c: Make it compile on Win32.
651
652 2008-06-06  Tor Lillqvist  <tml@novell.com>
653
654         * camel-private.h
655         * camel-win32.c: Drop the Win32 fsync() implementation. Instead
656         just use _commit() in the Microsoft C library which does the same.
657
658         * Makefile.am: Link libcamel with ICONV_LIBS.
659
660 2008-05-29  Milan Crha  <mcrha@redhat.com>
661
662         ** Part of fix for bug #534312
663
664         * camel-folder-summary.h: (enum CamelMessageFlags):
665         Added new message flag CAMEL_MESSAGE_FORWARDED.
666
667 2008-05-22  Jeffrey Stedfast  <fejj@novell.com>
668
669         * camel-mime-utils.c (camel_header_param_list_format_append): Work
670         around the broken "Jive Forums" NNTP gateway. Fixes bug #518312.
671
672 2008-05-27  Hiroyuki Ikezoe  <poincare@ikezoe.net>
673
674         ** Fixes bug #534294.
675
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.
680
681 2008-05-19  Matthew Barnes  <mbarnes@redhat.com>
682
683         ** Fixes part of bug #531591
684
685         * camel-disco-diary.c:
686         * camel-disco-folder.c:
687         * camel-disco-store.c:
688         * camel-folder-summary.c:
689         * camel-folder.c:
690         * camel-gpg-context.c:
691         * camel-object.c:
692         * camel-offline-journal.c:
693         * camel-provider.c:
694         * camel-sasl-kerberos4.c:
695         * camel-service.c:
696         * camel-session.c:
697         * camel-smime-context.c:
698         * camel-store.c:
699         * camel-url.c:
700         * camel-vee-folder.c:
701         Don't use TeX-style quotes in user-visible messages.
702
703 2008-05-13  Tor Lillqvist  <tml@novell.com>
704
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.
708
709 2008-05-07  Jeffrey Stedfast  <fejj@novell.com>
710
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
714         exception.
715
716 2008-05-07  Matthew Barnes  <mbarnes@redhat.com>
717
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).
721
722 2008-05-06  Matthew Barnes  <mbarnes@redhat.com>
723
724         ** Fixes part of bug #424744
725
726         * Makefile.am:
727         * camel-iconv.[ch]:
728         * camel-msgport.[ch]:
729         * camel-trie.[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.
733
734         * camel.h:
735         #include <camel/camel-msgport.h>
736         #include <camel/camel-trie.h>
737
738         * camel-charset-map.c:
739         * camel-filter-search.c:
740         * camel-mime-utils.c:
741         * camel-mime-part.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.
748
749         * camel-net-utils.c:
750         * camel-operation.c:
751         * camel-session.h:
752         Use camel-msgport.h instead of e-msgport.h.
753
754         * camel-url-scanner.c:
755         Use camel-trie.h instead of e-trie.h.
756
757 2008-05-06  Sankar P  <psankar@novell.com>
758
759         * Bad git-svn usage. Reverted.
760
761 2008-05-01  Jeffrey Stedfast  <fejj@novell.com>
762
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.
766
767 2008-04-30  Matthew Barnes  <mbarnes@redhat.com>
768
769         * camel-session.c:
770         * camel-session.h:
771         Replace assertions with g_return_val_if_fail().
772         Clean up coding style in the threading functions.
773
774 2008-04-27  Matthew Barnes  <mbarnes@redhat.com>
775
776         ** Fixes bug #530139
777
778         * tests/Makefile.am: Do not ship .svn files.
779
780 2008-04-22  Milan Crha  <mcrha@redhat.com>
781
782         ** Fix for bug #529339
783
784         * camel-folder-summary.c: (camel_system_flag):
785         Do not access NULL pointer, aka recognize sentinel properly.
786
787 2008-04-18  Sankar P  <psankar@novell.com>
788
789         * camel-mime-filter-pgp.c: (filter_run):
790         Fix a build break. Use different variable names 
791         for different purposes.
792
793 2008-04-17  Jeffrey Stedfast  <fejj@novell.com>
794
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.
799
800 2008-04-17  Milan Crha  <mcrha@redhat.com>
801
802         ** Part of fix for bug #526741
803
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.
810
811 2008-04-16  Christian Kellner  <gicmo@gnome.org>
812
813         ** Fixes bug #514300
814
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.
819
820 2008-04-14  Milan Crha  <mcrha@redhat.com>
821
822         ** Part of fix for bug #270406
823
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.
830
831 2008-04-07  Matthew Barnes  <mbarnes@redhat.com>
832
833         ** Fixes bug #526138
834
835         * camel-mime-utils.c (camel_header_unfold):
836         Return NULL if the input string is NULL.
837
838 2008-04-04  Jeffrey Stedfast  <fejj@novell.com>
839
840         * camel-folder-summary.c (summary_format_address): Unfold the
841         header before decoding it.
842         (summary_format_string): Same.
843
844         * camel-mime-message.c (process_header): Unfold certain headers.
845
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
848         #235681.
849
850 2008-04-02  Jeffrey Stedfast  <fejj@novell.com>
851
852         * camel-mime-utils.c (camel_header_fold): Fixed bug #417000.
853
854 2008-04-02  Milan Crha  <mcrha@redhat.com>
855
856         ** Part of fix for bug #271863
857
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.
861
862 2008-03-31  Milan Crha  <mcrha@redhat.com>
863
864         ** Fix for bug #524704
865
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.
872
873 2008-03-27  Matthew Barnes  <mbarnes@redhat.com>
874
875         ** Fixes part of bug #518710
876
877         * camel-folder-summary.c:
878         * camel-multipart.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.
885
886         * camel-multipart-signed.c:
887         * camel-store-summary.c:
888         Remove unneeded inclusion of <libedataserver/md5-utils.h>.
889
890 2008-03-17  Christian Kellner  <gicmo@gnome.org>
891
892         ** Fix for bug #341004
893
894         * camel-url.c: (camel_url_to_string): Hide the auth mech when
895         CAMEL_URL_HIDE_AUTH is specified.
896
897 2008-02-20  Jeff Cai<jeff.cai@sun.com>
898
899         ** Fix for bug #517190
900
901         * camel-mime-utils.c: (decode_8bit):
902         Make sure the parameter is valid before being passed to
903         g_ascii_strcasecmp
904
905 2008-02-18  Srinivasa Ragavan  <sragavan@novell.com>
906
907         ** Fix for bnc #167638
908
909         * camel.c: Upstreamed OpenSUSE patch. Patch by Fejj to quit evolution
910         faster. (Dont try downloading while exitting).
911
912 2008-02-14  Matthew Barnes  <mbarnes@redhat.com>
913
914         ** Fixes part of bug #516074
915
916         * camel-net-utils.c:
917         * camel-net-utils.h:
918         Don't assume NI_MAXHOST and NI_MAXSERV are defined in <netdb.h>
919         since these are GNU extensions.
920
921 2008-02-11  Milan Crha  <mcrha@redhat.com>
922
923         ** Fix for bug #515054
924
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.
931
932 2008-02-06  Matthew Barnes  <mbarnes@redhat.com>
933
934         * Makefile.am:
935         Fix a compilation error that occurs when building in a
936         remote object directory (#514682, patch by Paul Smith).
937
938 2008-02-04  Milan Crha  <mcrha@redhat.com>
939
940         ** Fix for bug #513389
941
942         * camel-url.c: (camel_url_new):
943         It's possible to pass empty string as url, so return safely.
944
945 2008-02-01  Milan Crha  <mcrha@redhat.com>
946
947         ** Fix for bug #211353
948
949         * camel-filter-driver.c: (do_label):
950         Use new label tags when setting old tags.
951
952 2008-01-11  Milan Crha  <mcrha@redhat.com>
953
954         ** Fix for bug #324168
955
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 
959         message info itself.
960
961 2008-01-27  Jeffrey Stedfast  <fejj@novell.com>
962
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.
966
967 2008-01-24  Matthew Barnes  <mbarnes@redhat.com>
968
969         * camel-object.c (camel_object_cast):
970         Check CamelObject pointer for NULL (#509124).
971
972 2008-01-24  Matthew Barnes  <mbarnes@redhat.com>
973
974         * camel-store.c (camel_store_get_folder):
975         Call camel_object_bag_abort() before returning with an exception.
976
977 2008-01-24  Srinivasa Ragavan  <sragavan@novell.com>
978
979         ** Fix for bug #510779 
980
981         * camel-filter-search.c: (junk_test): Add contact lookup and header
982         based filtering.
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):
991         * camel-session.h:
992
993 2008-01-23  Tor Lillqvist  <tml@novell.com>
994
995         * camel-net-utils.c
996         * camel-filter-driver.c
997         * camel-filter-search.c
998         * camel-gpg-context.c: Include GLib headers before testing G_OS_WIN32.
999
1000 2008-01-21  Matthew Barnes  <mbarnes@redhat.com>
1001
1002         ** Fixes part of bug #510303
1003
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.
1007
1008 2008-01-21  Matthew Barnes  <mbarnes@redhat.com>
1009
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)
1016
1017 2008-01-17  Matthew Barnes  <mbarnes@redhat.com>
1018
1019         * camel-session.c (camel_session_build_password_prompt):
1020         Forgot to escape the user and host name strings.  (#506250)
1021
1022 2008-01-17  Matthew Barnes  <mbarnes@redhat.com>
1023
1024         ** Fixes part of bug #506250
1025
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.
1030
1031 2008-01-16  Ã˜ystein GisnÃ¥s  <oystein@gisnas.net>
1032
1033         ** Fix for bug #300098
1034
1035         * camel-provider.pc.in:
1036         * camel.pc.in:
1037         Set proper dependencies for stand-alone programs linking against
1038         camel.
1039
1040 2008-01-14  Matthew Barnes  <mbarnes@redhat.com>
1041
1042         * camel-operation.c (camel_operation_end):
1043         Use g_slist_delete_link() to discard the list node (#509370).
1044
1045 2008-01-12  Srinivasa Ragavan  <sragavan@novell.com>
1046
1047         * camel-mime-part.c: (camel_mime_part_get_content_size): Fixes few
1048         warnings.
1049
1050 2008-01-12  Srinivasa Ragavan  <sragavan@novell.com>
1051
1052         * camel-mime-part.c: Fix a build break.
1053
1054 2008-01-12  Srinivasa Ragavan  <sragavan@novell.com>
1055
1056         ** Fix for bug #379896
1057
1058         * camel-mime-utils.c: (camel_header_param): Check the value for NULL 
1059         before comparing.
1060
1061 2008-01-12  Srinivasa Ragavan  <sragavan@novell.com>
1062
1063         ** Fix for bug #500233 
1064
1065         * camel-url.c: (camel_url_new): Handle empty strings.
1066
1067 2008-01-11  Jeffrey Stedfast  <fejj@novell.com>
1068
1069         Slightly modified version of a patch submitted by Jean-Christophe
1070         BEGUE for bug #329692.
1071
1072         * camel-mime-part.c (camel_mime_part_get_content_size): Get the
1073         decoded content size of a MIME part.
1074
1075 2008-01-09  Milan Crha  <mcrha@redhat.com>
1076
1077         * Reverted previous patch because it doesn't play well with
1078         prefer plain plugin.
1079
1080 2008-01-09  Sankar P  <psankar@novell.com>
1081
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.
1085
1086         ** Fix for bug #460204
1087
1088 2008-01-07  Sankar P  <psankar@novell.com>
1089
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
1094
1095 2008-01-07  Srinivasa Ragavan  <sragavan@novell.com>
1096
1097         ** Fix for bug #405497
1098         * camel-private.h:
1099         * camel-vee-folder.c: (folder_changed_base),
1100         (camel_vee_folder_finalise): Don't pass events if the object is being 
1101         destroyed.
1102
1103 2008-01-06  Bharath Acharya  <abharath@novell.com>
1104
1105         ** Fix for bug #474118
1106
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.
1110
1111 2007-12-27  Jeffrey Stedfast  <fejj@novell.com>
1112
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
1117         passed.
1118         (rfc2047_decode_word): Make sure inlen >= 8.
1119
1120 2007-12-25  Jeffrey Stedfast  <fejj@novell.com>
1121
1122         Fixes bug #224026
1123
1124         * camel-charset-map-private.h: Regenerated.
1125
1126         * camel-charset-map.c (main): Rewritten to be in-sync with GMime's
1127         implementation which has support for multibyte charsets and
1128         Arabic.
1129
1130 2007-12-25  Jeffrey Stedfast  <fejj@novell.com>
1131
1132         * camel-mime-utils.c (header_decode_domain): Check *inptr before
1133         calling camel_mime_is_dtext()
1134
1135 2007-12-25  Jeffrey Stedfast  <fejj@novell.com>
1136
1137         Fixes the remainder of the "evolution won't decode
1138         this/that/whatever brokenly rfc2047 encoded header" bugs.
1139
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
1143         failure.
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
1146         necessary.
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.
1152
1153 2007-12-14  Milan Crha  <mcrha@redhat.com>
1154
1155         ** Part of fix for bug #211353
1156
1157         * camel-filter-driver.c: (do_label):
1158         Labels are newly stored in user_flags, not in user_tags.
1159
1160 2007-12-15  Matthew Barnes  <mbarnes@redhat.com>
1161
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).
1166
1167 2007-12-12  Evil Ninja Squirrel  <evilninjasquirrel@hotbrev.com>
1168
1169         ** Fix for bug #486126
1170
1171         * camel-filter-driver.c: (camel_filter_driver_filter_message):
1172         Fixed an incorrect format string usage that can lead to crashes.
1173
1174 2007-12-11  Milan Crha  <mcrha@redhat.com>
1175
1176         ** Fix for bug #336074
1177
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.
1184
1185 2007-12-05  Matthew Barnes  <mbarnes@redhat.com>
1186
1187         ** Fixes bug #501622
1188
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.
1192
1193 2007-12-03  Milan Crha  <mcrha@redhat.com>
1194
1195         ** Fix for bug #324008
1196
1197         * camel-text-index.c: (text_index_sync):
1198         Don't sync when wasn't created successfully.
1199
1200 2007-11-23  Milan Crha  <mcrha@redhat.com>
1201
1202         ** Fix for bug #461979
1203
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.
1206
1207 2007-11-22  Milan Crha  <mcrha@redhat.com>
1208
1209         ** Fix for bug #376425
1210
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.
1215
1216 2007-11-15  Matthew Barnes  <mbarnes@redhat.com>
1217
1218         ** Fixes part of bug #474000
1219
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().
1223
1224 2007-11-15  Milan Crha  <mcrha@redhat.com>
1225
1226         ** Typo fix in previous commit causing crash.
1227
1228 2007-11-14  Matthew Barnes  <mbarnes@redhat.com>
1229
1230         ** Merge a bunch of compiler warning fixes and cosmetic
1231            cleanups from camel-lite.
1232
1233 2007-11-11  Matthew Barnes  <mbarnes@redhat.com>
1234
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).
1238
1239 2007-11-09  Matthew Barnes  <mbarnes@redhat.com>
1240
1241         * camel-mime-utils.c (camel_base64_decode_simple):
1242         Add argument guards, although nothing should be using this anymore.
1243
1244 2007-10-15  Jeffrey Stedfast  <fejj@gnome.org>
1245
1246         * camel-mime-message.c (camel_mime_message_set_subject): Protect
1247         against a NULL subject string.
1248
1249 2007-10-01  Kjartan Maraas  <kmaraas@gnome.org>
1250
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),
1282         (socket_connect):
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.
1288
1289 2007-09-12  Milan Crha  <mcrha@redhat.com>
1290
1291         ** Fix for bug #231178
1292
1293         * camel-filter-driver.c: (struct symbols), (do_label):
1294         New symbol 'set-label' defined and added corresponding callback.
1295
1296 2007-09-27  Matthew Barnes  <mbarnes@redhat.com>
1297
1298         ** Fixes part of bug #474000
1299
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.
1304
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.
1312
1313 2007-09-12  Milan Crha  <mcrha@redhat.com>
1314
1315         ** Fix for bug #231178
1316
1317         * camel-filter-driver.c: (struct symbols), (do_label):
1318         New symbol 'set-label' defined and added corresponding callback.
1319
1320 2007-09-10  Sankar P  <psankar@novell.com>
1321
1322         * camel-partition-table.c: (camel_key_table_lookup):
1323         Convert a g_assert to g_warning. Reduces the severity of
1324         #348149
1325
1326 2007-09-07  Milan Crha  <mcrha@redhat.com>
1327
1328         ** Fix for bug #469007
1329
1330         * camel-search-private.c: (camel_search_header_match):
1331         Let work the code for skipping white spaces at the beginning of
1332         header value.
1333
1334         * camel-search-private.c: (camel_ustrcasecmp), (camel_ustrncasecmp):
1335         Fixed other compiler warnings in this file.
1336
1337 2007-09-07  Milan Crha <mcrha@redhat.com>
1338
1339         ** Fix for bug #473880
1340
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.
1346
1347 2007-08-28  Ross Burton  <ross@openedhand.com>
1348
1349         * */*:
1350         Fix FSF address (Tobias Mueller, #470445)
1351
1352 2007-08-27  Johnny Jacob  <jjohnny@novell.com>
1353  
1354         ** Fix for 261084 by Jared Moore <cornflake.pirate@gmail.com>
1355         
1356         * camel-folder-search.c: String change.
1357         
1358         
1359 2007-08-27  Srinivasa Ragavan  <sragavan@novell.com>
1360
1361         ** Fix for bug #256878 from Vincent Untz
1362
1363         * camel-cipher-context.h:
1364         * camel-gpg-context.c: (gpg_verify), (gpg_decrypt):
1365
1366 2007-08-23  Matthew Barnes  <mbarnes@redhat.com>
1367
1368         * camel-tcp-stream-ssl.c (camel_certdb_nss_cert_get):
1369         Simplify the code; use g_file_get_contents() (#437331).
1370
1371 2007-08-20  Matthew Barnes  <mbarnes@redhat.com>
1372
1373         * camel-url.c:
1374         Add argument checks to several public functions (#467883).
1375
1376 2007-08-16  Milan Crha  <mcrha@redhat.com>
1377
1378         ** Part of fix for bug #350539
1379
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.
1386
1387 2007-08-14  Jens Granseuer  <jensgr@gmx.net>
1388
1389         ** Fix for bug #466309
1390
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.
1394
1395 2007-08-13  Milan Crha  <mcrha@redhat.com>
1396
1397         ** Fix for bug #352346
1398
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.
1402
1403 2007-08-13  Srinivasa Ragavan  <sragavan@novell.com>
1404
1405         ** Fix for bug #420462
1406
1407         * camel-store.c: (camel_folder_info_build): If the FolderInfo doesn't
1408         have a child, unset the NO_CHILDREN flag.
1409
1410 2007-08-12  Rob Bradford  <rob@openedhand.com>
1411
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.
1415
1416 2007-08-12  Johnny Jacob  <jjohnny@novell.com>
1417  
1418         ** Fix for 387806 by Rob Bradford  <rob@openedhand.com>
1419         
1420         * camel-text-index.c: Add some checking of return values when
1421         calling camel_block_file_new_block. 
1422  
1423 2007-08-12  Johnny Jacob  <jjohnny@novell.com>
1424
1425         ** Fix for Bug 261084 from Jared Moore
1426
1427         * camel-folder-search.c :
1428         
1429 2007-07-28  Ross Burton  <ross@openedhand.com>
1430
1431         * camel-index.c:
1432         * camel-folder-summary.c:
1433         Add some sanity checks (#460861)
1434
1435 2007-07-29  Srinivasa Ragavan  <sragavan@novell.com>
1436
1437         ** Fix for bug #402925 from hggdh
1438
1439         * camel.c: (camel_init):
1440
1441 2007-07-09  Gilles Dartiguelongue  <gdartigu@svn.gnome.org>
1442
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)
1457
1458 2007-06-20  Milan Crha  <mcrha@redhat.com>
1459
1460         ** Fix for bug #449531
1461
1462         * camel-mime-filter-pgp.c: (filter_run):
1463         Accept one space on a line after signature header as separator.
1464
1465 2007-07-09  Srinivasa Ragavan  <sragavan@novell.com>
1466
1467         ** Fix for bug #434356 from Jindrich Makovicka
1468
1469         * camel-mime-utils.c: (header_decode_lwsp), (header_decode_domain):
1470
1471 2007-07-02  Srinivasa Ragavan  <sragavan@novell.com>
1472
1473         ** Fix for bug #412735 from Pascal Terjan
1474
1475         * camel-url-scanner.c: (url_stop_at_brace):
1476
1477 2007-06-26  Philip Van Hoof  <pvanhoof@gnome.org>
1478
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).
1482
1483 2007-06-21  Irene Huang  <irene.huang@sun.com>
1484
1485         * camel-sasl-gssapi.c: (gssapi_challenge): replace gss_nt_service_name
1486         with GSS_C_NT_HOSTBASED_SERVICE.
1487
1488 2007-06-14  Philip Van Hoof  <pvanhoof@gnome.org>
1489         
1490         * camel-net-utils.c: Memory leak fix
1491
1492 2007-06-14  Philip Van Hoof  <pvanhoof@gnome.org>
1493
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)
1496
1497 2007-06-10  Matthew Barnes  <mbarnes@redhat.com>
1498
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)
1503
1504 2007-06-06  Sankar P <psankar@novell.com>
1505
1506         * camel-sasl-gssapi.c: 
1507         Fixed some wrong pre-processor directives,
1508         that were causing build-break.
1509         See bug #344728
1510
1511 2007-06-05  Irene Huang  <irene.huang@sun.com>
1512
1513         * camel-sasl-gssapi.c: Add headers for Sun Kerberos
1514         fixing bug #344728
1515
1516 2007-06-05  Irene Huang  <irene.huang@sun.com>
1517
1518         * camel-sasl-gssapi.c:
1519
1520 2007-06-01  Karl Relton  <karllinuxtest.relton@ntlworld.com>
1521
1522         ** Fix for bug #311512
1523
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
1528         uids.
1529         (camel_folder_change_info_cat): Silently add uids to recent and
1530         filter uid sets.
1531         (camel_folder_change_info_recent_uid): Use the new
1532         change_info_recent_uid() function and also add the uid to the
1533         filter set.
1534         (camel_folder_change_info_clear): Clear the filter uid set.
1535         (camel_folder_change_info_free): Free the filter uid set.
1536
1537 2007-05-24  Ross Burton  <ross@openedhand.com>
1538
1539         * providers/sendmail/Makefile.am:
1540         Add missing link flags to fix build with -z,defs. (#409542, Loic
1541         Minier)
1542
1543 2007-05-16  Jules Colding  <colding@omesc.com>
1544
1545         * camel-lock.c (camel_lock_dot): Use g_mkstemp()
1546
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.
1550
1551         * camel-uid-cache.c (camel_uid_cache_save): Cleanups, such as
1552         setting cache->fd = -1 when fd has been closed.
1553
1554         * camel-block-file.c (key_file_use): Do not close() if (fd == -1)
1555
1556         * camel-index-control.c (do_perf): Fix file descriptor leak
1557
1558         * camel-charset-map.c (main): Check for return value
1559
1560         * camel-text-index.c (dump_raw): Fix file descriptor leak
1561
1562         * camel-lock.c (main): Fix file descriptor leak.
1563
1564         * camel-lock-client.c (camel_lock_helper_init): Fix file
1565         descriptor leak
1566  
1567         * camel-process.c (camel_process_fork): Fix file descriptor leak
1568  
1569 2007-05-15  Srinivasa Ragavan  <sragavan@novell.com>
1570
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:
1574
1575 2007-05-12  Jules Colding  <colding@omesc.com>
1576
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?
1584
1585 2007-05-07  Matthew Barnes  <mbarnes@redhat.com>
1586
1587         * camel-stream-vfs.c:
1588         * camel-stream-vfs.h:
1589         Fix warnings reported by 'sparse'.  Patch from Kjartan Maraas.
1590
1591 2007-04-30  Srinivasa Ragavan  <sragavan@novell.com>
1592
1593         * Makefile.am: Added the include files part of core to the
1594         installation path. Build break.
1595
1596 2007-04-27  Matthew Barnes  <mbarnes@redhat.com>
1597
1598         ** Fixes part of bug #418852
1599
1600         * Note, these changes touch almost every file in Camel.
1601
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.
1605
1606         * Use GLib's i18n support instead of Camel's (now deprecated).
1607
1608         * Use quotes and brackets consistently in #include directives.
1609
1610         * Remove CAMEL_EXPLICIT_TRANSLATION_DOMAIN from Makefiles.
1611
1612         * Fix documentation warnings identified by Gtk-Doc.
1613
1614         * camel.h:
1615         Expose Camel's entire "core" (non-provider) API.
1616
1617         * camel-i18n.h:
1618         Deprecate this API.  Use GLib's i18n support instead.
1619
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.
1629
1630 2007-04-05  Ross Burton  <ross@openedhand.com>
1631
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).
1637
1638 2007-04-03  Srinivasa Ragavan  <sragavan@novell.com>
1639
1640         ** Fix for bug #322105
1641
1642         * camel-folder-summary.c: (info_set_flags): Fix for non-junk messages 
1643         to learn ham.
1644
1645 2007-04-01  Matthew Barnes  <mbarnes@redhat.com>
1646
1647         * camel-mime-utils.c (rfc2047_encode_word):
1648         Properly escape what would otherwise be a trigraph (??=).
1649         Patch from Kjartan Maraas.
1650
1651         * camel-search-private.c (header_match):
1652         * camel-url.c (camel_url_to_string):
1653         Fix a compiler warning.  Patch from Kjartan Maraas.
1654
1655 2007-03-29  Matthew Barnes  <mbarnes@redhat.com>
1656
1657         * camel-private.h:
1658         E-D-S requires GLib 2.10 now; remove dead backward-compatibility
1659         code for GLib < 2.8 (#418971).
1660
1661 2007-03-16  Matthew Barnes  <mbarnes@redhat.com>
1662
1663         ** Fixes part of bug #360240
1664
1665         * camel-stream-vfs.c (camel_stream_vfs_new_with_handle):
1666         Remove unused variable.
1667
1668 2007-02-26  Srinivasa Ragavan  <sragavan@novell.com>
1669
1670         ** Fix for bug #331813
1671
1672         * camel-mime-filter-tohtml.c: Patch from Gilles 
1673         Dartiguelongue.
1674
1675 2007-02-23  Matthew Barnes  <mbarnes@redhat.com>
1676
1677         ** Fixes bug #356177
1678
1679         * camel-folder.c:
1680         * camel-object.c:
1681         * camel-private.h:
1682         * camel-provider.c:
1683         * camel-service.c:
1684         * camel-store.c:
1685         * camel-text-index.c:
1686         Migrate from EMutex to GStaticMutex or GStaticRecMutex.
1687
1688 2006-01-08  Veerapuram Varadhan  <vvaradhan@novell.com>
1689
1690         ** Fixes eds part of bgo #362638 - Patch submitted by Matthew
1691         Barnes
1692
1693         * camel/camel-private.h: 
1694         * camel/camel-session.c: Replace EThread with GThreadPool.
1695         
1696 2006-12-14  Veerapuram Varadhan  <vvaradhan@novell.com>
1697
1698         ** Fixes for bgo #349445 - Patch submitted by Bastien Nocera
1699
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.
1703         
1704 2006-12-14  Veerapuram Varadhan  <vvaradhan@novell.com>
1705
1706         ** Fix for bnc #208395
1707
1708         * camel-url.[ch]: (camel_url_decode_path): Added method to
1709         decode path, by preserving the path-delimiter.
1710         
1711 2006-11-08  Sankar P  <psankar@novell.com>
1712
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.
1716
1717 2006-11-06  Srinivasa Ragavan  <sragavan@novell.com>
1718
1719         ** Fix for bug #330157
1720
1721         * camel-vee-folder.c: (camel_vee_folder_remove_folder),
1722         (camel_vee_folder_finalise): Dont unref if the sub folder is a
1723         vfolder.
1724
1725 2006-11-02  Hans Petter Jansson  <hpj@novell.com>
1726
1727         * camel-mime-filter-tohtml.c (writeln): Prevent potential buffer
1728         overrun by one byte.
1729
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().
1732
1733 2006-11-02  Harish Krishnaswamy  <kharish@novell.com>
1734
1735         * camel-mime-filter-crlf.c (filter): Fixes buffer overrun. 
1736          Bug #369168. Patch submitted by Hans Petter Jansson.
1737
1738 2006-10-05  Tor Lillqvist  <tml@novell.com>
1739
1740         Fixes from Steffen Eschenbacher:
1741
1742         * camel-stream-vfs.c (camel_stream_vfs_finalize): Call
1743         gnome_vfs_close() on the GnomeVFSHandle *, not close(). (#350576,
1744         #350885, #358010)
1745
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?
1749
1750 2006-09-14  Veerapuram Varadhan  <vvaradhan@novell.com> 
1751
1752         ** Fixes bug #350907
1753
1754         * camel-filter-search.c: (run_command): Unref GMainContext
1755         * camel-filter-driver.c: (pipe_to_system): ditto
1756         
1757 2006-08-28  Veerapuram Varadhan  <vvaradhan@novell.com> 
1758
1759         ** Fixes bug #331099 based on patches by Eric Anholt
1760         <anholt@FreeBSD.org> and Joe Marcus Clarke <marcus@FreeBSD.org>
1761
1762         * camel-object.c: (cobject_state_read): Cast the input for
1763         g_try_malloc to gulong.
1764         
1765 2006-08-23  Wang Xin  <jedy.wang@sun.com>
1766
1767         Fixes bug #352109.
1768
1769         * camel-stream-vfs.c: (stream_read), (stream_write), (stream_seek):
1770         GnomeVFSFileSize should be used, not ssize_t.
1771
1772 2006-08-23  Srinivasa Ragavan  <sragavan@novell.com>
1773         
1774         ** Fix for bug #349960 by Daniel Gryniewicz
1775         
1776         * camel-stream-vfs.c: (camel_stream_vfs_new_with_uri): Set the excl
1777         flag to FALSE to over write existing file.
1778
1779 2006-07-24  Veerapuram Varadhan <vvaradhan@novell.com>
1780
1781         * camel-folder-summary.h: Added CamelFolderMetaSummary structure
1782         that holds values for meta summary file.
1783
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
1787         infos.
1788         (camel_folder_summary_load), (camel_folder_summary_save): Load and
1789         save meta-summary information as well.
1790
1791         * providers/local/camel-mbox-summary.c (meta_message_info_save):
1792         Save message offset in the meta-summary file.
1793
1794         * camel-file-utils.[c,h] (camel_file_util_encode_fixed_string),
1795         (camel_file_util_decode_fixed_string): Encode and decode fixed
1796         length string.
1797         
1798 2006-07-07  Jeffrey Stedfast  <fejj@novell.com>
1799
1800         Fix for a bug pvanhoof spotted with my last patch
1801
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.
1804
1805 2006-07-07  Sankar P  <psankar@novell.com>
1806
1807         * camel-string-utils.c (camel_pstring_add):
1808         Fixes a variable naming error. Fixes build break.
1809                 
1810 2006-07-06  Jeffrey Stedfast  <fejj@novell.com>
1811
1812         Based on a suggestion/patch by pvanhoof
1813
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
1820         FALSE.
1821
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.
1826
1827 2006-06-26  Jeffrey Stedfast  <fejj@novell.com>
1828
1829         * camel-gpg-context.c (gpg_ctx_parse_status): Only set name to ""
1830         if it wasn't already set. Fixes bug #345965.
1831
1832 2006-06-15  Tor Lillqvist  <tml@novell.com>
1833
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().
1838
1839 2006-06-15  Andre Klapper  <a9016009@gmx.de>
1840
1841         * camel-gpg-context.c:
1842
1843         * camel-net-utils.c: changing "cancelled" to "canceled" in
1844         user-visible strings.  Fixes bug #342163.
1845
1846 2006-06-15  Andre Klapper <a9016009@gmx.de>
1847
1848         * addressbook/libebook/e-book.c:
1849
1850         * camel/camel-folder.c:
1851
1852         * camel/providers/nntp/camel-nntp-folder.c:
1853
1854         * camel/providers/pop3/camel-pop3-folder.c: changing "uri" to
1855         "URI" in user-visible strings.  Fixes bug #342161.
1856
1857 2006-06-09  Chris Heath  <chris@heathens.co.nz>
1858
1859         * camel-net-utils.c (camel_getnameinfo): Fix memory leak
1860
1861         * camel-folder-search.c (camel_folder_search_search): Ditto
1862
1863         * camel-digest-folder.c (digest_add_multipart): Ditto.
1864         Fixes bug #335423.
1865
1866 2006-06-02  Tor Lillqvist  <tml@novell.com>
1867
1868         * camel-file-utils.c (camel_read, camel_write, camel_read_socket)
1869         (camel_write_socket): Improve doc comment, mention the Win32
1870         aspects.
1871
1872 2006-05-25  Srinivasa Ragavan  <sragavan@novell.com>
1873
1874         * camel-stream-vfs.h: Added the missed file to commit.
1875
1876 2006-05-24  Srinivasa Ragavan  <sragavan@novell.com>
1877
1878         * Makefile.am: Added new files for camel vfs stream
1879         * camel-stream-vfs.[ch]: Added a new gnome-vfs backend for 
1880         camel stream.
1881
1882 2006-05-05  Jeffrey Stedfast  <fejj@novell.com>
1883
1884         * camel-charset-map.c (camel_charset_best_mask): Fixed a
1885         mis-ordering of an if-statement clause that caused bug #340717.
1886
1887 2006-05-01  Jeffrey Stedfast  <fejj@novell.com>
1888
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
1891         #335386.
1892
1893 2006-04-19  Jeffrey Stedfast  <fejj@novell.com>
1894
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
1898         that case).
1899         (reset): Reset the filter state.
1900
1901 2006-04-13  Jeffrey Stedfast  <fejj@novell.com>
1902
1903         * camel-mime-utils.c (camel_header_raw_check_mailing_list): Fixed
1904         a goof in the last patch.
1905
1906 2006-04-12  Jeffrey Stedfast  <fejj@novell.com>
1907
1908         * Fixes to many source files to suppress compiler warnings thanks
1909         to Kjartan Maraas.
1910
1911 2006-04-04  Jeffrey Stedfast  <fejj@novell.com>
1912
1913         * camel-charset-map.c (main): Set appropriate structs/struct
1914         elements to static/const.
1915
1916         * camel-charset-map-private.h: Regenerated.
1917
1918 2006-04-05  Simon Zheng  <simon.zheng@sun.com>
1919
1920         ** Fixes bug #333698
1921
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.
1926
1927 2006-03-20  Parthasarathi Susarla <sparthasarathi@novell.com>
1928         
1929         ** See bug 272307
1930
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.
1934
1935 2006-03-20  Srinivasa Ragavan  <sragavan@novell.com>
1936
1937         * camel-gpg-context.c (gpg_ctx_parse_status): Added flag to ask
1938         for pass phrase.
1939
1940         * camel-session.h: Added the flag for passphrase.
1941
1942 2006-03-20  Srinivasa Ragavan  <sragavan@novell.com>
1943
1944         * providers/groupwise/camel-groupwise-store.c:
1945         (groupwise_build_folder_info): Added flags for the system folders.
1946
1947 2006-02-21  Rohini S  <srohini@novell.com>
1948
1949         ** See bug 318697
1950
1951         * camel-url-scanner.c (camel_url_addrspec_start): conditions
1952         modified to parse only valid mailto links
1953
1954 2006-02-21  Rohini S  <srohini@novell.com>
1955  
1956         ** Fixes bug #328322
1957  
1958         * camel-mime-filter-tohtml.c: add new pattern for sftp urls.
1959  
1960 2006-02-21  Rohini S  <srohini@novell.com>
1961  
1962         * camel-url-scanner.c (camel_url_web_end): Modified to accept urls 
1963         with ./
1964         Fixes bug#256142
1965  
1966 2006-02-16  Parthasarathi Susarla <sparthasarathi@novell.com>
1967
1968         * camel-disco-diary.c (camel_disco_diary_log): proceed only if
1969         diary is a valid pointer
1970
1971 2006-02-13  Rohini S  <srohini@novell.com>
1972
1973         **See bug 328384
1974
1975         * camel-url-scanner.c (camel_url_addrspec_start): modified to
1976         remove all invalid characters in the beginning of a email address
1977
1978 2006-02-02  Parthasarathi Susarla <sparthasarathi@novell.com>
1979         
1980         ** See bug 328481
1981
1982         * camel-gpg-context.c (gpg_ctx_parse_status): do not search if the
1983         gpg->need_id is NULL
1984
1985 2006-02-02  Parthasarathi Susarla <sparthasarathi@novell.com>
1986
1987         * camel-object.c (object_finalise):
1988         (camel_message_info_free): decrement Ref count properly
1989
1990 2006-02-02  Tor Lillqvist  <tml@novell.com>
1991
1992         * camel-net-utils.h
1993         * camel-net-utils.c: Make it compile on Win32 also without
1994         getaddrinfo() (with NEED_ADDRINFO).
1995
1996 2006-01-25  Not Zed  <NotZed@Ximian.com>
1997  
1998         * camel-folder-search.c (search_match_threads): add new
1999         match-thread type "unreplied", matches messages that are unreplied
2000         to. 
2001         Committed to head on behaf of Notzed
2002  
2003 2006-01-23  Parthasarathi Susarla <sparthasarathi@novell.com>
2004         
2005         * camel-mime-utils.c (camel_content_type_unref):
2006         Id the content-type refcount is <1 then free it and
2007         assign it to NULL
2008
2009 2006-01-17  Parthasarathi Susarla <sparthasarathi@novell.com>
2010         
2011         * camel-service.c (camel_service_disconnect):
2012         set the service-status to CAMEL_SERVICE_DISCONNECTED
2013
2014 2006-01-10  Simon Zheng  <simon.zheng@sun.com>
2015
2016         * camel-file-utils.h: 
2017         * camel-file-utils.c: Delete function camel_mkdir().
2018
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):
2028         (create_folder):
2029         (rename_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>.
2035
2036         * camel-debug.c: 
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".
2040
2041 2006-01-05  Kjartan Maraas  <kmaraas@gnome.org>
2042
2043         * camel-session.c (camel_session_get_network_state): Return stuff
2044         from this non-void function.
2045
2046         * providers/imap4/camel-imap4-store.c (connect_to_server): Move
2047         some vars inside #ifdef HAVE_SSL
2048
2049         * providers/local/camel-local-store.c (xrename): Use NULL not 0 as
2050         the last parameter to g_strconcat().
2051
2052 2006-01-04  Tor Lillqvist  <tml@novell.com>
2053
2054         * camel-win32.c (setup): Modify calls to e_util_replace_prefix()
2055         according to its changed interface.
2056
2057         * Makefile.am (INCLUDES): Need to pass also E_DATA_SERVER_PREFIX
2058         to the compilation because of the above.
2059
2060 2005-12-22  Shreyas Srinivasan  <sshreyas@novell.com>
2061
2062         * Network Manager Support
2063         
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.
2068         
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.
2072         
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.
2076
2077 2005-12-13  Tor Lillqvist  <tml@novell.com>
2078
2079         * camel-filter-driver.c: Use gstdio wrappers. Use
2080         g_filename_to_uri().
2081
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.
2085
2086         * camel-folder.c
2087         * camel-junk-plugin.c: Just cosmetics.
2088
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
2096         Evolution is?
2097
2098         * camel-object.c: Use gstdio wrappers. Use binary mode when
2099         opening files. Use g_path_get_dirname().
2100
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.
2106
2107         * camel-tcp-stream.h: Include Winsock headers on Win32.
2108
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.
2112
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.
2117         
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
2120         around those cases.
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
2125         instead.
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.
2128
2129 2005-12-11  Tor Lillqvist  <tml@novell.com>
2130
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
2134         do this on Windows.
2135         (swrite): Use g_get_tmp_dir(), g_build_filename(), g_mkstemp().
2136
2137         * camel-net-utils.c (gai_strerror): Implement gai_strerror() for
2138         Win32.
2139         (cs_waitinfo): Use select() instead of poll() on Win32. Use
2140         g_win32_error_message(WSAGetLastError()) for socket API error
2141         messages on Win32.
2142
2143         * camel-net-utils.h: Include the Winsock2 headers on Win3.
2144
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.
2148
2149 2005-12-07  Jeff Cai <jeff.cai@sun.com>
2150
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
2154         
2155 2005-12-08  Tor Lillqvist  <tml@novell.com>
2156
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
2162         on Win32.
2163         (camel_read, camel_write): Not cancellable on Win32. But then
2164         these functions should be used only with regular files, not
2165         sockets.
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
2174         savename.
2175
2176 2005-12-06  Tor Lillqvist  <tml@novell.com>
2177
2178         * camel-index.c
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
2188         * camel-multipart.c
2189         * camel-offline-folder.c
2190         * camel-offline-store.c
2191         * camel-operation.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
2197         * camel-sasl-ntlm.c
2198         * camel-sasl-plain.c
2199         * camel-sasl.c
2200         * camel-search-private.c
2201         * camel-service.c
2202         * camel-smime-context.c
2203         * camel-store.c
2204         * camel-stream-buffer.c
2205         * camel-stream-filter.c
2206         * camel-stream-process.c
2207         * camel-stream.c
2208         * camel-transport.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
2214         cosmetic reasons.
2215         
2216 2005-12-02  Shi Pu <shi.pu@sun.com>
2217
2218         ** See bug #321139
2219
2220         * camel-exception.c: (camel_exception_get_description):
2221         Don't return NULL.
2222
2223 2005-12-01  Tor Lillqvist  <tml@novell.com>
2224
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.)
2229
2230 2005-12-01  Chenthill Palanisamy  <pchenthill@novell.com>
2231
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.
2236
2237 2005-12-01  Tor Lillqvist  <tml@novell.com>
2238
2239         * camel-mime-message.c: Add gmtime_r() implementation (a simple
2240         macro) for Win32.
2241
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.
2246
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.
2250
2251 2005-12-01  Chenthill Palanisamy  <pchenthill@novell.com>
2252
2253         reviewed by Srinivasa Ragavan  <sragavan@novell.com> 
2254
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.
2258
2259 2005-11-30  Tor Lillqvist  <tml@novell.com>
2260
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.)
2264
2265         * camel-block-file.c
2266         * camel-certdb.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
2272         * camel-provider.c
2273         * camel-session.c
2274         * camel-store-summary.c
2275         * camel-stream-fs.c
2276         * camel-text-index.c
2277         * camel-uid-cache.c
2278         * camel-vee-store.c: Use gstdio wrappers for full non-ASCII
2279         filename support on Windows.
2280
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.
2292
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
2296         Windows.
2297         
2298         * camel-folder-summary.c (camel_folder_summary_load): On Win32
2299         unlink destination before attempting a rename.
2300
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.
2304
2305         * camel-provider.c (camel_provider_init) Use G_MODULE_SUFFIX
2306         instead of hardcoding .so.
2307
2308         * camel-session.c (session_thread_wait): Use g_usleep() instead of
2309         usleep() for portability.
2310
2311         * camel-utf8.c: Use g_htons() and g_ntohs() instead of htons() and
2312         ntohs() for portability.
2313         
2314 2005-11-25  Tor Lillqvist  <tml@novell.com>
2315
2316         * camel-private.h: Add declaration for our Win32-only fsync() and
2317         realpath() implementations. Define S_ISLNK() as 0 and lstat() as
2318         stat().
2319         (realpath): Use gstdio wrappers.
2320
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.
2325
2326 2005-11-18  Jeff Cai  <jeff.cai@sun.com>
2327
2328         * camel-disco-store.c: (disco_connect):
2329         If no diary is created, no need to do resync.
2330
2331 2005-11-15  Ross Burton  <ross@burtonini.com>
2332
2333         * camel-provider.c:
2334         Use lazy bindings (#321515)
2335
2336 2005-11-15  Harish Krishnaswamy  <kharish@novell.com>
2337
2338         * providers/Makefile.am: Add hula to SUBDIRS.
2339
2340 2005-10-23  Parthasarathi Susarla <sparthasarathi@novell.com>
2341         
2342         ** See bug #218177
2343
2344         * camel-vtrash-folder.c: (vtrash_remove_folder):
2345         check if mi->real exists, continue otherwise. 
2346         
2347 2005-10-11 Vivek Jain <jvivek@novell.com>
2348
2349         ** See bug #318508
2350
2351         * camel-folder-summary.c : (camel_folder_summary_info_new_from_parser)
2352         Null check for p->index before using it.
2353
2354 2005-09-22  Parthasarathi Susarla <sparthasarathi@novell.com>
2355         
2356         ** See bug #316287
2357         
2358         * camel-mime-filter-bestenc.c:(camel_mime_filter_bestenc_get_best_encode):
2359         Remove the last return statement that can never be reached.
2360         
2361 2005-09-15  Sankar P  <psankar@novell.com>
2362
2363         * camel-store.h:
2364         Defined new macro CAMEL_FOLDER_TYPE_SENT for identifying sent-folder.
2365         Needed for fixing #257321
2366         
2367 2005-09-15  Tor Lillqvist  <tml@novell.com>
2368
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)
2373         * camel-mime-part.c
2374         * camel-mime-utils.c
2375         * camel-movemail.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.
2382
2383         * camel-debug.c: Use e_util_pthread_id() to identify threads.
2384
2385 2005-09-12  Parthasarathi Susarla <sparthasarathi@novell.com>
2386         
2387         ** See bug #314574
2388
2389         * camel-lock-client.c: (camel_lock_helper_init):
2390         remove an spurious ','.
2391         
2392 2005-09-01  Parthasarathi Susarla <sparthasarathi@novell.com>
2393         
2394         * camel-lock-client.c: (camel_lock_helper_init):
2395         use API_VERSION instead of the BASE_VERSION
2396
2397 2005-08-22  Not Zed  <NotZed@Ximian.com>
2398
2399         * camel-store.c (camel_store_rename_folder): init folders and only
2400         use it if set.
2401
2402         * camel-offline-journal.c (CAMEL_OFFLINE_JOURNAL_GET_CLASS):
2403         move redefined macro to .h.
2404
2405         * camel-gpg-context.c (gpg_decrypt): cast args properly.
2406
2407         * camel-text-index.c (camel_text_index_validate): cast to int for
2408         printf.
2409
2410         * camel-object.c (co_metadata_get): assign metalast to remove
2411         spurious warning.
2412
2413 2005-08-19  Not Zed  <NotZed@Ximian.com>
2414
2415         ** See #312668.
2416
2417         * camel-tcp-stream-ssl.c (stream_close): handle re-closing a
2418         closed socket.
2419
2420 2005-08-18  Not Zed  <NotZed@Ximian.com>
2421
2422         ** See bug #271894.
2423
2424         * camel-gpg-context.c (gpg_decrypt): use the content part's
2425         mime-type to determine options.
2426
2427 2005-08-17  Tor Lillqvist  <tml@novell.com>
2428
2429         * camel-operation.c (stamp): Use g_get_current_time() instead of
2430         gettimeofday() for portability.
2431
2432         * camel-cipher-context.c
2433         * camel-vee-folder.c: Drop unneeded <pthread.h>.
2434
2435         * camel-block-file.c
2436         * camel-index-control.c
2437         * camel-index.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>.
2447
2448         * camel-sasl-digest-md5.h: Drop unneeded <netdb.h>.
2449         
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
2454         source file.
2455
2456         * camel-service.c: Drop unneeded <sys/poll.h>
2457
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>.
2461
2462 2005-08-15  Not Zed  <NotZed@Ximian.com>
2463
2464         ** backported from disksummary-branch
2465
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.
2472
2473 2005-08-12  Not Zed  <NotZed@Ximian.com>
2474
2475         * camel-mime-filter-windows.c (filter_filter): same.
2476
2477         * camel-mime-filter-charset.c
2478         (camel_mime_filter_charset_new_convert): remove another common
2479         useless warning.
2480
2481         * camel-block-file.c (block_file_validate_root): ifdef out the
2482         'invalid root' stuff.
2483
2484         * camel-folder-summary.c (summary_build_content_info): turn off
2485         the annoying/pointless 'cannot convert xxx' message.
2486
2487         ** See bug #313284.
2488
2489         * camel-mime-parser.c (folder_scan_content): make sure *data is
2490         set to something before we exit.
2491
2492         * camel-mime-parser.c (folder_read): use memmove, not memcpy,
2493         since memory areas could overlap.
2494
2495         * camel-html-parser.c (tokenise_step): use the length from the
2496         utf8 conversion, it isn't 0 terminated.
2497
2498         * camel-mime-utils.c (header_decode_quoted_string): if we run out
2499         of string, then don't go past the 0.
2500
2501 2005-08-13  Tor Lillqvist  <tml@novell.com>
2502
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.
2509
2510 2005-08-12  Tor Lillqvist  <tml@novell.com>
2511
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.
2517
2518         * camel-win32.c: New file, some Win32-specific functions.
2519
2520         * providers/Makefile.am: Leave out sendmail on Win32.
2521
2522 2005-08-09  Not Zed  <NotZed@Ximian.com>
2523
2524         * camel-store.c (camel_store_get_folder): add some debug logging.
2525
2526 2005-04-17  Changwoo Ryu  <cwryu@debian.org>
2527
2528         ** See bug #300891
2529         
2530         * Makefile.am (INCLUDES): define CAMEL_EXPLICIT_TRANSLATION_DOMAIN
2531         and EVOLUTION_LOCALEDIR.
2532
2533         * camel.c (camel_init): initialize gettext with bindtextdomain()
2534         and bind_textdomain_codeset().
2535
2536 2005-08-09  Changwoo Ryu <cwryu@debian.org>
2537
2538         ** See bug #300115.
2539
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.
2543
2544 2005-08-08  Not Zed  <NotZed@Ximian.com>
2545
2546         ** See bug #312831.
2547
2548         * camel-folder-thread.c (prune_empty): change to depth-first
2549         search so we check for empty children before checking if we have
2550         children.
2551         (dump_tree_rec): update debug func.
2552
2553 2005-08-03  Not Zed  <NotZed@Ximian.com>
2554
2555         ** See bug #274382.
2556
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.
2560
2561 2005-07-28  Not Zed  <NotZed@Ximian.com>
2562
2563         ** See bug #311731.
2564
2565         * camel-store.c (camel_folder_info_build): fix this, again, minor
2566         simplification.  it was messing up the namespace != "" case
2567         somewhat.
2568
2569 2005-07-28  Shreyas Srinivasan  <sshreyas@novell.com>
2570
2571         * camel-offline-folder.c: (camel_offline_folder_init): Revert old
2572         patch. Copy folder contents locally by default makes evolution crawl.
2573         
2574 2005-07-27  Mengjie Yu  <meng-jie.yu@sun.com>
2575
2576         * camel-store.c: (camel_isubscribe_subscribe),
2577         (camel_isubscribe_unsubscribe):
2578         Void function should not return value.
2579
2580         Fixes #310198
2581
2582 2005-07-25  Shreyas Srinivasan  <sshreyas@novell.com>
2583
2584         * camel-offline-folder.c (camel_offline_folder_init): Copy 
2585         folder contents locally by default.
2586         
2587 2005-07-20  Not Zed  <NotZed@Ximian.com>
2588
2589         * camel-store.c (camel_store_get_folder_info): Changed the
2590         semantics slightly.  !FAST makes no guarantees about message
2591         counts anymore.
2592
2593         * camel-disco-store.c: fix up some stupid hidden logic here.
2594
2595 2005-07-19  Not Zed  <NotZed@Ximian.com>
2596
2597         * camel-folder.c (camel_folder_refresh_info): remove the folder
2598         lock.
2599
2600         * camel-disco-store.c (disco_get_folder_info): dont force a
2601         connect here, it doesn't belong here.
2602
2603         * camel-store.c (camel_store_get_folder_info): remove subscription
2604         assert.
2605
2606 2005-07-13  Not Zed  <NotZed@Ximian.com>
2607
2608         * camel-store.c (camel_store_init): initialise the mode to
2609         something which reflects the actual mode.
2610
2611         * camel-store.h: fix the permission bit names and mode name.
2612
2613         * camel-session.c (camel_session_class_init,
2614         camel_session_set_online): Create/emit a new event 'online'.
2615
2616 2005-07-10  Shreyas Srinivasan <sshreyas@novell.com>
2617
2618         * camel-store.h: Add a new #define to identify proxy stores
2619         and a new data member permissions to hold store specific permissions.
2620         
2621 2005-07-08  Harish Krishnaswamy  <kharish@novell.com>
2622
2623         ** Patch submitted by Greg Hudson <ghudson@mit.edu>
2624         ** See bug #308209
2625         * camel-sasl-login.c: (login_challenge): Wait for the
2626         server to initiate the challenge.
2627
2628 2005-07-06 Vivek Jain <jvivek@novell.com>
2629
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
2633          callbacks
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
2636         
2637 2005-06-24      Matt Brown <matt@mattb.net.nz>
2638
2639         * camel-gpg-context.c:  Extend verify and decrypt functions to support
2640         inline pgp signed messages via x-inlinepgp-signed/x-inlinepgp-encrypted
2641         mime types.
2642         * camel-mime-filter-pgp.h:
2643         * camel-mime-filter-pgp.c:
2644         New filter to strip dash encoding from inline pgp signed messages.
2645
2646 2005-06-09  Sarfraaz Ahmed <asarfraaz@novell.com>
2647
2648         * camel-store.c (camel_folder_info_build): Minor typo in debug message.
2649
2650 2005-05-16  Jeffrey Stedfast  <fejj@novell.com>
2651
2652         * camel-mime-filter-basic.c (complete): Call
2653         camel_quoted_encode_close() instead of quoted_decode_close() when
2654         encoding.
2655
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.
2659
2660 2005-05-07  Sankar P  <psankar@novell.com>
2661
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.
2667
2668 2005-04-26  Ross Burton  <ross@burtonini.com>
2669
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.
2680
2681 2005-04-18  Jeffrey Stedfast  <fejj@novell.com>
2682
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
2685         details.
2686
2687 2005-04-07  Jeffrey Stedfast  <fejj@novell.com>
2688
2689         Fix for bug #273945
2690
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.
2694
2695 2005-04-11  Harish Krishnaswamy  <kharish@novell.com>
2696
2697         * Makefile.am:
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:
2708         use API_VERSION 
2709
2710 2005-03-31  Jeffrey Stedfast  <fejj@novell.com>
2711
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.
2716
2717 2005-03-25  Jeffrey Stedfast  <fejj@novell.com>
2718
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.
2722
2723 2005-03-15  Jeffrey Stedfast  <fejj@novell.com>
2724
2725         * camel-stream.c (camel_stream_read): Fix for systems where read
2726         is a macro by David Malcolm.
2727
2728 2005-03-01  Not Zed  <NotZed@Ximian.com>
2729
2730         * tests/misc/test2.c: fix the case of the charset specification,
2731         now we properly canonicalise them.
2732
2733 2005-03-01  Not Zed  <NotZed@Ximian.com>
2734
2735         ** See bug #73015
2736
2737         * tests/misc/test1.c: Test case for references decoding.
2738
2739         * camel-mime-utils.c (header_decode_addrspec): if we get no start
2740         word, then return NULL not "".
2741
2742 2005-03-02  Not Zed  <NotZed@Ximian.com>
2743
2744         ** See bug #70195
2745
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
2749         string.
2750         (header_encode_phrase_merge_words): when we merge the word, make
2751         sure we merge the encoding too.
2752
2753 2005-03-02  Not Zed  <NotZed@Ximian.com>
2754
2755         ** See bug #70590 (again)
2756
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.
2760
2761 2005-03-01  Not Zed  <NotZed@Ximian.com>
2762
2763         ** See bug #72876
2764
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.
2767
2768 2005-02-28  Not Zed  <NotZed@Ximian.com>
2769
2770         ** See bug #72609
2771
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.
2775
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.
2779
2780 2005-02-28  Not Zed  <NotZed@Ximian.com>
2781
2782         ** See bug #70590
2783
2784         * camel-filter-driver.c (do_move): Make this copy+delete, and
2785         terminate processing implicitly.
2786
2787 2005-02-24  Not Zed  <NotZed@Ximian.com>
2788
2789         ** See bug #68459
2790
2791         * camel-nntp-address.[ch]: cameladdress implementation for list of
2792         newsgroups.
2793
2794 2005-02-11  Radek Doulik  <rodo@novell.com>
2795
2796         * camel-filter-search.c (junk_test): use camel debug
2797
2798         * camel-junk-plugin.c: use camel debug
2799
2800 2005-02-09  Jeffrey Stedfast  <fejj@novell.com>
2801
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.
2805
2806 2005-02-07  JP Rosevear  <jpr@novell.com>
2807
2808         * camel-iconv.c: remove dead file
2809
2810 2005-02-07  Jeffrey Stedfast  <fejj@novell.com>
2811
2812         * tests/folder/test11.c: Fixed junk/trash folder names/paths.
2813
2814 2005-02-04  Not Zed  <NotZed@Ximian.com>
2815
2816         * camel-filter-search.c (check_header): don't try to match against
2817         mlist if the mlist entry is NULL.
2818
2819         * camel-store-summary.h: make the store-info flags match the
2820         store:folder_info flags.
2821
2822         * Revert jeffs changes, they weren't needed.
2823
2824 2005-02-02  Jeffrey Stedfast  <fejj@novell.com>
2825         
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).
2833         
2834 2005-02-01  Not Zed  <NotZed@Ximian.com>
2835
2836         ** See bug #65329
2837
2838         * camel-vee-store.c (camel_vee-store_init): api chanes
2839
2840         * camel-vtrash-folder.c (camel_vtrash_folder_new): api chagne and
2841         translate the short name.
2842
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.
2846
2847         * camel-store.c (camel_store_get_folder_info): set the folder type
2848         hint.
2849
2850         * camel-store.h: add a bitfield for a folder-type hint.  used to
2851         indicate inbox/trash/etc (mainly for gui icons).
2852
2853         ** See bug #38791 and bug #36142.
2854
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
2857         cancellation here.
2858         (gpg_sign): remove cancellation check/processing.
2859         (gpg_verify): same.
2860         (gpg_encrypt): same.
2861         (gpg_decrypt): same.
2862         (gpg_ctx_op_step): remove the messy execption handling stuff, it
2863         wasn't useful.
2864         (gpg_import_keys, gpg_export_keys): clean up exception case.
2865
2866         ** See bug #72020.
2867
2868         * camel-filter-driver.c (do_score): don't use
2869         camel_folder_set_message_user_tag anymore, use the messageinfo
2870         interface.
2871         (do_adjust_score): implement missing function.
2872
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
2876         or fragment).
2877
2878 2005-01-31  Parthasarathi Susarla <sparthasarathi@novell.com>
2879         
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
2889
2890 2005-01-31  Hans Petter Jansson  <hpj@novell.com>
2891
2892         * camel-mime-utils.c (camel_mime_special_table): Remove this, it's
2893         declared externally now.
2894
2895 2005-01-31  Not Zed  <NotZed@Ximian.com>
2896
2897         ** See bug #70303.
2898
2899         * tests/mime-filter/test1.c: added new test for
2900         camel-mime-filter-canon.c
2901
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).
2907
2908         ** See bug #68741.
2909
2910         * camel-vtrash-folder.h: move Junk and Trash into the ".#evolution"
2911         'namespace'.
2912
2913         * camel-store.c (add_special_info): only compare the full name for
2914         the special folder.
2915
2916         ** See bug #38671.
2917
2918         * camel-filter-search.c (check_header): check all instances of
2919         headers for match string.
2920
2921 2005-01-28  Not Zed  <NotZed@Ximian.com>
2922
2923         * camel-provider.h: Added CAMEL_URL_PART_HIDE* options, required
2924         for more flexible extensibility.
2925
2926 2005-01-29   Sivaiah Nallagatla <snallagatla@novell.com>
2927
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
2931
2932 2005-01-29   Sivaiah Nallagatla <snallagatla@novell.com>
2933
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 
2938
2939 2005-01-27  Jeffrey Stedfast  <fejj@novell.com>
2940
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
2945         reflect reality.
2946
2947 2005-01-27  Parthasarathi Susarla <sparthasarathi@novell.com>
2948         
2949         * providers/groupwise/camel-groupwise-folder.c
2950         (groupwise_refresh_info):
2951         (gw_update_summary): using getquickmessages instead of get items
2952
2953         * providers/groupwise/camel-groupwise-store.c
2954         (groupwise_get_folder): using get quick messages instead of get
2955         items
2956
2957 2005-01-27  Jeffrey Stedfast  <fejj@ximian.com>
2958
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
2962         #71808.
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
2966         our query.
2967
2968         * providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
2969         Fixed to handle "" as the delim portion of the NAMESPACE. Fixes
2970         bug #71847.
2971
2972 2005-01-26  Jeffrey Stedfast  <fejj@novell.com>
2973
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
2982         it.
2983
2984 2005-01-25  Jeffrey Stedfast  <fejj@novell.com>
2985
2986         * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
2987         Setup filtering and junk filtering stuff.
2988
2989 2005-01-24  JP Rosevear  <jpr@novell.com>
2990
2991         * tests/folder/test6.c: get imap4 not imap
2992
2993         * tests/folder/test4.c: ditto
2994         
2995 2005-01-24  Jeffrey Stedfast  <fejj@novell.com>
2996
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).
3001
3002 2005-01-24  Jeffrey Stedfast  <fejj@ximian.com>
3003
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
3009         listing.
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
3012         subscribed).
3013
3014 2005-01-24  Parthasarathi Susarla <sparthasarathi@novell.com>
3015
3016         * providers/groupwise/camel-groupwise-folder.c
3017         (groupwise_transfer_messages_to): using moveItemRequest for moving
3018         messages between folders.
3019
3020 2005-01-23  Jeffrey Stedfast  <fejj@ximian.com>
3021
3022         * providers/imap4/camel-imap4-store.c (imap4_construct): Check if
3023         we have the use_lsub url param and set the store->flags
3024         appropriately.
3025
3026 2005-01-24  Not Zed  <NotZed@Ximian.com>
3027
3028         ** See bug #71427.
3029
3030         * providers/pop3/camel-pop3-store.c (pop3_connect): fix the
3031         exception case for re-prompting for the password.
3032
3033         ** See bug #71625, and bug #56110.
3034
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.
3038
3039 2005-01-23  Jeffrey Stedfast  <fejj@ximian.com>
3040
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.
3046
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.
3051
3052 2005-01-21  Jeffrey Stedfast  <fejj@novell.com>
3053
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.
3058
3059         * providers/Makefile.am: Removed "imap" from the build and made
3060         "imap4" the default.
3061
3062         * providers/imap4/libcamelimap4.urls: Fixed to only list "imap"
3063
3064         * providers/imap4/camel-imap4-provider.c: Changed the 'protocol'
3065         string to "imap" from "imap4" so we override the old imap urls.
3066
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.
3069
3070         * camel-offline-journal.c: Same.
3071
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.
3075
3076 2005-01-20  Parthasarathi Susarla <sparthasarathi@novell.com>
3077         
3078         * providers/groupwise/camel-groupwise-folder.c
3079           (groupwise_folder_get_message) : support for status
3080           for message tracking. 
3081           Removed compiler warnings.
3082
3083 2005-01-20  Parthasarathi Susarla <sparthasarathi@novell.com>
3084
3085         * providers/groupwise/camel-groupwise-folder.c 
3086           (groupwise_folder_get_message):
3087           Show warning, but display message in case we cannot get
3088           attachments. 
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
3094           view.
3095
3096 2005-01-20  Not Zed  <NotZed@Ximian.com>
3097
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
3101         <max@hinterhof.net>
3102
3103 2005-01-19  Jeffrey Stedfast  <fejj@novell.com>
3104
3105         * camel-offline-folder.c (camel_offline_folder_class_init): Only
3106         init the perperties list once (class_init can be called multiple
3107         times apparently).
3108
3109         * providers/imap4/camel-imap4-utils.c: disable debugging.
3110
3111         * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
3112         Set a cmeta file path.
3113
3114         * providers/imap4/camel-imap4-command.c: Disable debugging spew
3115         unless imap4:command is enabled.
3116
3117         * camel-offline-folder.c (camel_offline_folder_downsync): Documented.
3118
3119         * camel-offline-store.c (camel_offline_store_set_network_state):
3120         Use NULL as the search expression which forces all messages to be
3121         synced.
3122
3123 2005-01-18  Jeffrey Stedfast  <fejj@novell.com>
3124
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.
3128
3129 2005-01-13  Jeffrey Stedfast  <fejj@novell.com>
3130
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
3140         entries.
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.
3148
3149 2005-01-19  Parthasarathi Susarla <sparthasarathi@novell.com>
3150
3151         * providers/groupwise/camel-groupwise-folder.c
3152         (groupwise_folder_get_message): set the message id as the uid
3153         for the CamelMimeMessage
3154         
3155 2005-01-18  Parthasarathi Susarla <sparthasarathi@novell.com>
3156         
3157         * providers/groupwise/camel-groupwise-store.c:
3158           Removed debug statements and compiler warnings
3159
3160 2005-01-17 Sivaiah Nallagatla <snallagatla@novell.com>
3161
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 
3164         
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 
3168         
3169 2005-01-17  Not Zed  <NotZed@Ximian.com>
3170
3171         * tests/lib/folders.c (test_folder_basic): dont enforce local
3172         store == no inbox; maildir implements one now.
3173
3174         * camel-multipart-signed.c (skip_content): in the message state
3175         skip a state, otherwise we go nowhere but down an overflowed stack
3176         drain.
3177
3178 2005-01-14  Not Zed  <NotZed@Ximian.com>
3179
3180         ** Better fix for #65178.
3181         
3182         * tests/folder/test11.c: new maildir test.
3183
3184         * camel-store.c (camel_store_folder_uri_equal): dont pass NULL
3185         values to compare_folder_name.
3186
3187         * providers/local/camel-maildir-store.c (get_folder_info):
3188         reimplemented, now everything isn't a subfolder of INBOX ('.')
3189         anymore.
3190         (get_inbox): call main entry point so we don't create multiple
3191         inboxes each call.
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
3195         ones.
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.
3202
3203 2005-01-14  Jeffrey Stedfast  <fejj@novell.com>
3204
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.
3210
3211 2005-01-14  Jeffrey Stedfast  <fejj@novell.com>
3212
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).
3223
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
3228         message-list.
3229
3230 2005-01-12  Jeffrey Stedfast  <fejj@novell.com>
3231
3232         * providers/imap4/camel-imap4-provider.c: Use the same key
3233         shortcuts as current imap code.
3234
3235 2005-01-13  Not Zed  <NotZed@Ximian.com>
3236
3237         ** See bug #65178.
3238
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 "./".
3242
3243         ** See bug #69024.
3244
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.
3248
3249 2005-01-12  Not Zed  <NotZed@Ximian.com>
3250
3251         ** See bug #47824.
3252
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.
3256
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.
3264
3265         * tests/message/test3.c (main): remove the nonfatal fixme & put
3266         extra null check for pre/postface text checks.
3267
3268         * tests/message/test2.c (convert): use size_t for iconv length
3269         types.
3270
3271 2005-01-11  Jeffrey Stedfast  <fejj@novell.com>
3272
3273         * providers/imap4/camel-imap4-store-summary.c
3274         (camel_imap4_store_summary_get_folder_info): Fixed a possible
3275         uninitialised condition.
3276
3277 2005-01-12  Sushma Rai <rsushma@novell.com>
3278
3279         * camel-provider.[ch]: Removed camel_provider_validate_user()
3280         and added a void pointer to CamelProvider structure. 
3281
3282 2005-01-12  Not Zed  <NotZed@Ximian.com>
3283
3284         ** See bug #70095.
3285
3286         * camel-vee-folder.c (vee_delete): fix past-o, unlock not lock
3287         lock when done.
3288
3289 2005-01-08  Not Zed  <NotZed@Ximian.com>
3290
3291         * camel-sasl-ntlm.c: convert all the unsigned long/long stuff to
3292         guint32 since it seems to need 32 bit integers.
3293
3294         * camel-url.c (camel_url_new_with_base): cast length to int.
3295
3296         * providers/imap/camel-imap-command.c
3297         (imap_command_strdup_vprintf): cast strlen to int.
3298
3299         * camel-mime-utils.c (append_quoted_pair, header_decode_text): use
3300         gssize for length to match dumb g-api.
3301
3302 2005-01-11  Parthasarathi Susarla <sparthasarathi@novell.com>
3303
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
3307
3308 2005-01-11  Parthasarathi Susarla <sparthasarathi@novell.com>
3309         
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
3316           imap4 code by fejj
3317
3318 2005-01-11  JP Rosevear  <jpr@novell.com>
3319
3320         * providers/groupwise/camel-groupwise-transport.h: remove defines
3321
3322         * providers/groupwise/camel-groupwise-transport.c (groupwise_send_to) 
3323         (groupwise_send_to): use util routine to build item
3324
3325         * providers/groupwise/camel-groupwise-store.h: new protos
3326
3327         * providers/groupwise/camel-groupwise-store.c
3328         (groupwise_rename_folder): use new api name and don't strdup the
3329         lookup name
3330         (camel_groupwise_store_folder_lookup): find folder from container id
3331
3332         * providers/groupwise/camel-groupwise-journal.[hc]: implement
3333         journalling for append and transfer
3334
3335         * providers/groupwise/camel-groupwise-folder.h: add journal member
3336
3337         * providers/groupwise/camel-groupwise-folder.c
3338         (groupwise_folder_get_message): use new api name and don't strdup
3339         the lookup name
3340         (groupwise_refresh_info): ditto
3341         (groupwise_append_message): ditto
3342         (groupwise_expunge): ditto
3343         (groupwise_transfer_messages_to): handle being in offline mode
3344
3345         * providers/groupwise/Makefile.am: build journal sources
3346
3347 2005-01-11 Parthasarathi Susarla <sparthasarathi@novell.com>
3348         
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
3355         
3356 2005-01-11 Vivek Jain  <jvivek@novell.com>
3357         * camel-store.h : defined flags for shared folders
3358
3359 2005-01-11  Not Zed  <NotZed@Ximian.com>
3360
3361         ** See bug #70919.
3362
3363         * camel-multipart-signed.c (parse_content): treat the post pointer
3364         as binary, not 0 terminated.
3365
3366 2004-12-23  Not Zed  <NotZed@Ximian.com>
3367  
3368       ** See bug #70556.
3369       
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'
3373       hack.
3374
3375 2005-01-10  Jeffrey Stedfast  <fejj@novell.com>
3376
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
3383         than strings.
3384         (groupwise_expunge): Updated to fit the normal CamelStore expunge
3385         API and fixed a deadlock condition.
3386
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
3395         thing.
3396         (groupwise_create_folder): Updated for CamelOfflineStore stuff.
3397         (groupwise_delete_folder): Same.
3398         (groupwise_rename_folder): Same.
3399
3400         * providers/imap4/camel-imap4-stream.c: Disable token debug spew
3401         unless imap4:stream debug is enabled.
3402
3403 2005-01-10  Sushma Rai <rsushma@novell.com>
3404
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.
3410
3411 2005-01-10  Parthasarathi Susarla <sparthasarathi@novell.com>
3412
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.
3417         
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.
3421         
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
3425
3426 2005-01-10  Parthasarathi Susarla <sparthasarathi@novell.com>
3427
3428         * providers/groupwise/camel-groupwise-store-summary.[ch]:
3429         implements the CamelStoreSummary Class providing support
3430         for store summary for the soap provider.
3431
3432         * providers/groupwise/camel-groupwise-store.c
3433         (groupwise_get_folder_info_online): saves the store summary
3434         after building folder info.
3435   
3436 2005-01-07  Jeffrey Stedfast  <fejj@novell.com>
3437
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.
3448
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.
3452         (imap4_sync): Same.
3453         (imap4_refresh_info): Same.
3454         (imap4_get_message): Here too.
3455         (imap4_append_message): Same.
3456         (imap4_transfer_messages_to): Same.
3457
3458 2005-01-07  Parthasarathi Susarla <sparthasarathi@novell.com>
3459
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
3463
3464 2005-01-07  JP Rosevear  <jpr@novell.com>
3465
3466         * providers/groupwise/camel-groupwise-store.c
3467         (groupwise_store_construct): don't free an alloca'd memory pointer
3468
3469 2005-01-06  Jeffrey Stedfast  <fejj@novell.com>
3470
3471         * providers/imap4/camel-imap4-summary.c: Changed to use the new
3472         CamelOfflineJournal API.
3473
3474         * providers/imap4/camel-imap4-journal.c: Changed to inherit from
3475         the new CamelOfflineJournal class.
3476
3477         * providers/imap4/camel-imap4-folder.c: Changed to inherit from
3478         CamelOfflineFolder
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()
3482
3483         * providers/imap4/camel-imap4-store.c: Changed to inherit from
3484         CamelOfflineStore rather than CamelStore.
3485
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?)
3489
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?)
3493
3494         * camel-offline-store.[c,h]: New abstract class for offline stores
3495         - handles switching between network avail/unavail. (Future
3496         replacement for CamelDiscoStore?)
3497
3498 2005-01-06 Parthasarathi Susarla <sparthasarathi@novell.com>
3499
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
3504         folders
3505         (storage_path_lookup): returns the storage path for the groupwise
3506         account
3507
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
3514         between folders
3515         (convert_to_calendar): function to populate data for displaying
3516         appointments by itip control
3517
3518         * providers/groupwise/camel-groupwise-transport.c
3519         (groupwise_send_to): support for sending attachments
3520
3521 2005-01-04  Sivaiah Nallagatla     <snallagatla@novell.com>
3522
3523         * providers/groupwise/camel-groupwise-store.c
3524         (groupwise_create_folder, groupwise_delete_folder),
3525         (groupwise_rename_folder): prevent these operations in offline
3526         mode
3527
3528 2005-01-04  Parthasarathi Susarla <sparthasarathi@novell.com>
3529
3530         * providers/groupwise/camel-groupwise-store.c
3531         (groupwise_store_construct): initialise the store summary.
3532
3533 2005-01-04  Parthasarathi Susarla <sparthasarathi@novell.com>
3534
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.
3538
3539 2004-12-31  JP Rosevear  <jpr@novell.com>
3540
3541         * providers/groupwise/Makefile.am: dist the private header, fix
3542         includes
3543
3544         * tests/smime/pgp.c (main): use define for data location
3545
3546         * tests/smime/Makefile.am: define for the data dir
3547
3548         * tests/mime-filter/test-charset.c (main): load and output to the
3549         correct dir
3550
3551         * tests/message/Makefile.am: clean up generated files
3552
3553         * Makefile.am: clean up the package config data
3554
3555         * tests/Makefile.am: dist the data dir
3556
3557 2004-12-23  Sivaiah Nallagatla <snallagatla@novell.com>
3558
3559         * providers/groupwise/camel-groupwise-provider.c : changed the
3560         offline_sync setting label 
3561
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.
3565
3566 2004-12-23  Parthasarathi Susarla <sparthasarathi@novell.com>
3567
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 
3578         instead of soap.
3579
3580 2004-12-23  Not Zed  <NotZed@Ximian.com>
3581
3582         * camel-folder-search.c (check_header): treat a missing header as
3583         if it was set to "".
3584
3585         * camel-object.c (camel_object_is, camel_object_class_is)
3586         (camel_interface_is): check for null values before dereferencing
3587         them.
3588
3589 2004-12-20  David Mosberger-Tang  <David.Mosberger@acm.org>
3590
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
3601         EMemPool.
3602         (folder_pull_part): Call e_mempool_destroy() instead of
3603         mempool_free().
3604         (header_append_mempool): Call e_mempool_alloc() instead of
3605         mempool_alloc().
3606         (folder_scan_header): Call e_mempool_new() instead of
3607         mempool_new().
3608
3609 2004-12-20  Not Zed  <NotZed@Ximian.com>
3610
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 &
3614         init if need be.
3615
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.
3620
3621         * camel.c (camel_shutdown): dont shutdown mime utils anymore.
3622
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
3628         memory.
3629         (base64_init): removed, this data never changes, keep table in
3630         static memory.
3631
3632 2004-12-15  Rodney Dawes  <dobey@novell.com>
3633
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
3636
3637 2004-12-14  Jeffrey Stedfast  <fejj@novell.com>
3638
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 :)
3642
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
3646         summary.
3647
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.
3651
3652 2004-12-14  Jeffrey Stedfast  <fejj@novell.com>
3653
3654         * providers/imap4/camel-imap4-journal.[c,h]: New source files
3655         implementing a basic journal.
3656
3657         * providers/imap4/camel-imap4-summary.c
3658         (camel_imap4_summary_flush_updates): Replay the journal.
3659
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
3664         offline mode.
3665         (imap4_transfer_messages_to): Implement offline copy/move support
3666         using the new journal code.
3667
3668 2004-12-09  Jeffrey Stedfast  <fejj@novell.com>
3669
3670         * providers/imap4/camel-imap4-folder.c (imap4_append_message):
3671         Don't bother sending UID APPEND if the caller doesn't care about
3672         appended_uid.
3673
3674 2004-12-13  Not Zed  <NotZed@Ximian.com>
3675
3676         * tests/lib/Makefile.am: put the test-provider stuff back in.
3677
3678         * tests/*/Makefile.am: version libcamel*.
3679
3680         * tests/lib/camel-test-provider.[ch]: duh, re-implement, it got
3681         lost somehow.
3682
3683 2004-12-07  Jeffrey Stedfast  <fejj@novell.com>
3684
3685         * providers/imap4/camel-imap4-folder.c (imap4_append_message):
3686         Need to have the folder as the first vararg.
3687
3688 2004-12-06  Rodney Dawes  <dobey@novell.com>
3689
3690         * camel-lock-client.c (camel_lock_helper_init):
3691         Exec camel-lock-helper-$BASE_VERSION instead of just camel-lock-helper
3692
3693 2004-12-06  Jeffrey Stedfast  <fejj@novell.com>
3694
3695         * camel-sasl-gssapi.c: #include "camel-net-utils.h"
3696
3697         * camel-net-utils.h: #include sys/types.h for size_t, etc.
3698
3699 2004-12-06  Rodney Dawes  <dobey@novell.com>
3700
3701         * Makefile.am: Fix pkgconfig bits to dist the unversioned .in files
3702         properly
3703
3704         * tests/lib/Makefile.am: Removed camel-test-provider stuff, since it
3705         isn't in the source tree
3706
3707 2004-11-29  Mengjie Yu  <meng-jie.yu@sun.com>
3708
3709         * providers/imap/camel-imap-provider.c:add mnemonic for checkboxes.
3710
3711 2004-12-03  Jeffrey Stedfast  <fejj@novell.com>
3712
3713         * providers/imap4/camel-imap4-store.c (connect_to_server): Same.
3714
3715         * providers/nntp/camel-nntp-store.c (connect_to_server): Same.
3716
3717         * providers/imap/camel-imap-store.c (connect_to_server): Same.
3718
3719         * providers/pop3/camel-pop3-store.c (connect_to_server): Same.
3720
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.
3724
3725 2004-12-03  Sivaiah Nallagatla <snallagatla@novell.com>
3726
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
3730
3731         * providers/groupwise/Makefile.am: Remove camel-gw-listner.c from
3732         SOURCES
3733
3734         * providers/Makefile.am: add groupwise to SUBDIRS 
3735                 
3736 2004-12-02  Not Zed  <NotZed@Ximian.com>
3737
3738         ** See bug #69533.
3739
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.
3744
3745 2004-12-01  Not Zed  <NotZed@Ximian.com>
3746
3747         ** See bug #69776.
3748
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.
3754
3755 2004-11-23  Not Zed  <NotZed@Ximian.com>
3756
3757         ** See bug #69615.
3758
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.
3762
3763 2004-11-22  Not Zed  <NotZed@Ximian.com>
3764
3765         ** See bug #69109.
3766
3767         * providers/smtp/camel-smtp-transport.c (smtp_helo): if we have
3768         ipv6 address and it is numeric, prefix it with "IPv6:"
3769
3770 2004-11-30  Not Zed  <NotZed@Ximian.com>
3771
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
3774         enum.  Sigh.
3775         (camel_nntp_stream_init): fix for above change.
3776
3777 2004-11-28  S.ÇaÄŸlar Onur  <caglar@uludag.org.tr>
3778
3779         ** See bug #69446.
3780
3781         * camel-charset-map.c (camel_charset_iso_to_windows):
3782
3783         * camel-filter-search.c (check_header):
3784
3785         * camel-folder-search.c (check_header):
3786
3787         * camel-folder-summary.c
3788         (message_info_new,summary_build_content_info,camel_system_flag):
3789
3790         * camel-html-parser.c (camel_html_parser_attr):
3791
3792         * camel-mime-filter-enriched.c 
3793         (param_parse,camel_mime_filter_enriched_init):
3794
3795         * camel-mime-parser.c (folder_scan_step,main):
3796
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):
3801
3802         * camel-sasl-digest-md5.c (decode_data_type):
3803
3804         * providers/imap/camel-imap-command.c (camel_imap_response_free):
3805
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):
3809
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):
3813
3814         * providers/pop3/camel-pop3-store.c (get_folder):
3815
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]
3820
3821 2004-10-12  Radek Doulik  <rodo@ximian.com>
3822
3823         * camel-junk-plugin.c: new init method implementation
3824
3825         * camel-junk-plugin.h: added junk plugin init declaration
3826
3827 2004-11-10  Not Zed  <NotZed@Ximian.com>
3828
3829         ** See bug #69109.
3830         
3831         * camel-service.c (cs_getnameinfo): honour the NI_NAMEREQD flag.
3832
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 [].
3836
3837 2004-11-21 Sivaiah Nallagatla <snallagatla@novell.com>
3838         
3839         * providers/groupwise/camel-groupwise-provider.c : added 
3840         a setting to mark the account for offline usuage 
3841
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 
3846         marked for offline
3847
3848 2004-11-18  Not Zed  <NotZed@Ximian.com>
3849
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.
3854
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.
3858
3859         * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
3860         retry if the password attempt failed.
3861
3862         ** See bug #68556.
3863
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.
3868
3869 2004-11-15  Jeffrey Stedfast  <fejj@novell.com>
3870
3871         * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
3872         In the fallback cases, clear the exception first.
3873
3874         * providers/imap/camel-imap-store.c (connect_to_server_wrapper):
3875         In the fallback cases, clear the exception first.
3876
3877         * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
3878         In the fallback cases, clear the exception first.
3879
3880 2004-11-15  Jeffrey Stedfast  <fejj@novell.com>
3881
3882         * providers/imap/camel-imap-store.c (connect_to_server): Use
3883         camel_tcp_stream_ssl_new_raw() for STARTTLS stream.
3884
3885         * providers/imap4/camel-imap4-store.c (connect_to_server): Use
3886         camel_tcp_stream_ssl_new_raw() for STARTTLS stream.
3887
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
3896         STARTTLS stream.
3897
3898         * providers/imap4/camel-imap4-stream.c (camel_imap4_stream_line):
3899         Fix bug #69408 by filling our input buffer if inptr == inend.
3900
3901 2004-11-13  Jeffrey Stedfast  <fejj@ximian.com>
3902
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.
3906
3907 2004-11-12  Jeffrey Stedfast  <fejj@novell.com>
3908
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.
3920
3921         * providers/imap4/camel-imap4-folder.c (imap4_append_message):
3922         Init appended_uid value to NULL
3923
3924         * providers/imap4/camel-imap4-engine.c (engine_parse_namespace):
3925         Properly handle NILs for the namespace separator (somehow I missed
3926         this, silly me).
3927
3928 2004-12-02  Not Zed  <NotZed@Ximian.com>
3929
3930         * Makefile.am: version all the libraries with the base version of the
3931         package.  move libcamel-1.2 into libdir, etc.
3932
3933         * camel.pc.in: remove the provider stuff from here.
3934
3935         * camel-provider.pc.in: create a camel-provider pc file.
3936
3937 2004-11-16  Not Zed  <NotZed@Ximian.com>
3938
3939         * tests/lib/folders.c (test_folder_message_ops): updated counts for
3940         delete also marking unread.
3941
3942         * tests/lib/camel-test.c (camel_test_provider_init): new api for
3943         initialising test system 'in-build'.
3944
3945         * camel-provider.c: remove the assertions, init if we need to,k
3946         use pthread_once stuff to serialise it.
3947
3948         * tests/folder/test3.c (main): remove gtk stuff (???).
3949
3950         * tests/*: Fix all the makefiles.  Made make-check work 'in-build'.
3951
3952         * tests/lib/folders.c (test_folder_counts): update for api changes.
3953         (test_message_info): similar.
3954
3955         * providers/Makefile.am: removed groupwise from the build, this
3956         can't go in here anymore, not in its current state.
3957
3958         * camel-net-utils.c (camel_gethostbyaddr_r)
3959         (camel_gethostbyname_r): the old e_gethost* calls from
3960         e-host-utils.c.
3961
3962 2004-11-15  Not Zed  <NotZed@Ximian.com>
3963
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.
3967
3968         * camel.h: remove the provider stuff from the header.
3969
3970         * camel-provider.c: globalise provider_init variable, and asserton
3971         it in all functions that rely on it.
3972
3973         * camel-service.c: removed getaddrinfo/etc.
3974
3975         * camel-net-utils.[ch]: separate out camel_getaddrinfo etc.
3976
3977         * Makefile.am: split camel into 2 libraries, libcamel and
3978         libcamel-store.
3979
3980         * camel-multipart-signed.c (camel_multipart_signed_sign)
3981         (camel_multipart_signed_verify, prepare_sign): remove old
3982         deprecated api.
3983
3984         * camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt) 
3985         (camel_multipart_encrypted_decrypt): remove old deprecated api.
3986
3987 2004-11-12  Not Zed  <NotZed@Ximian.com>
3988
3989         ** Merge in notzed-messageinfo-branch, fix some minor conflicts.
3990
3991 2004-11-11  Jeffrey Stedfast  <fejj@novell.com>
3992
3993         * providers/imap4/camel-imap4-store.c (imap4_reconnect): Free the
3994         passwd here if we need to retry to authenticate.
3995
3996 2004-11-10  Jeffrey Stedfast  <fejj@novell.com>
3997
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).
4002
4003 2004-11-09  Not Zed  <NotZed@Ximian.com>
4004
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.
4008
4009 2004-11-08  Not Zed  <NotZed@Ximian.com>
4010
4011         ** See bug #69145.
4012
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.
4017
4018 2004-11-09  Jeffrey Stedfast  <fejj@novell.com>
4019
4020         * providers/imap4/camel-imap4-provider.c: Updated the properties
4021         to include all the same settings as the old imap code.
4022
4023         * providers/imap4/camel-imap4-folder.c (imap4_getv): Implemented.
4024         (imap4_setv): Implemented.
4025
4026 2004-11-08  Jeffrey Stedfast  <fejj@novell.com>
4027
4028         Fix for bug #69241.
4029
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.
4036
4037 2004-11-09  Jeffrey Stedfast  <fejj@novell.com>
4038
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).
4043
4044 2004-11-08  Jeffrey Stedfast  <fejj@novell.com>
4045
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.
4049
4050 2004-11-04  Jeffrey Stedfast  <fejj@novell.com>
4051
4052         * providers/imap4/camel-imap4-engine.c: Added much in-line
4053         documentation.
4054         (engine_parse_capability): Use g_ascii_str[n]casecmp().
4055         (camel_imap4_engine_nstring): New convenience function.
4056
4057 2004-11-02  Not Zed  <NotZed@Ximian.com>
4058
4059         * camel-object.c (camel_object_hook_event): check interfaces for
4060         events too.
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.
4067
4068 2004-11-02  Jeffrey Stedfast  <fejj@novell.com>
4069
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.
4073
4074         * providers/imap4/camel-imap4-utils.c
4075         (camel_imap4_get_path_delim): add an assert that s->namespaces is
4076         non-NULL.
4077
4078         * providers/imap4/camel-imap4-stream.c
4079         (camel_imap4_stream_literal): Update stream->inptr after fetching
4080         the literal chunk.
4081
4082         * providers/imap4/camel-imap4-summary.c (envelope_decode_address):
4083         Do proper cleanup in case of error and also handle literals.
4084
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
4090         stream state.
4091
4092 2004-11-01  Jeffrey Stedfast  <fejj@novell.com>
4093
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.
4097
4098         * providers/pop3/camel-pop3-store.c (connect_to_server_wrapper):
4099         Same.
4100
4101         * providers/imap4/camel-imap4-store.c (connect_to_server_wrapper):
4102         Same.
4103
4104         * providers/imap/camel-imap-store.c (connect_to_server_wrapper):
4105         Same.
4106
4107 2004-11-01  Jeffrey Stedfast  <fejj@novell.com>
4108
4109         * providers/imap4/camel-imap4-summary.c
4110         (camel_imap4_summary_expunge): Remove expunged messages from the
4111         cache.
4112         (camel_imap4_summary_set_uidvalidity): Clear the cache if the
4113         UIDVALIDITY has changed.
4114
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
4118         use.
4119         (camel_imap4_folder_finalize): Unref the cache if non-NULL.
4120         (camel_imap4_folder_new): Create the CamelDataCache.
4121
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.
4125
4126         * providers/imap4/camel-imap4-store-summary.c (load_namespaces):
4127         Cleaned up a bit.
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
4131         bit.
4132
4133 2004-11-11  Not Zed  <NotZed@Ximian.com>
4134
4135         * providers/imap4/*: Update for folder-summary api changes.
4136
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.
4141
4142         * camel-folder-summary.c (camel_folder_summary_info_new): removed.
4143
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.
4147
4148         * camel-folder-summary.h: put message_id back into the summary.
4149
4150 2004-11-08  Not Zed  <NotZed@Ximian.com>
4151
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.
4155
4156         * camel-vtrash-folder.c (vtrash_getv): override the unread count
4157         to ignore junked or deleted.
4158
4159         * camel-folder.c (folder_getv): ignore junked and deleted in the
4160         unread count.
4161
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
4166         working.
4167
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.
4172
4173         * camel-vee-folder.c (camel_vee_folder_set_folders): don't rebuild
4174         the folder.
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.
4180
4181 2004-11-06  Not Zed  <NotZed@Ximian.com>
4182
4183         * camel-vee-folder.c: Removed vname, use Folder->full_name
4184         instead.  Make add_folder/remove_folder/set_expression/set_folders
4185         virtual methods.
4186         (vee_add_folder): virtual implementation.
4187
4188         * camel-vee-summary.c (camel_vee_summary_add): remove folder arg.
4189
4190 2004-11-05  Not Zed  <NotZed@Ximian.com>
4191
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
4194         do it twice.
4195         (vee_info_set_user_tag, vee_info_set_user_flag): same.
4196
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.
4203
4204 2004-11-02  Not Zed  <NotZed@Ximian.com>
4205
4206         * camel-folder-summary.c (camel_pstring_strdup)
4207         (camel_pstring_free, message_info_free, message_info_clone):
4208         'uniquify' the strings.
4209
4210 2004-10-28  Jeffrey Stedfast  <fejj@ximian.com>
4211
4212         * providers/imap4/camel-imap4-summary.c (envelope_decode_nstring):
4213         Handle literal strings.
4214         (envelope_decode_date): Same. Fixes bug #68894.
4215
4216         * providers/imap4/camel-imap4-stream.c
4217         (camel_imap4_stream_next_token): Properly tokenise "\*" as a flag
4218         token. Fixes bug #68869.
4219
4220 2004-10-21  Björn Torkelsson <torkel@acc.umu.se>
4221
4222         * camel-sasl-kerberos4.c: #include "camel-i18n.h"
4223
4224 2004-10-27  Julio M. Merino Vidal <jmmv@menta.net>
4225
4226         * camel-operation.c (camel_operation_shutdown): fix the arguments
4227         to pthread_key_delete.
4228
4229 2004-10-26  Jeffrey Stedfast  <fejj@novell.com>
4230
4231         * providers/imap4/camel-imap4-store-summary.[c,h]: New files
4232         implementing a folder-info cache for offline mode (and faster
4233         startup I guess).
4234
4235         * providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
4236         Cache the folder-info for later use in offline mode.
4237
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.
4242
4243 2004-10-25  Jeffrey Stedfast  <fejj@novell.com>
4244
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.
4248
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
4254         than the engine.
4255         (imap4_create_folder): Same.
4256         (imap4_reconnect): Update the namespaces on the store summary.
4257         (connect_to_server): Update the store summary capabilities.
4258
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.
4266
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).
4270
4271 2004-10-21  Jeffrey Stedfast  <fejj@novell.com>
4272
4273         * camel-sasl-gssapi.c: #include "camel-i18n.h"
4274
4275 2004-10-20  Jeffrey Stedfast  <fejj@ximian.com>
4276
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
4282         offline mode.
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.
4293
4294 2004-10-19  Jeffrey Stedfast  <fejj@ximian.com>
4295
4296         * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
4297         Removed an already-fixed FIXME comment.
4298         (imap4_summary_fetch_flags): Same.
4299
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.
4307
4308         * providers/imap4/camel-imap4-utils.c
4309         (camel_imap4_get_path_delim): Moved here from camel-imap4-store.c
4310
4311         * providers/imap4/camel-imap4-store.c (imap4_try_authenticate):
4312         Change the service string for the sasl mechanism to"imap" rather
4313         than "imap4".
4314         (imap4_get_path_delim): Removed.
4315         (imap4_create_folder): Updated.
4316         (imap4_folder_utf7_name): Same.
4317
4318 2004-10-13  Not Zed  <NotZed@Ximian.com>
4319
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.
4324
4325         * camel-string-utils.h: add prototype for camel_toupper.
4326
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.
4333
4334 2004-10-12  Not Zed  <NotZed@Ximian.com>
4335
4336         ** See bug ???
4337
4338         * providers/nntp/camel-nntp-store.c (connect_to_server): if we
4339         have a username, try to authenticate before doing anything else.
4340
4341         ** See bug #67895.
4342
4343         * providers/nntp/camel-nntp-summary.c (add_range_xover)
4344         (add_range_head): use raw_command_auth since we might need auth
4345         here.
4346
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.
4351
4352 2004-10-12  Not Zed  <NotZed@Ximian.com>
4353
4354         ** See bug #67898 and probably others.
4355
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
4363         port was supplied.
4364
4365 2004-10-11  Not Zed  <NotZed@Ximian.com>
4366
4367         ** See bug #67211.
4368
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.
4372
4373 2004-10-09  Sivaiah Nallagatla <snallagatla@novell.com>
4374
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
4379         Fixes #62053
4380
4381 2004-10-08  Not Zed  <NotZed@Ximian.com>
4382
4383         ** See bug #67170.
4384
4385         * providers/nntp/camel-nntp-store.c
4386         (nntp_store_get_cached_folder_info): compare newsgroup names case
4387         sensitively.
4388
4389 2004-10-05  Jeffrey Stedfast  <fejj@novell.com>
4390
4391         * camel-service.c (camel_getaddrinfo): Check msg->result for error
4392         and set an exception if appropriate.
4393         (camel_getnameinfo): Same.
4394
4395 2004-10-04  Jeffrey Stedfast  <fejj@novell.com>
4396
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.
4400
4401 2004-10-05  Not Zed  <NotZed@Ximian.com>
4402
4403         ** See bug #67527.
4404
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).
4408
4409 2004-10-04  JP Rosevear  <jpr@novell.com>
4410
4411         * providers/imap4/camel-imap4-provider.c: include camel-i18n.h
4412
4413 2004-10-01  Jeffrey Stedfast  <fejj@novell.com>
4414
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.
4418
4419 2004-09-28  Not Zed  <NotZed@Ximian.com>
4420
4421         ** See bug #66509.
4422
4423         * providers/nntp/camel-nntp-store.c (camel_nntp_command): if we
4424         get an error selecting the folder, disconnect/include it in the
4425         re-try loop.
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
4428         the 3rd retry.
4429
4430 2004-09-27  Not Zed  <NotZed@Ximian.com>
4431         
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.
4436
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.
4440
4441 2004-09-14  Jeffrey Stedfast  <fejj@novell.com>
4442
4443         * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
4444         s/not/no/ in the error string. Fixes bug #65828.
4445
4446 2004-09-24  Not Zed  <NotZed@Ximian.com>
4447
4448         * camel-vee-store.c (camel_vee_store_finalise): free the unmatched
4449         uid values as well.
4450
4451         * camel-vee-folder.c (vee_folder_remove_folder): lock main folder
4452         summary lock before doing the unmatched stuff, so the order is
4453         right.
4454
4455 2004-08-25  Ed Catmur  <ed@catmur.co.uk>
4456
4457         ** See bug #63881.
4458
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.
4464
4465 2004-09-27  Not Zed  <NotZed@Ximian.com>
4466
4467         * providers/local/camel-spool-folder.c (camel_spool_folder_new):
4468         make sure body indexing is turned off always, missed the ~ bit.
4469
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.
4477
4478         * providers/local/camel-mbox-folder.h: make the
4479         camel_mbox_folder_get* functions properly public.
4480
4481         * providers/local/camel-local-folder.h: pass the object to the
4482         virtual methods now, fix all callers.
4483
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 :-/.
4487
4488 2004-09-22  Jeffrey Stedfast  <fejj@novell.com>
4489
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
4493         option).
4494         (connect_to_server_wrapper): Simplified (we no longer have
4495         fallback cases for SSL stuff). Also, perform host lookup here.
4496
4497         * providers/imap4/camel-imap4-store.c: Same changes as above.
4498
4499         * providers/pop3/camel-pop3-store.c: Same.
4500
4501         * providers/smtp/camel-smtp-transport.c: Same. Other changes
4502         include making the code consistant with the other providers.
4503
4504         * providers/nntp/camel-nntp-store.c: Same as pop/imap.
4505
4506 2004-09-21  Not Zed  <NotZed@Ximian.com>
4507
4508         ** See bug #63521.
4509
4510         * camel-movemail.c (camel_movemail): don't clear exception on entry.
4511
4512         * camel-folder-search.c (match_words_message): use local exception.
4513
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
4517         we uncancel.
4518
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
4521         gets updated.
4522         (camel_uid_cache_save): block cancellation around writes otherwise
4523         we could be interupted from old cancellation.
4524
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.
4528
4529         * providers/pop3/camel-pop3-store.c (pop3_connect): only clear the
4530         exception when we received one we handled.
4531
4532         * camel-filter-driver.c (close_folder): if exception is already
4533         set, don't pass it to folder.sync().
4534
4535         * camel-lock.c (camel_lock_folder): don't clear the exception
4536         here, if it came in set its a programming error.
4537
4538         * camel-filter-driver.c (camel_filter_driver_filter_message): if
4539         the exception is set after evaluating the expression, stop
4540         immediately.
4541
4542 2004-09-13  Not Zed  <NotZed@Ximian.com>
4543
4544         ** See bug #47821.
4545
4546         * camel-service.c: removed the old hostent based hostname interfaces.
4547
4548         * camel-sasl-kerberos4.c (krb4_challenge): new hostname interfaces.
4549
4550         * camel-sasl-gssapi.c (gssapi_challenge): new hostname interfaces.
4551
4552         * camel-sasl-digest-md5.c (digest_md5_challenge): use new hostname
4553         interfaces.
4554         (generate_response): just take hostname directly, not hostent.
4555
4556         * camel-mime-utils.c (camel_header_msgid_generate): use new
4557         hostname interfaces.
4558
4559         * providers/smtp/camel-smtp-transport.c (connect_to_server): fixed
4560         to use new addrinfo apis.
4561
4562         * providers/pop3/camel-pop3-store.c (connect_to_server): fixed to
4563         use new addrinfo apis.
4564
4565         * camel-tcp-stream-ssl.c (stream_connect): try all addresses
4566         supplied.
4567
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.
4573
4574 2004-09-22  Not Zed  <NotZed@Ximian.com>
4575
4576         * camel-folder-summary.c (camel_folder_summary_decode_token):
4577         handle a zero-length token read rather than failing.
4578
4579 2004-09-21  Not Zed  <NotZed@Ximian.com>
4580
4581         ** See bug #66199.
4582
4583         * camel-http-stream.c (stream_read): handle relative url's in
4584         redirect.
4585         (camel_http_stream_set_proxy): generate the basic auth token for
4586         basic proxy auth if we have a user and password.
4587
4588         * camel-http-stream.c: turn off debug.
4589
4590 2004-09-08  Hannah & Fazlu <hannah_lins@yahoo.co.in>
4591
4592         Fixes Bug#61088
4593
4594         * camel/camel-smime-context.c: Change of strings.
4595
4596 2004-09-15  Not Zed  <NotZed@Ximian.com>
4597
4598         ** See bug #0xffff.
4599
4600         * providers/local/camel-local-folder.c
4601         (camel_local_folder_construct): only emit folder_created if we
4602         actually created it.
4603
4604 2004-09-03  Not Zed  <NotZed@Ximian.com>
4605
4606         * camel-tcp-stream-ssl.c (stream_connect): make ssl connection
4607         async and cancellable, and minor api update to async connection.
4608
4609 2004-08-27  Not Zed  <NotZed@Ximian.com>
4610
4611         ** See bug #64023.
4612
4613         * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
4614         forget the password if it was wrong.
4615
4616 2004-08-26  Sivaiah Nallagatla <snallagatla@novell.com>
4617         
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
4622
4623 2004-08-25  Frederic Crozat  <fcrozat@mandrakesoft.com>
4624
4625         * camel-folder.c (folder_getv): Init one variable (remove warning)
4626         and don't redefine it.
4627
4628 2004-08-23  Not Zed  <NotZed@Ximian.com>
4629
4630         ** See bug #63189.
4631
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
4634         element.
4635         (imap_is_subfolder): helper for above.
4636
4637 2004-08-23  Jeffrey Stedfast  <fejj@novell.com>
4638
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.
4643
4644 2004-08-23  Jeffrey Stedfast  <fejj@novell.com>
4645
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.
4649
4650 2004-08-21 Sivaiah Nallagatla <snallagatla@novell.com>
4651         
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
4657         IMAP 
4658
4659 2004-08-16  Not Zed  <NotZed@Ximian.com>
4660
4661         * providers/groupwise/camel-groupwise-provider.c
4662         (camel_provider_module_init): pass an exception handle to
4663         camel_provider_get.
4664
4665 2004-08-13  Jeffrey Stedfast  <fejj@novell.com>
4666
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.
4671
4672 2004-08-13  Sivaiah Nallagatla <snallagatla@novell.com>
4673
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
4677         Novell Groupwise
4678         (camel_gw_listener_construct): do not add the disbaled accounts
4679         to exitsting groupwise accounts list
4680
4681 2004-08-13  Sivaiah Nallagatla <snallagatla@novell.com>
4682
4683         * providers/groupwise/camel-groupwise-provider.c: update ssl
4684         setting label and title of the soap settings section. Fixes #62747
4685
4686 2004-08-13  Rodney Dawes  <dobey@novell.com>
4687
4688         * camel-sasl-gssapi.c: Handle et/comm_err.h as well as the
4689         normal comm_err.h
4690
4691 2004-08-11  Jeffrey Stedfast  <fejj@novell.com>
4692
4693         Fix for bug #62771
4694
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.
4702
4703 2004-08-10  Not Zed  <NotZed@Ximian.com>
4704
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.
4708
4709 2004-08-06  Jeffrey Stedfast  <fejj@novell.com>
4710
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
4714         reporting.
4715         (imap4_summary_fetch_flags): Same.
4716
4717 2004-08-04  Rodney Dawes  <dobey@novell.com>
4718
4719         * camel-charset-map.c: #include <gal/util/e-iconv.h>
4720
4721 2004-08-03  Jeffrey Stedfast  <fejj@novell.com>
4722
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.
4726
4727 2004-08-03  Jeffrey Stedfast  <fejj@novell.com>
4728
4729         * providers/imap4/camel-imap4-store.c (imap4_construct): Pass a
4730         reconnect func.
4731
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.
4735
4736 2004-07-30  Jeffrey Stedfast  <fejj@novell.com>
4737
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
4741         reconnecting.
4742         (camel_imap4_engine_namespace): Same.
4743
4744 2004-07-30  Jeffrey Stedfast  <fejj@ximian.com>
4745
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
4748         one.
4749
4750 2004-07-28  Jeffrey Stedfast  <fejj@novell.com>
4751
4752         * camel-mime-utils.c (camel_header_encode_string): Fixed an ABR
4753         that may have been responsible for bug #62029.
4754
4755 2004-07-29 Sivaiah Nallagatla <snallagatla@novell.com>
4756
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
4763
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
4773         setup
4774
4775 2004-07-26  Jeffrey Stedfast  <fejj@novell.com>
4776
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).
4780
4781 2004-07-27  Not Zed  <NotZed@Ximian.com>
4782
4783         ** See bug #61841.
4784
4785         * providers/groupwise/camel-groupwise-provider.c: added junk settings.
4786
4787 2004-07-27  Jeffrey Stedfast  <fejj@novell.com>
4788
4789         * providers/imap4/camel-imap4-engine.c
4790         (camel_imap4_engine_prequeue): Changed to be the same prototype as
4791         engine_queue().
4792         (engine_prequeue_folder_select): Updated.
4793
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().
4800
4801 2004-07-27  Sivaiah Nallagatla <snallagatla@novell.com>
4802
4803         Fixes #61454
4804
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
4808         "Novell Groupwise"
4809
4810 2004-07-26  Jeffrey Stedfast  <fejj@novell.com>
4811
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
4820         than the store.
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).
4826
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.
4833
4834 2004-07-22  Not Zed  <NotZed@Ximian.com>
4835
4836         ** See bug #61761.
4837
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.
4841
4842 2004-07-19  Jeffrey Stedfast  <fejj@novell.com>
4843
4844         * providers/imap/camel-imap-store.c (get_subscribed_folders): Free
4845         result after parsing it. Fixes a leak.
4846
4847 2004-07-19  Not Zed  <NotZed@Ximian.com>
4848
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.
4852
4853 2004-07-16  Not Zed  <NotZed@Ximian.com>
4854
4855         * camel-gpg-context.c: Added some debug stuff.
4856
4857 2004-07-15  Jeffrey Stedfast  <fejj@novell.com>
4858
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.
4862
4863 2004-07-14  Jeffrey Stedfast  <fejj@novell.com>
4864
4865         Fix for bug #61538
4866
4867         * camel-process.c (camel_process_fork): Same.
4868
4869         * camel-filter-driver.c (pipe_to_system): Fixed strings
4870
4871 2004-07-12 Sivaiah Nallagatla <snallagatla@novell.com>
4872
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
4883
4884 2004-07-09  Not Zed  <NotZed@Ximian.com>
4885
4886         ** This is no guarantee of security, but its just a helper to
4887         prevent old memory accidentally being included/used elsewhere.
4888         
4889         * camel-smime-context.c (sm_decrypt): mark the output stream
4890         'secure'.
4891
4892         * camel-gpg-context.c (gpg_decrypt): set the output stream to
4893         secured, so we automagically blank it out on finalise.
4894
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
4897         buffer on finalise.
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
4901
4902 2004-07-08  Not Zed  <NotZed@Ximian.com>
4903
4904         ** See bug #61186.
4905         
4906         * camel-cipher-context.c (camel_cipher_sign):
4907         (camel_cipher_verify, camel_cipher_encrypt, camel_cipher_decrypt):
4908         Add preliminary progress reporting.
4909
4910 2004-07-07  Chris Toshok  <toshok@ximian.com>
4911
4912         * providers/groupwise/Makefile.am (INCLUDES): use
4913         CAMEL_GROUPWISE_CFLAGS.
4914         (libcamelgroupwise_la_LIBADD): use CAMEL_GROUPWISE_LIBS.
4915
4916 2004-09-07  Not Zed  <NotZed@Ximian.com>
4917
4918         * providers/groupwise/camel-groupwise-provider.c: put the options
4919         in their own section.
4920
4921 2004-09-06  Not Zed  <NotZed@Ximian.com>
4922
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.
4926
4927         * camel-object.c (check_magic_fail): change the check_magic code
4928         to mostly run from a macro, its worth it.
4929
4930 2004-09-04  Not Zed  <NotZed@Ximian.com>
4931
4932         * providers/local/camel-mbox-summary.c (message_info_new): fix
4933         cast issue.
4934
4935         * providers/pop3/camel-pop3-engine.c (get_capabilities): remove
4936         some unused variables.
4937
4938         * camel-object.h: remove camel-i18n.h, fixed all c files where
4939         appropriate.
4940
4941 2004-08-25  Not Zed  <NotZed@Ximian.com>
4942
4943         * camel-list-utils.[ch]: Copied e_dlist* stuff to here, part of
4944         removing e-util dependency on camel.
4945
4946 2004-08-05  Not Zed  <NotZed@Ximian.com>
4947
4948         * providers/local/camel-local-provider.c: same.
4949
4950         * providers/imap/camel-imap-provider.c: put the extra stuff into a
4951         'general' section.
4952
4953         * providers/imapp/camel-imapp-provider.c: same.
4954
4955         * providers/pop3/camel-pop3-provider.c: make sure each section
4956         start has a name.
4957
4958 2004-08-03  Not Zed  <NotZed@Ximian.com>
4959
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
4962         again.
4963
4964         * providers/nntp/camel-nntp-provider.c: turn on ssl option.
4965
4966 2004-07-07  Not Zed  <NotZed@Ximian.com>
4967
4968         * camel-folder.c: removed filter-rule.h  ugh.
4969
4970 2004-07-02  Christian Neumair  <chris@gnome-de.org>
4971
4972         * camel-smime-context.c: s/Can't/Cannot/.
4973
4974 2004-06-30  Jeffrey Stedfast  <fejj@novell.com>
4975
4976         * providers/imap4/camel-imap4-search.c (imap4_body_contains): Set
4977         the size of the ptrarray to prevent potentially realloc'ing
4978         several times.
4979
4980 2004-06-29  Jeffrey Stedfast  <fejj@novell.com>
4981
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).
4985
4986         * providers/imap4/camel-imap4-search.[c,h]: New source files
4987         implementing search functionality.
4988
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.
4998
4999         * providers/imap4/camel-imap4-utils.c (camel_imap4_get_uid_set):
5000         Moved here from camel-imap4-folder.c
5001
5002 2004-06-29  Not Zed  <NotZed@Ximian.com>
5003
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.
5007
5008 2004-06-28  Not Zed  <NotZed@Ximian.com>
5009
5010         * providers/local/camel-maildir-folder.c (maildir_folder_getv):
5011         override CAMEL_FOLDER_NAME arg so we can translate "." into
5012         "Inbox".
5013
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"
5017         always.
5018         (maildir_rename_folder): dont let users rename inbox.
5019
5020 2004-06-27  Jeffrey Stedfast  <fejj@novell.com>
5021
5022         * camel-url-scanner.c (camel_url_web_end): More fixes.
5023
5024 2004-06-25  Jeffrey Stedfast  <fejj@novell.com>
5025
5026         * camel-url-scanner.c (camel_url_web_end): Fixed to handle :pass
5027         in proto://user:pass@host. Fixes bug #60104.
5028
5029 2004-06-24  Jeffrey Stedfast  <fejj@novell.com>
5030
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).
5034
5035         * providers/pop3/camel-pop3-engine.c (get_capabilities): No longer
5036         reads the greeting.
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).
5040
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
5043         #54680.
5044
5045 2004-06-23  Jeffrey Stedfast  <fejj@novell.com>
5046
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.
5052
5053         * providers/imap/camel-imap-provider.c (imap_url_equal): Same.
5054
5055         * providers/imap4/camel-imap4-provider.c (imap4_url_equal): Check
5056         the protocol.
5057
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.
5066
5067         * providers/imap4/camel-imap4-provider.c: Specify that the
5068         fragment is the path.
5069
5070 2004-06-21  Christian Kellner <gicmo@xatom.net>
5071
5072         * camel-service.c (service_setv): Really set the path if tag is 
5073         CAMEL_SERVICE_PATH.
5074
5075 2004-06-21  Jeffrey Stedfast  <fejj@novell.com>
5076
5077         * camel-mime-filter-enriched.c (enriched_to_html): Fixed a number
5078         of issues described in bug #49497.
5079
5080 2004-06-18  Jeffrey Stedfast  <fejj@novell.com>
5081
5082         * camel.c (camel_shutdown): Call camel_mime_utils_shutdown() and
5083         camel_operation_shutdown().
5084
5085         * camel-operation.c (camel_operation_shutdown): New function.
5086
5087         * camel-mime-utils.c (camel_mime_utils_shutdown): New function to
5088         clean up the compiled regexes.
5089
5090         * camel-stream-buffer.c (set_vbuf): Need to re-init sbf->ptr and
5091         sbf->end too, or we'll be sorrryy!
5092
5093 2004-06-18  Not Zed  <NotZed@Ximian.com>
5094
5095         * camel-exception.h (CAMEL_EXCEPTION_INITIALISER): setup for
5096         static inititialisation.
5097
5098 2004-06-17  Jeffrey Stedfast  <fejj@ximian.com>
5099
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() :-)
5103
5104 2004-06-17  Rodney Dawes  <dobey@novell.com>
5105
5106         * camel-mime-filter-tohtml.c: Add support for the webcal, callto, and
5107         h323 URIs when we get them in mails
5108
5109 2004-06-17  Jeffrey Stedfast  <fejj@novell.com>
5110
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).
5115
5116 2004-06-15  Jeffrey Stedfast  <fejj@novell.com>
5117
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
5120         (return a NULL fi).
5121
5122 2004-06-17  Jeffrey Stedfast  <fejj@ximian.com>
5123
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.
5127
5128         Thanks to Christian Kellner for pointing out these bugs (and
5129         submitting the original patch for service_setv)
5130
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.
5134
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.
5138
5139 2004-06-16  Jeffrey Stedfast  <fejj@ximian.com>
5140
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.
5144
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
5166         this...
5167
5168 2004-06-15  Jeffrey Stedfast  <fejj@ximian.com>
5169
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.
5173
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
5176         a pointer.
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.
5182
5183 2004-06-14  Not Zed  <NotZed@Ximian.com>
5184
5185         * providers/smtp/camel-smtp-transport.c (smtp_data): use
5186         g_ascii_strcasecmp.
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.
5190
5191 2004-06-12  Jeffrey Stedfast  <fejj@ximian.com>
5192
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
5196         NOOP.
5197
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
5205         been removed).
5206
5207 2004-06-11  Jeffrey Stedfast  <fejj@novell.com>
5208
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).
5212
5213 2004-06-11  Jeffrey Stedfast  <fejj@ximian.com>
5214
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.
5221
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
5226         decoded.
5227
5228 2004-06-11  Not Zed  <NotZed@Ximian.com>
5229
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 "."
5232         instead.
5233
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.
5237         See Rfc1808 2.4.1.
5238
5239 2004-06-11  Jeffrey Stedfast  <fejj@ximian.com>
5240
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
5251         info's were added.
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
5255         summary index.
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.
5259
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.
5264
5265 2004-06-10  Jeffrey Stedfast  <fejj@ximian.com>
5266
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.
5270
5271 2004-06-10  Jeffrey Stedfast  <fejj@novell.com>
5272
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.
5276
5277         * providers/imap4/camel-imap4-engine.c (engine_parse_status):
5278         Removed.
5279         (camel_imap4_engine_handle_untagged_1): Don't handle untagged
5280         STATUS responses anymore. Let the STATUS requestor handle them
5281         instead.
5282
5283         * providers/imap4/camel-imap4-utils.c
5284         (camel_imap4_untagged_status): New function to parse untagged
5285         status events.
5286
5287 2004-06-10  Not Zed  <NotZed@Ximian.com>
5288
5289         * camel-filter-driver.c (camel_filter_driver_filter_message): add
5290         some :filter debug.
5291         (open_folder): only ignore the get_folder exception if we have a
5292         default folder, otherwise don't.  See #59727.
5293
5294         * providers/nntp/camel-nntp-store.c (camel_nntp_command): move the
5295         stream based checking into the loop, after we connect.  Fixes a
5296         crash.
5297
5298 2004-06-09  Jeffrey Stedfast  <fejj@novell.com>
5299
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
5303         just BAD always.
5304
5305 2004-06-09  Jeffrey Stedfast  <fejj@ximian.com>
5306
5307         * camel-gpg-context.c (gpg_verify): Don't assign trust to be
5308         UNKNOWN if gpg sent us a NODATA status.
5309
5310 2004-06-07  Jeffrey Stedfast  <fejj@novell.com>
5311
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.
5316
5317         * providers/imap4/camel-imap4-summary.c (untagged_fetch_all): New
5318         info's always have a uid of "", so don't checkagainst NULL.
5319
5320 2004-06-06  Jeffrey Stedfast  <fejj@ximian.com>
5321
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
5325         directory.
5326
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.
5331
5332         * providers/imap4/camel-imap4-store.c
5333         (camel_imap4_store_finalize): Free the storage_path.
5334         (imap4_construct): Init the storage_path.
5335
5336 2004-06-04  Jeffrey Stedfast  <fejj@novell.com>
5337
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.
5342
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
5346         pointer again.
5347         (imap4_get_folder_info): Doh. Need to escape the "'s in the LIST
5348         command string.
5349         (imap4_get_folder): Same.
5350
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.
5355
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,
5358         not USE_SSL_ALWAYS.
5359
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.
5362
5363         * providers/imap4/camel-imap4-command.c
5364         (camel_imap4_command_step): Set exceptions when write/flush fail.
5365
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.
5369
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
5374         component.
5375
5376 2004-06-03  Not Zed  <NotZed@Ximian.com>
5377
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.
5382
5383         * providers/nntp/camel-nntp-folder.c (nntp_folder_sync_online):
5384         only save the summary, don't update from server, thats what
5385         refresh info does.
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.
5391
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.
5396
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
5400
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.
5404
5405         * camel-string-utils.c (camel_tolower): added ascii to-lower
5406         function.
5407         (camel_toupper): and upper, for completeness.
5408
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.
5412
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
5417         last/first counts.
5418
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.
5425
5426 2004-06-02  Not Zed  <NotZed@Ximian.com>
5427
5428         * providers/nntp/camel-nntp-store.c: setup xover once we've
5429         started.
5430
5431         * providers/nntp/camel-nntp-summary.c: (xover_setup): moved to
5432         nntp store.
5433
5434         * providers/nntp/camel-nntp-folder.c (folder_check)
5435         (folder_check_free, camel_nntp_folder_new): remove async summary
5436         stuff.
5437
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 &
5444         take exception.
5445
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.
5452
5453         * camel-folder-search.c (search_match_threads): remove debug.
5454
5455 2004-06-01  Not Zed  <NotZed@Ximian.com>
5456
5457         ** A few fixes for better rfc compliance, and cleaner code.
5458
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
5462         attribute-char.
5463
5464         * tests/misc/test2.c (main): new test for rfc2184 stuff.
5465
5466         * camel-mime-utils.c (header_convert): helper to convert between
5467         charsets.
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
5474         need of above.
5475
5476 2004-05-31  Jeffrey Stedfast  <fejj@ximian.com>
5477
5478         * camel-mime-filter-gzip.c (camel_mime_filter_gzip_finalize):
5479         Don't leak the zlib stream internals.
5480
5481 2004-05-27  Jeffrey Stedfast  <fejj@novell.com>
5482
5483         Fixes bug #59191.
5484
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).
5489
5490 2004-05-26  Dan Winship  <danw@novell.com>
5491
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.
5498
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 
5502
5503 2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com>
5504
5505         * providers/groupwise/camel-gw-listener.c (lookup_account_info):
5506         return NULL when there is no existing gw account with same uid
5507         
5508 2004-05-25  Not Zed  <NotZed@Ximian.com>
5509
5510         * camel-store.c (camel_folder_info_build_path): removed.
5511
5512         * camel-store.h (CamelFolderInfo): removed 'path', fixed all
5513         callers.
5514         (struct _CamelStore): removed 'dir_sep' fixed all uses.
5515
5516 2004-05-25  Sivaiah Nallagatla <snallagatla@novell.com>
5517
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 
5522
5523 2004-05-24  Not Zed  <NotZed@Ximian.com>
5524
5525         * camel-mime-utils.c (camel_header_newsgroups_decode):
5526         fix/rearrange logic.  It was using the wrong working pointer.
5527
5528 2004-05-24  Sivaiah Nallagatla <snallagatla@novell.com>
5529
5530         * camel-provider.h: Added CAMEL_PROVIDER_CONF_HIDDEN to
5531          conf item type enum. This is used by groupwise provider
5532
5533         * providers/groupwise/camel-groupwise-provider.c: Added
5534         CAMEL_PROVIDER_CONF_HIDDEN to groupwise_conf_entries to pass the
5535         auth-domain value
5536
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
5539
5540 2004-05-22  Not Zed  <NotZed@Ximian.com>
5541
5542         * camel-store.c: oops, forgot folder_created.  Removed locking, the
5543         object bag serialises stuff for us.
5544         (camel_store_get_junk): same.
5545
5546         ** Another unread count bug, #58814.
5547
5548         * camel-store.c (camel_store_class_init): added a folder_opened
5549         event.
5550         (camel_store_get_folder): emit a folder_opened event whenever we
5551         [re] open the physical folder.
5552
5553 2004-05-21  Jeffrey Stedfast  <fejj@novell.com>
5554
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.
5558
5559 2004-05-21  Not Zed  <NotZed@Ximian.com>
5560
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
5565         all callers.
5566
5567         ** See #58376.
5568
5569         * camel-folder.c (set_message_flags): if system flags change, then
5570         don't trigger a folder changed event.
5571
5572         * camel-folder-summary.h (CAMEL_MESSAGE_SYSTEM_MASK): added this
5573         to indicate which flags are internal/apps not interested in.
5574
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
5580         them.
5581
5582 2004-05-19  Suresh Chandrasekharan  <suresh.chandrasekharan@sun.com>
5583
5584         Fix for #58738 ja_JP.UTF-8: Evolution crashes when certain 
5585         ASCII/non-ASCII combination is used in mail subject
5586
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.
5591
5592 2004-05-20  Jeffrey Stedfast  <fejj@novell.com>
5593
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
5596         in different ways).
5597
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
5602         Courier-IMAP.
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).
5609
5610 2004-05-20  Not Zed  <NotZed@Ximian.com>
5611
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.
5615
5616         * providers/pop3/camel-pop3-folder.c (pop3_get_message): same.
5617
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.
5623
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.
5628
5629 2004-05-19  Not Zed  <NotZed@Ximian.com>
5630
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.
5635
5636         * providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
5637         use the article number instead of the messageid.  Some servers are
5638         just broken.
5639         (nntp_folder_cache_message): same.  See #58655.
5640
5641         * camel-smime-context.c (sm_verify_cmsg): import the certs as
5642         UsageEmailRecipient as well as signer, and also save the certs
5643         always.
5644
5645         ** See #58641.
5646
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
5649         work.
5650
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.
5654
5655 2004-05-18  Not Zed  <NotZed@Ximian.com>
5656
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.
5659         #58294.
5660
5661         * camel-disco-folder.c (disco_expunge_uids): check for NULL
5662         implementation before calling it.
5663         (disco_sync): similar.  Fixes crash #58278.
5664
5665 2004-05-17  Jeffrey Stedfast  <fejj@novell.com>
5666
5667         * camel-folder-search.c (search_match_threads): Fixed a string type-o.
5668
5669         * camel-smime-context.c (sm_verify_cmsg): Fixed some spelling mistakes.
5670
5671         * camel-gpg-context.c (gpg_decrypt): If the encrypted block was
5672         also signed, set the signature verification status on the Validity
5673         structure as well.
5674
5675 2004-05-17  Not Zed  <NotZed@Ximian.com>
5676
5677         ** Bug #56050.
5678
5679         * providers/imap/camel-imap-store.c (imap_get_trash) 
5680         (imap_get_junk): similar to below.
5681
5682         * providers/local/camel-local-store.c (local_get_trash)
5683         (local_get_junk): set state file on trash/junk to something we know
5684         about.
5685
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.
5690
5691 2004-05-14  Not Zed  <NotZed@Ximian.com>
5692
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.
5696
5697 2004-05-13  Not Zed  <NotZed@Ximian.com>
5698
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
5703         appropriate.
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.
5707
5708         * camel-folder-summary.h: added SECURE flag.  Indicates signed or
5709         encrypted content.
5710
5711 2004-05-12  Jeffrey Stedfast  <fejj@novell.com>
5712
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.
5716
5717 2004-05-12  Not Zed  <NotZed@Ximian.com>
5718
5719         * camel-folder-search.c (search_threads): changed to match_threads.
5720         (camel_folder_search_search): remove thread matching stuff from here.
5721
5722 2004-05-11  Jeffrey Stedfast  <fejj@novell.com>
5723
5724         * camel-smime-context.c (sm_signing_cmsmessage): Fixed a
5725         type-o. Fixes bug #58348.
5726
5727 2004-05-10  Jeffrey Stedfast  <fejj@novell.com>
5728
5729         * camel-mime-filter-gzip.[c,h]: New class for zipping/unzipping
5730         gzip streams.
5731
5732         * camel-mime-filter-yenc.[c,h]: New class for encoding/decoding
5733         the crack known as YEncode.
5734
5735 2004-05-07  Not Zed  <NotZed@Ximian.com>
5736
5737         * camel-folder-thread.c (thread_summary): properly set the parent
5738         nodes for the re-parented phantom-node children.  Wasn't that fun
5739         to debug!
5740
5741         * camel-folder-thread.h: make order and re bitfields, saves 4
5742         bytes/node.
5743
5744 2004-05-06  Not Zed  <NotZed@Ximian.com>
5745
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.
5754
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.
5760
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
5765         subset of uid's.
5766
5767         * providers/imap/camel-imap-store.c (connect_to_server): set
5768         nodelay and keepalive on the socket.
5769
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.
5773
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.
5780
5781 2004-05-05  Not Zed  <NotZed@Ximian.com>
5782
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.
5787
5788 2004-05-04  Jeffrey Stedfast  <fejj@ximian.com>
5789
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.
5794
5795 2004-05-04  Christian Kellner <gicmo@xatom.net>
5796
5797         * providers/groupwise/camel-gw-listener.h: Fixed typo.
5798
5799 2004-05-04  Not Zed  <NotZed@Ximian.com>
5800
5801         ** See #57979.
5802
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.
5807
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.
5811
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.
5816
5817 2004-05-03  Not Zed  <NotZed@Ximian.com>
5818
5819         ** See bug #57881.
5820
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.
5824         (vee_freeze): same.
5825         (folder_changed_change): if we get changed messages that dont
5826         match, make sure they're also propagated as a change too.
5827
5828         * camel-private.h: remove the freeze_count from
5829         camelveefolderprivate.  We already have that in the camel folder
5830         private.
5831
5832 2004-04-30  Priit Laes  <amd@tt.ee>
5833
5834         * providers/nntp/camel-nntp-summary.c: Fix typo. #53466.
5835
5836 2004-04-28  Jeffrey Stedfast  <fejj@ximian.com>
5837
5838         * providers/imap/camel-imap-folder.c: Change the UID_SET_LIMIT to
5839         768 (something <1000 octets as suggested by rfc2683). Fixes bug
5840         #57389.
5841
5842         * camel-smime-context.c: Mark exception strings for translation
5843         and fixed a spelling mistake.
5844
5845 2004-04-27  Not Zed  <NotZed@Ximian.com>
5846
5847         ** See bug #57659.
5848
5849         * camel-vee-store.c (vee_get_folder_info): translate Unmatched in
5850         the folder display name.
5851
5852         * camel-store.c (add_special_info): dont translate full_name or
5853         path, only do that for name.
5854
5855 2004-04-23  Sarfraaz Ahmed <asarfraaz@novell.com>
5856         
5857         * camel-provider.h: Added HAS_LICENSE flag for allowing camel
5858         providers to display license file.
5859
5860 2004-04-22  Not Zed  <NotZed@Ximian.com>
5861
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.
5865
5866 2004-04-21  Jeffrey Stedfast  <fejj@ximian.com>
5867
5868         * providers/imap4/camel-imap4-folder.c (imap4_sync_changes): Don't
5869         bother doing any work if perm_flags is 0.
5870
5871 2004-04-21  Sivaiah Nallagatla <snallagatla@novell.com>
5872
5873         * providers/groupwise/Makefile.am: added CAMEL_LIBS to LIBADD
5874
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
5881
5882 2004-04-21  Not Zed  <NotZed@Ximian.com>
5883
5884         * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): set
5885         the meta data file on nntp folders.
5886
5887         * camel-disco-folder.c (disco_refresh_info_online): implement
5888         dummy virtual method.
5889
5890         * providers/nntp/camel-nntp-folder.c
5891         (nntp_folder_refresh_info_online): implement.  Fixes #57280.
5892
5893 2004-04-19  Jeffrey Stedfast  <fejj@ximian.com>
5894
5895         * providers/imap4/camel-imap4-folder.c (untagged_fetch): Fixed to
5896         not expect ]'s as part of the BODY atom token.
5897
5898 2004-04-16  Jeffrey Stedfast  <fejj@ximian.com>
5899
5900         * camel-vee-store.c (change_folder): (flags & 0) will never be
5901         true. Fixes bug #56982.
5902
5903 2004-04-15  Jeffrey Stedfast  <fejj@ximian.com>
5904
5905         * providers/imap/camel-imap-utils.c: Changed imap_atom_specials[]
5906         to not treat ']' as an atom char (as per rfc3501). Fixes bug
5907         #50985.
5908
5909 2004-04-14  Jeffrey Stedfast  <fejj@ximian.com>
5910
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
5915         #56715.
5916
5917 2004-04-14  Not Zed  <NotZed@Ximian.com>
5918
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,
5921         don't abort.
5922
5923 2004-04-13  Jeffrey Stedfast  <fejj@ximian.com>
5924
5925         * providers/imap/camel-imap-store.c (get_folder_online):
5926         Rearranged some error checking code to fix bug #56405.
5927
5928 2004-04-13  Not Zed  <NotZed@Ximian.com>
5929
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
5932         consistent results.
5933
5934         * camel-folder.h: Added CAMEL_FOLDER_DELETED, CAMEL_FOLDER_JUNKED,
5935         and CAMEL_FOLDER_VISIBLE args, to support client display of
5936         various values.
5937
5938 2004-04-13  Jeffrey Stedfast  <fejj@ximian.com>
5939
5940         * camel-folder.h (camel_folder_delete_message): Fix NotZed's fix
5941         to not mark messages as unseen. Fixes bug #56879.
5942
5943 2004-04-13   Sivaiah Nallagatla <snallagatla@novell.com>
5944
5945         * providers/groupwise/camel-gw-listener.c
5946         (add_addressbook_sources): change the auth type string from
5947         Password to plain/password
5948
5949 2004-04-12  Jeffrey Stedfast  <fejj@ximian.com>
5950
5951         Fix for bug #56878.
5952
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
5958         verified.
5959         (gpg_ctx_parse_status): Listen for NO_PUBKEY status messages.
5960
5961 2004-04-11  Sivaiah Nallagatla <snallagatla@novell.com>
5962
5963         * providers/groupwise/camel-gw-listener.c 
5964         (add_addressbook_sources) (modify_addressbook_sources) : add
5965         bookname to uri 
5966
5967 2004-04-09  Jeffrey Stedfast  <fejj@ximian.com>
5968
5969         * providers/imap/camel-imap-provider.c: Fix capitalisation of the
5970         "mailcheck" section title and move it to the top (so it matches
5971         with the UI).
5972
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.
5976
5977 2004-04-08  Jeffrey Stedfast  <fejj@ximian.com>
5978
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.
5985
5986 2004-04-08  Not Zed  <NotZed@Ximian.com>
5987
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.
5991
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.
5995
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.
5999
6000         * camel-vee-folder.c (camel_vee_folder_finalise): dont hook onto
6001         message_changed.
6002         (camel_vee_folder_add_folder): or unhook.
6003         (camel_vee_folder_remove_folder): "
6004         (message_changed): or proxy.
6005
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
6012         message changed.
6013         (set_message_user_tag): "
6014         (set_message_flags): "
6015
6016         * camel-object.h: revered the CAMEL_OBJECT_TYPE change, it should
6017         be a global variable access.
6018
6019 2004-04-06  Jeffrey Stedfast  <fejj@ximian.com>
6020
6021         * providers/imap4/camel-imap4-folder.c: Added mutex locking where
6022         appropriate.
6023
6024         * providers/imap4/camel-imap4-store.c: Added mutex locking where
6025         appropriate.
6026
6027         * camel-folder-summary.h (CAMEL_FOLDER_SUMMARY_TYPE): Defined.
6028
6029         * camel-object.h (CAMEL_OBJECT_TYPE): Fixed.
6030
6031         * providers/imap4/camel-imap4-folder.c
6032         (camel_imap4_folder_utf7_name): Implemented.
6033
6034         * providers/imap4/camel-imap4-store.c (imap4_build_folder_info):
6035         Use camel_folder_info_build() to build the folder-info tree.
6036
6037 2004-04-06  Not Zed  <NotZed@Ximian.com>
6038
6039         * camel-debug.c: #if 0 out the sys/debugreg stuff.
6040
6041         ** See bug #56110.
6042
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?).
6047
6048         * camel-folder.c (camel_folder_get_message): output this stuff as
6049         folder debug.
6050
6051         * providers/imap/camel-imap-folder.c (imap_get_message): add some
6052         imap:folder debug.
6053         (get_content): get xx.TEXT rather than xx if we're from a message
6054         parent part.
6055
6056         ** See bug #56464.
6057
6058         * camel-folder.c (camel_folder_transfer_messages_to): do not lock
6059         the source here.
6060         (transfer_message_to): call the main entry point for get message
6061         and append message.
6062
6063         ** See bug #56050.
6064
6065         * camel-vee-store.c (vee_delete_folder): delete the state file if
6066         it exists.
6067
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.
6070
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.
6074
6075 2004-04-05  Not Zed  <NotZed@Ximian.com>
6076
6077         * providers/imap/camel-imap-store.c (get_folders): dont add
6078         folders to folders_out here, only in get_folders_add_folders.
6079
6080         * camel-store.c (camel_folder_info_build): simplify 'list append'
6081         since we have next pointer at the head of the struct.
6082
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
6087         folders_out array.
6088
6089 2004-04-02  Jeffrey Stedfast  <fejj@ximian.com>
6090
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).
6094
6095 2004-04-02  Not Zed  <NotZed@Ximian.com>
6096
6097         * camel-exception.c (w): turn this on, this should always be on,
6098         it points to real bugs in the code.
6099
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.
6103
6104 2004-04-01  Jeffrey Stedfast  <fejj@ximian.com>
6105
6106         * camel-exception.c (w): Wrap annoying exeption warnings with w().
6107
6108 2004-03-30  Jeffrey Stedfast  <fejj@ximian.com>
6109
6110         * providers/imap4/camel-imap4-store.c (imap4_get_folder_info):
6111         Partially implemented.
6112         (imap4_get_folder): Implemented.
6113
6114 2004-03-30  Jeffrey Stedfast  <fejj@ximian.com>
6115
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.
6121
6122 2004-03-30  Not Zed  <NotZed@Ximian.com>
6123
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.
6126
6127         * providers/imapp/camel-imapp-driver.c: #if 0 out some code, to
6128         kill warnings.
6129
6130         * camel-url-scanner.c: include ctype.h for isspace (wonder if it
6131         should use utf8 funcs?).
6132
6133 2004-03-29  Not Zed  <NotZed@Ximian.com>
6134
6135         ** See #56146.
6136
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
6141         busted servers.
6142
6143         * camel-debug.c (camel_debug_start, camel_debug_end): some helpers
6144         to wrap debug output for atomicicity.
6145
6146 2004-03-29  Jeffrey Stedfast  <fejj@ximian.com>
6147
6148         * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new):
6149         Implemented.
6150
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).
6154
6155         * providers/imap4/camel-imap4-store.c (imap4_noop): Implemented.
6156
6157 2004-03-29  Jeffrey Stedfast  <fejj@ximian.com>
6158
6159         * providers/imap/camel-imap-store.c (get_folder_status): Updated
6160         to actually parse the STATUS response into a list of item/value
6161         pairs.
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.
6166
6167         * providers/local/camel-mbox-store.c (get_folder_info): Removed
6168         debugging printfs.
6169
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.
6176
6177 2004-03-29  Radek Doulik  <rodo@ximian.com>
6178
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
6182         big changes.
6183
6184         Fixes #55817
6185
6186 2004-03-29  Not Zed  <NotZed@Ximian.com>
6187
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.
6193
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.
6196
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.
6200
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.
6204
6205 2004-03-28  Jeffrey Stedfast  <fejj@ximian.com>
6206
6207         * providers/imap4/camel-imap-folder.[c,h]: New source files
6208         implementing the CamelFolder class for the new IMAP4
6209         implementation.
6210
6211         * providers/imap4/camel-imap-summary.[c,h]: New source files
6212         implementing the CamelFolderSummary class for the new IMAP4
6213         implementation.
6214
6215 2004-03-26  Jeffrey Stedfast  <fejj@ximian.com>
6216
6217         * providers/imap/camel-imap-folder.c (imap_update_summary):
6218         Reverted imap.web.de fix.
6219
6220 2004-03-26  Not Zed  <NotZed@Ximian.com>
6221
6222         * providers/local/camel-maildir-summary.c (flagbits[]): Added new
6223         maildir flags D for draft and commented P for forwarded.
6224
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.
6229
6230 2004-03-25  Jeffrey Stedfast  <fejj@ximian.com>
6231
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
6235         rfc3501.
6236
6237         * providers/imap4/camel-imap-specials.c: Changed ATOM_SPECIALS to
6238         include ']' (this is an addition in rfc3501).
6239
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.
6242
6243 2004-03-25  Jeffrey Stedfast  <fejj@ximian.com>
6244
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).
6253
6254         * providers/imap/camel-imap-store.c (connect_to_server): Set
6255         store->braindamaged to TRUE if we find the string "Courier-IMAP"
6256         in the greeting.
6257
6258 2004-03-25  Jeffrey Stedfast  <fejj@ximian.com>
6259
6260         Fix for bug #55018.
6261
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).
6269
6270 2004-03-25  Martyn Russell  <ginxd@btopenworld.com>
6271
6272         * providers/smtp/camel-smtp-provider.c: Removed newline character
6273         from the provider description
6274
6275 2004-03-25  Sivaiah Nallagatla <snallagatla@novell.com>
6276
6277         * providers/groupwise/camel-groupwise-provider.c: removed ldap
6278         seetings and added a settng for SOAP port 
6279
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
6285
6286 2004-03-24  Jeffrey Stedfast  <fejj@ximian.com>
6287
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.
6291
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
6296         it's trivial to do.
6297
6298 2004-03-23  Jeffrey Stedfast  <fejj@ximian.com>
6299
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.
6303
6304 2004-03-23  Not Zed  <NotZed@Ximian.com>
6305
6306         * camel-exception.c (camel_exception_setv): use camel debug to add
6307         some debug here.
6308
6309         * camel.c (camel_init): call camel_debug_init().
6310
6311         * camel-debug.c (camel_debug_init, camel_debug): new util stuff
6312         for extended debug options.
6313
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.
6318
6319         * providers/imap/camel-imap-store.c (get_folder_info_online):
6320         connect lock around this.  was getting a race with mem corruption
6321         otherwise.
6322
6323 2004-03-22  Not Zed  <NotZed@Ximian.com>
6324
6325         * camel-mime-utils.c (camel_header_newsgroups_decode)
6326         (camel_header_newsgroups_free): decode newsgroups header into a
6327         list of newsgroups.
6328
6329         ** See #55887.
6330
6331         * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check):
6332         NOOP if we're offline.
6333
6334         * providers/nntp/camel-nntp-store.c (nntp_connected): spit a
6335         warning if we try to do stuff whilst offline, rather than crash.
6336
6337 2004-03-19  Not Zed  <NotZed@Ximian.com>
6338
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.
6342
6343         * camel-store.c (camel_store_get_folder): no longer use
6344         folder_lock, we already have adequate serialisation code here or
6345         below here.  I hope.
6346         (camel_store_get_folder_info): same here.
6347
6348         * providers/imap/camel-imap-store.h: remove async_thread thing.
6349
6350 2004-03-17  Jeffrey Stedfast  <fejj@ximian.com>
6351
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.
6358
6359 2004-03-17  Radek Doulik  <rodo@ximian.com>
6360
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
6363
6364 2004-03-17  Not Zed  <NotZed@Ximian.com>
6365
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
6370         rewritten now.
6371
6372         * See bug #55618.
6373         
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
6378         of date).
6379
6380         * camel-folder-summary.c (content_info_new): setup the content
6381         type as well, from the headers.
6382
6383         * providers/imap/camel-imap-summary.c
6384         (camel_imap_summary_add_offline): copy size from the source info.
6385
6386 2004-03-15  Jeffrey Stedfast  <fejj@ximian.com>
6387
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.
6392
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.
6397
6398 2004-03-16  Not Zed  <NotZed@Ximian.com>
6399
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
6402         stuff.
6403
6404 2004-03-15  Not Zed  <NotZed@Ximian.com>
6405
6406         * providers/local/camel-mbox-store.c (delete_folder): same as
6407         below for path.
6408
6409         * providers/local/camel-local-store.c (delete_folder): NULL out
6410         str before looking up the state file using it.  Otherwise we
6411         double-free str.
6412
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.
6417
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.
6421
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.
6425
6426         * camel.c (camel_init): change camel verbose debug to be an int, a
6427         bitmask of debug options.
6428
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.
6432
6433 2004-03-12  Jeffrey Stedfast  <fejj@ximian.com>
6434
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).
6439
6440 2004-03-12  Jeffrey Stedfast  <fejj@ximian.com>
6441
6442         Fix for bug #53497.
6443
6444         * providers/smtp/camel-smtp-transport.c (smtp_helo): Instead of
6445         unreffing the streams, call camel_service_disconnect().
6446         (smtp_mail): Same.
6447         (smtp_rcpt): Same.
6448         (smtp_data): Same.
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
6454         previous send).
6455
6456 2004-03-12  Radek Doulik  <rodo@ximian.com>
6457
6458         * camel-folder.c (folder_changed): clearn the learn bit only if
6459         set.
6460
6461 2004-03-12  Jeffrey Stedfast  <fejj@ximian.com>
6462
6463         Fixes for bug #55018.
6464
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.
6468
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().
6474
6475         * providers/local/camel-maildir-store.c (get_folder_info): Same as
6476         mbox.
6477         (scan_dir): Same as mbox. We also need to set the
6478         CAMEL_FOLDER_NOSELECT flag if appropriate.
6479
6480         * providers/local/camel-mh-store.c (get_folder_info): Same as mbox
6481         and maildir.
6482         (folders_scan): Now takes a url argument which we pass off to
6483         folder_info_new().
6484         (recursive_scan): Same.
6485         (folder_info_new): Use camel_url_to_string().
6486
6487 2004-03-11  Radek Doulik  <rodo@ximian.com>
6488
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
6491         JUNK_LEARN bit
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
6496         process it again
6497         (folder_changed): start filter thread if there's junk and/or
6498         nonjunk arrays
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
6502
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
6506         junk/non-junk
6507
6508 2004-03-12  Jeffrey Stedfast  <fejj@ximian.com>
6509
6510         * providers/smtp/camel-smtp-transport.c (connect_to_server): If
6511         errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE or
6512         whatever.
6513         (smtp_helo): Same.
6514         (smtp_auth): Same.
6515         (smtp_mail): Same.
6516         (smtp_rcpt): Same.
6517         (smtp_data): Same.
6518         (smtp_rset): Same.
6519         (smtp_quit): Same.
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.
6523
6524 2004-03-11  Jeffrey Stedfast  <fejj@ximian.com>
6525
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
6528         fails.
6529
6530 2004-03-11  Not Zed  <NotZed@Ximian.com>
6531
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
6534         once.
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
6538         stuff.
6539
6540 2004-03-11  Not Zed  <NotZed@Ximian.com>
6541
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.
6545
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.
6551
6552 2004-03-08  Not Zed  <NotZed@Ximian.com>
6553
6554         * camel-vee-store.c (vee_get_folder_info): setup virtual/system
6555         flags as appropriate.
6556         (change_folder): setup flags properly.
6557
6558         * providers/nntp/camel-nntp-store.c
6559         (nntp_store_get_subscribed_folder_info): mark all folders as
6560         system folders.
6561
6562         * providers/local/camel-mh-store.c (fill_fi): add this to setup
6563         folderinfo.
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!!!!
6567
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.
6576
6577         * providers/local/camel-mbox-store.c (fill_fi): setup total field.
6578         (scan_dir): init total.
6579         (get_folder_info): "
6580
6581 2004-03-05  Not Zed  <NotZed@Ximian.com>
6582
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.
6588
6589         * camel-store.c (add_special_info): set the system folder flag.
6590
6591         * camel-store.h: time to fix up the camelfolderinfo mess.  fix
6592         some member names, and add some type fields.  Fixed all uses.
6593
6594 2004-03-04  Not Zed  <NotZed@Ximian.com>
6595
6596         ** See bug #53355.
6597
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.
6601
6602 2004-03-03  Rodrigo Moya <rodrigo@ximian.com>
6603
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.
6608
6609 2004-03-03  Not Zed  <NotZed@Ximian.com>
6610
6611         * camel-operation.c (camel_operation_uncancel): attempt at
6612         uncancelling a cancelled operation.
6613
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
6616         first.  See #54937.
6617
6618 2004-02-27  Not Zed  <NotZed@Ximian.com>
6619
6620         ** See bug #54755.
6621
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.
6627
6628         * camel-gpg-context.c (gpg_ctx_parse_status): ignore NODATA
6629         response, otherwise we abort in a meaningless way.  See #52939.
6630
6631         * providers/imap/camel-imap-utils.c: use g_ascii_str[n]casecmp
6632         everywhere.
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
6635         #53355.
6636
6637 2004-02-26  Not Zed  <NotZed@Ximian.com>
6638
6639         * camel-session.c (camel_session_check_junk_for_imap) 
6640         (camel_session_set_check_junk_for_imap): removed.
6641
6642         * providers/imap/camel-imap-provider.c: Add filter_junk and
6643         filter_junk_inbox options to the receive option page.
6644
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
6649         filter_junk_inbox.
6650
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.
6655
6656         * camel-folder.c (folder_changed): only check for FILTER_RECENT or
6657         FILTER_JUNK to see if we need to do filtering.
6658
6659         * camel-folder.h (CAMEL_FOLDER_FILTER_JUNK): renamed from
6660         CAMEL_FOLDER_SUPRESS_JUNK_TEST (and obviously inverted logic).
6661
6662 2004-03-02  Jeffrey Stedfast  <fejj@ximian.com>
6663
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.
6668
6669 2004-02-25  Jeffrey Stedfast  <fejj@ximian.com>
6670
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.
6674
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
6678         Heimdal.
6679
6680 2004-02-25  Radek Doulik  <rodo@ximian.com>
6681
6682         * camel-folder.c (get_unread_message_count): do not avoid junk
6683         mails in unread count
6684
6685 2004-02-25  Not Zed  <NotZed@Ximian.com>
6686
6687         * providers/imap/camel-imap-summary.h (CAMEL_IMAP_MESSAGE_RECENT):
6688         moved the RECNET flag into the folder area (bit 17-30).
6689
6690 2004-02-24  Not Zed  <NotZed@Ximian.com>
6691
6692         ** See bug #53876.
6693
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.
6697
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.
6701
6702 2004-02-24  Jeffrey Stedfast  <fejj@ximian.com>
6703
6704         * camel-stream-process.c: #include <signal.h>, we don't need limits.h
6705
6706         * camel-store.c (camel_store_folder_uri_equal): New function to do
6707         what camel_store_uri_cmp() was supposed to do.
6708
6709 2004-02-23  Rodney Dawes  <dobey@ximian.com>
6710
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
6714
6715         Fixes #54470
6716
6717 2004-02-23  Jeffrey Stedfast  <fejj@ximian.com>
6718
6719         * camel-store.c (camel_store_uri_cmp): Removed. Useless/broken
6720         function.
6721
6722 2004-02-20  Jeffrey Stedfast  <fejj@ximian.com>
6723
6724         * camel-provider.c (camel_provider_list): Init list to NULL to
6725         prevent the crash in bug #54574.
6726
6727 2004-02-19  Chris Toshok  <toshok@ximian.com>
6728
6729         * camel-smime-context.c: wrap this file with #ifdef ENABLE_SMIME
6730         instead of #ifdef HAVE_NSS.
6731
6732 2004-02-19  Jeffrey Stedfast  <fejj@ximian.com>
6733
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().
6737
6738 2004-02-19  Not Zed  <NotZed@Ximian.com>
6739
6740         * providers/*/camel-*-provider.c
6741         (camel_provider_module_init): Fixes for api changes.
6742
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.
6747
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
6752
6753 2004-02-18  Jeffrey Stedfast  <fejj@ximian.com>
6754
6755         * camel-gpg-context.c (gpg_verify): Use the trust to decide the
6756         validity signature status. (Better way of solving yesterday's
6757         problem)
6758
6759         * camel-cipher-context.h: Revert change from yesterday.
6760
6761 2004-02-17  Jeffrey Stedfast  <fejj@ximian.com>
6762
6763         * camel-gpg-context.c (gpg_verify): Set the trust.
6764
6765         * camel-cipher-context.h: Add a trust metric to signatures.
6766
6767 2004-02-17  Not Zed  <NotZed@Ximian.com>
6768
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.
6772
6773         ** See bug #53861.
6774
6775         * providers/nntp/camel-nntp-summary.c (add_range_xover): Fix from
6776         Edd Dumbill <edd@usefulinc.com> to avoid aborting on irrelevently
6777         truncated lines.
6778
6779 2004-02-16  Not Zed  <NotZed@Ximian.com>
6780
6781         ** See bug #51045.
6782
6783         * providers/imap/camel-imap-store.c (fill_fi): similar to mbox
6784         version.
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.
6789
6790         * providers/local/camel-maildir-store.c (fill_fi): similar to mbox
6791         version.
6792         (scan_dir): use fill_fi to get the unread count now.
6793
6794         * providers/local/camel-mbox-store.c (fill_fi): helper to lookup
6795         unread count either from active folder or from summary file, if
6796         it's available.
6797         (scan_dir, get_folder_info): use helper above to get folder info.
6798
6799         * devel-docs/camel-folder-summary.txt: New document describing the
6800         format/conventions in the CamelFolderSummary file.
6801
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).
6806
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.
6810
6811         * providers/local/camel-local-summary.c (summary_header_load/save):
6812         read/write the per-class version number (1).
6813
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
6817         header.
6818         (summary_header_save): Save out the new-format header.  Version
6819         bumped to 13.
6820
6821         * camel.c (camel_init): return 0 rather than spit a compiler warning.
6822
6823         * camel-file-utils.c (camel_file_util_encode_*_t): macro-ise the
6824         type encoder/decoders.  Also add size_t encoder/decoder.
6825
6826 2004-02-13  Jeffrey Stedfast  <fejj@ximian.com>
6827
6828         * providers/imap/camel-imap-store.c (get_folder_online): Same.
6829
6830         * providers/local/camel-mh-store.c (get_folder): Same as maildir
6831         changes.
6832
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.
6836
6837         * providers/local/camel-mbox-store.c (get_folder): Check
6838         CAMEL_STORE_FOLDER_EXCL flag.
6839
6840         * providers/local/camel-local-store.c (get_folder): Simplified by
6841         using camel_mkdir instead of doing it manually.
6842
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
6845         exception.
6846
6847         * camel-store.h: Added a new CAMEL_STORE_FOLDER_EXCL flag for use
6848         with get_folder().
6849
6850 2004-02-12  Jeffrey Stedfast  <fejj@ximian.com>
6851
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
6855         #54319.
6856
6857 2004-02-09  Not Zed  <NotZed@Ximian.com>
6858
6859         ** See bug #53978.
6860
6861         * providers/local/camel-mbox-store.c: added ".lock" to the list of
6862         ignored extensions.
6863         (ignore_file): ignore anything ending in ~ too.
6864
6865         ** See bug #51319.
6866         
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.
6870
6871 2004-02-06  Jeffrey Stedfast  <fejj@ximian.com>
6872
6873         * camel-provider.c (camel_provider_init): Use strrchr, not strchr.
6874
6875         * camel-gpg-context.c (gpg_ctx_parse_status): Forget the need_id,
6876         not the userid. Fixes bug #53908.
6877
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.
6883
6884 2004-02-06  Not Zed  <NotZed@Ximian.com>
6885
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.
6889
6890 2004-02-05  Not Zed  <NotZed@Ximian.com>
6891
6892         * providers/local/camel-mbox-store.c (rename_folder): rename
6893         .cmeta file too, and fix the recovery order.
6894
6895         * providers/local/camel-local-store.c (rename_folder): rename the
6896         .cmeta file too.
6897
6898         * providers/local/camel-local-folder.c (local_rename): fix this to
6899         use local_get_full_path stuff.
6900
6901         * camel-store.c (camel_store_rename_folder): fix umr's comparing
6902         old and new names.
6903
6904 2004-02-05  Not Zed  <NotZed@Ximian.com>
6905
6906         ** See bug #53553.
6907         
6908         * camel-provider.c (camel_provider_init): changed to return a
6909         hashtable of url protocols to CamelProviderModule structs, rather
6910         than simple strings.
6911
6912         * camel-session.c (get_provider): if we load a provider module,
6913         mark it as loaded.
6914         (ensure_loaded): Check the module loaded flag before trying to
6915         load it.
6916
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.
6920
6921 2004-02-05  Not Zed  <NotZed@Ximian.com>
6922
6923         * camel-session.c (CS_CLASS): dont typecheck cast.
6924
6925         * camel-store.c (camel_vjunk_folder_new): removed, use
6926         vtrash_new(junk).
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
6930
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.
6937
6938 2004-02-04  Jeffrey Stedfast  <fejj@ximian.com>
6939
6940         * providers/imap/camel-imap-store.c: Get rid of some unnecessary
6941         CAMEL_OBJECT() casts.
6942
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.
6948
6949 2004-02-04  Jeffrey Stedfast  <fejj@ximian.com>
6950
6951         Fix for bug #53755 (local folders case)
6952
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.
6959
6960 2004-02-04  Not Zed  <NotZed@Ximian.com>
6961
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.
6965
6966 2004-02-04  Not Zed  <NotZed@Ximian.com>
6967
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.
6971
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
6975         deleted.
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
6979         delete_folder.
6980
6981         * camel-vee-store.c (vee_delete_folder): dont do any trash/junk
6982         processing anymore.
6983
6984 2004-02-03  Not Zed  <NotZed@Ximian.com>
6985
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.
6990
6991         * camel-object.c (camel_object_bag_add): null out the pair->func,
6992         otherwise we get an uninitalised memory read during unhook event.
6993
6994 2004-02-03  Jeffrey Stedfast  <fejj@ximian.com>
6995
6996         * camel-vee-folder.c (vee_folder_build_folder): Use macro casts
6997         from int to pointer.
6998
6999         * camel-folder.c (camel_folder_change_info_add_source): Same as below.
7000         (camel_folder_change_info_add_source_list): Same.
7001
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().
7005
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.
7011
7012 2004-02-03  Jeffrey Stedfast  <fejj@ximian.com>
7013
7014         * tests/misc/url-scan.c: New test suite for url scanning.
7015
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).
7028
7029 2004-02-02  Jeffrey Stedfast  <fejj@ximian.com>
7030
7031         Fixes for bug #53091.
7032
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.
7037
7038         * camel-store.c (folder_info_clone_rec): Copy the flags too. Fixes
7039         the local folder case of bug #53091.
7040
7041 2004-01-31  Jeffrey Stedfast  <fejj@ximian.com>
7042
7043         * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Same
7044         as below.
7045
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.
7050
7051 2004-01-30  Rodney Dawes <dobey@ximian.com>
7052
7053         * providers/groupwise/camel-groupwise-provider.c: Fix spelling error in
7054         provider description
7055
7056         Fixes #53572
7057
7058 2004-01-30  Jeffrey Stedfast  <fejj@ximian.com>
7059
7060         * camel.c (camel_init): Protect against multiple camel_init()
7061         calls. Remember if we've already been called.
7062
7063 2004-01-30  Not Zed  <NotZed@Ximian.com>
7064
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.
7068
7069 2004-01-29  Not Zed  <NotZed@Ximian.com>
7070
7071         ** See bug #53269.
7072         
7073         * providers/nntp/camel-nntp-store.c
7074         (nntp_store_get_cached_folder_info): don't dereference last before
7075         checking if its null.
7076
7077         * camel-object.c (camel_object_bag_rekey): added a doc comment.
7078
7079         ** See bug #53520.
7080
7081         * camel-session.c (get_service): free the url once done, it now
7082         gets copied by the service.
7083
7084         * camel-service.c (construct): copy the url that comes in, don't
7085         just '0Wn34z' it.  clena up exception handling too.
7086
7087 2004-01-29  Not Zed  <NotZed@Ximian.com>
7088
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.
7092
7093         * camel-url.c (camel_url_free): zero out passwd/user/host before
7094         freeing them.
7095
7096 2004-01-28  Jeffrey Stedfast  <fejj@ximian.com>
7097
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.
7104
7105 2004-01-28  Sivaih Nallagatla <snallagatla@novell.com>
7106
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
7110
7111 2004-01-27  Radek Doulik  <rodo@ximian.com>
7112
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
7116
7117         * camel-folder.c (folder_changed): use
7118         CAMEL_FOLDER_SUPRESS_JUNK_TEST flag instead of check_junk_for_imap
7119
7120         * camel-folder.h (CAMEL_FOLDER_SUPRESS_JUNK_TEST): added new flag
7121
7122 2004-01-27  Not Zed  <NotZed@Ximian.com>
7123
7124         ** See bug #53373.
7125
7126         * camel-store.c (camel_store_rename_folder): use object_bag_rekey
7127         to rename the object.  object_bag use was broken.
7128
7129         * camel-object.c (camel_object_bag_rekey): new api to atomically
7130         re-key
7131
7132 2004-01-23  Radek Doulik  <rodo@ximian.com>
7133
7134         * camel-folder.c (folder_changed): use check_junk_for_imap flag
7135
7136         * camel-session.c: add check_junk_for_imap flag
7137
7138 2004-01-23  Not Zed  <NotZed@Ximian.com>
7139
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.
7147
7148 2004-01-22  Jeremy Katz  <katzj@redhat.com>
7149
7150         * camel-mime-part.c: Fix prototype to be consistent.
7151
7152 2004-01-21  Not Zed  <NotZed@Ximian.com>
7153
7154         ** See bug #52996.
7155
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
7159         call add/abort).
7160
7161         * camel-object.c (camel_object_bag_*): Added some inline doco.
7162
7163 2004-01-20  Not Zed  <NotZed@Ximian.com>
7164
7165         ** See bug #52817.
7166
7167         * camel-session.c (camel_session_get_password): merged reprompt
7168         and secret into a flags field, and add more options.  Fixed all
7169         callers.
7170
7171         ** See bug #52899.
7172
7173         * camel-gpg-context.c (gpg_ctx_parse_status): use need_id as the
7174         password key, not userid.
7175
7176 2004-01-19  Siviaah Nallagatla <snallagatla@novell.com>
7177
7178         * providers/groupwise/camel-gw-listener.c
7179         (remove_calender_tasks_sources, modify_calender_tasks_sources):
7180         add port and "/soap" to source uri
7181
7182 2004-01-19  Not Zed  <NotZed@Ximian.com>
7183
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.
7188
7189         * camel-session.c (vee_provider): Update the provider flags for
7190         URL_FRAGMENT_IS_PATH.
7191
7192         * providers/imapp/camel-imapp-utils.c (imap_parse_addfress_list):
7193         namespaces fixes for HEADER_ADDRESS*
7194
7195 2004-01-17  Jeffrey Stedfast  <fejj@ximian.com>
7196
7197         * providers/imap/camel-imap-folder.c (imap_sync_online): Limit the
7198         flags we set (or unset) to the folder's permanent flags.
7199
7200 2004-01-16  Jeffrey Stedfast  <fejj@ximian.com>
7201
7202         * camel-mime-message.c (camel_mime_message_build_mbox_from): Same.
7203
7204         * camel-internet-address.c (internet_decode): Same.
7205
7206         * camel-mime-utils.[c,h]: Namespaced camel_header_address_t enums
7207         s/HEADER_ADDRESS_/CAMEL_HEADER_ADDRESS_/g
7208
7209 2004-01-16 Sivaiah Nallagatla <snallagatla@novell.com>
7210
7211         * providers/groupwise/camel-groupwise-provider.c: added some conf
7212         entries for LDAP address setup
7213
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
7218         ESources
7219
7220 2004-01-15  Not Zed  <NotZed@Ximian.com>
7221
7222         ** See bug #52881.
7223
7224         * camel-object.c (camel_object_bag*): Support reserving different
7225         keys from the same thread.  Oh the pain.
7226
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.
7234
7235 2004-01-14  Rodrigo Moya <rodrigo@ximian.com>
7236
7237         * providers/groupwise/camel-groupwise-provider.c
7238         (camel_provider_module_init): missing renaming.
7239
7240 2004-01-14  Rodrigo Moya <rodrigo@ximian.com>
7241
7242         * providers/groupwise/camel-gw-listener.c (add_esource): set the
7243         "auth" property on the ESource's we create, to get authentication.
7244
7245 2004-01-14  Not Zed  <NotZed@Ximian.com>
7246
7247         ** Patch from Timo Sirainen <tss@iki.fi> to honour read-only
7248         status for imap folders.
7249         
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.
7254
7255 2004-01-14  Not Zed  <NotZed@Ximian.com>
7256
7257         * providers/local/camel-local-folder.c (local_getv): remove debug
7258         printf.
7259
7260         ** See bug #52835.
7261
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
7265         too.
7266
7267 2004-01-13  Rodrigo Moya <rodrigo@ximian.com>
7268
7269         * providers/groupwise/camel-groupwise-provider.c: missing renaming.
7270
7271 2004-01-13  Sivaiah Nallagatla <snallagatla@novell.com>
7272
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
7276
7277         * providers/groupwise/camel-groupwise-provider.c: use the renamed
7278         config listener apis
7279
7280         * providers/groupwise/Makefile.am: changed the source file names
7281
7282 2004-01-12  Meilof Veeningen  <meilof@wanadoo.nl>
7283
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
7287
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
7291
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
7295
7296         * providers/nntp/camel-nntp-store-summary.[ch]: NNTP store
7297         summary based on IMAP code
7298
7299         * providers/nntp/camel-nntp-summary.c: save summary after xover
7300
7301         * providers/nntp/camel-nntp-grouplist.h: added CamelNNTPGroupList
7302         structs
7303
7304         * providers/nntp/Makefile.am: added store summary
7305
7306 2004-01-12  Not Zed  <NotZed@Ximian.com>
7307
7308         ** See bug 52725.
7309
7310         * providers/imap/camel-imap-folder.c (get_content): pass in
7311         transfer encoding when setting up wrapper part.
7312
7313         * providers/imap/camel-imap-wrapper.c (camel_imap_wrapper_new):
7314         Added an encoding type parameter, set on data wrapper.
7315
7316 2004-01-10  Jeffrey Stedfast  <fejj@ximian.com>
7317
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.
7328
7329 2004-01-09  Rodney Dawes  <dobey@ximian.com>
7330
7331         * providers/groupwise/Makefile.am (EXTRA_DIST): libcamelgroupwise.urls
7332         instead of libcamelimap.urls
7333
7334 2004-01-09  Sivaiah Nallagatla <snallagatla@novell.com>
7335
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"
7339
7340 2004-01-09  Not Zed  <NotZed@Ximian.com>
7341
7342         * providers/imap/camel-imap-store.c (imap_forget_folder): fix
7343         removal of journal file, and remove the cmeta state file too.
7344
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
7347         miss any.
7348         (imap_rename): rename the object state file.
7349         (camel_imap_folder_new): set the object state file for persistent
7350         properties.
7351
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
7357         current folder.
7358         (disco_sync): save object state.
7359         (disco_setv): save object state if it changed.
7360
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.
7365
7366 2004-01-08 Sivaiah Nallagatla <snallagatla@novell.com>
7367
7368         * providers/Makefile.am : add groupwise to SUBDIRS
7369
7370         * providers/groupwise/camel-groupwise-provider.c: new camel
7371         provider for groupwise
7372
7373         * providers/groupwise/groupwise-config-listener.[ch] : new class
7374         to add e-sources for groupwise calender and tasks
7375
7376         * providers/groupwise/Makefile.am : added new files to Makefile.am
7377
7378 2004-01-05  JP Rosevear <jpr@ximian.com>
7379
7380         * camel-utf8.c: include sys/types.h for freebsd
7381
7382 2004-01-05  Rodrigo Moya <rodrigo@ximian.com>
7383
7384         * providers/groupwise/camel-groupwise-provider.c (groupwise_url_hash,
7385         groupwise_url_equal): renamed from imap_*.
7386
7387 2004-01-05  Not Zed  <NotZed@Ximian.com>
7388
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!
7391
7392 2003-12-27  Jeffrey Stedfast  <fejj@ximian.com>
7393
7394         * camel-tcp-stream-raw.c (socket_connect): Save errno and check
7395         the return of the socket() call.
7396
7397 2003-12-24  Rodrigo Moya <rodrigo@ximian.com>
7398
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.
7402
7403 2003-12-22  Rodrigo Moya <rodrigo@ximian.com>
7404
7405         * providers/groupwise/camel-groupwise-provider.c: removed useless
7406         configuration options, and added other options from the IMAP
7407         provider.
7408         (camel_provider_module_init): register a SMTP transport object
7409         also, and removed SASL registration, since we don't support it.
7410
7411 2003-12-19  Sivaiah Nallagatla <snallagatla@novell.com>
7412
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.
7417
7418 2003-12-11  Jeffrey Stedfast  <fejj@ximian.com>
7419
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).
7428
7429 2003-12-10  Jeffrey Stedfast  <fejj@ximian.com>
7430
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.
7435         (scan_dir): Same.
7436
7437         * camel-store.h: Add a CAMEL_FOLDER_NOCHILDREN flag.
7438
7439         * providers/imap/camel-imap-store.c (get_folders): Same as below.
7440
7441         * providers/imap/camel-imap-utils.c (imap_parse_list_response):
7442         s/CAMEL_IMAP_FOLDER_NOCHILDREN/CAMEL_FOLDER_NOCHILDREN/
7443
7444 2003-12-10  Not Zed  <NotZed@Ximian.com>
7445
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.
7450
7451 2003-12-10  Not Zed  <NotZed@Ximian.com>
7452
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
7456         does (#ifdef ...).
7457
7458         * camel-smime-context.c (sm_verify_cmsg): add signer info to
7459         certvalidity.
7460
7461         * camel-cipher-context.c (CamelCipherValidity): Added certinfo to
7462         validity for signing and encrypting, so we can find the keys later
7463         for a gui.
7464         (camel_cipher_validity_add_certinfo): add signer or
7465         encrypter info to the validity.
7466         (camel_cipher_validity_envelope): add sign/encrypt keys.
7467
7468 2003-12-10  Not Zed  <NotZed@Ximian.com>
7469
7470         * camel-stream-process.c (do_exec_command): remove dthe clearenv
7471         stuff, not sure why its there.  s/setenv/putenv/ for portability.
7472         See Bug #51767.
7473
7474 2003-12-08  Jeffrey Stedfast  <fejj@ximian.com>
7475
7476         * camel-mime-utils.c (header_decode_rfc2184_param): Revert the
7477         s/is_/camel_mime_is_/ changes or we get really long variable
7478         names.
7479         (header_decode_param): Same.
7480         (header_decode_param_list): Here too.
7481
7482 2003-12-09  Not Zed  <NotZed@Ximian.com>
7483
7484         ** See bug #51899.
7485
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).
7489
7490 2003-12-09  Not Zed  <NotZed@Ximian.com>
7491
7492         * providers/smtp/camel-smtp-transport.c (smtp_send_to): encode the
7493         address before sending it out, rather than using the raw/utf8
7494         version.
7495
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.
7502
7503         * camel-mime-utils.[ch]: rename is_* to camel_mime_is_* and export
7504         the type functions.
7505
7506 2003-12-08  Not Zed  <NotZed@Ximian.com>
7507
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.
7511
7512 2003-12-08  Jeffrey Stedfast  <fejj@ximian.com>
7513
7514         Fixes bug #51881
7515
7516         * providers/local/camel-mbox-store.c (delete_folder): Same.
7517
7518         * providers/local/camel-local-store.c (delete_folder): Unlink the
7519         cmeta file too.
7520
7521 2003-12-06  JP Rosevear <jpr@ximian.com>
7522
7523         * */Makefile.am: Remove hard coded disable deprecated flags
7524
7525 2003-12-05  Jeffrey Stedfast  <fejj@ximian.com>
7526
7527         * camel-gpg-context.c (gpg_ctx_op_start): Properly set the
7528         O_NONBLOCK flag along with any previously set flags.
7529
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).
7534
7535         * camel-filter-driver.c (pipe_to_system): Same.
7536
7537 2003-12-04  Radek Doulik  <rodo@ximian.com>
7538
7539         * camel-folder.c (folder_changed): check recent messages for junk
7540         mail
7541
7542         * camel-session.c (camel_session_check_junk): new wrapper method
7543         for check_junk flag
7544         (camel_session_set_check_junk): ditto
7545
7546         * camel-session.h (struct _CamelSession): added check_junk flag
7547         (if to check incoming mail for junk messages)
7548
7549 2003-12-03  Jeffrey Stedfast  <fejj@ximian.com>
7550
7551         * camel-store.c (add_special_info): Free fi->path if we are gonna
7552         replace it with the vinfo path.
7553
7554         * providers/local/camel-mbox-store.c (create_folder): Treat
7555         parent_name == NULL and parent_name == "" the same.
7556
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
7560         tree.
7561         (add_special_info): Use the provider->url_flags to determine if
7562         the url uses the fragment or not for the path.
7563
7564 2003-12-02  Not Zed  <NotZed@Ximian.com>
7565
7566         * providers/local/camel-local-folder.c (local_setv): remove some
7567         debug printfs.
7568
7569         ** See bug #51576.
7570
7571         * camel-url.c (camel_url_decode): robustify url decoding for bad
7572         input, addresses a crash.
7573
7574         ** See bug #51478.
7575
7576         * camel-gpg-context.c (gpg_ctx_free): handle the context being
7577         NULL, and exit silently.
7578
7579 2003-12-01  Jeffrey Stedfast  <fejj@ximian.com>
7580
7581         * camel-process.c (camel_process_fork): Start at fd = 3.
7582
7583         * camel-gpg-context.c (gpg_ctx_op_start): Same.
7584
7585         * camel-filter-driver.c (pipe_to_system): Same.
7586
7587         * camel-filter-search.c (run_command): Start at fd = 3.
7588
7589 2003-12-01  Jeffrey Stedfast  <fejj@ximian.com>
7590
7591         * camel-stream-process.c (do_exec_command): Same.
7592
7593         * camel-process.c (camel_process_fork): Same.
7594
7595         * camel-filter-search.c (run_command): Same as below.
7596
7597         * camel-filter-driver.c (pipe_to_system): Same as below.
7598
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!
7603
7604 2003-12-01  Radek Doulik  <rodo@ximian.com>
7605
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
7610
7611 2003-11-28  Radek Doulik  <rodo@ximian.com>
7612
7613         * camel-store.c (camel_store_get_folder_info): use old code from
7614         mail-ops to add vtrash/vjunk info
7615
7616 2003-11-28  David Woodhouse  <dwmw2@redhat.com>
7617
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.
7622
7623 2003-11-28  Not Zed  <NotZed@Ximian.com>
7624
7625         * camel-mime-utils.c (mail_list_magic[]): Added list-unsubscribe
7626         header match.
7627
7628 2003-11-26  Not Zed  <NotZed@Ximian.com>
7629
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.
7633
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.
7637
7638 2003-11-26  JP Rosevear <jpr@ximian.com>
7639
7640         * Makefile.am: make sure we always dist the smime stuff
7641
7642 2003-11-26  JP Rosevear  <jpr@ximian.com>
7643
7644         * Makefile.am (libcamelinclude_HEADERS): conditionally compile
7645         s/mime support
7646
7647 2003-11-25  Not Zed  <NotZed@Ximian.com>
7648
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
7653         properly.
7654         (camel_cipher_validity_free): free any children nodes recursively.
7655
7656         * camel-cipher-context.h (CamelCipherValidity): added next/prev
7657         and list header.
7658
7659 2003-11-18  Jeffrey Stedfast  <fejj@ximian.com>
7660
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.
7664
7665 2003-11-17  Jeffrey Stedfast  <fejj@ximian.com>
7666
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.
7670
7671 2003-11-14  Jeffrey Stedfast  <fejj@ximian.com>
7672
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.
7677
7678         * providers/local/camel-mbox-folder.c
7679         (camel_mbox_folder_get_full_path): Removed temporary hack.
7680
7681 2003-11-14  Not Zed  <NotZed@Ximian.com>
7682
7683         * camel-mime-parser.c (SCAN_BUF): oops, put the mempool stuff
7684         back, we don't use e-memory afterall.  Damn plane hacking.
7685
7686 2003-11-13  Not Zed  <NotZed@Ximian.com>
7687
7688         * camel-mime-parser.c: Remove mempool code, we use the stuff in
7689         e-util.
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.
7693
7694         * camel-gpg-context.c (gpg_decrypt): reset the input memstream
7695         before passing it to the gpg engine.
7696
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
7701         cipher context.
7702
7703         * tests/smime/pgp.c (main): fixes for api changes.
7704         (main): redirect /dev/null to stdin so it doesn't hang waiting for
7705         input.
7706
7707         * tests/message/test1.c (main): update for api changes.
7708
7709         * camel-smime-context.c (sm_verify): look at the content object's
7710         mime type, not the container's type.
7711
7712 2003-11-11  Not Zed  <NotZed@Ximian.com>
7713
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.
7717
7718         * camel-smime-context.c (sm_signing_cmsmessage): removed a todo.
7719
7720 2003-11-10  Not Zed  <NotZed@Ximian.com>
7721
7722         * camel-smime-context.c (sm_verify_cmsg): split out the CMSMessage
7723         verification code so it can be used from enveloped or externally
7724         signed data.
7725
7726         * camel-cipher-context.c (camel_cipher_verify): only take a
7727         mimepart, internally handle multiparts and the hash.
7728
7729 2003-11-07  Not Zed  <NotZed@Ximian.com>
7730
7731         * camel-cipher-context.c: make ciphervalidity a public structure,
7732         added encrypt status.
7733         (camel_cipher_decrypt): changed to return a ciphervalidity.  fixed
7734         implementations.
7735         (camel_cipher_validity_*): Fixed implementations to match new
7736         structure, some of this is now redundant.
7737
7738 2003-11-06  Not Zed  <NotZed@Ximian.com>
7739
7740         * camel-smime-context.c (camel_smime_context_describe_part):
7741         implement.
7742
7743 2003-11-05  Jeffrey Stedfast  <fejj@ximian.com>
7744
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.
7748
7749 2003-11-05  Not Zed  <NotZed@Ximian.com>
7750
7751         * camel-smime-context.c (camel_smime_context_describe_part): new
7752         (unfinished) api to peek inside smime parts to tell us whats in
7753         it.
7754
7755 2003-11-03  Not Zed  <NotZed@Ximian.com>
7756
7757         * camel-gpg-context.c (gpg_encrypt): Make this output the
7758         full multipart/encrypted part, not just the encrypted content part.
7759
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.
7764
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.
7768
7769 2003-11-04  Jeffrey Stedfast  <fejj@ximian.com>
7770
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
7773         #50485.
7774
7775 2003-10-31  Not Zed  <NotZed@Ximian.com>
7776
7777         * camel-cms-context.[ch]: removed, now redundant.
7778
7779 2003-10-30  Not Zed  <NotZed@Ximian.com>
7780
7781         * camel-smime-context.c (sm_get_passwd): implement something basic.
7782
7783         * camel-cipher-context.h: Added a note about api inconsistencies.
7784
7785 2003-10-30  Not Zed  <NotZed@Ximian.com>
7786
7787         * camel-multipart-encrypted.c (camel_multipart_encrypted_decrypt):
7788         fix for cipher_decrypt changes.
7789
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
7792         around.
7793         (camel_cipher_decrypt): changed to take mimepart input and return
7794         a mimepart.
7795         (gpg_decrypt): fix for changed args.
7796
7797 2003-10-29  Not Zed  <NotZed@Ximian.com>
7798
7799         * camel-smime-context.[ch]: replaced entirely with a new
7800         implementation which inherits from camel-cipher-context, and add
7801         to build.
7802
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.
7806
7807         * camel-gpg-context.c (gpg_encrypt): Fix to handle input/output as
7808         parts not streams
7809
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.
7813
7814 2003-10-28  Not Zed  <NotZed@Ximian.com>
7815
7816         * tests/smime/pgp.c (main): fix for ciphercontext api changes.
7817
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
7821         part details.
7822
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.
7827
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
7831         stream.
7832
7833 2003-10-22  Not Zed  <NotZed@Ximian.com>
7834
7835         * camel-utf8.c (camel_ucs2_utf8, camel_utf8_ucs2): helpers for
7836         ucs2 stuff.  ucs2 is 16 bit truncated unicode.
7837
7838 2003-10-28  Jeffrey Stedfast  <fejj@ximian.com>
7839
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.
7844
7845 2003-10-28  Jeffrey Stedfast  <fejj@ximian.com>
7846
7847         * Fixes bug #35083
7848
7849         * providers/imap/camel-imap-store.c (connect_to_server): Same
7850         here.
7851
7852         * providers/pop3/camel-pop3-store.c (connect_to_server): Same as
7853         the smtp changes.
7854
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
7858         return fail.
7859
7860 2003-10-27  Frederic Crozat  <fcrozat@mandrakesoft.com>
7861
7862         * camel-mime-utils.c: (camel_header_decode_date):
7863         better detection of broken date to give to broken_date_parser.
7864
7865 2003-10-24  Jeffrey Stedfast  <fejj@ximian.com>
7866
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
7869         fixes bug #50096.
7870
7871 2003-10-23  Jeffrey Stedfast  <fejj@ximian.com>
7872
7873         * *.c: Removed unneeded CAMEL_OBJECT() casts.
7874
7875 2003-10-21  Not Zed  <NotZed@Ximian.com>
7876
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
7880         persistent.
7881         (camel_local_folder_construct): turn off indexing, for now, it
7882         should be done in local_setv.
7883
7884         * providers/local/camel-local-folder.h: change body_index to a bool
7885         type.
7886
7887         * camel-object.c (cobject_state_read, cobject_state_write): handle
7888         bool types
7889         (cobject_state_write): make sure we free all arg types.
7890
7891         * camel-arg.c (camel_argv_build):
7892         (camel_arggetv_build):  handle bool type.
7893
7894         * camel-arg.h: Added BOO (bool) type.
7895
7896 2003-10-15  Not Zed  <NotZed@Ximian.com>
7897
7898         * camel-store.c (camel_folder_info_build): Fix so we output the
7899         tree in sorted depth-first order, rather in reverse.
7900
7901 2003-10-16  Jeffrey Stedfast  <fejj@ximian.com>
7902
7903         * camel-sasl-kerberos4.c: Fixed a #include.
7904
7905 2003-10-10  Not Zed  <NotZed@Ximian.com>
7906
7907         * providers/local/camel-local-provider.c: set the url fragment
7908         flag for local providers.
7909
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
7913         path.
7914
7915 2003-10-09  Jeffrey Stedfast  <fejj@ximian.com>
7916
7917         * camel-mime-utils.c (header_decode_date): Allow timezone offsets
7918         to be up to 14 hours ahead of UTC. Fixes bug #49357.
7919
7920         * broken-date-parser.c (get_tzone): Same.
7921
7922 2003-10-08  Jeffrey Stedfast  <fejj@ximian.com>
7923
7924         * providers/smtp/camel-smtp-transport.c (smtp_helo): Removed an
7925         unused variable.
7926
7927 2003-09-25  Jeffrey Stedfast  <fejj@ximian.com>
7928
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.
7932
7933 2003-09-23  Ettore Perazzoli  <ettore@ximian.com>
7934
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
7937         folders.
7938
7939 2003-09-23  Jeffrey Stedfast  <fejj@ximian.com>
7940
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
7943         it.
7944
7945         * camel-mime-utils.c (append_8bit): Don't forget to flush the
7946         iconv conversion.
7947
7948         * tests/message/test4.c (main): Don't try dot-files.
7949
7950 2003-09-22  Not Zed  <NotZed@Ximian.com>
7951
7952         ** See bug #41610
7953         
7954         * providers/pop3/camel-pop3-folder.c (cmd_tocache): protect a
7955         divide by 0 for 0 length messages.
7956
7957 2003-09-22  Not Zed  <NotZed@Ximian.com>
7958
7959         * providers/imap/camel-imap-provider.c: Added "offline_sync"
7960         option, which lets you synchronise all mail to local storage
7961         automagically.
7962
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
7966         for this store.
7967
7968 2003-09-21  Not Zed  <NotZed@Ximian.com>
7969
7970         * camel-session.c (session_thread_destroy): call proper entry
7971         point for freeing the message.
7972
7973 2003-09-18  Not Zed  <NotZed@Ximian.com>
7974
7975         * camel-folder.c (filter_filter): register the filtering process
7976         for progress, and do progress of the filtering process.
7977
7978 2003-09-17  Not Zed  <NotZed@Ximian.com>
7979
7980         * camel.c (camel_init): init camel operation.
7981
7982         * camel-operation.c (camel_operation_reset): removed, not used,
7983         not worth it.
7984         (camel_operation_mute): new method to stop all status updates
7985         permanently.
7986         (*): Changed to use thread specific data and a list rather than a
7987         hashtable.
7988         (cancel_thread): removed.
7989         (camel_operation_register): return the previously registered op.
7990
7991 2003-09-22  Jeffrey Stedfast  <fejj@ximian.com>
7992
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.
7996
7997         * providers/imapp/camel-imapp-folder.c (imap_sync): Cast the
7998         CamelFolder to a CamelIMAPPFolder to hush some compiler warnings.
7999
8000         * camel-mime-utils.h: Define a struct _CamelContentDisposition
8001         (allows the imapp code to compile)
8002
8003         * providers/imapp/camel-imapp-driver.c: #include <string.h>
8004
8005 2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>
8006
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().
8012
8013         * camel-mime-part.c (camel_mime_part_encoding_to_string): Removed.
8014         (camel_mime_part_encoding_from_string): Removed.
8015
8016         * camel-data-wrapper.[c,h]: updated for CamelTransferEncoding
8017         namespace changes
8018
8019         * camel-folder-summary.c: updated for CamelTransferEncoding
8020         namespace changes
8021
8022         * camel-mime-filter-bestenc.[c,h]: updated for CamelTransferEncoding
8023         namespace changes
8024
8025         * camel-mime-message.c: updated for CamelTransferEncoding
8026         namespace changes
8027
8028         * camel-mime-part-utils.c: updated for CamelTransferEncoding
8029         namespace changes
8030
8031         * camel-multipart-signed.c: updated for CamelTransferEncoding
8032         namespace changes
8033
8034         * camel-smime-context.c: updated for CamelTransferEncoding
8035         namespace changes
8036
8037         * providers/imapp/camel-imapp-utils.c: updated for
8038         CamelTransferEncoding namespace changes
8039
8040         * tests/lib/messages.c: updated for CamelTransferEncoding
8041         namespace changes
8042
8043         * tests/message/test1.c: updated for CamelTransferEncoding
8044         namespace changes
8045
8046 2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>
8047
8048         * camel-mime-utils.[c,h]: namespaced the encoding/decoding
8049         routines.
8050
8051         * camel-mime-filter-basic.c: updated for namespace changes to the
8052         encoding/decoding routines in camel-mime-utils.c
8053
8054         * camel-multipart.c: updated for namespace changes to the
8055         encoding/decoding routines in camel-mime-utils.c
8056
8057         * camel-sasl-digest-md5.c: updated for namespace changes to the
8058         encoding/decoding routines in camel-mime-utils.c
8059
8060         * camel-sasl.c: updated for namespace changes to the
8061         encoding/decoding routines in camel-mime-utils.c
8062         
8063         * camel-vee-folder.c: updated for namespace changes to the
8064         encoding/decoding routines in camel-mime-utils.c
8065
8066         * providers/imap/camel-imap-search.c: updated for namespace
8067         changes to the encoding/decoding routines in camel-mime-utils.c
8068
8069         * providers/pop3/camel-pop3-folder.c: updated for namespace
8070         changes to the encoding/decoding routines in camel-mime-utils.c
8071
8072 2003-08-26  Jeffrey Stedfast  <fejj@ximian.com>
8073
8074         * camel-mime-parser.[c,h]: s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g and
8075         s/_header_state/_camel_mime_parser_state/g
8076
8077         * camel-filter-driver.c: Same.
8078
8079         * camel-folder-summary.c: Here too.
8080
8081         * camel-http-stream.c: And here.
8082
8083         * camel-mime-message.c: ...
8084
8085         * camel-mime-part-utils.c: ...
8086
8087         * camel-mime-part.c: ...
8088
8089         * camel-movemail.c: ...
8090
8091         * camel-multipart-signed.c: ...
8092
8093         * camel-multipart.c: ...
8094
8095         * providers/local/camel-mbox-folder.c: ...
8096
8097         * providers/local/camel-mbox-summary.c: ...
8098
8099         * providers/local/camel-mh-summary.c: ...
8100
8101         * providers/nntp/camel-nntp-summary.c: ...
8102
8103         * providers/pop3/camel-pop3-folder.c: ...
8104
8105 2003-08-25  Jeffrey Stedfast  <fejj@ximian.com>
8106
8107         * camel-mime-utils.[c,h]: Namespaced.
8108
8109         * camel-data-wrapper.c: updated for namespace changed made to
8110         camel-mime-utils.[c,h]
8111
8112         * camel-digest-folder.c: updated for namespace changed made to
8113         camel-mime-utils.[c,h]
8114
8115         * camel-filter-driver.c: updated for namespace changed made to
8116         camel-mime-utils.[c,h]
8117
8118         * camel-filter-search.c: updated for namespace changed made to
8119         camel-mime-utils.[c,h]
8120
8121         * camel-folder-search.c: updated for namespace changed made to
8122         camel-mime-utils.[c,h]
8123
8124         * camel-folder-summary.[c,h]: updated for namespace changed made
8125         to camel-mime-utils.[c,h]
8126
8127         * camel-http-stream.c: updated for namespace changed made to
8128         camel-mime-utils.[c,h]
8129
8130         * camel-http-stream.h: updated for namespace changed made to
8131         camel-mime-utils.[c,h]
8132
8133         * camel-internet-address.c: updated for namespace changed made to
8134         camel-mime-utils.[c,h]
8135
8136         * camel-medium.[c,h]: updated for namespace changed made to
8137         camel-mime-utils.[c,h]
8138
8139         * camel-mime-message.c: updated for namespace changed made to
8140         camel-mime-utils.[c,h]
8141
8142         * camel-mime-parser.[c,h]: updated for namespace changed made to
8143         camel-mime-utils.[c,h]
8144
8145         * camel-mime-part-utils.c: updated for namespace changed made to
8146         camel-mime-utils.[c,h]
8147
8148         * camel-mime-part.[c,h]: updated for namespace changed made to
8149         camel-mime-utils.[c,h]
8150
8151         * camel-movemail.c: updated for namespace changed made to
8152         camel-mime-utils.[c,h]
8153
8154         * camel-multipart-encrypted.c: updated for namespace changed made
8155         to camel-mime-utils.[c,h]
8156
8157         * camel-multipart-signed.c: updated for namespace changed made to
8158         camel-mime-utils.[c,h]
8159
8160         * camel-multipart.c: updated for namespace changed made to
8161         camel-mime-utils.[c,h]
8162
8163         * camel-search-private.[c,h]: updated for namespace changed made
8164         to camel-mime-utils.[c,h]
8165
8166         * camel-types.h: updated for namespace changed made to
8167         camel-mime-utils.[c,h]
8168
8169         * providers/imap/camel-imap-folder.c: updated for namespace
8170         changed made to camel-mime-utils.[c,h]
8171
8172         * providers/imap/camel-imap-store-summary.c: updated for namespace
8173         changed made to camel-mime-utils.[c,h]
8174
8175         * providers/imap/camel-imap-utils.c: updated for namespace changed
8176         made to camel-mime-utils.[c,h]
8177
8178         * providers/imapp/camel-imapp-utils.[c,h]: updated for namespace
8179         changed made to camel-mime-utils.[c,h]
8180
8181         * providers/local/camel-local-summary.[c,h]: updated for namespace
8182         changed made to camel-mime-utils.[c,h]
8183
8184         * providers/local/camel-maildir-summary.c: updated for namespace
8185         changed made to camel-mime-utils.[c,h]
8186
8187         * providers/local/camel-mbox-summary.c: updated for namespace
8188         changed made to camel-mime-utils.[c,h]
8189
8190         * providers/local/camel-spool-summary.h: updated for namespace
8191         changed made to camel-mime-utils.[c,h]
8192
8193         * providers/nntp/camel-nntp-summary.c: updated for namespace
8194         changed made to camel-mime-utils.[c,h]
8195
8196         * providers/nntp/camel-nntp-utils.c: updated for namespace changed
8197         made to camel-mime-utils.[c,h]
8198
8199         * providers/pop3/camel-pop3-folder.c: updated for namespace
8200         changed made to camel-mime-utils.[c,h]
8201
8202         * providers/sendmail/camel-sendmail-transport.c: updated for
8203         namespace changed made to camel-mime-utils.[c,h]
8204
8205         * providers/smtp/camel-smtp-transport.c: updated for namespace
8206         changed made to camel-mime-utils.[c,h]
8207
8208 2003-09-16  Jeffrey Stedfast  <fejj@ximian.com>
8209
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.
8213
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.
8218
8219 2003-09-15  Not Zed  <NotZed@Ximian.com>
8220
8221         * providers/imapp/camel-imapp-store.c (store_resp_list)
8222         (imap_login, try_sasl, imap_try_authenticate): removed dead code.
8223
8224         * providers/imapp/camel-imapp-stream.c: return -1 if stream not
8225         set.
8226
8227         * providers/imapp/camel-imapp-engine.c (iterate_completion): put
8228         done request on the done queue, so all requests are always
8229         somewhere.
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):
8234         staticifiy.
8235
8236         * providers/imapp/camel-imapp-provider.c
8237         (camel_imapp_module_init): move camel_exception_setup call here.
8238
8239         * providers/imapp/camel-imapp-driver.c
8240         (camel_imapp_driver_get_type): remove execption setup here, it
8241         isn't early enough.
8242         (camel_imapp_driver_list): handle exceptions.
8243
8244 2003-09-12  Jeffrey Stedfast  <fejj@ximian.com>
8245
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.
8251
8252         * providers/local/camel-mbox-store.c (get_folder): Changed the way
8253         the path is constructed, since we now handle subdirectories and
8254         stuff.
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().
8262
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.
8267
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.
8273
8274 2003-09-11  Dan Winship  <danw@ximian.com>
8275
8276         * Makefile.am (noinst_LTLIBRARIES): Remove libcamel-static.la
8277
8278 2003-09-05  Not Zed  <NotZed@Ximian.com>
8279
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.
8283
8284 2003-09-04  David Woodhouse  <dwmw2@infradead.org>
8285
8286         * providers/camel-imap-store.[ch]: Add PREAUTH handling and
8287         pine/mutt/etpan/etc.-style 'ssh <mailhost> exec imapd' support.
8288         
8289 2003-09-03  David Woodhouse  <dwmw2@infradead.org>
8290
8291         * camel-stream-process.[ch]: New stream implementation for running
8292         commands.
8293         * Makefile.am: Compile the above
8294
8295 2003-08-20  Not Zed  <NotZed@Ximian.com>
8296
8297         ** See bug #47765.
8298
8299         * camel-folder-search.h: Removed match1 member.
8300
8301         * camel-folder-search.c (camel_folder_search_match_expression):
8302         use current directly rather than match1.  This method isn't used
8303         anywhere anyway.
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.
8307
8308 2003-09-03  Not Zed  <NotZed@Ximian.com>
8309
8310         * camel-http-stream.c (camel_http_stream_set_proxy): handle NULL
8311         proxy_url - unset the proxy.
8312
8313 2003-08-29  Not Zed  <NotZed@Ximian.com>
8314
8315         * camel-object.c (camel_object_state_write): 
8316         (cobject_getv):
8317         (cobject_setv, cobject_state_read, cobject_state_read) 
8318         (cobject_state_write): removed debug printfs.
8319
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.
8322
8323 2003-08-27  Not Zed  <NotZed@Ximian.com>
8324
8325         * providers/local/camel-local-folder.c (local_getv): implement
8326         PERSISTENT_PROPERTIES, for index mode.
8327
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.
8331
8332 2003-08-26  Not Zed  <NotZed@Ximian.com>
8333
8334         * camel-folder.c (folder_getv): chain up properly.
8335
8336         * camel-file-utils.c (camel_file_util_savename): helper to create
8337         a .#filename filename.
8338
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.
8343
8344 2003-08-23  Not Zed  <NotZed@Ximian.com>
8345
8346         * camel-object.c (cobject_class_init): added a new event,
8347         meta_changed.
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
8350         object.
8351
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.
8355
8356 2003-08-25  Jeffrey Stedfast  <fejj@ximian.com>
8357
8358         * camel-filter-driver.c (pipe_to_system): Added some more error
8359         checking for reading/writing to the pipes. Fixes bug #47880.
8360
8361 2003-08-21  Jeffrey Stedfast  <fejj@ximian.com>
8362
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).
8367
8368         * providers/imap/camel-imap-wrapper.c: changed prototype of
8369         write_to_stream() to return ssize_t.
8370
8371 2003-08-20  Jeffrey Stedfast  <fejj@ximian.com>
8372
8373         * providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate): Make
8374         sure to ref the stream. Fixes bug #47749.
8375
8376 2003-08-18  Not Zed  <NotZed@Ximian.com>
8377
8378         * camel-http-stream.c: Various fixes to make it work.
8379
8380         * tests/smime/pgp-mime.c (main): added missing 'ret' variable.
8381
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
8387         tcp_stream_ssl_new.
8388
8389         * camel-tcp-stream-ssl.c: Changed service to session, and fix some
8390         refcounting of it.
8391         include camel-operation.h
8392
8393 2003-08-15  Not Zed  <NotZed@Ximian.com>
8394
8395         ** See bug #47634.
8396
8397         * tests/lib/messages.c (test_message_compare): check
8398         write_to_stream returns.
8399         (message_dump_rec): helper to dump message structure.
8400
8401         * camel-mime-part-utils.c
8402         (simple_data_wrapper_construct_from_parser): dont set content
8403         encoding here.
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.
8407
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.
8413
8414 2003-08-15  Jeffrey Stedfast  <fejj@ximian.com>
8415
8416         * providers/imap/camel-imap-wrapper.c (imap_wrapper_hydrate):
8417         Don't attach any filters to decode base64/qp/etc.
8418
8419 2003-08-14  Jeffrey Stedfast  <fejj@ximian.com>
8420
8421         * camel-mime-part.c (write_to_stream): Save errno when
8422         flushing/unreffing the filter stream.
8423
8424 2003-08-13  Jeffrey Stedfast  <fejj@ximian.com>
8425
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.
8432
8433 2003-08-13  Not Zed  <NotZed@Ximian.com>
8434
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
8438         left in?
8439
8440 2003-08-13  Not Zed  <NotZed@Ximian.com>
8441
8442         ** See bug #47517.
8443
8444         * camel-vee-folder.c (vee_sync): Always rebuild folder on any
8445         sync, not just expunge ones.
8446
8447 2003-08-11  Not Zed  <NotZed@Ximian.com>
8448
8449         * providers/imapp/camel-imapp-store.c (imap_get_folder_info):
8450         force connect manually so basics work.
8451
8452         ** See bug #45505.
8453
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
8457         case.
8458
8459 2003-08-01  Not Zed  <NotZed@Ximian.com>
8460
8461         ** See bug #47208.
8462
8463         * camel-filter-search.c (match_all): match-all with no arguments        
8464         should always return TRUE.
8465
8466         * camel-folder-search.c (camel_folder_search_execute_expression):
8467         print a warning when we get an invalid result type & fixed a leak
8468         for that case.
8469
8470 2003-08-08  Jeffrey Stedfast  <fejj@ximian.com>
8471
8472         * tests/message/test4.c: New test suite for the mime parser (which
8473         is where the below 2 fixes were noticed).
8474
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
8478         the EOF state.
8479
8480 2003-08-08  Jeffrey Stedfast  <fejj@ximian.com>
8481
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.
8485
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.
8491
8492 2003-08-05  Jeffrey Stedfast  <fejj@ximian.com>
8493
8494         * providers/imap/camel-imap-folder.c (get_content): Updated.
8495
8496         * camel-mime-message.c (camel_mime_message_init): Don't override
8497         the mime_type here.
8498         (process_header): Updated to use CamelDataWrapper's mime_type
8499         field.
8500         (find_best_encoding): Same.
8501         (best_encoding): Here too.
8502
8503         * camel-digest-folder.c (camel_digest_folder_new): Updated for
8504         CamelMimePart::content_type change.
8505
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
8509         anymore.
8510         (process_header): Updated to use CamelDataWrapper's mime_type
8511         field.
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.
8518
8519         * camel-mime-part.h: Remove the content_type field.
8520
8521 2003-07-31  Jeffrey Stedfast  <fejj@ximian.com>
8522
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.
8526
8527         * camel-multipart-signed.c (write_to_stream): Return ssize_t.
8528
8529         * camel-mime-utils.h: Added the CamelMimePartEncodingType enum
8530         here.
8531
8532         * camel-mime-part.h: Removed the CamelMimePartEncodingType enum
8533         from here.
8534
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).
8539
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.
8545
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
8550         time.
8551
8552         * camel-folder-summary.c (summary_build_content_info_message): Use
8553         decode_to_stream instead here too.
8554
8555         * camel-folder-search.c (match_words_1message): Use
8556         decode_to_stream instead of write_to_stream so we can search the
8557         contents.
8558
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.
8567
8568         * camel-data-wrapper.h: Removed the rawtext bit and added an
8569         encoding member.
8570
8571 2003-08-01  Jeffrey Stedfast  <fejj@ximian.com>
8572
8573         * tests/smime/pgp-mime.c: Same.
8574
8575         * tests/smime/pgp.c: Updated to build and to import some custom
8576         gpg keys for use with testing.
8577
8578 2003-07-30  Jeffrey Stedfast  <fejj@ximian.com>
8579
8580         * camel-mime-message.c (write_to_stream): Also updated.
8581
8582         * camel-data-wrapper.c (write_to_stream): This should return ssize_t
8583
8584         * camel-multipart-signed.c (write_to_stream): Updated.
8585
8586         * camel-multipart.c (write_to_stream): Same.
8587
8588         * camel-mime-part.c (write_to_stream): Here too.
8589
8590 2003-07-11  Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
8591
8592         * camel-iconv.c: Fix for #46168 'some additional locale aliases
8593         required for chinese support'.
8594
8595 2003-07-25  Jeffrey Stedfast  <fejj@ximian.com>
8596
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.
8605
8606 2003-07-23  Ettore Perazzoli  <ettore@ximian.com>
8607
8608         * camel-provider.c (camel_provider_init): Print the provider
8609         directory as well, for debugging.
8610
8611 2003-07-23  Jeffrey Stedfast  <fejj@ximian.com>
8612
8613         * camel-mime-message.c (find_best_encoding): Revert my previous
8614         changes to this function.
8615
8616         * camel-mime-utils.h: Revert previous changes.
8617
8618         * camel-mime-part.h: Revert previous changes.
8619
8620         * camel-mime-part-utils.c: Revert previous changes.
8621
8622         * camel-data-wrapper.c (camel_data_wrapper_init): Revert previous
8623         changes.
8624         (write_to_stream): Revert previous changes.
8625
8626 2003-07-23  Dan Winship  <danw@ximian.com>
8627
8628         * camel-block-file.c: #include camel-file-utils.h for camel_read()
8629
8630         * camel-uid-cache.c (camel_uid_cache_save): Remove unused variable
8631         and label.
8632
8633         * camel-url.c: #include camel-string-utils.h for camel_strdown
8634
8635         * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Cast
8636         an (unsigned char *) to (char *) to fix a warning
8637
8638 2003-07-17  Jeffrey Stedfast  <fejj@ximian.com>
8639
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.
8644
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.
8648
8649 2003-07-17  Timo Sirainen <tss@iki.fi>
8650
8651         ** See bug #42573
8652         
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.
8656
8657 2003-07-14  Jeffrey Stedfast  <fejj@ximian.com>
8658
8659         * camel-mime-utils.h: Add the CamelMimePartEncodingType definition
8660         here.
8661
8662         * camel-mime-part.h: Remove the CamelMimePartEncodingType
8663         definition.
8664
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.
8671
8672         * camel-data-wrapper.c (camel_data_wrapper_init): Init encoding to
8673         DEFAULT.
8674         (write_to_stream): If the stream needs to be decoded, decode it.
8675
8676 2003-07-15  Jeffrey Stedfast  <fejj@ximian.com>
8677
8678         * camel-stream-fs.c (stream_read): If we read 0 bytes, then set
8679         eos to TRUE.
8680
8681 2003-07-09  Jeffrey Stedfast  <fejj@ximian.com>
8682
8683         Get rid of the #ifdef ENABLE_THREADS since we no longer plan to
8684         support/maintain this.
8685
8686         * providers/nntp/camel-nntp-store.c: Here.
8687
8688         * providers/nntp/camel-nntp-newsrc.c: And here.
8689
8690         * providers/nntp/camel-nntp-folder.c: Same.
8691
8692         * providers/local/camel-local-folder.c: And here.
8693
8694         * camel-block-file.c: Here too.
8695
8696         * camel.c: Same.
8697
8698         * camel-certdb.c: Here too.
8699
8700         * camel-charset-map.c: And here.
8701
8702         * camel-cipher-context.c: "
8703
8704         * camel-data-wrapper.c: "
8705
8706         * camel-digest-folder.c: "
8707
8708         * camel-exception.c: "
8709
8710         * camel-folder.c: "
8711
8712         * camel-folder-summary.c: "
8713
8714         * camel-lock-client.c: "
8715
8716         * camel-mime-utils.c: "
8717
8718         * camel-object.c: "
8719
8720         * camel-operation.c: "
8721
8722         * camel-partition-table.c: "
8723
8724         * camel-sasl-popb4smtp.c: "
8725
8726         * camel-service.c: "
8727
8728         * camel-session.c: "
8729
8730         * camel-store.c: "
8731
8732         * camel-store-summary.c: "
8733
8734         * camel-text-index.c: "
8735
8736         * camel-transport.c: "
8737
8738         * camel-vee-folder.c: "
8739
8740         * camel-tcp-stream-openssl.c: Removed pthread.h, it isn't needed.
8741
8742 2003-07-09  Larry Ewing  <lewing@ximian.com>
8743
8744         * camel.h: remove reference to camel-pgp-mime.h
8745
8746 2003-07-08  Jeffrey Stedfast  <fejj@ximian.com>
8747
8748         * camel-pgp-mime.[c,h]: Removed.
8749
8750         * camel-iconv.c: Updated (new copy/paste from e-iconv).
8751
8752         * camel-block-file.c (camel_block_file_get_block): Use
8753         camel_read() rather than libc read.
8754
8755         * camel-tcp-stream-raw.c (stream_read): Use camel_read().
8756         (stream_write): Use camel_write().
8757
8758         * camel-stream-fs.c (stream_read): Use camel_read().
8759         (stream_write): Use camel_write().
8760
8761 2003-07-07  Jeffrey Stedfast  <fejj@ximian.com>
8762
8763         * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): Use
8764         camel_mkdir().
8765
8766         * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Use
8767         camel_mkdir().
8768
8769         * camel-session.c (get_storage_path): Use camel_mkdir().
8770
8771         * camel-store.c (camel_mkdir_hier): Removed.
8772
8773         * camel-data-cache.c (camel_data_cache_new): Updated to use
8774         camel_mkdir().
8775         (data_cache_path): Same.
8776
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.
8781
8782         * camel-io.[c,h]: Removed.
8783
8784         * camel-uid-cache.c (camel_uid_cache_new): Use the
8785         camel-file-utils.c version of mkdir.
8786
8787 2003-07-07  Jeffrey Stedfast  <fejj@ximian.com>
8788
8789         * camel-session.c (camel_session_init): Updated for string-utils
8790         namespace changes.
8791
8792         * camel-provider.c: Updated for string-utils namespace changes.
8793
8794         * camel-mime-part.c (init_header_name_table): Updated for
8795         string-utils namespace changes.
8796
8797         * camel-mime-message.c (camel_mime_message_class_init): Updated
8798         for string-utils namespace changes.
8799         (camel_mime_message_init): Same.
8800
8801         * camel-mime-filter-enriched.c
8802         (camel_mime_filter_enriched_class_init): Updated for string-utils
8803         namespace changes.
8804
8805         * camel-folder-summary.c (camel_folder_summary_init): Updated for
8806         string-utils namespace changes.
8807
8808         * camel-string-utils.[c,h]: Renamed from string-utils.[c,h] and
8809         also namespaced all functions.
8810
8811 2003-07-01  Jeffrey Stedfast  <fejj@ximian.com>
8812
8813         * camel-sasl-digest-md5.c (digest_response): Don't quote the
8814         charset value, the qop value, nor the response value. Fixes bug
8815         #45712.
8816
8817 2003-07-01  Jeffrey Stedfast  <fejj@ximian.com>
8818
8819         * camel-mime-utils.c (header_format_date): Use gmtime_r() instead
8820         of using gmtime() and memcpy() to try and be "atomic".
8821
8822 2003-06-30  Dan Winship  <danw@ximian.com>
8823
8824         * camel-folder-search.c (camel_folder_search_finalize): free the
8825         summary hash
8826
8827 2003-06-24  David Woodhouse  <dwmw2@infradead.org>
8828
8829         * camel-mime-utils.c (header_format_date): Put day of week into
8830         outgoing email.
8831
8832
8833 2003-06-25  Jeffrey Stedfast  <fejj@ximian.com>
8834
8835         * camel-folder-summary.h: Added prototype for
8836         camel_folder_summary_remove_range().
8837
8838 2003-06-25  Not Zed  <NotZed@Ximian.com>
8839
8840         ** See bug #45386
8841         
8842         * camel-service.c (camel_gethostbyname, camel_gethostbyaddr): Make
8843         sure we have an exception that we test against.
8844
8845 2003-06-20  Not Zed  <NotZed@Ximian.com>
8846
8847         ** See bug #43887
8848
8849         * camel-mime-filter-enriched.c (camel_enriched_to_html): simple
8850         wrapper to convert enriched to html in one go.
8851
8852 2003-06-18  Not Zed  <NotZed@Ximian.com>
8853
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.
8861
8862 2003-06-13  Jeffrey Stedfast  <fejj@ximian.com>
8863
8864         * providers/pop3/camel-pop3-folder.c (pop3_finalize): Made static
8865         (to match the prototype).
8866
8867 2003-06-13  Larry Ewing  <lewing@ximian.com>
8868
8869         * camel-folder-thread.c (camel_folder_thread_messages_apply):
8870         don't leak the summary when reloading it.  Fixes a very large
8871         leak.
8872
8873 2003-06-17  Not Zed  <NotZed@Ximian.com>
8874
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.
8880
8881         * camel-folder-summary.c (camel_folder_summary_remove_index): new
8882         function to drop a range of index entries in one hit.
8883
8884 2003-06-16  Not Zed  <NotZed@Ximian.com>
8885
8886         ** See bug #31745
8887
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.
8891
8892 2003-06-16  Not Zed  <NotZed@Ximian.com>
8893
8894         ** See bug #44322
8895         
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
8899
8900         ** See bug #44121
8901         
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.
8904
8905 2003-06-05  Jeffrey Stedfast  <fejj@ximian.com>
8906
8907         Fix for bug #40788.
8908
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.
8916
8917         * providers/pop3/camel-pop3-store.c (connect_to_server): Check for
8918         the disable_extensions param.
8919
8920         * providers/pop3/camel-pop3-provider.c: Define a checkbox to
8921         disable all POP3 extension support.
8922
8923 2003-06-11  Jeffrey Stedfast  <fejj@ximian.com>
8924
8925         Partial fix for bug #44457.
8926
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.
8930
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.
8935
8936 2003-06-04  Jeffrey Stedfast  <fejj@ximian.com>
8937
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
8943         EINTR/etc.
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).
8955
8956 2003-06-11  Larry Ewing  <lewing@ximian.com>
8957
8958         * camel-text-index.c (text_index_normalise): use g_utf8_strdown
8959         properly.
8960
8961 2003-06-09  Jeffrey Stedfast  <fejj@ximian.com>
8962
8963         * camel-mime-message.c (find_best_encoding): Add the
8964         CAMEL_BESTENC_TEXT bit to enctype if the part is a text part.
8965
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.