platform/upstream/evolution-data-server.git
24 years agosummary file read/write routines.
bertrand [Tue, 18 Jan 2000 19:29:48 +0000 (19:29 +0000)]
summary file read/write routines.

2000-01-18  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary):
(mbox_load_summary): summary file read/write routines.

* camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary):
routine to construct the summary after the mbox
file has been parsed and the x-evolution fields
inserted.

* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
dont use the x_evolution field but rather the uid to
determine the presence of "X-Evolution" in the mail.

* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
parse the status and uid values if the x-evolution
has been found.

* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_xev_parse_header_content):
return the parsed status field correctly.

* camel/providers/mbox/camel-mbox-utils.h:
fixed bad prototype.

* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
parse and store the "To:" header.

* camel/providers/mbox/camel-mbox-parser.h:
added a "to" field

* camel/camel-folder-summary.c:
create the arrays here.

* camel/camel-folder-summary.h: the list of
summary information is no longer a GList but
rather a GArray.

Parsing/summary/sync-check is here. Needs testing
and integration with the rest of the folder code.

24 years agotest for the mbox utils. (copy_file_chunk): fixed a nasty bug.
bertrand [Mon, 17 Jan 2000 08:40:10 +0000 (08:40 +0000)]
test for the mbox utils. (copy_file_chunk): fixed a nasty bug.

2000-01-17  bertrand  <bertrand@helixcode.com>

* tests/test9.c (main): test for the mbox utils.
(copy_file_chunk): fixed a nasty bug.
(camel_mbox_write_xev): create the copy file descriptor
with the proper arguments. Exceptions implememnted.
(camel_mbox_write_xev): changed the way bytes are counted.
No more uses the message size cause it did not take into
account the message separators characters.
(camel_mbox_write_xev): hopefully fixed the last bugs.
works ok now.

Summary information / X-Evolution header generation should all
work ok now.

24 years agoA bunch of new funcs to handle x-evolution private header field.
bertrand [Mon, 17 Jan 2000 05:25:36 +0000 (05:25 +0000)]
A bunch of new funcs to handle x-evolution private header field.

2000-01-17  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
(copy_file_chunk):
(camel_mbox_xev_write_header_content):
(camel_mbox_xev_parse_header_content):
(string_to_flag):
(flag_to_string):
(string_to_uid):
(uid_to_string):
A bunch of new funcs to handle x-evolution
private header field.

Various others modifications and fixes.

24 years agoeof is true when no more chars are available, not when we've read the
bertrand [Thu, 13 Jan 2000 22:53:06 +0000 (22:53 +0000)]
eof is true when no more chars are available, not when we've read the

2000-01-13  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-parser.c (read_next_buffer_chunk):
eof is true when no more chars are available, not
when we've read the entire file.
(initialize_buffer): ditto.
(read_message_begining): documented.
(read_header): ditto.
(new_message_detected): ditto.
(advance_n_chars): ditto.
(goto_next_char): ditto.
(read_next_buffer_chunk): ditto.
(initialize_buffer): ditto.
(parser_free): ditto.
(new_parser): ditto.

More parser decoding and clean-ups.
Documented all the static routines properly.

24 years agoAdded the prototype of camel_mbox_parse_file.
bertrand [Thu, 13 Jan 2000 04:13:12 +0000 (04:13 +0000)]
Added the prototype of camel_mbox_parse_file.

2000-01-12  bertrand  <bertrand@helixcode.com>

* camel/providers/mbox/camel-mbox-parser.h (camel_mbox_parse_file):
Added the prototype of camel_mbox_parse_file.

* camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file):
updated in-line documentation.

Evolution is now in a compilable state.

24 years agoremove non updated tests from the build process.
bertrand [Thu, 13 Jan 2000 04:07:32 +0000 (04:07 +0000)]
remove non updated tests from the build process.

2000-01-12  bertrand  <bertrand@helixcode.com>

* tests/Makefile.am (noinst_PROGRAMS):
remove non updated tests from the build
process.

* camel/Makefile.am :
remove the rfc2047 related files from
the build process as for the moment, nothing
has been decided concerning unicode.

* Makefile.am (evolution_msg_composer_LDADD):
use $(EXTRA_GNOME_LIBS_THREADS) to link with gthread

24 years agocorrected a bunch of bugs
bertrand [Thu, 13 Jan 2000 03:37:07 +0000 (03:37 +0000)]
corrected a bunch of bugs

2000-01-12  bertrand  <bertrand@helixcode.com>

* corrected a bunch of bugs

* camel/providers/mbox/camel-mbox-parser.c
(camel_mbox_parse_file):
parser the subject and date.

* camel/providers/mbox/camel-mbox-parser.c
(camel_mbox_parse_file): added the ability to
follow the parsing progression.

* camel/providers/mbox/camel-mbox-parser.h:
parse the x-evolution field.

24 years agoBackup of the first clean and working mbox file parser. It both find the
bertrand [Wed, 12 Jan 2000 02:09:50 +0000 (02:09 +0000)]
Backup of the first clean and working mbox file parser. It both find the

2000-01-11  bertrand  <bertrand@helixcode.com>

Backup of the first clean and working mbox file
parser. It both find the message and pre-parse
the message, that is, retrieve some key headers,
and the first lines of the body.

24 years agoLots of reorganization to get the Evolution shell to begin its life. It
Arturo Espinosa [Thu, 6 Jan 2000 05:48:24 +0000 (05:48 +0000)]
Lots of reorganization to get the Evolution shell to begin its life. It

Lots of reorganization to get the Evolution shell to begin its life.
It also includes a new evolution widget from Damon.

Miguel.

24 years agosync before Boston
Bertrand Guiheneuf [Tue, 4 Jan 2000 19:15:42 +0000 (19:15 +0000)]
sync before Boston

24 years agoUpdated my e-mail address to reflect my new employment
Bertrand Guiheneuf [Mon, 3 Jan 2000 23:05:55 +0000 (23:05 +0000)]
Updated my e-mail address to reflect my new employment

24 years agochkouink chkouink
Bertrand Guiheneuf [Mon, 3 Jan 2000 22:42:53 +0000 (22:42 +0000)]
chkouink chkouink

24 years agodetects netscape ".sdb" folders as well as simple non-suffixed folders (as
bertrand [Mon, 3 Jan 2000 22:40:54 +0000 (22:40 +0000)]
detects netscape ".sdb" folders as well as simple non-suffixed folders (as

2000-01-03  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/providers/mbox/camel-mbox-folder.c (_list_subfolders):
detects netscape ".sdb" folders as well as simple
non-suffixed folders (as the ones used in pine).

* camel/string-utils.c (string_prefix):
finished implementation.
(string_prefix): added a boolean flag to indicate if the
suffix has been found. When the suffix does not match,
return NULL.

24 years agosync. Does not compile
Bertrand Guiheneuf [Mon, 3 Jan 2000 10:08:55 +0000 (10:08 +0000)]
sync. Does not compile

24 years agoBackup sync.
Bertrand Guiheneuf [Mon, 27 Dec 1999 09:25:21 +0000 (09:25 +0000)]
Backup sync.

24 years agoWork in progress. Missing files
Bertrand Guiheneuf [Tue, 21 Dec 1999 23:18:14 +0000 (23:18 +0000)]
Work in progress. Missing files

24 years agopart of the mbox provider.
bertrand [Tue, 21 Dec 1999 23:17:03 +0000 (23:17 +0000)]
part of the mbox provider.

1999-12-22  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/providers/mbox/camel-mbox-store.h:
* camel/providers/mbox/camel-mbox-store.c:
* camel/providers/mbox/camel-mbox-folder.h:
* camel/providers/mbox/camel-mbox-folder.c:
part of the mbox provider.

24 years agoinclude camel-log.h to avoid unresolved symbols.
bertrand [Sun, 19 Dec 1999 19:42:05 +0000 (19:42 +0000)]
include camel-log.h to avoid unresolved symbols.

1999-12-19  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-utils.c: include camel-log.h
to avoid unresolved symbols.

24 years agodocumented.
bertrand [Sat, 18 Dec 1999 15:27:14 +0000 (15:27 +0000)]
documented.

1999-12-18  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (camel_folder_get_summary):
documented.

added the providers/mbox directory. Now that camel-folder
has been cleaned up a bit, the main evolution provider
work can start. The MH provider was only a proof of
concept, and should not be used for the moment.

24 years agoupdated to take the change on append into account.
bertrand [Sat, 18 Dec 1999 14:59:36 +0000 (14:59 +0000)]
updated to take the change on append into account.

1999-12-18  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-pt-proxy.c (_append_message):
updated to take the change on append into account.

* camel/camel-folder.h:
updated class def concerning append.
* camel/camel-folder.c
(camel_folder_append_message): documented.
(camel_folder_append_message): don't return the
message number. Use specific methods instead.
(_append_message): idem.

24 years agouse exception mechanism. (camel_folder_delete): idem. (_delete_messages):
bertrand [Sat, 18 Dec 1999 14:38:43 +0000 (14:38 +0000)]
use exception mechanism. (camel_folder_delete): idem. (_delete_messages):

1999-12-18  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (_delete): use
exception mechanism.
(camel_folder_delete): idem.
(_delete_messages): idem.
(camel_folder_delete_messages): idem.
(_get_parent_folder): idem.
(camel_folder_get_parent_folder): idem.
(_get_parent_store): idem.
(_get_mode): idem.
(camel_folder_get_parent_store): idem.
(camel_folder_get_mode): idem.
(_list_subfolders): idem.
(camel_folder_list_subfolders): idem.
(_expunge): idem.
(camel_folder_expunge): idem.
(_has_message_number_capability): idem.
(camel_folder_has_message_number_capability): idem.
(_get_message_by_number): idem.
(camel_folder_get_message_by_number): idem.
(camel_folder_get_message_count): idem.
(_list_permanent_flags): idem.
(camel_folder_list_permanent_flags): idem.
(_copy_message_to): idem.
(camel_folder_copy_message_to): idem.
(camel_folder_has_summary_capability): idem.
(camel_folder_get_summary): idem.
(camel_folder_has_uid_capability): idem.
(camel_folder_get_message_uid): idem.
(_get_message_uid_by_number): idem.
(camel_folder_get_message_uid_by_number): idem.
(camel_folder_get_message_by_uid): idem.
(camel_folder_get_uid_list): idem.

24 years agouse exception mechanism. (camel_folder_set_name): idem.
bertrand [Fri, 17 Dec 1999 19:19:59 +0000 (19:19 +0000)]
use exception mechanism. (camel_folder_set_name): idem.

1999-12-17  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (_set_name):
use exception mechanism.
(camel_folder_set_name): idem.
(camel_folder_set_full_name): idem.
(_get_name): idem.
(camel_folder_get_name): idem.
(_get_full_name): idem.
(camel_folder_get_full_name): idem.
(_can_hold_folders): idem.
(_can_hold_messages): idem.
(_exists): idem.
(camel_folder_exists): idem.
(_is_open): idem.
(_get_subfolder): idem.
(camel_folder_get_subfolder): idem.

* camel/camel-exception.c (camel_exception_clear):
New function. Clear an exception.
(camel_exception_get_id):
New function.
(camel_exception_get_description):
New function.

* camel/camel-folder.c (_set_name):
Use the exception system. When the folder
has no parent, don't set its full name
field.

24 years agochanged the return value. Now returns the list of expunged messages
bertrand [Thu, 16 Dec 1999 18:05:41 +0000 (18:05 +0000)]
changed the return value. Now returns the list of expunged messages

1999-12-16  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (camel_folder_expunge):
(_expunge):
* camel/camel-folder-pt-proxy.c (_expunge):
changed the return value. Now returns the list
of expunged messages

* camel/camel-folder.c (_init_with_store):
cleaned up. Use the exception system now.
(_open): ditto.
(camel_folder_open): ditto.
(camel_folder_open_async): ditto.
(_close):  ditto.
(camel_folder_close):  ditto.
(camel_folder_close_async): ditto.

* camel/camel-exception.c (camel_exception_set):
When no exception is given, do nothing, just
return.
(camel_exception_set): documented.
(camel_exception_new): idem.
(camel_exception_free): idem.
(camel_exception_xfer): idem.

* camel/camel-folder.c:
* camel/camel-folder.h: more clean-ups.
Removed message list related code.
This was braindead design.

24 years agoimplemented. The routines in this file will be called by providers to
bertrand [Wed, 15 Dec 1999 23:48:23 +0000 (23:48 +0000)]
implemented. The routines in this file will be called by providers to

1999-12-16  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-utils.c (camel_aml_expunge_messages):
implemented. The routines in this file will be
called by providers to handle the list of
message already standing in memory.

1999-12-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-utils.c:
* camel/camel-folder-utils.h:
New files, misc utilities for the
folder providers. Includes active message
list utilities.

* camel/camel-folder.c (_has_message_number_capability):
(camel_folder_has_message_number_capability):
Added this to know if a folder provides
number-based message access.

* camel/camel-folder.c (_get_message_count):
added warning when called directly.
(_append_message): ditto
(_open_async):  ditto
(_close_async):  ditto
(_delete_messages): ditto
(_expunge):  ditto
(_get_message_by_number):  ditto
(_get_message_uid):  ditto
(_get_message_uid_by_number):  ditto
(_get_message_by_uid):  ditto
(_get_uid_list):  ditto

24 years agoupdate (_get_message_by_number): Update to reflect changes in CamelFolder
bertrand [Wed, 15 Dec 1999 13:01:34 +0000 (13:01 +0000)]
update (_get_message_by_number): Update to reflect changes in CamelFolder

1999-12-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-pt-proxy.c (_open_async):
(_open):
(_close_async):
(_close):
(camel_folder_pt_proxy_class_init):
update
(_get_message_by_number):
Update to reflect changes in CamelFolder

24 years agoclean-ups.
bertrand [Wed, 15 Dec 1999 11:11:35 +0000 (11:11 +0000)]
clean-ups.

1999-12-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.[ch]:
 clean-ups.

24 years agoFix copyright informations once again
Bertrand Guiheneuf [Tue, 14 Dec 1999 22:40:38 +0000 (22:40 +0000)]
Fix copyright informations once again

24 years agoMake set_* methods in CamelMimeMessage use const strings.
Ettore Perazzoli [Thu, 9 Dec 1999 02:35:42 +0000 (02:35 +0000)]
Make set_* methods in CamelMimeMessage use const strings.

24 years agomore small typo fixes.
Michael Meeks [Fri, 26 Nov 1999 13:05:15 +0000 (13:05 +0000)]
more small typo fixes.

24 years agoMake `make distcheck' work.
Ettore Perazzoli [Wed, 17 Nov 1999 15:51:00 +0000 (15:51 +0000)]
Make `make distcheck' work.

24 years agoMore work:
Ettore Perazzoli [Wed, 17 Nov 1999 15:35:41 +0000 (15:35 +0000)]
More work:

- Fixed some Camel API naming issues.
- Moved the message composer stuff to the `composer' directory.

24 years agoAdded streaming capability to CamelDataWrapper. This makes it possible, for
Ettore Perazzoli [Wed, 17 Nov 1999 14:39:24 +0000 (14:39 +0000)]
Added streaming capability to CamelDataWrapper.  This makes it possible, for
example, to build multipart messages out of files that are on disk without
loading them in memory.

24 years agoHere is my initial Evolution work: message composition widget and some
Ettore Perazzoli [Fri, 5 Nov 1999 23:06:07 +0000 (23:06 +0000)]
Here is my initial Evolution work: message composition widget and some
installation fixes for Camel.

24 years agoCopyright change
Bertrand Guiheneuf [Sat, 23 Oct 1999 15:19:51 +0000 (15:19 +0000)]
Copyright change

24 years agolap sync
Bertrand Guiheneuf [Mon, 18 Oct 1999 23:00:20 +0000 (23:00 +0000)]
lap sync

24 years agomissing files
Bertrand Guiheneuf [Wed, 13 Oct 1999 21:18:21 +0000 (21:18 +0000)]
missing files

24 years agoA lot of changes. The thread proxy mechanism
bertrand [Wed, 13 Oct 1999 21:16:54 +0000 (21:16 +0000)]
A lot of changes. The thread proxy mechanism
is now functional. The signal proxy needs to be tested
though. The thread proxy folder is being implemented.
A rough summary :

1999-10-13  bertrand <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (camel_folder_close): the
folder->close method is now asynchronous.

* camel/camel-folder-pt-proxy.c (_folder_open_cb):
(_open):
(_folder_open_cb):
(_open):
open/close method implemented in the thread proxy
folder. More to come.

* camel/camel-exception.c (camel_exception_xfer):
new utility func.

* camel/camel-marshal-utils.c: some new marshallers

* camel/camel-folder-pt-proxy.c: Some explanations
on the thread proxy system.

1999-10-11  bertrand <Bertrand.Guiheneuf@aful.org>

* camel/camel-marshal-utils.c:
camel/camel-marshal-utils.h:
Handles operation marshalling.

* camel/camel-thread-proxy.c:
camel/camel-thread-proxy.h:
new files. Generic proxy system.

* camel/camel-folder-pt-proxy.c
moved all proxy related code in dedicated files.

(camel_folder_pt_proxy_init):
removed proxy initialisation code
(_finalize):
removed proxy finalization code

* camel/camel-exception.c
(camel_exception_new):
(camel_exception_set):
(camel_exception_free):
New funcs.

24 years agomissing file
Bertrand Guiheneuf [Fri, 8 Oct 1999 19:22:50 +0000 (19:22 +0000)]
missing file

24 years agoweekly commit
Bertrand Guiheneuf [Fri, 8 Oct 1999 19:21:51 +0000 (19:21 +0000)]
weekly commit

24 years agoredesign of the proxy/marshaling code. Uses GtkArg now. sync commit.
Bertrand Guiheneuf [Mon, 27 Sep 1999 18:05:43 +0000 (18:05 +0000)]
redesign of the proxy/marshaling code. Uses GtkArg now. sync commit.

* redesign of the proxy/marshaling code. Uses GtkArg now.
* sync commit. Evolution does not build at all now.

24 years agoAdded corba-like exception system to CamelFolder. The exception system is
Bertrand Guiheneuf [Thu, 23 Sep 1999 19:26:54 +0000 (19:26 +0000)]
Added corba-like exception system to CamelFolder. The exception system is

* Added corba-like exception system to CamelFolder.
The exception system is not finished but I wanted
the async and event implementation to get this right
from the beginning.

24 years agosync
Bertrand Guiheneuf [Thu, 23 Sep 1999 15:15:40 +0000 (15:15 +0000)]
sync

24 years agoBuild fix
Bertrand Guiheneuf [Thu, 23 Sep 1999 11:26:06 +0000 (11:26 +0000)]
Build fix

24 years agomore work.
Bertrand Guiheneuf [Tue, 21 Sep 1999 21:21:36 +0000 (21:21 +0000)]
more work.

* camel/camel-folder-pt-proxy.c:
more work.

24 years agoCheck pthreads.
bertrand [Tue, 21 Sep 1999 20:40:27 +0000 (20:40 +0000)]
Check pthreads.

1999-09-21  bertrand  <Bertrand.Guiheneuf@aful.org>

* configure.in:
Check pthreads.

* camel/Makefile.am:
camel-folder-pt-proxy.c is only compiled
when pthreads are available.

24 years agocamel_folder_get_full_name did not work. Fixed.
Jukka Zitting/evolution [Tue, 21 Sep 1999 13:16:56 +0000 (13:16 +0000)]
camel_folder_get_full_name did not work. Fixed.

24 years agoPreliminary subfolder support for maildirs.
Jukka Zitting/evolution [Tue, 21 Sep 1999 13:15:33 +0000 (13:15 +0000)]
Preliminary subfolder support for maildirs.

24 years agoSignal proxying implemenatation. (_signal_marshaller_server_side):
bertrand [Mon, 20 Sep 1999 23:15:47 +0000 (23:15 +0000)]
Signal proxying implemenatation. (_signal_marshaller_server_side):

1999-09-21  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-pt-proxy.c:
Signal proxying implemenatation.
(_signal_marshaller_server_side):
(_signal_marshaller_client_side):
(_init_signals_proxy):
Code not is tested and has to be best
explained as it uses threads conditions and
gtk signal system.
(_thread_notification_catch): notify pending signals
as well as thread availability.

24 years agocompleted
bertrand [Mon, 20 Sep 1999 12:40:39 +0000 (12:40 +0000)]
completed

1999-09-20  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-pt-proxy.c (_op_exec_or_plan_for_exec):
completed

Binch of new funcs:
(_maybe_run_next_op):
Called by the watch notification when
a threaded op is completed
(_thread_notification_catch):
notification watch call back
(_init_notify_system):
set up the notification channel
(notify_availability):
called by threads before completion.

24 years agosynczZzZ
Bertrand Guiheneuf [Sat, 18 Sep 1999 00:03:48 +0000 (00:03 +0000)]
synczZzZ

24 years agonew func. Try to exec an operation in a thread or queue it if a thread is
bertrand [Fri, 17 Sep 1999 23:40:06 +0000 (23:40 +0000)]
new func. Try to exec an operation in a thread or queue it if a thread is

1999-09-18  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-pt-proxy.c (_op_exec_or_plan_for_exec):
new func. Try to exec an operation in a thread
or queue it if a thread is already busy.

* camel/camel-op-queue.c (camel_op_queue_set_service_availability):
(camel_op_queue_get_service_availability):
new funcs.

* camel/camel-op-queue.c (camel_op_new):
(camel_op_free):
new funcs. Uses glib mem chunks.

24 years agoadded notify io_channel. new func. run the next operation.
bertrand [Fri, 17 Sep 1999 20:34:22 +0000 (20:34 +0000)]
added notify io_channel. new func. run the next operation.

1999-09-17  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder-pt-proxy.c (_init_with_store):
added notify io_channel.
* (camel_op_queue_run_next_op): new func.
run the next operation.

24 years agoNew object. Operation queue. Meant to be used in non-blocking proxy
bertrand [Thu, 16 Sep 1999 22:26:03 +0000 (22:26 +0000)]
New object. Operation queue. Meant to be used in non-blocking proxy

1999-09-17  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-op-queue.h:
* camel/camel-op-queue.c:
New object. Operation queue. Meant to be used in
non-blocking proxy objects.

24 years agoFirst proxy (pthread based) implementation starts.
bertrand [Mon, 13 Sep 1999 22:38:45 +0000 (22:38 +0000)]
First proxy (pthread based) implementation starts.

* First proxy (pthread based) implementation starts.

1999-09-14  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/Makefile.am (libcamel_la_SOURCES):
added camel-folder-pt-proxy.[ch] to the build
process.

* camel/camel-folder-pt-proxy.c (_init_with_store):
started implementation of the pthread-based
folder proxy.

24 years agoforgotten files
Bertrand Guiheneuf [Wed, 8 Sep 1999 19:03:51 +0000 (19:03 +0000)]
forgotten files

24 years agoSummary files are here and work !!!
bertrand [Wed, 8 Sep 1999 18:59:27 +0000 (18:59 +0000)]
Summary files are here and work !!!

1999-09-08  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/providers/MH/mh-summary.c
(mh_load_summary):
(mh_save_summary):
(mh_create_summary):
implemented summary (files) for MH folders.

* camel/providers/MH/camel-mh-folder.c
(_get_message_by_uid): implemented.
(camel_mh_folder_class_init):
(_get_message_uid): implemented

24 years agoimpemented.
bertrand [Wed, 8 Sep 1999 12:20:30 +0000 (12:20 +0000)]
impemented.

1999-09-08  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/providers/MH/camel-mh-folder.c
(_get_message_by_uid): impemented.

* camel/camel-folder.c:
(camel_folder_get_message_uid_by_number):
const'ified uid.
(camel_folder_get_message_by_uid): idem
removed stupid camel_folder_get_message_uid_by_number
method.

24 years agoDocumented UIDs.
bertrand [Wed, 8 Sep 1999 10:11:54 +0000 (10:11 +0000)]
Documented UIDs.

1999-09-08  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (camel_folder_has_uid_capability):
(camel_folder_get_message_uid):
(camel_folder_get_message_uid_by_number):
(camel_folder_get_message_by_uid):
(camel_folder_get_uid_list):
Documented UID methods.

24 years agoMore work on UID list in Mh provider.
bertrand [Tue, 7 Sep 1999 23:08:03 +0000 (23:08 +0000)]
More work on UID list in Mh provider.

1999-09-08  bertrand  <Bertrand.Guiheneuf@aful.org>

* tests/ui-tests/store_listing.c (close_all):
close all open folders and stores. (necessary
for UID list saving ).

* camel/providers/MH/mh-uid.c (mh_generate_uid_list):
fix: store UID list in CamelMHFolder object.

* camel/providers/MH/camel-mh-folder.c (_open):
read or create UID list.
(_close): save UID list.

24 years agooops
Bertrand Guiheneuf [Tue, 7 Sep 1999 15:46:49 +0000 (15:46 +0000)]
oops

24 years agocorrect parameter decl (const)
bertrand [Tue, 7 Sep 1999 15:45:57 +0000 (15:45 +0000)]
correct parameter decl (const)

1999-09-07  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/md5-utils.c (md5_get_digest_from_file):
correct parameter decl (const)

* camel/md5-utils.h: typo.

* camel/providers/MH/mh-uid.c
More work on UID stuff for MH.
(mh_save_uid_list):
(mh_load_uid_list):
(mh_generate_uid_list):
new funcs. Manage on-disk uid list.

* camel/providers/MH/mh-utils.c (mh_is_a_message_file):
Util routines live here now.

24 years agocamel/md5-utils.c Documented all funcs.
bertrand [Mon, 6 Sep 1999 23:27:12 +0000 (23:27 +0000)]
camel/md5-utils.c Documented all funcs.

1999-09-07  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/md5-utils.c
Documented all funcs.

(md5_get_digest_from_stream):
correct typo.
(md5_get_digest_from_file):
same typo corrected.

24 years agoraw routines are declared public now. Md5 use has to be versatile.
bertrand [Mon, 6 Sep 1999 21:58:39 +0000 (21:58 +0000)]
raw routines are declared public now. Md5 use has to be versatile.

1999-09-07  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/md5-utils.h :
raw routines are declared public now.
Md5 use has to be versatile.

* camel/providers/MH/mh-uid.c (mh_uid_get_for_file):
new func. Returns an UID for an MH message.

24 years agonew function : get file md5 signature. To be used in providers code.
bertrand [Mon, 6 Sep 1999 11:32:54 +0000 (11:32 +0000)]
new function : get file md5 signature. To be used in providers code.

1999-09-06  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/md5-utils.h:
* camel/md5-utils.c:
(md5_get_digest_from_file):
new function : get file md5 signature.
To be used in providers code.

24 years agonew methods.
bertrand [Mon, 6 Sep 1999 10:37:14 +0000 (10:37 +0000)]
new methods.

1999-09-06  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/md5-utils.h:
* camel/md5-utils.c:
(md5_get_digest_from_stream):
new methods.

24 years agochanged names to follow camel style.
bertrand [Mon, 6 Sep 1999 10:08:37 +0000 (10:08 +0000)]
changed names to follow camel style.

1999-09-06  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/md5-utils.h:
* camel/md5-utils.c:
changed names to follow camel style.

`

24 years agoimported md5 coding routine from rpm. Compiles.
bertrand [Sun, 5 Sep 1999 22:46:58 +0000 (22:46 +0000)]
imported md5 coding routine from rpm. Compiles.

1999-09-06  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/md5-utils.c: imported md5 coding
routine from rpm. Compiles.

24 years agoBasic UID framework.
bertrand [Sun, 5 Sep 1999 20:08:23 +0000 (20:08 +0000)]
Basic UID framework.

1999-09-05  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (camel_folder_has_uid_capability):
(camel_folder_get_message_uid):
(camel_folder_get_message_uid_by_number):
(camel_folder_get_message_by_uid):
(camel_folder_get_uid_list):
Basic UID framework.

24 years agoNew revision. Some fixes.
bertrand [Sun, 5 Sep 1999 17:48:59 +0000 (17:48 +0000)]
New revision. Some fixes.

1999-09-05  bertrand  <Bertrand.Guiheneuf@aful.org>

* devel-docs/misc/ref_and_id_proposition.txt:
New revision. Some fixes.

* camel/camel-folder.h (struct _CamelFolder): added
uid_capability field.

* started to work on UIDs

24 years agouse folder summary instead of opening all messages.
bertrand [Sun, 5 Sep 1999 16:15:11 +0000 (16:15 +0000)]
use folder summary instead of opening all messages.

1999-09-05  bertrand  <Bertrand.Guiheneuf@aful.org>

* tests/ui-tests/store_listing.c (show_folder_messages):
use folder summary instead of opening all messages.

* camel/providers/MH/camel-mh-folder.c (_create_summary):
basic and highly non-efficient summary implementation.
Should be seen as a proof of concept only.
subfolder summary still has to be implemented.

* camel/providers/maildir/camel-maildir-folder.c (_init_with_store):
hasn't summary for the moment.
* camel/providers/maildir/camel-maildir-folder.c
cosmetic changes.

24 years agostarted summary implementation. (_open): correct use of open.
bertrand [Sat, 4 Sep 1999 19:33:31 +0000 (19:33 +0000)]
started summary implementation. (_open): correct use of open.

1999-09-04  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/providers/MH/camel-mh-folder.c (_create_summary):
started summary implementation.
(_open): correct use of open.

* camel/camel-folder.c (camel_folder_get_summary):
get folder associated summary object.

24 years agoadded summary files build
bertrand [Sat, 4 Sep 1999 14:48:01 +0000 (14:48 +0000)]
added summary files build

1999-09-04  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/Makefile.am:
added summary files build

* camel/camel-folder-summary.[ch]:
basic summary framework

24 years agosgml doc has camel-recipient now.
bertrand [Fri, 3 Sep 1999 18:34:41 +0000 (18:34 +0000)]
sgml doc has camel-recipient now.

1999-09-03  bertrand  <Bertrand.Guiheneuf@aful.org>

* devel-docs/camel/Makefile.am:
sgml doc has camel-recipient now.

* camel/camel-recipient.c (camel_recipient_foreach_recipient_type):
added in-line documentation.

24 years agosync again. Changelog comes tomorow
Bertrand Guiheneuf [Thu, 2 Sep 1999 23:14:26 +0000 (23:14 +0000)]
sync again. Changelog comes tomorow

24 years agosync
Bertrand Guiheneuf [Thu, 2 Sep 1999 16:43:39 +0000 (16:43 +0000)]
sync

24 years agoAdded (experimental) maildir provider written by Jukka Zitting
bertrand [Thu, 2 Sep 1999 16:06:55 +0000 (16:06 +0000)]
Added (experimental) maildir provider written by Jukka Zitting

1999-09-02  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/providers/maildir: Added (experimental) maildir
provider written by Jukka Zitting <hukka@greywolves.org>

* camel/providers/Makefile.am (SUBDIRS): build maildir
provider.

* camel/camel-provider.c (camel_provider_get_for_protocol):
bug fix. patch from  Jukka Zitting <hukka@greywolves.org>

24 years agochanged decl to fit CRLFunc. (_write_recipients_to_stream): calls
bertrand [Thu, 2 Sep 1999 11:19:40 +0000 (11:19 +0000)]
changed decl to fit CRLFunc. (_write_recipients_to_stream): calls

1999-09-02  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-mime-message.c (_write_one_recipient_to_stream):
changed decl to fit CRLFunc.
(_write_recipients_to_stream):
calls camel_recipient_foreach_recipient_type now.

* camel/camel-recipient.c (camel_recipient_foreach_recipient_type):
new convinience function. Iterate over all recipient types.

* camel/gmime-utils.c (gmime_write_header_table_to_stream):
s/write_header_table_to_stream/gmime_write_header_table_to_stream/
(gmime_write_header_with_glist_to_stream):
s/write_header_with_glist_to_stream/gmime_write_header_with_glist_to_stream/

24 years agonow use CamelRecipientTable
bertrand [Wed, 1 Sep 1999 14:36:17 +0000 (14:36 +0000)]
now use CamelRecipientTable

1999-09-01  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-mime-message.c (_finalize):
(_add_recipient):
(_remove_recipient):
(_get_recipients): now use CamelRecipientTable

* camel/gmime-content-field.c:
(gmime_content_field_unref): test if object
to free is non void.

Still are some bugs in camel-recipient.c

24 years agoWhen using g_free (obj) don't test if obj != NULL g_free () already do
bertrand [Wed, 1 Sep 1999 11:53:18 +0000 (11:53 +0000)]
When using g_free (obj) don't test if obj != NULL g_free () already do

1999-09-01  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (_finalize):
(_set_name):
* camel/camel-mime-message.c (_finalize):
* camel/camel-mime-part.c (_finalize):
(_set_description):
(_set_disposition):
* camel/camel-service.c (_finalize):
* camel/camel-stream-fs.c (_finalize):
* camel/gmime-content-field.c:
(gmime_content_field_construct_from_string):
* camel/url-util.c (g_url_free):

When using g_free (obj) don't test if obj != NULL
g_free () already do that. Thanks to elerium for
the feedback.

19

24 years agonew func. More work on new independant recipient code.
bertrand [Mon, 30 Aug 1999 06:29:37 +0000 (06:29 +0000)]
new func. More work on new independant recipient code.

1999-08-30  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-recipient.c (camel_recipient_get):
(camel_recipient_remove):
(camel_recipient_add):
new func. More work on new independant recipient code.

1999-08-29  bertrand  <Bertrand.Guiheneuf@aful.org>

* MAINTAINERS: updated my e-mail address.

24 years agoAddress update
Bertrand Guiheneuf [Sun, 29 Aug 1999 22:13:32 +0000 (22:13 +0000)]
Address update

24 years agotext parameter declared const
bertrand [Sun, 29 Aug 1999 15:57:46 +0000 (15:57 +0000)]
text parameter declared const

1999-08-28  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-mime-part.c (camel_mime_part_set_text):
text parameter declared const

* camel/camel-mime-part-utils.c (camel_mime_part_store_stream_in_buffer):
actually test correctly nb_bytes_read_chunk is >0

* camel/gstring-util.c:
* camel/gmime-content-field.c:
* camel/providers/MH/camel-mh-folder.c:
* camel/camel-stream-fs.c:
include string.h

* camel/camel-stream-mem.c (_write): return
the numver of written bytes.

* camel/camel-stream-buffered-fs.c (_eos):
return sthg

* camel/camel-stream.c (default_camel_seek):
return something.

* Started to work on new recipient code.
* fixed various leaks.

24 years agocontruct the content from the buffer before calling CamelMedium
bertrand [Thu, 26 Aug 1999 15:29:39 +0000 (15:29 +0000)]
contruct the content from the buffer before calling CamelMedium

1999-08-26  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-mime-part.c (_get_content_object):
contruct the content from the buffer before calling
CamelMedium implementation.
(_construct_from_stream): Do not construct the content
by default, just store the content bytes in
a temporary buffer. Content will be constructed only
at caller request (when calling CamelMedium::get_content_object)
Providers with better access to the messages (mbox/MH ...)
will have to provider lighter implementation, that is
shall not read content at all unless the caller asks
for it (again with get_content).

* camel/camel-mime-part-utils.c: new file, groups
mime-part related utils. Meant to be used by providers
subclassing MimeMessage.
(camel_mime_part_construct_headers_from_stream):
(camel_mime_part_construct_content_from_stream):
no more useless temporary hash table.

* camel/camel-mime-part.c (_construct_from_stream): calls
mime-part-utils functions now.

* camel/gmime-utils.c (_store_header_pair_from_string):
do not use hash table to store header, use an array instead.

24 years agonew file, groups mime-part related utils. Meant to be used by providers
bertrand [Thu, 26 Aug 1999 09:44:33 +0000 (09:44 +0000)]
new file, groups mime-part related utils. Meant to be used by providers

1999-08-26  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-mime-part-utils.c: new file, groups
mime-part related utils. Meant to be used by providers
subclassing MimeMessage.
(camel_mime_part_construct_headers_from_stream):
(camel_mime_part_construct_content_from_stream):
no more useless temporary hash table.

* camel/camel-mime-part.c (_construct_from_stream): calls
mime-part-utils functions now.

* camel/gmime-utils.c (_store_header_pair_from_string):
do not use hash table to store header, use an array instead.

* MimePart cleanup. Not complete yet. Content must not be
parsed when constructing but only when content object is requested.
Default implementation will keep content in a stream.

24 years agonow descend from CamelMedium.
bertrand [Wed, 25 Aug 1999 20:42:58 +0000 (20:42 +0000)]
now descend from CamelMedium.

1999-08-25  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-mime-part.c: now descend from CamelMedium.

* tests/test1.c (main): all headers must be strdup'ed
(main): unref created objects

24 years agoLa tout n'est qu'ordre et beaute,
Bertrand Guiheneuf [Wed, 25 Aug 1999 18:28:38 +0000 (18:28 +0000)]
La tout n'est qu'ordre et beaute,
Luxe, calme et voluptee.

24 years agothese methods are in CamelMedium now.
bertrand [Wed, 25 Aug 1999 15:44:35 +0000 (15:44 +0000)]
these methods are in CamelMedium now.

1999-08-25  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-medium.c (_set_content_object):
(_get_content_object): these methods are
in CamelMedium now.

Going to revamp MimePart soon so that it inherits from CamelMedium.

24 years agonew class. Will handle all sort of information media (Mime mail messages,
bertrand [Tue, 24 Aug 1999 21:01:10 +0000 (21:01 +0000)]
new class. Will handle all sort of information media (Mime mail messages,

1999-08-24  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-medium.c (camel_medium_class_init):
new class. Will handle all sort of information media
(Mime mail messages, Lotus Notes  mail messages,
postit notes, faxes, who knows .... :)
CamelMimePart will inherit from it.

* camel/camel-mime-part.c (_set_disposition):
(_set_description):
description and disposition parameters are now const.

* camel/gmime-content-field.c (gmime_content_field_free): added
assertion code.

* camel/providers/MH/camel-mh-folder.c (_get_message):
uses buffered stream.

* camel/camel-stream-buffered-fs.c:
new stream to accelerate file ops.

Thanks to jwz, I've decided to add a level of abstraction to Camel.
In the future, it should be able to handle other mail systems, but
also non-mail information vehicles.

Enough for today. Roller time!

24 years agoname parameter is const. This fixes a bug in destroy ()
bertrand [Fri, 20 Aug 1999 18:37:36 +0000 (18:37 +0000)]
name parameter is const. This fixes a bug in destroy ()

1999-08-20  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-stream-fs.c (camel_stream_fs_new_with_name):
name parameter is const. This fixes a bug in destroy ()

24 years agoMore work on RFC 2047 encoder.
Robert Brady [Thu, 19 Aug 1999 17:33:49 +0000 (17:33 +0000)]
More work on RFC 2047 encoder.

24 years agoreturn the number of bytes read. How can this have ever worked ?
bertrand [Tue, 17 Aug 1999 17:43:59 +0000 (17:43 +0000)]
return the number of bytes read. How can this have ever worked ?

1999-08-17  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-stream.c (camel_stream_read):
return the number of bytes read.
How can this have ever worked ?
(camel_stream_flush): don't return anything.

* camel/gmime-utils.c (get_header_table_from_stream):
mem leak fixed.

+ various other mem leaks.

24 years agoNow has a popup menu on mailbox tree to allow easier tests. Implemented
bertrand [Mon, 16 Aug 1999 15:08:15 +0000 (15:08 +0000)]
Now has a popup menu on mailbox tree to allow easier tests. Implemented

1999-08-16  bertrand  <Bertrand.Guiheneuf@aful.org>

* tests/ui-tests/store_listing.c:
Now has a popup menu on mailbox tree to allow
easier tests. Implemented the copy stuff.
Works well for the MH provider :)))

* camel/providers/MH/camel-mh-folder.c (_copy_message_to):
Test MH provider fast copy implemented.

24 years agonew method.
bertrand [Sun, 15 Aug 1999 21:08:34 +0000 (21:08 +0000)]
new method.

1999-08-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (_copy_message_to): new method.

24 years agomoved the active list readjustment code here. Much saner, providers won't
bertrand [Sun, 15 Aug 1999 20:40:10 +0000 (20:40 +0000)]
moved the active list readjustment code here. Much saner, providers won't

1999-08-15  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (camel_folder_expunge):
moved the active list readjustment code here.
Much saner, providers won't have to worry about
that.

* camel/providers/MH/camel-mh-folder.c (_expunge):
no more active list readjustment stuff.

* camel/camel-folder.h: the expunge virtual no more
returns a list of expunged messages. Now providers
only have to set the expunge flag on the expunged
messages.

* camel/camel-folder.c (camel_folder_get_message):
moved the caching code here. Finally, I don't want
providers to crash the libs with a bad message cache
implementation.
(_close): do not call the CamelFolder virtual expunge
method directly, use camel_folder_expunge() instead.
(camel_folder_expunge): added the want_list param.
The client can decide if it wants the expunged message
list or not. If yes, it'll have to unref the messages
itself.

24 years agoImplemented deletion/expunge mechanism.
bertrand [Sat, 14 Aug 1999 18:50:45 +0000 (18:50 +0000)]
Implemented deletion/expunge mechanism.

1999-08-14  bertrand  <Bertrand.Guiheneuf@aful.org>

* tests/ui-tests/store_listing.c (delete_selected_messages):
(expunge_selected_folders):
Implemented deletion/expunge mechanism.

* camel/camel-folder.c (_get_message):
Added some debug info.

* camel/providers/MH/camel-mh-folder.c (_expunge):
implemented and tested.

* camel/camel-mime-message.c (_set_flag):
changed the old braindead implementation.
boolean are inserted in the flag hash
table casted as gpointers.

* camel/camel-mime-message.c: indentation fix

24 years agodefault implementation to be called first by providers methods. It looks
bertrand [Fri, 13 Aug 1999 18:28:55 +0000 (18:28 +0000)]
default implementation to be called first by providers methods. It looks

1999-08-13  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (_get_message): default implementation
to be called first by providers methods. It looks in the
folder message list (in memory) to see if the message has
not already been retrieved, and in this case, returns
the same CamelMimeMessage object

Caching messages in folder kworks. Providers will have to
do their job correctly.
Enough for today.

24 years agoNew field (message_list) which will hold a reference on each message
bertrand [Fri, 13 Aug 1999 17:41:18 +0000 (17:41 +0000)]
New field (message_list) which will hold a reference on each message

1999-08-13  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.h (struct _CamelFolder):
New field (message_list) which will hold a
reference on each message obtained by the folder,
which is necessary in order for the caching procedure
to work (Getting the same message from a folder twice
will return the same CamelMimeMessage object).

* camel/camel-folder.c (camel_folder_get_message):
When the store retreives a message put it in its
message list.
(_finalize): free message list.

* ChangeLog: fix typo (parmanent)

24 years agonew method, returns the list of permanent flags supported by the folder.
bertrand [Fri, 13 Aug 1999 15:30:45 +0000 (15:30 +0000)]
new method, returns the list of permanent flags supported by the folder.

1999-08-13  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/camel-folder.c (_get_parmanent_flag_list):
(camel_folder_get_parmanent_flag_list):
new method, returns the list of permanent
flags supported by the folder.

* camel/camel-mime-message.c (_get_flag_list):
(camel_mime_message_get_flag_list): new method,
return the list of flag name used by this message.

24 years agothose two func go here now.
bertrand [Fri, 13 Aug 1999 14:30:07 +0000 (14:30 +0000)]
those two func go here now.

1999-08-13  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel/hash-table-utils.c (g_strcase_equal):
(g_strcase_hash): those two func go here now.

* camel/hash_table_utils.c (hash_table_generic_free):
free a (gpointer, gpointer) hash table pair.

* camel/camel-mime-message.c (camel_mime_message_init): use
case insensitive hash table functions.
(_set_flag):
(camel_mime_message_set_flag):
(_get_flag):
(camel_mime_message_get_flag):
Use const for flag name, they are now
duplicated.

24 years agoremove stupid debug code. (add_mail_store): use camel_session_get_store
bertrand [Thu, 12 Aug 1999 21:01:05 +0000 (21:01 +0000)]
remove stupid debug code. (add_mail_store): use camel_session_get_store

1999-08-12  bertrand  <Bertrand.Guiheneuf@aful.org>

* tests/ui-tests/store_listing.c (show_folder_messages):
remove stupid debug code.
(add_mail_store): use camel_session_get_store instead
of creating MH store directly.
(main): load MH provider.

* camel/camel-provider.c (camel_provider_register_as_module):
register new provider.
(camel_provider_get_for_protocol):
Now, implementation is correct.

* camel/camel-store.c (_finalize):
* camel/camel-store.h (struct _CamelStore):
further disabled url_name field use.
URL will be generated dynamically.

Ben dam don dieu, vla t'y pas que ya tout le bourier qui marche !
(Autoload store/protocol from URL works)