platform/upstream/evolution-data-server.git
23 years agoLots of fixes to get this to compile.
Jeffrey Stedfast [Mon, 14 May 2001 22:38:28 +0000 (22:38 +0000)]
Lots of fixes to get this to compile.

2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

* camel-smime-context.c: Lots of fixes to get this to compile.

23 years agobah, just mod the pgp-context macro for camel_pgp_verify so that we don't have to...
Jeffrey Stedfast [Mon, 14 May 2001 22:27:29 +0000 (22:27 +0000)]
bah, just mod the pgp-context macro for camel_pgp_verify so that we don't have to pass in a useless value.

23 years agoLots of fixes to get this to almost compile. Still struggling with the
Jeffrey Stedfast [Mon, 14 May 2001 22:25:02 +0000 (22:25 +0000)]
Lots of fixes to get this to almost compile. Still struggling with the

2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

* camel-smime-context.c: Lots of fixes to get this to almost
compile. Still struggling with the fact that CERTCertDBHandle is
an "incomplete type". *sigh*.

* camel-smime.c (camel_smime_part_verify): Updated to pass in a
hash argument to camel_smime_verify().

* camel-pgp-mime.c (camel_pgp_mime_part_verify): Update according
to the changes in the context API.

* camel-pgp-context.c (pgp_verify): Updated to take a
CamelCipherHash argument.

* camel-cipher-context.c (camel_cipher_verify): Now takes a hash
argument since the S/MIME code needs this.

23 years agoAdd camel-smime-context.[c,h] and camel-smime.[c,h] to the build.
Jeffrey Stedfast [Mon, 14 May 2001 21:14:34 +0000 (21:14 +0000)]
Add camel-smime-context.[c,h] and camel-smime.[c,h] to the build.

2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

* Makefile.am: Add camel-smime-context.[c,h] and camel-smime.[c,h]
to the build.

* camel-smime.[c,h]: New source files for manipulating S/MIME
message parts.

23 years agoReplicate the semantics of the libunicode utf8 functions by returning NULL
Jon Trowbridge [Mon, 14 May 2001 21:04:34 +0000 (21:04 +0000)]
Replicate the semantics of the libunicode utf8 functions by returning NULL

2001-05-14  Jon Trowbridge  <trow@ximian.com>

        * camel-search-private.c (utf8_get): Replicate the semantics of
        the libunicode utf8 functions by returning NULL in the arg
        on invalid utf8.

        * camel-pgp-context.c (pgp_verify): Check for valid utf8,
        terminate loop if something looks wrong.

        * camel-mime-utils.c (header_encode_phrase_get_words): Properly
        check for invalid utf8.
        (header_encode_string): Properly check for invalid utf8.

        * camel-charset-map.c (camel_charset_step): Properly check for
        invalid utf8.

2001-05-14  Jon Trowbridge  <trow@ximian.com>

        * e-html-utils.c (is_citation): Check for bad utf8.

23 years agoSubclass CamelSession since we can no longer specify the passwd callback
Jeffrey Stedfast [Mon, 14 May 2001 20:08:25 +0000 (20:08 +0000)]
Subclass CamelSession since we can no longer specify the passwd callback

2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

* tests/folder/test9.c:
* tests/folder/test8.c:
* tests/folder/test7.c:
* tests/folder/test6.c:
* tests/folder/test5.c:
* tests/folder/test4.c:
* tests/folder/test3.c:
* tests/folder/test2.c:
* tests/folder/test1.c:
* tests/smime/pgp-mime.c:
* tests/smime/pgp.c: Subclass CamelSession since we can no longer
specify the passwd callback any other way and update code
accordingly.

23 years agoer, OptionSet
Jeffrey Stedfast [Sun, 13 May 2001 01:44:16 +0000 (01:44 +0000)]
er, OptionSet

23 years agos/SSL_Enable/SSL_SetOption
Jeffrey Stedfast [Sun, 13 May 2001 01:42:48 +0000 (01:42 +0000)]
s/SSL_Enable/SSL_SetOption

23 years agoDecode Content-Location, either correctly or Netscape-generated-brokenly.
Dan Winship [Fri, 11 May 2001 20:57:26 +0000 (20:57 +0000)]
Decode Content-Location, either correctly or Netscape-generated-brokenly.

* camel-mime-utils.c (header_location_decode): Decode
Content-Location, either correctly or Netscape-generated-brokenly.

* camel-mime-part.c (camel_mime_part_set_content_location,
camel_mime_part_get_content_location, etc): Deal with
Content-Location header.

23 years agoDon't check the initial auth response until we get into the while-loop
Jeffrey Stedfast [Fri, 11 May 2001 20:34:10 +0000 (20:34 +0000)]
Don't check the initial auth response until we get into the while-loop

2001-05-11  Jeffrey Stedfast  <fejj@ximian.com>

* providers/smtp/camel-smtp-transport.c (smtp_auth): Don't check
the initial auth response until we get into the while-loop
otherwise we have problems if the SASL mechanism supported a
client initiated challenge (like PLAIN and LOGIN do).

23 years agoMake this return CamelStream * (like the other stream new functions)
Dan Winship [Fri, 11 May 2001 17:32:02 +0000 (17:32 +0000)]
Make this return CamelStream * (like the other stream new functions)

* camel-stream-null.c (camel_stream_null_new): Make this return
CamelStream * (like the other stream new functions) instead of
CamelStreamNull *

23 years agocall SSL_Enable after the SSL_ImportFD and before PR_Connect. Otherwise,
Chris Toshok [Thu, 10 May 2001 22:03:08 +0000 (22:03 +0000)]
call SSL_Enable after the SSL_ImportFD and before PR_Connect. Otherwise,

2001-05-10  Chris Toshok  <toshok@ximian.com>

* camel-tcp-stream-ssl.c (stream_connect): call SSL_Enable after
the SSL_ImportFD and before PR_Connect.  Otherwise, NSS aborts
during the connect.

23 years agoDon't abort if the Service is NULL, this is perfectly valid for cipher
Jeffrey Stedfast [Thu, 10 May 2001 20:42:22 +0000 (20:42 +0000)]
Don't abort if the Service is NULL, this is perfectly valid for cipher

2001-05-10  Jeffrey Stedfast  <fejj@ximian.com>

* camel-session.c (camel_session_get_password): Don't abort if the
Service is NULL, this is perfectly valid for cipher contexts.

23 years agoPass appropriate parameters to CF_CLASS and add comment explaining why my
Peter Williams [Thu, 10 May 2001 02:51:20 +0000 (02:51 +0000)]
Pass appropriate parameters to CF_CLASS and add comment explaining why my

2001-05-09  Peter Williams  <peterw@ximian.com>

       * providers/imap/camel-imap-folder.c (imap_move_messages_to): Pass
       appropriate parameters to CF_CLASS and add comment explaining why
       my initial attempt at a solution didn't work.

23 years agoSet the disconnected status. (camel_disco_store_can_work_offline): Return
Dan Winship [Wed, 9 May 2001 21:57:32 +0000 (21:57 +0000)]
Set the disconnected status. (camel_disco_store_can_work_offline): Return

* camel-disco-store.c (camel_disco_set_status): Set the
disconnected status.
(camel_disco_store_can_work_offline): Return whether or not a
given CamelDiscoStore can work offline or not.

* camel-disco-folder.c (camel_disco_folder_cache_message):
Explicitly tell a folder to cache a message. (Better than using
get_message, because for IMAP that doesn't guarantee you'll get
all the message parts.)
(camel_disco_folder_prepare_for_offline): Prepare a folder for
offline use by caching all messages meeting given search criteria
(and doing anything else the particular folder implementation
needs).

* camel-session.c (camel_session_set_online,
camel_session_is_online): A session-wide online/offline toggle.
(camel_session_init): Set online to TRUE.

* providers/imap/camel-imap-store.c (can_work_offline):
Implementation of CamelDiscoStore::can_work_offline. (Checks that
the store has been used online at least once.)
(imap_get_folder_online, imap_get_folder_offline): Deal with
request for "inbox" properly. ("Don't you mean... 'INBOX'?").

* providers/imap/camel-imap-folder.c (imap_cache_message):
Implementation of CamelDiscoFolder::cache_message.

* camel.h: Add camel-disco-store.h and camel-disco-folder.h

23 years agoremove something jeff didn't mean to commit
Dan Winship [Wed, 9 May 2001 21:55:57 +0000 (21:55 +0000)]
remove something jeff didn't mean to commit

23 years agoWrap the content-id with <>'s.
Jeffrey Stedfast [Wed, 9 May 2001 20:17:12 +0000 (20:17 +0000)]
Wrap the content-id with <>'s.

2001-05-09  Jeffrey Stedfast  <fejj@ximian.com>

* camel-mime-part.c (camel_mime_part_set_content_id): Wrap the
content-id with <>'s.

23 years agoAdd support for using OpenSSL.
Jeffrey Stedfast [Mon, 7 May 2001 20:33:25 +0000 (20:33 +0000)]
Add support for using OpenSSL.

2001-05-04  Jeffrey Stedfast  <fejj@ximian.com>

* providers/smtp/camel-smtp-transport.c (connect_to_server): Add
support for using OpenSSL.

* camel-remote-store.c (remote_connect): Add support for using the
OpenSSL implementation.

* camel-tcp-stream-ssl.c (ssl_bad_cert): Hmmmm, don't pass in a
NULL as the last argument to alert_user - prototype doesn't take
that argument anymore?

* camel-tcp-stream-openssl.c (camel_tcp_stream_openssl_finalize):
(ssl_verify): Use a global hash table to try and lookup the
CamelTcpStreamOpenSSL object given the ssl context since OpenSSL
doesn't think one needs to pass data around, we should all be
living in a world of global variables, duh!

23 years agoFix another build problem. (Um, anyone else could have done this...)
Dan Winship [Sun, 6 May 2001 15:33:36 +0000 (15:33 +0000)]
Fix another build problem. (Um, anyone else could have done this...)

* Makefile.am (libcamelinclude_HEADERS): Fix another build
problem. (Um, anyone else could have done this...)

23 years agoFix up refcounting on current_folder.
Dan Winship [Fri, 4 May 2001 15:26:13 +0000 (15:26 +0000)]
Fix up refcounting on current_folder.

* providers/imap/camel-imap-store.c (get_folder_online): Fix up
refcounting on current_folder.

* camel-disco-folder.c, camel-disco-store.h: Remove
CamelDiscoDiary refs that weren't supposed to escape yet.

23 years agonew abstract class for disconnectable remote stores
Dan Winship [Thu, 3 May 2001 20:52:59 +0000 (20:52 +0000)]
new abstract class for disconnectable remote stores

* camel-disco-store.c: new abstract class for disconnectable
remote stores

* camel-disco-folder.c: new abstract class for folders on
disconnectable stores.

* Makefile.am: Add camel-disco-folder.[ch] and
camel-disco-store.[ch].

* providers/imap/camel-imap-store.c: Make this a subclass of
CamelDiscoStore, and fix up the offline interfaces for the changes
since they were first written (particularly the fact that some
IMAP stores don't just use subscribed folders).

* providers/imap/camel-imap-folder.c: Make this a subclass of
CamelDiscoFolder, although most ops still fail in disconnected
mode.

* camel-store.c (camel_store_get_folder_info): Change gboolean,
gboolean, gboolean to guint32 in the prototype for this function.

* providers/local/camel-local-store.c (get_folder_info): Update
for prototype change.

23 years agoClean this up a bit. Add a "tag_prefix" member. Move "useful_lsub" into
Dan Winship [Wed, 2 May 2001 19:53:53 +0000 (19:53 +0000)]
Clean this up a bit. Add a "tag_prefix" member. Move "useful_lsub" into

* providers/imap/camel-imap-store.h: Clean this up a bit. Add a
"tag_prefix" member. Move "useful_lsub" into capabilities.

* providers/imap/camel-imap-store.c (camel_imap_store_init):
Initialize the tag_prefix, based on a static variable.

* providers/imap/camel-imap-command.c (camel_imap_command): Use
the store's tag_prefix character rather than "A" at the start of
the tag. Makes the verbose debug output easier to parse when
connected to multiple IMAP servers. (Well, unless you're connected
to more than 26 servers...)

23 years agoFix this up... it was losing count in some cases and giving a more verbose
Dan Winship [Wed, 2 May 2001 16:50:43 +0000 (16:50 +0000)]
Fix this up... it was losing count in some cases and giving a more verbose

* providers/imap/camel-imap-utils.c (imap_uid_array_to_set): Fix
this up... it was losing count in some cases and giving a more
verbose answer than it needed to.

23 years agoRescue the KPOP code from bit rot.
Dan Winship [Wed, 2 May 2001 13:53:21 +0000 (13:53 +0000)]
Rescue the KPOP code from bit rot.

* providers/pop3/camel-pop3-store.c: Rescue the KPOP code from bit
rot.

23 years agoRemove the last argument from camel_session_alert_user.
Anders Carlsson [Tue, 1 May 2001 19:44:45 +0000 (19:44 +0000)]
Remove the last argument from camel_session_alert_user.

2001-05-01  Anders Carlsson  <andersca@codefactory.se>

* camel-tcp-stream-ssl.c (ssl_bad_cert): Remove the last argument from
camel_session_alert_user.

23 years agoRedo command locking. Since command_lock is recursive, we can just get a
Dan Winship [Tue, 1 May 2001 19:16:14 +0000 (19:16 +0000)]
Redo command locking. Since command_lock is recursive, we can just get a

* providers/imap/camel-imap-command.c (camel_imap_command): Redo
command locking. Since command_lock is recursive, we can just get
a lock here, and release it either on error, or when the caller
frees the response data. (This simplifies a lot of stuff, and
fixes some problems with camel_imap_folder_changed being called
without the command_lock locked because of the 2001-03-22 change.)

(camel_imap_response_free):
(camel_imap_response_free_without_processing):
(camel_imap_response_extract):
(camel_imap_response_extract_continuation): These all take a
CamelImapStore now as well, to deal with locking.

* providers/imap/camel-imap-private.h: Add
CAMEL_IMAP_STORE_ASSERT_LOCKED, which defaults to a noop, but can
be made to call e_mutex_assert_locked.

* providers/imap/camel-imap-folder.c, camel-imap-search.c,
camel-imap-store.c: Simplify using new locking stuff. Add a few
CAMEL_IMAP_STORE_ASSERT_LOCKED checks.

23 years agoremove unused assignment that calls non-existent function.
Dan Winship [Tue, 1 May 2001 15:44:06 +0000 (15:44 +0000)]
remove unused assignment that calls non-existent function.

23 years ago Support the IMAP UIDPLUS extension (RFC 2359), which lets you
Dan Winship [Tue, 1 May 2001 14:51:36 +0000 (14:51 +0000)]
Support the IMAP UIDPLUS extension (RFC 2359), which lets you
resync after disconnected operation more efficiently, but also
makes it possible to do appends and moves/copies more efficiently
now.

* providers/imap/camel-imap-folder.c (imap_append_message): If the
server supports UIDPLUS, grab the APPENDUID response and cache the
message into the folder's message cache.
(imap_copy_messages_to): Likewise, for COPYUID, copy any message
parts we have cached between the source and destination folder
caches.
(imap_get_message): If the entire message is already in the cache,
just return that rather than building it from parts.
(imap_update_summary): Fetch just the "UID FLAGS RFC822.SIZE" of
the new messages first, then only fetch the headers for messages
where we don't already have the headers cached.

* providers/imap/camel-imap-message-cache.c: Add gtk-doc comments.
(cache_put): Fix refcounting stuff here.
(camel_imap_message_cache_insert_stream,
camel_imap_message_cache_insert_wrapper): New.
(camel_imap_message_cache_get): Fix a bug here so the memory
caching actually works.
(camel_imap_message_cache_copy): New routine, used by
imap_copy_messages_to.

* providers/imap/camel-imap-utils.c (imap_uid_set_to_array):
Inverse operation of imap_uid_array_to_set. Used to parse COPYUID
response.

23 years agoNew-and-improved version of get_uid_set() from camel-imap-folder.c. Looks
Dan Winship [Mon, 30 Apr 2001 18:13:45 +0000 (18:13 +0000)]
New-and-improved version of get_uid_set() from camel-imap-folder.c. Looks

* providers/imap/camel-imap-utils.c (imap_uid_array_to_set):
New-and-improved version of get_uid_set() from
camel-imap-folder.c. Looks at the summary as it goes so that if
you ask for messages 5, 6, 8, and 9, and there is no message 7,
then you get "5:9" instead of "5:6,8:9"

* providers/imap/camel-imap-folder.c (imap_copy_messages_to): Use
imap_uid_array_to_set() rather than get_uid_set().
(get_uid_set): Gone

23 years agoRedo this a lot so that instead of having a class full of callbacks, we
Dan Winship [Fri, 27 Apr 2001 21:08:08 +0000 (21:08 +0000)]
Redo this a lot so that instead of having a class full of callbacks, we

* camel-session.c: Redo this a lot so that instead of having a
class full of callbacks, we have a subclassable class. Also,
replace the increasingly horrifying
camel_session_query_authenticator with three new routines,
camel_session_get_password, camel_session_forget_password, and
camel_session_alert_user.

* camel-pgp-context.c:
* camel-pkcs7-context.c:
* camel-smime-context.c:
* providers/imap/camel-imap-store.c:
* providers/pop3/camel-pop3-store.c:
* providers/smtp/camel-smtp-transport.c:
Use camel_session_get_password / camel_session_forget_password.

* camel-tcp-stream-ssl.c (ssl_bad_cert): Use
camel_session_alert_user.

23 years agoAutomagically call camel_shutdown() atexit() ;-) (camel_init): Also
Jeffrey Stedfast [Fri, 27 Apr 2001 00:16:41 +0000 (00:16 +0000)]
Automagically call camel_shutdown() atexit() ;-) (camel_init): Also

2001-04-26  Jeffrey Stedfast  <fejj@ximian.com>

* camel.c (camel_init): Automagically call camel_shutdown()
atexit() ;-)
(camel_init): Also initialize NSS databases as read/write for
S/MIME and if NSS fails to init, try initializing with volatile
databases.

* camel-file-utils.h: #include <sys/types.h> for off_t.

23 years ago#include <sys/types.h> for off_t.
Jeffrey Stedfast [Thu, 26 Apr 2001 20:19:48 +0000 (20:19 +0000)]
#include <sys/types.h> for off_t.

2001-04-26  Jeffrey Stedfast  <fejj@ximian.com>

* camel-file-utils.h: #include <sys/types.h> for off_t.

23 years ago#include "nss.h" rather than <nss.h> due to the non-mozilla nss.h file living in...
Jeffrey Stedfast [Thu, 26 Apr 2001 20:09:28 +0000 (20:09 +0000)]
#include "nss.h" rather than <nss.h> due to the non-mozilla nss.h file living in /usr/include

23 years agoNew file, with the int, string, time_t, and off_t encode/decode routines
Dan Winship [Thu, 26 Apr 2001 19:44:50 +0000 (19:44 +0000)]
New file, with the int, string, time_t, and off_t encode/decode routines

* camel-file-utils.c: New file, with the int, string, time_t, and
off_t encode/decode routines from camel-folder-summary.c moved
here and renamed, for the enjoyment of non-CamelFolderSummary
subclasses.

* Makefile.am (libcamel_la_SOURCES): Add camel-file-utils.c
(libcamelinclude_HEADERS): and camel-file-utils.h

* camel-folder-summary.c: Remove functions that were moved to
camel-file-utils.c, update uses of them for the new names.
(camel_folder_summary_{en,de}code_token are still here.)

* providers/local/camel-mbox-summary.c: Use camel_file_util_*
names

* providers/imap/camel-imap-summary.c: Use camel_file_util_* names

* providers/imap/camel-imap-store.c (imap_store_setup_online,
imap_store_setup_offline): Use camel_file_util_* names, which
makes much more sense since this isn't folder summary stuff.

23 years agoRemove UNICODE_CFLAGS (and some other stuff that's redundant with
Dan Winship [Thu, 26 Apr 2001 18:21:32 +0000 (18:21 +0000)]
Remove UNICODE_CFLAGS (and some other stuff that's redundant with

* Makefile.am (INCLUDES): Remove UNICODE_CFLAGS (and some other
stuff that's redundant with EXTRA_GNOME_CFLAGS)
(libcamel_la_LIBADD): Replace UNICODE_LIBS with GAL_LIBS.

* camel-search-private.c:
* camel-pgp-context.c:
* camel-mime-utils.c: Use gunicode interfaces rather than
libunicode.

* camel-charset-map.c: Use gunicode rather than libunicode. (The
charmap-regen code still depends on libunicode though.)

* camel-mime-filter-charset.h:
* tests/message/test2.c (convert): Use iconv rather than
unicode_iconv.

* providers/smtp/Makefile.am (libcamelsmtp_la_LIBADD):
* providers/pop3/Makefile.am (libcamelpop3_la_LIBADD):
* providers/local/Makefile.am (libcamellocal_la_LIBADD): Remove
UNICODE_LIBS.

* camel.c (camel_init): Remove call to unicode_init.

* camel-mime-parser.c: Remove unused unicode.h include.

23 years agoUse e_gethostbyname_r. (camel_service_gethost): Remove unused var.
Dan Winship [Thu, 26 Apr 2001 16:48:35 +0000 (16:48 +0000)]
Use e_gethostbyname_r. (camel_service_gethost): Remove unused var.

* camel-service.c (get_host): Use e_gethostbyname_r.
(camel_service_gethost): Remove unused var.

23 years agoApplied jacob's patches for e-poolv stuff.
Not Zed [Thu, 26 Apr 2001 01:09:05 +0000 (01:09 +0000)]
Applied jacob's patches for e-poolv stuff.

2001-04-26  Not Zed  <NotZed@Ximian.com>

        * Applied jacob's patches for e-poolv stuff.

23 years agoAdd camel-vee-folder.h and camel-digest-folder.h
Jeffrey Stedfast [Tue, 24 Apr 2001 00:03:29 +0000 (00:03 +0000)]
Add camel-vee-folder.h and camel-digest-folder.h

2001-04-23  Jeffrey Stedfast  <fejj@ximian.com>

* camel.h: Add camel-vee-folder.h and camel-digest-folder.h

* camel-digest-folder.[c,h]: New class that can be used to browse
a multipart/digest message as if it were a CamelFolder.

23 years agoNew class that can be used to browse a multipart/digest message as if it
Jeffrey Stedfast [Tue, 24 Apr 2001 00:01:51 +0000 (00:01 +0000)]
New class that can be used to browse a multipart/digest message as if it

2001-04-23  Jeffrey Stedfast  <fejj@ximian.com>

* camel-digest-folder.[c,h]: New class that can be used to browse
a multipart/digest message as if it were a CamelFolder.

23 years agoOops, don't use the return value of iconv() as a string length, it only
Jeffrey Stedfast [Mon, 23 Apr 2001 00:20:19 +0000 (00:20 +0000)]
Oops, don't use the return value of iconv() as a string length, it only

2001-04-22  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-context.c (pgp_verify): Oops, don't use the return
value of iconv() as a string length, it only tells us the number
of non-reversable character conversions. This fixes it so we
actually see the gpg output in the message viewer.

23 years agoChanged GTK_INCLUDEDIR to EXTRA_GNOME_CFLAGS.
Mikael Hallendal [Mon, 23 Apr 2001 00:16:10 +0000 (00:16 +0000)]
Changed GTK_INCLUDEDIR to EXTRA_GNOME_CFLAGS.

2001-04-23  Mikael Hallendal  <micke@codefactory.se>

* providers/nntp/Makefile.am (INCLUDES):
Changed GTK_INCLUDEDIR to EXTRA_GNOME_CFLAGS.

23 years agoImplemented using the secmime.h convenience functions. (smime_clearsign):
Jeffrey Stedfast [Fri, 20 Apr 2001 21:21:34 +0000 (21:21 +0000)]
Implemented using the secmime.h convenience functions. (smime_clearsign):

2001-04-20  Jeffrey Stedfast  <fejj@ximian.com>

* camel-smime-context.c (smime_sign): Implemented using the
secmime.h convenience functions.
(smime_clearsign): We just error our here, there is no clearsign
for smime.
(smime_verify): Copied code over from the pkcs7 verify - same
state, ugly and unknown :-)
(smime_encrypt): Implemented using the secmime.h convenience
functions.
(smime_decrypt): Same as the code in pkcs7-context.

23 years agoImplemented. (pkcs7_clearsign): Implemented. (get_zero_len_passwd):
Jeffrey Stedfast [Thu, 19 Apr 2001 23:15:51 +0000 (23:15 +0000)]
Implemented. (pkcs7_clearsign): Implemented. (get_zero_len_passwd):

2001-04-19  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pkcs7-context.c (pkcs7_sign): Implemented.
(pkcs7_clearsign): Implemented.
(get_zero_len_passwd): Convenience function to try a 0-length key
on the certificate db - if this works then there is no need to
prompt the user.
(get_password): Callback to get the password.
(camel_cipher_hash_to_nss): Convenience function to convert a
CamelCipherHash to an NSS HASH_HashType.
(nss_hash_to_sec_oid): Converts a HASH_HashType to a SecOidTag.
(pkcs7_digest): Digest function for use with pkcs7_sign().
(sign_encode_cb): Callback to write the signed data to the output
stream.
(pkcs7_verify): Hacked on a bit more but am still a bit on the
confused side. This might work but I wouldn't hold my breath. The
sign/clearsign should be close if not correct, but this one...god
only knows.
(pkcs7_decrypt): Implemented.
(pkcs7_encrypt): Implemented (mostly, still need to handle when
'sign' is TRUE).

23 years agoImplemented. (pkcs7_clearsign): Implemented. (get_zero_len_passwd):
Jeffrey Stedfast [Thu, 19 Apr 2001 19:38:40 +0000 (19:38 +0000)]
Implemented. (pkcs7_clearsign): Implemented. (get_zero_len_passwd):

2001-04-19  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pkcs7-context.c (pkcs7_sign): Implemented.
(pkcs7_clearsign): Implemented.
(get_zero_len_passwd): Convenience function to try a 0-length key
on the certificate db - if this works then there is no need to
prompt the user.
(get_password): Callback to get the password.
(camel_cipher_hash_to_nss): Convenience function to convert a
CamelCipherHash to an NSS HASH_HashType.
(nss_hash_to_sec_oid): Converts a HASH_HashType to a SecOidTag.
(pkcs7_digest): Digest function for use with pkcs7_sign().
(sign_encode_cb): Callback to write the signed data to the output
stream.
(pkcs7_verify): Hacked on a bit more but am still a bit on the
confused side. This might work but I wouldn't hold my breath. The
sign/clearsign should be close if not correct, but this one...god
only knows.

23 years agomissed this with the last commit (pop3 and imap memory leaks)
Dan Winship [Wed, 18 Apr 2001 19:05:24 +0000 (19:05 +0000)]
missed this with the last commit (pop3 and imap memory leaks)

23 years agoFree base_url and storage_path.
Dan Winship [Wed, 18 Apr 2001 17:59:56 +0000 (17:59 +0000)]
Free base_url and storage_path.

        * providers/imap/camel-imap-store.c (camel_imap_store_finalize):
        Free base_url and storage_path.

        * providers/pop3/camel-pop3-store.c (finalize): Free the
        implementation string.
        (camel_pop3_command): Clarify documentation to mention that
        @ex isn't set (and *@ret is) on CAMEL_POP3_ERR.
        (connect_to_server): Set @ex properly on CAMEL_POP3_ERR.

        * providers/pop3/camel-pop3-folder.c (pop3_refresh_info,
        pop3_get_message): Set @ex properly on CAMEL_POP3_ERR.

23 years agoNew source files to handle Pkcs7 encryption, decryption, signing, and
Jeffrey Stedfast [Tue, 17 Apr 2001 22:18:25 +0000 (22:18 +0000)]
New source files to handle Pkcs7 encryption, decryption, signing, and

2001-04-17  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pkcs7-context.[c,h]: New source files to handle Pkcs7
encryption, decryption, signing, and verifying. Not yet
complete. I'm sensing this is going to take a while seeing as how
NSS is just so well documented.

23 years agomore memory leaks
Dan Winship [Tue, 17 Apr 2001 20:29:40 +0000 (20:29 +0000)]
more memory leaks

23 years agodon't use g_return's
Jeffrey Stedfast [Tue, 17 Apr 2001 02:08:30 +0000 (02:08 +0000)]
don't use g_return's

23 years agoDon't we want to tell where we are by using the start of the message? I
Jeffrey Stedfast [Mon, 16 Apr 2001 23:02:05 +0000 (23:02 +0000)]
Don't we want to tell where we are by using the start of the message? I

2001-04-16  Jeffrey Stedfast  <fejj@ximian.com>

* providers/local/camel-mbox-summary.c (summary_rebuild): Don't we
want to tell where we are by using the start of the message? I
think this should be using camel_mime_parser_tell_start_from()
instead. Also divide by the size *before* multiplying by 100 so
that we don't overflow the int which was giving us negative values
for our progress status (oops).

23 years agoAdded a prototype for stamp().
Jeffrey Stedfast [Mon, 16 Apr 2001 19:16:53 +0000 (19:16 +0000)]
Added a prototype for stamp().

2001-04-16  Jeffrey Stedfast  <fejj@ximian.com>

* camel-operation.c: Added a prototype for stamp().

* camel-charset-map.c (camel_charset_locale_name): #include
string.h so we don't get a warning about strchr being undefined
and also init charset to NULL.

* camel-pgp-context.c (pgp_verify): Go back to doing the utf8
conversion by hand so that we don't depend on gal.

23 years agoGo back to doing the utf8 conversion by hand so that we don't depend on
Jeffrey Stedfast [Mon, 16 Apr 2001 19:01:46 +0000 (19:01 +0000)]
Go back to doing the utf8 conversion by hand so that we don't depend on

2001-04-16  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-context.c (pgp_verify): Go back to doing the utf8
conversion by hand so that we don't depend on gal.

23 years agooops, forgot to commit this with the last files
Jeffrey Stedfast [Mon, 16 Apr 2001 17:10:03 +0000 (17:10 +0000)]
oops, forgot to commit this with the last files

23 years agoRemove the EXTRA_GNOME_CFLAGS include.
Jeffrey Stedfast [Mon, 16 Apr 2001 17:09:38 +0000 (17:09 +0000)]
Remove the EXTRA_GNOME_CFLAGS include.

2001-04-16  Jeffrey Stedfast  <fejj@ximian.com>

* Makefile.am: Remove the EXTRA_GNOME_CFLAGS include.

* camel-store.c (camel_mkdir_hier): Convenience function that it
seems a number of camel-store implementations used gal for.

* providers/nntp/camel-nntp-store.c (ensure_news_dir_exists): Lets
not depend on gal for just e_mkdir_hier() - use camel_mkdir_hier()
instead.

* providers/nntp/camel-imap-store.c: Lets not depend on gal for
just e_mkdir_hier() - use camel_mkdir_hier() instead.

* camel-session.c (camel_session_get_storage_path): Don't depend
on e_mkdir_heir() anymore, use the CamelStore version.

* camel-folder-search.h: Removed gal dependency, why was this even
there in the first place?

* providers/imap/camel-imap-folder.c: Don't need gal/util/e-util.h
here, so remove it.

* string-utils.c (strstrcase): New function, well more like old
function brought back to life so we don't have to depend on gal.

* providers/imap/camel-imap-store.c (imap_store_setup_online): Use
strstrcase rather than e_strstrcase so we don't depend on gal.
(get_unread_online): Same here.

* providers/smtp/camel-smtp-transport.c (smtp_helo): Use
strstrcase.

23 years agoeh?
Jeffrey Stedfast [Mon, 16 Apr 2001 16:05:33 +0000 (16:05 +0000)]
eh?

23 years agooops, &pattern
Jeffrey Stedfast [Sun, 15 Apr 2001 21:54:12 +0000 (21:54 +0000)]
oops, &pattern

23 years agoregex doesn't set errno and regcomp returns 0 on success and any other
Jeffrey Stedfast [Sun, 15 Apr 2001 21:39:37 +0000 (21:39 +0000)]
regex doesn't set errno and regcomp returns 0 on success and any other

2001-04-15  Jeffrey Stedfast  <fejj@ximian.com>

* camel-mime-utils.c (header_raw_check_mailing_list): regex
doesn't set errno and regcomp returns 0 on success and any other
value for an error (so don't *just* check for -1).

23 years agoCheck to make sure the context is a valid context in all the user
Jeffrey Stedfast [Sat, 14 Apr 2001 21:20:44 +0000 (21:20 +0000)]
Check to make sure the context is a valid context in all the user

2001-04-14  Jeffrey Stedfast  <fejj@ximian.com>

* camel-cipher-context.c: Check to make sure the context is a
valid context in all the user functions.

23 years agos/imap_store/store/, fixing a typo that was causing the build to fail.
Jon Trowbridge [Fri, 13 Apr 2001 22:21:47 +0000 (22:21 +0000)]
s/imap_store/store/, fixing a typo that was causing the build to fail.

2001-04-13  Jon Trowbridge  <trow@ximian.com>

        * providers/imap/camel-imap-store.c (imap_disconnect):
        s/imap_store/store/, fixing a typo that was causing the build to
        fail.

23 years agoMake the (previously unused) get-source command actually do the right
Jon Trowbridge [Fri, 13 Apr 2001 22:07:59 +0000 (22:07 +0000)]
Make the (previously unused) get-source command actually do the right

2001-04-13  Jon Trowbridge  <trow@gnu.org>

* camel-filter-search.c (get_source): Make the (previously unused)
get-source command actually do the right thing, properly shrouding
any passed-in source and falling back to use the source attached
to the mime message.

2001-04-13  Jon Trowbridge  <trow@gnu.org>

* filtertypes.xml: Add XML specs for source account filtering.

* filter-element.c (filter_element_new_type_name): Recognize
type "source", construct a FilterSource.

* filter-source.c: Added.  A FilterElement for the account e-mail
comes from.

23 years agoPlug leaks.
Dan Winship [Fri, 13 Apr 2001 21:36:09 +0000 (21:36 +0000)]
Plug leaks.

        * camel-object.c (camel_object_hook_event):
        * camel-uid-cache.c (camel_uid_cache_get_new_uids):
        * camel-url.c (camel_url_new_with_base): Plug leaks.

        * camel-remote-store.c (camel_remote_store_init): Don't
        re-initialize the folders hash table.

        * providers/imap/camel-imap-store.c (imap_disconnect): Free
        authtypes since they'll be re-read on re-connect.
        (get_folder_info): Free folderinfos that we're discarding from the
        list.

23 years agoOops, lets not get into a recursive call here ;-)
Jeffrey Stedfast [Thu, 12 Apr 2001 22:03:23 +0000 (22:03 +0000)]
Oops, lets not get into a recursive call here ;-)

2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-context.c (camel_pgp_context_get_type): Oops, lets not
get into a recursive call here ;-)

* tests/smime/pgp.c: Updated to reflect changes to the PGP code.

* tests/smime/pgp-mime.c: Same.

23 years agoUpdated to reflect the few changes made to the CamelPgpContext class.
Jeffrey Stedfast [Thu, 12 Apr 2001 21:18:40 +0000 (21:18 +0000)]
Updated to reflect the few changes made to the CamelPgpContext class.

2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-mime.c: Updated to reflect the few changes made to the
CamelPgpContext class.

* camel-pgp-context.c: Updated to subclass of CamelCipherContext.

* camel-cipher-context.[c,h]: New base class for
CamelPgpContext. Also contains the replacement for
CamelPgpValidity, CamelCipherValidity.

23 years agoFix a pair of array bounds reads noted by purify
Dan Winship [Thu, 12 Apr 2001 19:37:08 +0000 (19:37 +0000)]
Fix a pair of array bounds reads noted by purify

* camel-mime-filter-crlf.c (filter): Fix a pair of array bounds
reads noted by purify

23 years agooh, and the tcp-stream headers.
Jeffrey Stedfast [Thu, 12 Apr 2001 18:48:00 +0000 (18:48 +0000)]
oh, and the tcp-stream headers.

23 years ago#include the pgp stuff.
Jeffrey Stedfast [Thu, 12 Apr 2001 18:46:54 +0000 (18:46 +0000)]
#include the pgp stuff.

2001-04-12  Jeffrey Stedfast  <fejj@ximian.com>

* camel.h: #include the pgp stuff.

23 years agoPlug memory leaks.
Dan Winship [Thu, 12 Apr 2001 17:22:54 +0000 (17:22 +0000)]
Plug memory leaks.

* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_remove):
* camel-url.c (camel_url_to_string): Plug memory leaks.

23 years agos/IMAP/SMTP
Jeffrey Stedfast [Thu, 12 Apr 2001 15:40:05 +0000 (15:40 +0000)]
s/IMAP/SMTP

23 years agoSimplify peterw's imap_is_atom_char fix.
Dan Winship [Wed, 11 Apr 2001 21:39:37 +0000 (21:39 +0000)]
Simplify peterw's imap_is_atom_char fix.

* providers/imap/camel-imap-utils.c (imap_parse_string_generic):
Simplify peterw's imap_is_atom_char fix.

23 years agoAdded pgp-mime.c to the tests.
Jeffrey Stedfast [Wed, 11 Apr 2001 20:10:24 +0000 (20:10 +0000)]
Added pgp-mime.c to the tests.

2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

* tests/smime/Makefile.am: Added pgp-mime.c to the tests.

* tests/smime/pgp-mime.c: Test suite for camel-pgp-mime.c functions.

* Makefile.am: Add camel-pgp-mime.[c,h] to the build.

* camel-pgp-mime.c: Made a number of fixes to get it to compile
and also fixed a few logic errors (mostly forgetting to reset
streams) so that it worked (thanks to the pgp-mime test program).

23 years agoCheck if gethostbyname_r take five params
JP Rosevear [Wed, 11 Apr 2001 16:10:30 +0000 (16:10 +0000)]
Check if gethostbyname_r take five params

2001-04-11  JP Rosevear  <jpr@ximian.com>

* configure.in: Check if gethostbyname_r take five params

* acconfig.h: add GETHOSTBYNAME_R_FIVE_ARGS

2001-04-11  JP Rosevear  <jpr@ximian.com>

* providers/imap/Makefile.am: user GNOME_INCLUDEDIR since gnome
files are included in the top level camel headers and the gtk
include dir is now versioned and such

* providers/local/Makefile.am: ditto

* providers/pop3/Makefile.am: ditto

* providers/smtp/Makefile.am: ditto

* providers/sendmail/Makefile.am: ditto

* camel-service.c: use five arg version of gethostbyname_r if
appropriate
(camel_get_host_byname): check if msg->herr is non-zero instead of
checking if msg->hp is null since we may not always have msg->hp

23 years agoadd camel-charset-map.h to the list of includes
Jeffrey Stedfast [Wed, 11 Apr 2001 15:50:04 +0000 (15:50 +0000)]
add camel-charset-map.h to the list of includes

23 years agoUse camel_charset_locale_name() to get the locale charset rather than
Jeffrey Stedfast [Wed, 11 Apr 2001 15:45:35 +0000 (15:45 +0000)]
Use camel_charset_locale_name() to get the locale charset rather than

2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

* camel-sasl-digest-md5.c (digest_response): Use
camel_charset_locale_name() to get the locale charset rather than
checking the CHARSET environment variable. This is a much less
ugly hack. Also: If we fail to be able to convert to UTF8, then
disavow all knowledge of the charset parameter.

* camel-charset-map.c (camel_charset_locale_name): New function to
return the locale charset (or NULL if US-ASCII).

23 years agoUse e_utf8_from_locale_string() rather than trying to do it manually since
Jeffrey Stedfast [Wed, 11 Apr 2001 14:02:14 +0000 (14:02 +0000)]
Use e_utf8_from_locale_string() rather than trying to do it manually since

2001-04-11  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-context.c (camel_pgp_verify): Use
e_utf8_from_locale_string() rather than trying to do it manually
since Lauris's version works much better.

23 years agoAdded camel-pgp-context.[c,h] to the build. Also added tests/smime/pgp.c
Jeffrey Stedfast [Tue, 10 Apr 2001 15:47:00 +0000 (15:47 +0000)]
Added camel-pgp-context.[c,h] to the build. Also added tests/smime/pgp.c

2001-04-06  Jeffrey Stedfast  <fejj@ximian.com>

* Makefile.am: Added camel-pgp-context.[c,h] to the build. Also
added tests/smime/pgp.c and Makefile.am

* tests/smime/pgp.c: New test suite for PGP functions.

* camel-pgp-context.c: Various fixes to get it to build.

23 years agoIt would be a good idea to recognize '\0'. Before, this code was running
Peter Williams [Sun, 8 Apr 2001 00:38:00 +0000 (00:38 +0000)]
It would be a good idea to recognize '\0'. Before, this code was running

001-04-07  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-utils.c (imap_parse_string_generic): It
would be a good idea to recognize '\0'. Before, this code was running
off the ends of strings and intermittently coredumping (if it didn't
hit an imap_atom_char first) -- whoops!

23 years agomerge from evolution-0-10-branch to evolution-0-10-merge-0
Not Zed [Thu, 5 Apr 2001 02:31:47 +0000 (02:31 +0000)]
merge from evolution-0-10-branch to evolution-0-10-merge-0

2001-04-05  Not Zed  <NotZed@Ximian.com>

        * merge from evolution-0-10-branch to evolution-0-10-merge-0

23 years agoAdded tests/ back in
Jeffrey Stedfast [Wed, 4 Apr 2001 02:00:25 +0000 (02:00 +0000)]
Added tests/ back in

2001-04-03  Jeffrey Stedfast  <fejj@ximian.com>

* Makefile.am: Added tests/ back in

* camel-mime-utils.c (header_decode_text): Ignore whitespace
between encoded words (there were a few cases where it didn't
before).
(header_encode_string): Preserve whitespace between words that are
to be encoded by encoding them too.
(header_encode_phrase): Same here but with phrases.

23 years ago (imap_update_summary): When reading message flags, set the
Dan Winship [Tue, 3 Apr 2001 22:03:18 +0000 (22:03 +0000)]
(imap_update_summary): When reading message flags, set the
server_flags field as well, and don't overwrite any flags set by
camel_folder_summary_info_new_from_message. Might help with some
of the flag problems...

23 years ago (imap_get_message): If the server_level < IMAP4rev1, always fetch
Dan Winship [Tue, 3 Apr 2001 21:46:32 +0000 (21:46 +0000)]
(imap_get_message): If the server_level < IMAP4rev1, always fetch
messages all-at-once, since they don't support the [#.MIME]
syntax.

23 years agoIf we don't change any flags or expunge, send a NOOP to give the server a
Dan Winship [Tue, 3 Apr 2001 21:32:52 +0000 (21:32 +0000)]
If we don't change any flags or expunge, send a NOOP to give the server a

* providers/imap/camel-imap-folder.c (imap_sync): If we don't
change any flags or expunge, send a NOOP to give the server a
chance to send EXISTS, etc, messages.

23 years agoRemove the "quick_login" member, which is unnecessary.
Dan Winship [Mon, 2 Apr 2001 20:57:39 +0000 (20:57 +0000)]
Remove the "quick_login" member, which is unnecessary.

* camel-service.h: Remove the "quick_login" member, which is
unnecessary.

* providers/smtp/camel-smtp-transport.c (smtp_auth): Remove the
references to quick_login and fix this to use the CamelSasl
interfaces correctly to do the same thing.
(connect_to_server): Split this out of smtp_connect
(smtp_connect): Use connect_to_server. When re-EHLO'ing after
auth, ignore errors.
(query_auth_types): Use connect_to_server rather than
smtp_connect, so it doesn't try to authenticate. Add LOGIN
authtype to the list of authtypes to check for.

* providers/smtp/camel-smtp-provider.c
(camel_provider_module_init): Add LOGIN authtype to the authtypes
list explicitly.

* camel-sasl.c (camel_sasl_authtype_list): Don't list LOGIN here:
it's not a real SASL authtype and is only used for SMTP.

* camel-sasl-plain.c:
* camel-sasl-login.c:
* camel-sasl-kerberos4.c:
* camel-sasl-cram-md5.c:
* camel-sasl-anonymous.c:
* providers/pop3/camel-pop3-provider.c: Remove "quick_login"
argument from authtypes.

23 years agomarked report status strings for tanslation, fixes #1973
Gediminas Paulauskas [Mon, 2 Apr 2001 20:29:42 +0000 (20:29 +0000)]
marked report status strings for tanslation, fixes #1973

23 years agomutex lock & unlock the context. (camel_pgp_clearsign): Same.
Jeffrey Stedfast [Mon, 2 Apr 2001 07:24:37 +0000 (07:24 +0000)]
mutex lock & unlock the context. (camel_pgp_clearsign): Same.

2001-04-02  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-context.c (camel_pgp_sign): mutex lock & unlock the context.
(camel_pgp_clearsign): Same.
(camel_pgp_verify): Same.
(camel_pgp_encrypt): Same.
(camel_pgp_decrypt): And finally here...

23 years agoUpdate the function prototypes to match those found in
Jeffrey Stedfast [Mon, 2 Apr 2001 07:10:28 +0000 (07:10 +0000)]
Update the function prototypes to match those found in

2001-04-02  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-context.h: Update the function prototypes to match
those found in camel-pgp-context.c.

* camel-pgp-context.c: Updated.

* camel-pgp-mime.c (camel_pgp_mime_part_sign): Implemented.
(camel_pgp_mime_part_verify): Implemented.
(camel_pgp_mime_part_encrypt): Implemented.
(camel_pgp_mime_part_decrypt): Implemented.

23 years agoNew files to handle the LOGIN SASL mechanism.
Jeffrey Stedfast [Sun, 1 Apr 2001 22:54:44 +0000 (22:54 +0000)]
New files to handle the LOGIN SASL mechanism.

2001-04-01  Jeffrey Stedfast  <fejj@ximian.com>

* camel-sasl-login.[c,h]: New files to handle the LOGIN SASL
mechanism.

* camel-sasl-plain.c: Removed the definition of
camel_sasl_login_authtype.

* camel-sasl.c (camel_sasl_new): Oops. I thought LOGIN was an
alias to PLAIN. I was wrong. These two SASL objects have to be
separate.

* providers/smtp/camel-smtp-transport.c (smtp_auth): Updated to
check for and use authmech->quick_login when available.

23 years agoUpdated the authtypes here too.
Jeffrey Stedfast [Sun, 1 Apr 2001 22:16:32 +0000 (22:16 +0000)]
Updated the authtypes here too.

2001-04-01  Jeffrey Stedfast  <fejj@ximian.com>

* providers/pop3/camel-pop3-provider.c: Updated the authtypes here
too.

23 years agoUpdated the authtype values.
Jeffrey Stedfast [Sun, 1 Apr 2001 22:10:55 +0000 (22:10 +0000)]
Updated the authtype values.

2001-04-01  Jeffrey Stedfast  <fejj@ximian.com>

* camel-sasl-plain.c:
* camel-sasl-anonymous.c:
* camel-sasl-digest-md5.c:
* camel-sasl-cram-md5.c:
* camel-sasl-kerberos4.c: Updated the authtype values.

* camel-service.h: Added another field to CamelServiceAuthType
that specifies whether or not the mechanism supports "quick auth"
which means that the client can send the initial challenge in the
AUTH request.

* camel-sasl.c (camel_sasl_new): Add support for LOGIN.
(camel_sasl_authtype_list): Here too.
(camel_sasl_authtype): And finally here.

* camel-sasl-plain.c: Define camel_sasl_login_authtype.

* providers/smtp/camel-smtp-transport.c (smtp_auth): Only unref
the SASL object if it exists.

23 years agoMove things around here to make this all work right again (so you don't
Dan Winship [Fri, 30 Mar 2001 22:50:48 +0000 (22:50 +0000)]
Move things around here to make this all work right again (so you don't

* providers/pop3/camel-pop3-store.c (connect_to_server,
query_auth_types, pop3_connect): Move things around here to make
this all work right again (so you don't get prompted for a
password when checking the supported authtypes.)

23 years agoAdd support for converting e-mail addresses to links. (is_email_address):
Jon Trowbridge [Fri, 30 Mar 2001 18:05:45 +0000 (18:05 +0000)]
Add support for converting e-mail addresses to links. (is_email_address):

2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * e-html-utils.c (e_text_to_html_full): Add support for converting
        e-mail addresses to links.
        (is_email_address): Added.  Identifies e-mail addresses.
        (email_address_extract): Added.  Extracts a copy of the e-mail
        address from the text.

        * e-html-utils.h (E_TEXT_TO_HTML_CONVERT_ADDRESSES): Added.

        * e-url.c (e_url_shroud): Added.  Copy a url, replacing
        any plaintext passwords with a single *.
        (e_url_equal): Compare two urls, taking into account that
        they may or may not be shrouded.

2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * camel-mime-message.c (camel_mime_message_set_source): Shrould
        our source URL before putting it into X-Evolution-Source.

2001-03-30  Jon Trowbridge  <trow@ximian.com>

        * mail-display.c (mail_text_write): Add (commented-out)
        E_TEXT_TO_HTML_CONVERT_ADDRESSES.

        * mail-config.c (mail_config_get_account_by_source_url):
        Call e_url_equal to compare URLs.

23 years agoremoved a g_warning for debugging
Jeffrey Stedfast [Fri, 30 Mar 2001 02:28:27 +0000 (02:28 +0000)]
removed a g_warning for debugging

23 years agoDon't blindly append "/INBOX", construct a CamelURL and set the path that
Jeffrey Stedfast [Fri, 30 Mar 2001 02:25:38 +0000 (02:25 +0000)]
Don't blindly append "/INBOX", construct a CamelURL and set the path that

2001-03-29  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-store.c (get_folder_info): Don't
blindly append "/INBOX", construct a CamelURL and set the path
that way.
(parse_list_response_as_folder_info): Don't blindly append
"/<foldername>", construct a CamelURL and set the path that way
instead.
(get_folders_offline): And again here.

23 years agoDont overwrite an exception if we got one already. Added camel_operation
Not Zed [Fri, 30 Mar 2001 01:08:28 +0000 (01:08 +0000)]
Dont overwrite an exception if we got one already. Added camel_operation

2001-03-30  Not Zed  <NotZed@Ximian.com>

        * camel-service.c (camel_get_host_byname): Dont overwrite an
        exception if we got one already.  Added camel_operation status to
        it, and comment out some debug.

23 years agoNot quite finished but checking in for some local frobbing.
Not Zed [Fri, 30 Mar 2001 00:31:20 +0000 (00:31 +0000)]
Not quite finished but checking in for some local frobbing.

2001-03-29  Not Zed  <NotZed@Ximian.com>

        * providers/smtp/camel-smtp-transport.c (smtp_connect): Free host
        name info when done ... blah blah.

        * camel-sasl-kerberos4.c (krb4_challenge): Free host name info
        after we're done with it.

        * camel-sasl-digest-md5.c (digest_md5_challenge): Free host name
        info after we're done with it.

        * camel-remote-store.c (remote_connect): Free the host name info
        from get_host after we're finished with it.

        * camel-service.c (camel_get_host_byname): New function to
        lookup a name, and still be cancellable.
        (camel_free_host): And a function to free the structure
        returned.
        (camel_service_gethost): Call get_host_byname for this.

23 years agoAdded #include <libgnome/gnome-paper.h>
Jon Trowbridge [Thu, 29 Mar 2001 23:46:53 +0000 (23:46 +0000)]
Added #include <libgnome/gnome-paper.h>

2001-03-29  Jon Trowbridge  <trow@ximian.com>

        * printing/e-contact-print.c: Added #include <libgnome/gnome-paper.h>

        * printing/e-contact-print-envelope.c: Added #include <time.h>
        and #include <libgnome/gnome-paper.h>

        * gui/component/select-names/e-select-names-completion.c
        (match_email): Better handle matching of "nameless" contacts.

        * backend/ebook/e-destination.c (e_destination_get_string): Better
        handle the case of a "nameless" contact.

2001-03-29  Jon Trowbridge  <trow@ximian.com>

* camel-filter-driver.c (camel_filter_driver_filter_message): Save
        the source URL using camel_mime_message_set_source.

        * camel-mime-message.c (camel_mime_message_set_source): Renamed
        camel_mime_message_set_identity to this.  Sets the X-Evolution-Source
        header.
        (camel_mime_message_get_source): Returns the X-Evolution-Source
        header.

2001-03-29  Jon Trowbridge  <trow@ximian.com>

        * mail-callbacks.c: Added #include <time.h> to get things
        to compile.

        * mail-callbacks.c (mail_generate_reply): Look at the
        X-Evolution-Source header, and try to find a corresponding
        account.  If this works, send the mail from this account.
        If not, use the default account.

        * mail-ops.c (send_queue_send): Strip out the X-Evolution-Source
        header before sending.

        * mail-config.c (mail_config_get_account_by_source_url): Added.
        Look up accounts by source URL.

23 years agoBig header cleanups and nntp compile fix
Kjartan Maraas [Thu, 29 Mar 2001 20:31:40 +0000 (20:31 +0000)]
Big header cleanups and nntp compile fix

23 years agochange "gboolean show_passwd" to "guint32 flags".
Dan Winship [Thu, 29 Mar 2001 17:34:00 +0000 (17:34 +0000)]
change "gboolean show_passwd" to "guint32 flags".

* camel-url.c (camel_url_to_string): change "gboolean show_passwd"
to "guint32 flags".

* tests/misc/url.c (main): Update calls to camel_url_to_string

* providers/imap/camel-imap-store.c (construct): Call
camel_url_to_string with flags to hide password, authtype, and
params to create the base_url.
(etc): Update for the fact that the base_url no longer has the "/"
at the end.

* camel-service.c (construct): Update calls to camel_url_to_string
(pass CAMEL_URL_HIDE_PASSWORD)

23 years agoNew class for PGP encrypting, decrypting, signing and verifying. Next I'll
Jeffrey Stedfast [Thu, 29 Mar 2001 04:53:26 +0000 (04:53 +0000)]
New class for PGP encrypting, decrypting, signing and verifying. Next I'll

2001-03-28  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-context.[c,h]: New class for PGP encrypting,
decrypting, signing and verifying. Next I'll be moving the
contents of mail/mail-crypto into Camel. These files will
basically replace mail/openpgp-utils.[c,h].

23 years agoOptimise the match "" case, just match everything in the folder (if we
Not Zed [Thu, 29 Mar 2001 04:04:09 +0000 (04:04 +0000)]
Optimise the match "" case, just match everything in the folder (if we

2001-03-29  Not Zed  <NotZed@Ximian.com>

        * camel-folder-search.c (search_body_contains): Optimise the match
        "" case, just match everything in the folder (if we have it).

23 years ago (vee_expunge): Oops, call the class sync, not superclass sync.
Michael Zucci [Thu, 29 Mar 2001 02:10:03 +0000 (02:10 +0000)]
(vee_expunge): Oops, call the class sync, not superclass sync.