platform/upstream/evolution-data-server.git
24 years agoimplement get_message_by_number for the mail fetch code.
Dan Winship [Mon, 10 Apr 2000 14:27:22 +0000 (14:27 +0000)]
implement get_message_by_number for the mail fetch code.

* providers/mbox/camel-mbox-folder.c (_get_message_by_number):
implement get_message_by_number for the mail fetch code.

24 years agoo Reformatted providers/smtp/camel-smtp-transport.c to fit the standard
EDT 2000 Jeffrey Stedfast [Mon, 10 Apr 2000 00:47:57 +0000 (00:47 +0000)]
o Reformatted providers/smtp/camel-smtp-transport.c to fit the standard

Sun Apr  9 21:23:15 EDT 2000  Jeffrey Stedfast  <fejj@stampede.org>
  o Reformatted providers/smtp/camel-smtp-transport.c to fit the standard indent format used by helix code

24 years agoNew file with new function to dot-lock an mbox file and copy it to a safe
Dan Winship [Sun, 9 Apr 2000 22:47:42 +0000 (22:47 +0000)]
New file with new function to dot-lock an mbox file and copy it to a safe

* camel-movemail.c: New file with new function to dot-lock an mbox
file and copy it to a safe private directory.

24 years agopixmap_DATA isn't defined so don't use it as a variable.
Christopher James Lahey [Sat, 8 Apr 2000 22:10:45 +0000 (22:10 +0000)]
pixmap_DATA isn't defined so don't use it as a variable.

2000-04-08  Christopher James Lahey  <clahey@helixcode.com>

* art/Makefile.am: pixmap_DATA isn't defined so don't use it as a variable.

* addressbook/gui/component/,
addressbook/gui/component/.cvsignore, addressbook/gui/Makefile.am,
addressbook/gui/component/addressbook-factory.c,
addressbook/gui/component/addressbook.c,
addressbook/gui/component/addressbook.gnorba,
addressbook/gui/component/addressbook.h: New directory to proivde
the component for contact management.  Simply uses an e-minicard-view.

* addressbook/gui/minicard/e-minicard-view.c,
addressbook/gui/minicard/e-minicard-view.h: New subclass of
e-reflow-sorted that takes an EBook and uses it to compute the
card data to display.

* addressbook/gui/minicard/e-minicard.c,
addressbook/gui/minicard/e-minicard.h: This now backends to a
ECard instead of a ETableModel.

* addressbook/gui/minicard/e-reflow.c,
addressbook/gui/minicard/e-reflow.h: This now has a virtualized
add method.

* addressbook/gui/minicard/e-reflow-sorted.c,
addressbook/gui/minicard/e-reflow-sorted.h: New subclass of
e-reflow that allows the data to be sorted on the fly.

* addressbook/gui/minicard/test-minicard-view.c: New test to test
the new minicard view.

* addressbook/gui/minicard/test-reflow.c: Uses the new ECard
backend of the e-minicard.

* addressbook/gui/minicard/.cvsignore,
addressbook/gui/minicard/Makefile.am: Added new test.  Fixed
dependencies.  Added new files.

* addressbook/gui/, addressbook/gui/Makefile.am,
addressbook/gui/.cvsignore: New directory for addressbook gui
bits.  Added subdirectories.  Created an initial .cvsignore.

* addressbook/Makefile.am (SUBDIRS): Removed demo and added gui.

* addressbook/backend/pas/pas-backend-file.c: Added code to do
notification on bookviews when changes in the backend are made.

* addressbook/backend/pas/pas-book-view.c,
addressbook/backend/pas/pas-book-view.h: Added helper functions to
notify the view about the addition or modification of a single
card.  Fixed a mistaken extra free.

* addressbook/backend/ebook/e-card-list-iterator.h: Fixed
incorrect parent class.

* addressbook/backend/ebook/test-client.c: Made this accept an
optional parameter that specifies the vcard to add.

* configure.in: Replaced widgets/e-minicard/Makefile and
addressbook/demo/Makefile with addressbook/gui/minicard/Makefile
and addressbook/gui/component/Makefile respectively.

* widgets/Makefile.am: Removed e-minicard since it's being moved
to addressbook/gui/minicard.

* widgets/e-text/e-text.c: Fixed the border width around tooltips
and made the main tooltip area yellow.

From camel/ChangeLog:

2000-04-08  Christopher James Lahey  <clahey@helixcode.com>

* providers/smtp/.cvsignore: Added a .cvsignore file.

From calendar/ChangeLog:

2000-04-08  Christopher James Lahey  <clahey@helixcode.com>

* gui/Makefile.am: Removed linking with libetable and libeminicard
since they weren't being used.

24 years agoactually record the pid returned by fork(). Noticed by clahey.
Dan Winship [Sat, 8 Apr 2000 21:53:24 +0000 (21:53 +0000)]
actually record the pid returned by fork(). Noticed by clahey.

* providers/sendmail/camel-sendmail-transport.c (_send_internal):
actually record the pid returned by fork(). Noticed by clahey.

24 years ago#include <sys/param.h> for MAXHOSTNAMELEN. (This is a stopgap: some of the
Dan Winship [Sat, 8 Apr 2000 20:32:01 +0000 (20:32 +0000)]
#include <sys/param.h> for MAXHOSTNAMELEN. (This is a stopgap: some of the

* providers/smtp/camel-smtp-transport.c: #include <sys/param.h>
for MAXHOSTNAMELEN. (This is a stopgap: some of the uses of
MAXHOSTNAMELEN are wrong anyway...)

24 years agoo fixed numerous bugs in providers/smtp/camel-smtp-transport.c; should now
EDT 2000 Jeffrey Stedfast [Fri, 7 Apr 2000 21:40:56 +0000 (21:40 +0000)]
o fixed numerous bugs in providers/smtp/camel-smtp-transport.c; should now

Fri Apr  7 16:49:42 EDT 2000  Jeffrey Stedfast <fejj@stampede.org>
  o fixed numerous bugs in providers/smtp/camel-smtp-transport.c; should now build correctly
  o readded smtp to providers/Makefile.am

CVS

24 years ago (pop3_connect): Remember the password after asking for it the
Dan Winship [Fri, 7 Apr 2000 20:41:01 +0000 (20:41 +0000)]
(pop3_connect): Remember the password after asking for it the
first time.

24 years agoClarify error messages. (finalize): fix a bug in camel_exception usage
Dan Winship [Fri, 7 Apr 2000 19:26:50 +0000 (19:26 +0000)]
Clarify error messages. (finalize): fix a bug in camel_exception usage

* providers/pop3/camel-pop3-store.c (pop3_connect): Clarify error
messages.
(finalize): fix a bug in camel_exception usage

24 years agoRemoved smtp for now, its a long way from building. Removed file that
NotZed [Fri, 7 Apr 2000 15:22:35 +0000 (15:22 +0000)]
Removed smtp for now, its a long way from building. Removed file that

2000-04-07  NotZed  <NotZed@HelixCode.com>

        * providers/Makefile.am: Removed smtp for now, its a long way from
        building.
        * providers/smtp/Makefile.in: Removed file that shouldn't have been
        checked in.

24 years agoo Added smtp_helo() request into smtp_connect() (forgott o do this before)
EDT 2000 Jeffrey Stedfast [Fri, 7 Apr 2000 12:51:50 +0000 (12:51 +0000)]
o Added smtp_helo() request into smtp_connect() (forgott o do this before)

Fri Apr  7 08:01:43 EDT 2000  Jeffrey Stedfast <fejj@stampede.org>
  o Added smtp_helo() request into smtp_connect() (forgott o do this before)
  o Modified smtp_helo() to send EHLO if communicating with an ESMTP server

24 years agofix Makefile.am
Chris Toshok [Fri, 7 Apr 2000 05:45:32 +0000 (05:45 +0000)]
fix Makefile.am

24 years agoo Added smtp/ to providers tree under camel o Added makefiles and source
EDT 2000 Jeffrey Stedfast [Fri, 7 Apr 2000 03:49:48 +0000 (03:49 +0000)]
o Added smtp/ to providers tree under camel o Added makefiles and source

Thu Apr  6 22:56:44 EDT 2000  Jeffrey Stedfast <fejj@stampede.org>
  o Added smtp/ to providers tree under camel
  o Added makefiles and source for an smtp module (untested as of yet)

24 years ago+ * camel-folder-pt-proxy.c (_get_full_name): Remove exception param
Matthew Loper [Thu, 6 Apr 2000 22:26:02 +0000 (22:26 +0000)]
+ * camel-folder-pt-proxy.c (_get_full_name): Remove exception param
+ from get_full_name() called, since get_full_name() was changed to
+ not have an exception in the last param (see dan's notes below).
+ (_get_name): same.

24 years agoReorganize the folder-fetching methods and implement a folder cache so
Dan Winship [Thu, 6 Apr 2000 20:10:05 +0000 (20:10 +0000)]
Reorganize the folder-fetching methods and implement a folder cache so

2000-04-06  Dan Winship  <danw@helixcode.com>

* camel-store.[ch]: Reorganize the folder-fetching methods and
implement a folder cache so that multiple requests for the same
folder will yield the same CamelFolder object (as long as it
remains active). Includes some code to remove no-longer-active
folders from the cache, but it doesn't get used since nothing is
ever unref'ed in Camel right now...

* providers/mbox/camel-mbox-store.c:
* providers/pop3/camel-pop3-store.c: update for CamelStore
changes.

* camel-folder.[ch]: Remove the (unused) CamelException argument
from camel_folder_get_name and camel_folder_get_full_name.
(camel_folder_set_name): make this go away since changing a
folder's name after it has been created could result in it
conflicting with a separately-issued folder.

24 years agothe URL RFC says the port must be numeric, so we don't want to do
Dan Winship [Thu, 6 Apr 2000 03:52:39 +0000 (03:52 +0000)]
the URL RFC says the port must be numeric, so we don't want to do

* g_url_new really wanted to take a CamelException. So, rename
Gurl to CamelURL, g_url_* to camel_url_* (with camel_url_new
taking an exception), and url-util.[ch] to camel-url.[ch]. Also
force url->port to be numeric and remove camel_service_getport. (I
was confused before: the URL RFC says the port must be numeric, so
we don't want to do getportbyname.)

24 years agofix a warning
Dan Winship [Wed, 5 Apr 2000 19:21:04 +0000 (19:21 +0000)]
fix a warning

24 years agoCompare mbox_file_size and mbox_modtime to the results of stat()ing the
Dan Winship [Sat, 1 Apr 2000 21:58:27 +0000 (21:58 +0000)]
Compare mbox_file_size and mbox_modtime to the results of stat()ing the

* providers/mbox/camel-mbox-folder.c
(_check_get_or_maybe_generate_summary_file): Compare
mbox_file_size and mbox_modtime to the results of stat()ing the
mbox file, not the summary file. Duh.
(_close): Update the summary's mbox_file_size and mbox_modtime
before writing it to disk.

* providers/mbox/camel-mbox-summary.c (camel_mbox_summary_save,
camel_mbox_summary_load): Wow. I must have been tired when I wrote
this code. First, the comparison bug above. Second, it was using
ntohs and htons instead of ntohl and htonl. Third, I was reading
the status flag byte in two different places and thus getting out
of sync. Fourth, it was writing out field_length bytes of each
header field after having converted field_length to network byte
order, resulting in lots of random crap being appended, and the
summary files being huge. (Fortunately, since the size/modtime
comparison was biffed, the garbage summary read from disk was
always immediately discarded.)

* providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file): fix
an off-by-one error that caused the last-used UID to be reused if
the summary file was regenerated. (That one wasn't my fault. :-)

24 years agoimplement unimplemented methods
Dan Winship [Sat, 1 Apr 2000 04:44:17 +0000 (04:44 +0000)]
implement unimplemented methods

* camel-stream-mem.c: implement unimplemented methods

24 years agoremove debugging printf()s that no longer seem useful
Dan Winship [Sat, 1 Apr 2000 04:16:38 +0000 (04:16 +0000)]
remove debugging printf()s that no longer seem useful

24 years agoAdded "convert_newlines_to_br" boolean param, to give the option of not
Matthew Loper [Fri, 31 Mar 2000 21:58:19 +0000 (21:58 +0000)]
Added "convert_newlines_to_br" boolean param, to give the option of not

* camel-formatter.c (text_to_html): Added "convert_newlines_to_br"
boolean param, to give the option of not converting '\n's to <br>
tags. This way, when we stick stuff in a <pre> tag, newlines stay
newlines.

24 years agoUse <pre> tag to force the use of monospaced fonts.
Matthew Loper [Thu, 30 Mar 2000 20:33:26 +0000 (20:33 +0000)]
Use <pre> tag to force the use of monospaced fonts.

* camel-formatter.c (handle_text_plain): Use <pre> tag to force
the use of monospaced fonts.

24 years agoAdd a htons in the default_number case, and document the fact that the
Dan Winship [Thu, 30 Mar 2000 16:40:33 +0000 (16:40 +0000)]
Add a htons in the default_number case, and document the fact that the

* camel-service.c (camel_service_getport): Add a htons in the
default_number case, and document the fact that the function
returns the port in network byte order.

* providers/pop3/camel-pop3-store.c (pop3_connect): Revert
Miguel's change. The port number bug was actually somewhere
else, and the IP address copying code was fine already.

24 years agoAdd htons (port), and only copy 4 bytes for the IP address to prevent a
Miguel de Icaza [Thu, 30 Mar 2000 00:41:04 +0000 (00:41 +0000)]
Add htons (port), and only copy 4 bytes for the IP address to prevent a

2000-03-29  Miguel de Icaza  <miguel@gnu.org>

* providers/pop3/camel-pop3-store.c (pop3_connect): Add htons
(port), and only copy 4 bytes for the IP address to prevent a DNS
attack.

24 years agomake this return a CamelStream rather than a CamelSeekableSubstream,
Dan Winship [Tue, 28 Mar 2000 21:15:21 +0000 (21:15 +0000)]
make this return a CamelStream rather than a CamelSeekableSubstream,

* camel-seekable-substream.c
(camel_seekable_substream_new_with_seekable_stream_and_bounds):
make this return a CamelStream rather than a
CamelSeekableSubstream, because that's the way Gtk objects tend to
work.

24 years agofix warnings
Dan Winship [Tue, 28 Mar 2000 21:12:12 +0000 (21:12 +0000)]
fix warnings

24 years agoconvenience functions to canonicalize the host and port values of a
Dan Winship [Tue, 28 Mar 2000 20:51:58 +0000 (20:51 +0000)]
convenience functions to canonicalize the host and port values of a

* camel-service.c (camel_service_gethost,
camel_service_getport): convenience functions to canonicalize
the host and port values of a service's URL.
* providers/pop3/camel-pop3-store.c: use them

24 years agoMake this work when the inbox file doesn't yet exist.
Dan Winship [Tue, 28 Mar 2000 18:01:34 +0000 (18:01 +0000)]
Make this work when the inbox file doesn't yet exist.

* providers/mbox/camel-mbox-folder.c
(_check_get_or_maybe_generate_summary_file): Make this work when
the inbox file doesn't yet exist.

24 years agouncomment the call to unlink the temp file: there's no way to tell
Dan Winship [Tue, 28 Mar 2000 03:56:06 +0000 (03:56 +0000)]
uncomment the call to unlink the temp file: there's no way to tell

* providers/mbox/camel-mbox-folder.c (_append_message): uncomment
the call to unlink the temp file: there's no way to tell
camel_stream_fs to truncate a file, so reusing the same file was
resulting in junk at the ends of messages.

24 years agoadd delete_message_by_{number,uid}.
Dan Winship [Tue, 28 Mar 2000 01:57:59 +0000 (01:57 +0000)]
add delete_message_by_{number,uid}.

* camel-folder.[ch]: add delete_message_by_{number,uid}.

* providers/pop3/camel-pop3-folder.[ch]: implement
delete_message_by_uid. Add a close method to do expunging
of deleted messages if requested.

* providers/pop3/camel-pop3-store.[ch]: support for
CamelPop3Folder::close. (You have to close the connection
in order to expunge the folder, thus the store may be
connected in the CamelService::is_connected sense when it
is not actually connected to the server.) Also some bugfixes.

24 years agoUnref the output_stream when done, close doesn't do it. (_append_message):
NotZed [Mon, 27 Mar 2000 22:46:13 +0000 (22:46 +0000)]
Unref the output_stream when done, close doesn't do it. (_append_message):

2000-03-27  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/camel-mbox-folder.c (_append_message): Unref the
        output_stream when done, close doesn't do it.
        (_append_message): Clear all uid's from the appending messages, so
        they are reassigned proper unique id's.

        * gmime-utils.c (get_header_array_from_stream): Actually free the
        header, it is copied elsewhere.

2000-03-26  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): Added
        folder parameter to function.  Fixed callers.
        (index_message): Index a message as it is assigned a unique id.

        * camel-mime-part.c (my_set_content_id): Make sure we malloc and
        copy the content_id, otherwise *poof*

2000-03-25  NotZed  <NotZed@HelixCode.com>

        * camel-medium.c (_finalize): Another leak, unref the content if
        finished with it.

        * camel-recipient.c (camel_recipient_table_free): Plug another
        memory leak - actually free the recipient table.

        * camel-mime-message.c (_finalize): Plugged a memory leak with the
        flags table.

        * gmime-utils.c (_store_header_pair_from_string): A simpler, more
        debuggable and functionally identical header extraction function.

2000-03-24  NotZed  <NotZed@HelixCode.com>

        * gmime-content-field.c (gmime_content_field_set_parameter):
        Remove the hash table entry before freeing its key and data.

24 years agokeep separate input and output streams so the output doesn't end up being
Dan Winship [Mon, 27 Mar 2000 21:37:49 +0000 (21:37 +0000)]
keep separate input and output streams so the output doesn't end up being

* providers/pop3/camel-pop3-store.c: keep separate input and
output streams so the output doesn't end up being buffered.

* providers/pop3/camel-pop3-folder.c (get_message_by_number):
finish implementing this.

* providers/Makefile.am (SUBDIRS): Add pop3.

24 years agofix nastiness with mime dispositions ( at least for now )
Michael Meeks [Mon, 27 Mar 2000 21:33:34 +0000 (21:33 +0000)]
fix nastiness with mime dispositions ( at least for now )

24 years agoremove camel-stream-buffered-fs here too
Dan Winship [Mon, 27 Mar 2000 19:11:26 +0000 (19:11 +0000)]
remove camel-stream-buffered-fs here too

24 years agofix previous commit: this file wasn't using
Dan Winship [Mon, 27 Mar 2000 19:09:28 +0000 (19:09 +0000)]
fix previous commit: this file wasn't using
camel-stream-buffered-fs.h, but it did need camel-stream-fs.h, which
it wasn't including.

24 years agonew routine to free the data allocated by camel_service_query_auth_types.
Dan Winship [Mon, 27 Mar 2000 16:59:46 +0000 (16:59 +0000)]
new routine to free the data allocated by camel_service_query_auth_types.

* camel-service.c (camel_service_free_auth_types): new routine to
free the data allocated by camel_service_query_auth_types.

* providers/pop3/camel-pop3-store.c (free_auth_types): implement

24 years agorename camel_stream_mem_new_with_buffer to ..._with_byte_array and add a
Dan Winship [Mon, 27 Mar 2000 16:58:32 +0000 (16:58 +0000)]
rename camel_stream_mem_new_with_buffer to ..._with_byte_array and add a

* camel-stream-mem.c (camel_stream_mem_new_with_buffer): rename
camel_stream_mem_new_with_buffer to ..._with_byte_array and add a
new ..._with_buffer that takes a char * rather than a GByteArray.

24 years agoRemove CamelStreamBufferedFs, since CamelStreamBuffer makes it redundant.
Dan Winship [Mon, 27 Mar 2000 16:46:19 +0000 (16:46 +0000)]
Remove CamelStreamBufferedFs, since CamelStreamBuffer makes it redundant.

* Remove CamelStreamBufferedFs, since CamelStreamBuffer makes it
redundant.

24 years agoinclude in.h to quiet compiler
Seth Alves [Mon, 27 Mar 2000 09:19:04 +0000 (09:19 +0000)]
include in.h to quiet compiler

24 years agochange the CamelFolderSummary interfaces to allow partial summary queries
Dan Winship [Sat, 25 Mar 2000 05:18:55 +0000 (05:18 +0000)]
change the CamelFolderSummary interfaces to allow partial summary queries

* camel-folder-summary.[ch]: change the CamelFolderSummary
interfaces to allow partial summary queries (for dealing
with very large folders). Remove the "extended_fields" from
CamelFolderInfo and CamelMessageInfo: this is better dealt
with by subtyping.

* providers/mbox/camel-mbox-summary.[ch]: Make CamelMboxSummary a
subclass of CamelFolderSummary. Update interfaces for that. Remove
the internal/external summary distinction. Remove the (unused) md5
checksum in the folder summary. Change the summary file format
(primarily to make it no longer byte-order dependent) and add a
version number to it so it will be easier to change in the future.

* providers/mbox/camel-mbox-folder.[ch]
* providers/mbox/camel-mbox-search.c
* providers/mbox/camel-mbox-utils.c: update for summary changes

* camel-exception-list.def: add
CAMEL_EXCEPTION_FOLDER_SUMMARY_INVALID

24 years agoAdded flag to provider initialisation, to match changed structure.
NotZed [Thu, 23 Mar 2000 23:47:14 +0000 (23:47 +0000)]
Added flag to provider initialisation, to match changed structure.

2000-03-23  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/camel-mbox-provider.c: Added flag to provider
        initialisation, to match changed structure.

24 years agofix the CamelProvider entry (new flags field was missing)
Dan Winship [Thu, 23 Mar 2000 21:15:26 +0000 (21:15 +0000)]
fix the CamelProvider entry (new flags field was missing)

24 years agoAdded async search api.
NotZed [Thu, 23 Mar 2000 19:57:31 +0000 (19:57 +0000)]
Added async search api.

2000-03-22  NotZed  <NotZed@HelixCode.com>

        * camel-folder.[ch]: Added async search api.

        * providers/mbox/camel-mbox-search.c
        (camel_mbox_folder_search_by_expression): Changed to use an
        asynchronous interface.
        (camel_mbox_folder_search_cancel): Cancel function for async
        interface.

24 years agoFunction to read one line of any size from a stream and return it in
Dan Winship [Thu, 23 Mar 2000 16:22:29 +0000 (16:22 +0000)]
Function to read one line of any size from a stream and return it in

* camel-stream-buffer.c (camel_stream_buffer_read_line): Function
to read one line of any size from a stream and return it in
allocated memory.

Also add camel-stream-buffer.h to camel.h and CamelStreamBuffer to
camel-types.h.

24 years agoNew function to query a service for the authentication protocols it
Dan Winship [Wed, 22 Mar 2000 21:47:21 +0000 (21:47 +0000)]
New function to query a service for the authentication protocols it

* camel-service.c (camel_service_query_auth_types): New function
to query a service for the authentication protocols it supports.
* providers/pop3/camel-pop3-store.c (query_auth_types): implement

24 years agoNew function to scan the provider dir and return a list of all providers.
Dan Winship [Wed, 22 Mar 2000 17:21:31 +0000 (17:21 +0000)]
New function to scan the provider dir and return a list of all providers.

* camel-provider.c (camel_provider_scan): New function to
scan the provider dir and return a list of all providers.

24 years agofix compile errors. duh.
Dan Winship [Wed, 22 Mar 2000 17:02:13 +0000 (17:02 +0000)]
fix compile errors. duh.

24 years agofill this in partially make camel_pop3_command return the text after
Dan Winship [Wed, 22 Mar 2000 16:55:28 +0000 (16:55 +0000)]
fill this in partially make camel_pop3_command return the text after

* providers/pop3/camel-pop3-folder.c: fill this in partially
* providers/pop3/camel-pop3-store.c: make camel_pop3_command
return the text after "+OK"/"-ERR" and add a separate
camel_pop3_get_additional_data to get the message body or
whatever. Also make them take a CamelPop3Store rather than
a CamelStreamBuffer.

24 years ago+ * shell/main.c (evolution_boot): gtk_signal_connect'ed "destroy"
Matthew Loper [Wed, 22 Mar 2000 16:35:57 +0000 (16:35 +0000)]
+ * shell/main.c (evolution_boot): gtk_signal_connect'ed "destroy"
+ to gtk_main_quit, so that the shell dies when you want it to.
+
+ * shell/e-shell-view.c (get_view): Reorganized, and added
+ assertions.
+ (e_shell_view_set_view): Added assertions.
+
+ * camel/camel-formatter.c (debug): Disabled some useless debug
+ messaging.

24 years agosome initial bits of the POP3 provider, to make Matt happy. Incomplete,
Dan Winship [Tue, 21 Mar 2000 23:40:00 +0000 (23:40 +0000)]
some initial bits of the POP3 provider, to make Matt happy. Incomplete,

* providers/pop3: some initial bits of the POP3 provider, to
make Matt happy. Incomplete, untested, etc.

24 years agodisplay message size
bertrand [Tue, 21 Mar 2000 15:28:36 +0000 (15:28 +0000)]
display message size

2000-03-21  bertrand  <bertrand@helixcode.com>

* message-list.c (ml_value_at): display message size

2000-03-21  bertrand  <bertrand@helixcode.com>

* providers/mbox/camel-mbox-summary.c
(camel_mbox_summary_append_internal_to_external): copy the size field

* providers/mbox/camel-mbox-folder.c (_get_message_by_uid): initialize
message_info to NULL

* camel-folder-summary.h: added the size field.

* providers/mbox/camel-mbox-summary.h:
added the received_date field.

24 years agodocumented all functions.
bertrand [Tue, 21 Mar 2000 15:19:52 +0000 (15:19 +0000)]
documented all functions.

2000-03-21  bertrand  <bertrand@helixcode.com>

* providers/mbox/camel-mbox-summary.c:
documented all functions.

24 years agoname change and new fields.
bertrand [Tue, 21 Mar 2000 14:50:12 +0000 (14:50 +0000)]
name change and new fields.

2000-03-21  bertrand  <bertrand@helixcode.com>

* camel-folder-summary.h: name change and
new fields.

* providers/mbox/camel-mbox-search.c: update to
conform to name change in the summary fields.

24 years agoadd a field refering to a service associated to the efolder. In the case
bertrand [Sun, 12 Mar 2000 05:09:43 +0000 (05:09 +0000)]
add a field refering to a service associated to the efolder. In the case

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

* shell/e-folder.h: add a field refering to a
service associated to the efolder. In the case of
distant folders, it is generally a server.

* shell/e-service.c: New class. Models a service.
A service is an object with an URI and a root folder.
It genreally reporesents a distant folder.
A service is generally a ressource shared amongst
several folders.
* shell/e-service.h:

2000-03-10  bertrand  <bertrand@helixcode.com>

* camel-service.h: cosmetic changes.

24 years agocosmetic changes.
bertrand [Sat, 11 Mar 2000 02:26:08 +0000 (02:26 +0000)]
cosmetic changes.

2000-03-10  bertrand  <bertrand@helixcode.com>

* camel-service.h: cosmetic changes.

24 years agofix the name of "Helix Code, Inc." in all the copyrights
Dan Winship [Thu, 9 Mar 2000 19:52:48 +0000 (19:52 +0000)]
fix the name of "Helix Code, Inc." in all the copyrights

24 years agoplug mem leaks due to bad documentation of
bertrand [Wed, 8 Mar 2000 19:53:31 +0000 (19:53 +0000)]
plug mem leaks due to bad documentation of

2000-03-07  bertrand  <bertrand@helixcode.com>

* camel-formatter.c (handle_mime_part):
plug mem leaks due to bad documentation
of camel_content_field_get_mime_type
(print_camel_body_part): idem
(handle_multipart_alternative): idem

* gmime-content-field.c (gmime_content_field_get_mime_type):
documentation fix.

* camel-mime-part.c (my_finalize): unref the
content_input_stream if any.

* shell/e-shell-shortcut.c (shortcut_bar_item_selected):
removed a test that prevented the standard menu
to be shown.

24 years agoMore changes than a man can remember.
Bertrand Guiheneuf [Mon, 6 Mar 2000 09:38:41 +0000 (09:38 +0000)]
More changes than a man can remember.
The UI works now.

24 years agoTons of fixes to fix things
Bertrand Guiheneuf [Sun, 5 Mar 2000 05:33:55 +0000 (05:33 +0000)]
Tons of fixes to fix things

24 years agoRef the summary after we have got it.
NotZed [Sun, 5 Mar 2000 03:00:35 +0000 (03:00 +0000)]
Ref the summary after we have got it.

2000-03-04  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/camel-mbox-search.c
        (camel_mbox_folder_search_by_expression): Ref the summary
        after we have got it.

24 years agostream the raw content instead of nothing if the encoding is not
bertrand [Sat, 4 Mar 2000 22:23:06 +0000 (22:23 +0000)]
stream the raw content instead of nothing if the encoding is not

2000-03-04  bertrand  <bertrand@helixcode.com>

* camel-mime-part.c (my_write_content_to_stream):
stream the raw content instead of nothing if the encoding
is not supported.

* camel-stream-fs.c (_seek): handle eos more
properly.

24 years agobonobo-goad-id is the good key to look for. (get_bonobo_tag_for_object):
bertrand [Sat, 4 Mar 2000 04:58:12 +0000 (04:58 +0000)]
bonobo-goad-id is the good key to look for. (get_bonobo_tag_for_object):

2000-03-04  bertrand  <bertrand@helixcode.com>

* camel-formatter.c (get_bonobo_tag_for_object):
bonobo-goad-id is the good key to look for.
(get_bonobo_tag_for_object): close the <object> tag.
(get_bonobo_tag_for_object): the correct syntax for the
to set a parameter inside an <object> tag is :
<object classid="..."> <param name="uid" value="..."> <param ...>
</object>

24 years agouse set_input_stream instead of construct_from_stream to feed the message
bertrand [Fri, 3 Mar 2000 22:26:13 +0000 (22:26 +0000)]
use set_input_stream instead of construct_from_stream to feed the message

2000-03-03  bertrand  <bertrand@helixcode.com>

* providers/mbox/camel-mbox-folder.c (_get_message_by_uid):
use set_input_stream instead of construct_from_stream
to feed the message object.

* camel-data-wrapper.c (my_write_to_stream): reset output stream.
(my_set_input_stream): unref the previous input stream.
use the set_output_stream for default behaviour.
(my_set_output_stream): unref previous output stream.

* camel-mime-part.c (my_write_content_to_stream): reset content
object output stream.

mbox provider now also constructs message bodies. I should have looked
here first. damn.

24 years agoMake sure we open with create with a creation mask.
NotZed [Fri, 3 Mar 2000 20:28:04 +0000 (20:28 +0000)]
Make sure we open with create with a creation mask.

2000-03-03  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): Make
        sure we open with create with a creation mask.

2000-03-01  NotZed  <NotZed@HelixCode.com>

        * camel-mime-part-utils.c
        (camel_mime_part_construct_content_from_stream): DO NOT assert on
        content type, we have fallback code 4 lines below it ... *sigh*

24 years agoin the case of images, put the content object output stream in the url.
bertrand [Fri, 3 Mar 2000 19:42:47 +0000 (19:42 +0000)]
in the case of images, put the content object output stream in the url.

2000-03-03  bertrand  <bertrand@helixcode.com>

* camel-formatter.c (handle_image): in the case
of images, put the content object output stream
in the url. This allows the message browser
to show inline images.

24 years agofixed state 0 keep value.
bertrand [Fri, 3 Mar 2000 13:15:43 +0000 (13:15 +0000)]
fixed state 0 keep value.

2000-03-03  bertrand  <bertrand@helixcode.com>

* camel-stream-b64.c (my_read_encode): fixed state
0 keep value.

24 years agodon't forget to set the state to 0 after 3. (my_read_encode): don't forget
bertrand [Fri, 3 Mar 2000 02:54:24 +0000 (02:54 +0000)]
don't forget to set the state to 0 after 3. (my_read_encode): don't forget

2000-03-02  bertrand  <bertrand@helixcode.com>

* camel-stream-b64.c (my_read_encode): don't forget to
set the state to 0 after 3.
(my_read_encode): don't forget to encode, even in state 3.

* camel-simple-data-wrapper.c: static functions are prefixed
with my_ instead of _
* camel-multipart.c: static functions are prefixed
with my_ instead of _
(my_write_to_stream): commented.
(my_write_to_stream): warning in case the boudary is set
but is a zero length string.

* camel-mime-part.c (camel_mime_part_encoding_from_string):
remove debug trace.

* camel-mime-part.c: Replaced all static functions
with name begining with _ by the same name begining
with "my_" to prevent the possible conflicts
with system symbols Dan warned us about.

Mime mail generation works now, at least with b64 encoding.
QP needs to be done now.

24 years agouse CamelStreamB64 type for the input stream.
bertrand [Thu, 2 Mar 2000 16:21:05 +0000 (16:21 +0000)]
use CamelStreamB64 type for the input stream.

2000-03-02  bertrand  <bertrand@helixcode.com>

* camel-stream-b64.c (camel_stream_b64_write_to_stream):
use CamelStreamB64 type for the input stream.

* camel-mime-part.c (_get_content_object): remove
debugging trace
(_write_content_to_stream): implement the b64
encoding the new way (that is using camel_stream_b64)

24 years agofix implementation so that it writes properly to the output stream even.
bertrand [Thu, 2 Mar 2000 15:09:45 +0000 (15:09 +0000)]
fix implementation so that it writes properly to the output stream even.

2000-03-02  bertrand  <bertrand@helixcode.com>

* camel-data-wrapper.c (my_write_to_stream):
fix implementation so that it writes properly
to the output stream even.

* camel-stream-b64.c (camel_stream_b64_write_to_stream):
fix implementation.

24 years agoVarious building fixes. At least, now it builds for me.
Ettore Perazzoli [Thu, 2 Mar 2000 00:09:33 +0000 (00:09 +0000)]
Various building fixes.  At least, now it builds for me.

24 years agoAdded camel-stream-buffer to build.
NotZed [Wed, 1 Mar 2000 00:06:05 +0000 (00:06 +0000)]
Added camel-stream-buffer to build.

2000-02-29  NotZed  <NotZed@HelixCode.com>

* Makefile.am (libcamelinclude_HEADERS): Added camel-stream-buffer
to build.

* camel-stream-buffer.[ch]: Generic buffer which can be applied to
any stream.

24 years agonew utility function.
bertrand [Tue, 29 Feb 2000 14:12:59 +0000 (14:12 +0000)]
new utility function.

2000-02-29  bertrand  <bertrand@helixcode.com>

* camel-stream-b64.c (camel_stream_b64_write_to_stream): new
utility function.

* camel-data-wrapper.c (_write_to_stream): default
implementation.

24 years agorevert strange changes.
bertrand [Tue, 29 Feb 2000 13:07:19 +0000 (13:07 +0000)]
revert strange changes.

2000-02-29  bertrand  <bertrand@helixcode.com>

* gmime-utils.c (_store_header_pair_from_string):
revert strange changes.

* camel-stream-b64.c (my_read_decode): set eos to true when we
have read the whole input stream.
(my_reset): set eos to FALSE.

24 years agoFix a bunch of serious small bugs.
NotZed [Mon, 28 Feb 2000 23:26:13 +0000 (23:26 +0000)]
Fix a bunch of serious small bugs.

2000-02-28  NotZed  <NotZed@HelixCode.com>

        * camel-mime-part.c (_parse_header_pair): Dont free this either.

        * camel-medium.c (_remove_header): Ugh, dont free the header
        before we actually remove it.
        (_add_header): Ugh, dont free hashtable entries which may be
        duplicated (hash_insert _will_ reference that memory).

        * string-utils.c (string_trim): Trimming a 0-length string is not
        an error.

        * camel-mime-message.c (_parse_header_pair): Fixed very broken
        memory handling of header_name/value.

        * providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
        Initialise end_of_last_message always.
        (camel_mbox_copy_file_chunk): Stop trying to read if we run out of
        data, rather than looping forever.

        * providers/mbox/camel-mbox-folder.c (_init): Set search cap on.
        (_open): Call parent class to perform open.  Remove folder-open
        check to parent instead.
        (_create): open takes a creation mask, dont use umask to try and
        set the open mode.
        (_delete): Dont bother checking folder==NULL, its already been
        checked on the external interface (changed to an assertion, this
        would have to be a camel bug).
        (_delete_messages): Likewise.
        (_create): Ditto.
        (_init): Dont go and clear all the paths and shit that the parent
        open just setup for us.
        (_delete_messages): Get rid of more umask stuff.
        (_append_message): Make sure we pass file mode to open with create.
        (_append_message): Cleaned up some indenting to make it readable.

24 years agoNo, its not a fatal error to search on a non-searchable folder, you just
NotZed [Mon, 28 Feb 2000 20:10:54 +0000 (20:10 +0000)]
No, its not a fatal error to search on a non-searchable folder, you just

2000-02-28  NotZed  <NotZed@HelixCode.com>

        * camel-folder.c (camel_folder_search_by_expression): No, its not
        a fatal error to search on a non-searchable folder, you just dont
        get any matches.
        (_open): Dont open an opened folder (i dont see why this is really
        a bug, but what the hell ...)

        * providers/mbox/camel-mbox-folder.c (_init): Set search cap on.
        (_open): Call parent class to perform open.  Remove folder-open
        check to parent instead.

24 years agoFixed a typo.
NotZed [Mon, 28 Feb 2000 18:25:38 +0000 (18:25 +0000)]
Fixed a typo.

2000-02-28  NotZed  <NotZed@HelixCode.com>

        * camel-stream-b64.c (my_read_encode): Fixed a typo.

        * providers/mbox/camel-mbox-search.c: Changed to use e-sexp,
        rather than filter-sexp.

24 years agonon blocking b64 encoding is a PITA
Bertrand Guiheneuf [Mon, 28 Feb 2000 13:36:46 +0000 (13:36 +0000)]
non blocking b64 encoding is a PITA

24 years agochuuuut.
Mathieu Lacage [Fri, 25 Feb 2000 20:08:07 +0000 (20:08 +0000)]
chuuuut.

24 years agolast set of changes for CamelFolder changes. Evolution builds again...
Dan Winship [Fri, 25 Feb 2000 00:03:17 +0000 (00:03 +0000)]
last set of changes for CamelFolder changes. Evolution builds again...

24 years agoupdate for CamelFolder changes
Dan Winship [Thu, 24 Feb 2000 23:46:47 +0000 (23:46 +0000)]
update for CamelFolder changes

24 years agoanother typo
Dan Winship [Thu, 24 Feb 2000 23:46:35 +0000 (23:46 +0000)]
another typo

24 years agoremove some camel_store_get_separators that I missed before
Dan Winship [Thu, 24 Feb 2000 23:40:39 +0000 (23:40 +0000)]
remove some camel_store_get_separators that I missed before

24 years agofix variable name
Dan Winship [Thu, 24 Feb 2000 23:31:34 +0000 (23:31 +0000)]
fix variable name

24 years agoinclude camel-transport
Dan Winship [Thu, 24 Feb 2000 22:10:28 +0000 (22:10 +0000)]
include camel-transport

24 years agoadd camel_session_get_transport_for_protocol
Dan Winship [Thu, 24 Feb 2000 21:19:05 +0000 (21:19 +0000)]
add camel_session_get_transport_for_protocol

24 years agoAdd CamelTransport abstract class and CamelSendmailTransport
Dan Winship [Thu, 24 Feb 2000 21:17:27 +0000 (21:17 +0000)]
Add CamelTransport abstract class and CamelSendmailTransport

24 years agooops. ChangeLog entry for previous
Dan Winship [Thu, 24 Feb 2000 16:43:47 +0000 (16:43 +0000)]
oops. ChangeLog entry for previous

24 years agoMove "separator" from camel-store to camel-folder, since it can vary from
Dan Winship [Thu, 24 Feb 2000 16:43:09 +0000 (16:43 +0000)]
Move "separator" from camel-store to camel-folder, since it can vary from
location to location in an IMAP store. Rename CamelFolder::init_with_store
to init and add parent_folder, name, and separator arguments.

24 years agouse CamelExceptions for run-time errors, not incorrect code. Don't bother
Dan Winship [Thu, 24 Feb 2000 16:25:23 +0000 (16:25 +0000)]
use CamelExceptions for run-time errors, not incorrect code. Don't bother

* camel-folder.c: use CamelExceptions for run-time errors, not
incorrect code. Don't bother validating that an object exists from
inside one of its methods, since you couldn't have gotten there if
it didn't. Fix some code style bugs.

24 years agoFree the data in the headers hash table. (_add_header): g_strdup the
Dan Winship [Wed, 23 Feb 2000 21:04:30 +0000 (21:04 +0000)]
Free the data in the headers hash table. (_add_header): g_strdup the

        * camel-medium.c (_finalize): Free the data in the headers hash
        table.
        (_add_header): g_strdup the header name and value when adding it.

        * camel-mime-part-utils.c
        (camel_mime_part_construct_headers_from_stream): Free the header
        data after calling camel_medium_add_header, since it will have
        g_strdup()ed it itself.

24 years agoFix an exception error message.
Bertrand Guiheneuf [Wed, 23 Feb 2000 17:21:46 +0000 (17:21 +0000)]
Fix an exception error message.

24 years agoDont compile by default.
NotZed [Tue, 22 Feb 2000 20:59:30 +0000 (20:59 +0000)]
Dont compile by default.

2000-02-22  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/camel-mbox-search.c: Dont compile by default.

        * providers/mbox/Makefile.am: Fuck off the filter code.

24 years agodon't read the char if we reached the length of the output buffer. Hours
bertrand [Tue, 22 Feb 2000 13:53:26 +0000 (13:53 +0000)]
don't read the char if we reached the length of the output buffer. Hours

2000-02-22  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel-stream-b64.c (read_decode__static):
don't read the char if we reached the length
of the output buffer. Hours lost on this
%$!@# bug : 3.5

24 years agofix to show a sample correct implementation.
bertrand [Tue, 22 Feb 2000 11:16:35 +0000 (11:16 +0000)]
fix to show a sample correct implementation.

2000-02-22  bertrand  <Bertrand.Guiheneuf@aful.org>

* message-list.c (message_list_set_folder):
fix to show a sample correct implementation.

* camel-folder.c (camel_folder_get_subfolder):
(camel_folder_create):
(camel_folder_delete):
(camel_folder_delete_messages):
(camel_folder_list_subfolders):
(camel_folder_expunge):
(camel_folder_get_message_by_number):
(camel_folder_get_message_count):
(camel_folder_append_message):
(camel_folder_copy_message_to):
(camel_folder_get_summary):
(camel_folder_get_message_uid):
(camel_folder_get_message_by_uid):
(camel_folder_get_uid_list):
Check folder state (open/close) and raise an
exception if it is not ok.

* providers/mbox/camel-mbox-folder.c (_create):
create the file and the path with two different
names.

* camel-folder.c (_create): handle the case
when the folder name starts with '/'

* camel-exception.c (camel_exception_new): use
(void) instead of () in decl.

* camel-exception.h: cosmetic fixes.

* camel-exception.c (camel_exception_init): new routine.
Fix a bug in mail/message-list.c

* camel-folder.h: cosmetic changes.

* camel-stream-b64.c (reset__static): added a
reset method. Thanks message-browser to find
so much bugs :)

* providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): readd
Unicode libs.

Fixes and exception handling in camel-folder.
Fixes in mail/evolution-mail to make it not
segfault and to demonstrate a correct implementation.

24 years agoadded a reset method. Thanks message-browser to find so much bugs :)
bertrand [Tue, 22 Feb 2000 08:13:33 +0000 (08:13 +0000)]
added a reset method. Thanks message-browser to find so much bugs :)

2000-02-22  bertrand  <Bertrand.Guiheneuf@aful.org>

* camel-stream-b64.c (reset__static): added a
reset method. Thanks message-browser to find
so much bugs :)

* providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): readd
Unicode libs.

* shell/Makefile.am (evolution_LDADD):
add libetext.a.

Fixes.

24 years agoA lot of changes in the way the parsing works. I am too lazy
Bertrand Guiheneuf [Tue, 22 Feb 2000 00:10:21 +0000 (00:10 +0000)]
A lot of changes in the way the parsing works. I am too lazy
to find all the changes.
Important notice, I added uggly hacks to camel-formatter.c
and message-browser so that I could test b64 decoding.

Saving streams works. Have to implement qp now.

24 years agoUh, fixed LIBADD again. What was there was never ever going to work,
NotZed [Mon, 21 Feb 2000 23:26:59 +0000 (23:26 +0000)]
Uh, fixed LIBADD again. What was there was never ever going to work,

2000-02-21  NotZed  <NotZed@HelixCode.com>

        * providers/mbox/Makefile.am: Uh, fixed LIBADD again.  What was
        there was never ever going to work, wasn't it tested?

24 years agoAdd "authenticator" to CamelSession and update things to use it.
Dan Winship [Mon, 21 Feb 2000 19:56:48 +0000 (19:56 +0000)]
Add "authenticator" to CamelSession and update things to use it.

24 years agoadd CamelExceptions to several functions. Use camel_session_new to
Dan Winship [Mon, 21 Feb 2000 18:38:58 +0000 (18:38 +0000)]
add CamelExceptions to several functions. Use camel_session_new to

        * camel-session.h:
        * camel-session.c: add CamelExceptions to several functions. Use
        camel_session_new to initialize the session and URL fields of
        created CamelStores as appropriate.

        * camel-store.h:
        * camel-store.c
        * camel-service.h:
        * camel-service.c: Move the session and url (and associated
        functions) from CamelStore to CamelService. Add url_flags to
        CamelService so subclasses can specify which URL components
        are mandatory for them. Add camel_session_new for
        camel_session_get_store* to use.

        * providers/mbox/camel-mbox-folder.c:
        * providers/mbox/camel-mbox-store.c:
        * providers/mbox/camel-mbox-store.h: Update for above changes.

24 years agoOnce camel is being used for real, exceptions won't be renumberable. So
Dan Winship [Mon, 21 Feb 2000 15:24:27 +0000 (15:24 +0000)]
Once camel is being used for real, exceptions won't be renumberable. So

       * camel-exception-list.def: Once camel is being used for real,
       exceptions won't be renumberable. So renumber them now to make
       more room to add exceptions to the various categories later, and
       add a big warning message.