platform/upstream/evolution-data-server.git
22 years agoAlways set a g_atexit handler to flush/save the camel-certdb.
Jeffrey Stedfast [Mon, 5 Aug 2002 20:04:05 +0000 (20:04 +0000)]
Always set a g_atexit handler to flush/save the camel-certdb.

2002-08-05  Jeffrey Stedfast  <fejj@ximian.com>

* camel.c (camel_init): Always set a g_atexit handler to
flush/save the camel-certdb.

22 years agoIf we are asking for the toplevel folders, use the IMAP store's namespace
Jeffrey Stedfast [Mon, 5 Aug 2002 19:59:24 +0000 (19:59 +0000)]
If we are asking for the toplevel folders, use the IMAP store's namespace

2002-08-05  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-store.c (get_folder_info_online): If
we are asking for the toplevel folders, use the IMAP store's
namespace as the toplevel folder rather than an empty
string. Fixes bug #28574.
(imap_forget_folder): Rearrange the code so that name can never be
used uninitialised.

* providers/imap/camel-imap-utils.c (imap_namespace_concat):
Removed.

22 years agoAdd CAMEL_MESSAGE_ANSWERED_ALL, for folders that can distinguish a
Dan Winship [Mon, 5 Aug 2002 13:37:15 +0000 (13:37 +0000)]
Add CAMEL_MESSAGE_ANSWERED_ALL, for folders that can distinguish a

* camel-folder-summary.h (CamelMessageFlags): Add
CAMEL_MESSAGE_ANSWERED_ALL, for folders that can distinguish a
reply-to-sender from a reply-to-all. (eg, Exchange)

* providers/local/camel-local-folder.c (local_init): Add
ANSWERED_ALL to permanent_flags too.

22 years agoFixes bug #26237.
Jeffrey Stedfast [Sat, 3 Aug 2002 00:45:15 +0000 (00:45 +0000)]
Fixes bug #26237.

2002-08-02  Jeffrey Stedfast  <fejj@ximian.com>

Fixes bug #26237.

* providers/imap/camel-imap-command.c
(imap_command_strdup_vprintf): Don't prepend any namespace shit in
the %F case.

* providers/imap/camel-imap-utils.c (imap_parse_list_response):
Don't strip off the namespace.

22 years agoIf the folder name contains the directory separator, reject it.
Peter Williams [Fri, 2 Aug 2002 18:19:53 +0000 (18:19 +0000)]
If the folder name contains the directory separator, reject it.

2002-08-01  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-store.c (create_folder): If the folder
name contains the directory separator, reject it.

22 years agoClear the summary after building the 'removed uid' list.
Not Zed [Fri, 2 Aug 2002 05:23:51 +0000 (05:23 +0000)]
Clear the summary after building the 'removed uid' list.

2002-08-02  Not Zed  <NotZed@Ximian.com>

        * providers/local/camel-mbox-summary.c (mbox_summary_check): Clear
        the summary after building the 'removed uid' list.

22 years agorevert jeff's patch below, and do it slightly differently, and stop the
Not Zed [Fri, 2 Aug 2002 05:13:38 +0000 (05:13 +0000)]
revert jeff's patch below, and do it slightly differently, and stop the

2002-08-02  Not Zed  <NotZed@Ximian.com>

        * camel-folder-summary.c (message_info_load): revert jeff's patch
        below, and do it slightly differently, and stop the auto-reformatting
        bullshit.

2002-08-02  Not Zed  <NotZed@Ximian.com>

        * providers/local/camel-maildir-summary.c (message_info_new): If
        we get a duplicate, just re-use the old info.
        (remove_summary): Add any removed to a change list.
        (maildir_summary_check): If we find new ones in 'cur' track them
        in the change list.  Removed FIXME about it.  For #18348.

22 years agoDo more error checking to prevent crashing if we fail to read a string for
Jeffrey Stedfast [Thu, 1 Aug 2002 20:20:21 +0000 (20:20 +0000)]
Do more error checking to prevent crashing if we fail to read a string for

2002-08-01  Jeffrey Stedfast  <fejj@ximian.com>

* camel-folder-summary.c (message_info_load): Do more error
checking to prevent crashing if we fail to read a string for
example.

22 years agocamel:
Peter Williams [Thu, 1 Aug 2002 15:52:37 +0000 (15:52 +0000)]
camel:

2002-07-29  Peter Williams  <peterw@ximian.com>

Fix bug #28238

* providers/imap/camel-imap-store.c (imap_forget_folder): New
function, breaking out the code in delete_folder() to handle when
a folder is removed.
(imap_folder_effectively_unsubscribed): New function, breaking out
the code in unsubscribe_folder() to handle when a folder is
unsubscribed.
(imap_check_folder_still_extant): New function, check whether a
folder exists by LIST'ing it.
(imap_store_refresh_folders): Add code here to check if the folder
still exists if we're unable to refresh its info. If so, pretend
that it was unsubscribed (to get the mailer to remove it from
the tree) and delete its cache. If somehow this goofs up, the
worst that can happen is that we must redownload the headers.
(get_folder_status): If we can't get the status, behave as above.
(delete_folder): Call imap_forget_folder() where the bulk of this
code has gone.
(unsubscribe_folder): Call imap_folder_effectively_unsubscribed()
where the bulk of this code has gone.

mail:

2002-07-31  Peter Williams  <peterw@ximian.com>

* mail-folder-cache.c: Add another bitfield "unsub"
(real_flush_updates): If unsubscribing, manually remove the folder
from the shell.
(unset_folder_info): Add another parameter which is used to set
the unsub member.
(store_folder_unsubscribed): Pass true for @unsub.
(unset_folder_info_hash): Pass false for @unsub.

* subscribe-dialog.c (fe_done_subscribing): Don't notify the shell
here. The folder cache does it now, and it was broken to make the
CORBA call in another thread anyway.

22 years agoDisable my fix to not cache headers as it means that each time we load the
Jeffrey Stedfast [Thu, 1 Aug 2002 03:24:22 +0000 (03:24 +0000)]
Disable my fix to not cache headers as it means that each time we load the

2002-07-31  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-folder.c (parse_fetch_response):
Disable my fix to not cache headers as it means that each time we
load the message, we've got to re-fecth the headers.

22 years agoDon't use "isprint(c)" to mean "c >= 32 && c < 128" since it doesn't in
Jeffrey Stedfast [Wed, 31 Jul 2002 21:03:48 +0000 (21:03 +0000)]
Don't use "isprint(c)" to mean "c >= 32 && c < 128" since it doesn't in

2002-07-31  Jeffrey Stedfast  <fejj@ximian.com>

* camel-mime-filter-tohtml.c (is_addr_char): Don't use
"isprint(c)" to mean "c >= 32 && c < 128" since it doesn't in most
locales.
(is_url_char): Same.
(is_trailing_garbage): Same.
(is_domain_name_char): New macro for dns-valid characters
(email_address_extract): Use is_domain_name_char rather than
is_addr_char for the part after the @.

22 years agoUpdate the comment.
Jeffrey Stedfast [Wed, 31 Jul 2002 01:03:10 +0000 (01:03 +0000)]
Update the comment.

2002-07-30  Jeffrey Stedfast  <fejj@ximian.com>

* camel-tcp-stream.c (camel_tcp_address_new): Update the comment.

* camel-tcp-stream-raw.c (socket_connect): If building with IPv6
support and the address is an IPv6 address, connect using a
sockaddr_in6 otherwise use the standard IPv4 sockaddr_in
structure.
(stream_get_local_address): Fix to work with IPv6 addresses.
(stream_get_remote_address): Same.

* camel-tcp-stream-openssl.c (socket_connect): Same as above.
(stream_get_local_address): Fix to work with IPv6 addresses.
(stream_get_remote_address): Same.

* camel-tcp-stream-ssl.c (stream_connect): If building with IPv6
support and the address is an IPv6 address, initialise the
PRNetAddr accordingly.
(stream_get_local_address): Fix to work with IPv6 addresses.
(stream_get_remote_address): Same.

22 years agoX509_digest() needs a pointer to an int len. Also fixed some other
Jeffrey Stedfast [Tue, 30 Jul 2002 21:10:04 +0000 (21:10 +0000)]
X509_digest() needs a pointer to an int len. Also fixed some other

2002-07-30  Jeffrey Stedfast  <fejj@ximian.com>

* camel-tcp-stream-openssl.c (ssl_verify): X509_digest() needs a
pointer to an int len. Also fixed some other compiler errors.

* camel-certdb.h: #include <stdio.h>

22 years agoadded to the build
Jeffrey Stedfast [Tue, 30 Jul 2002 19:40:02 +0000 (19:40 +0000)]
added to the build

22 years agoNew source file implementing a very basic certificate database. This is
Jeffrey Stedfast [Tue, 30 Jul 2002 19:16:11 +0000 (19:16 +0000)]
New source file implementing a very basic certificate database. This is

2002-07-30  Jeffrey Stedfast  <fejj@ximian.com>

* camel-certdb.c: New source file implementing a very basic
certificate database. This is mostly just here because the Mozilla
NSS certdb seems to not be working for everyone's Evolution
install (works fine for me and Ettore but not many other people).

* camel-tcp-stream-ssl.c (ssl_bad_cert): If we have this
certificate in our own CamelCertDB, then get the trust value from
that and only prompt the user if the trust is unknown.

* camel-tcp-stream-openssl.c (ssl_verify): Same.

* camel.c (camel_init): Create our default certdb.

22 years agoUse the same command-counter mojo that the append code uses in case the
Peter Williams [Tue, 30 Jul 2002 17:54:59 +0000 (17:54 +0000)]
Use the same command-counter mojo that the append code uses in case the

2002-07-30  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-folder.c (imap_transfer_offline): Use
the same command-counter mojo that the append code uses in case
the use tries to copy the same message to the folder repeatedly.

22 years agoNew filter action to unset a system flag. The exact opposite of set_flag.
Jeffrey Stedfast [Mon, 29 Jul 2002 05:24:22 +0000 (05:24 +0000)]
New filter action to unset a system flag. The exact opposite of set_flag.

2002-07-29  Jeffrey Stedfast  <fejj@ximian.com>

* camel-filter-driver.c (unset_flag): New filter action to unset a
system flag. The exact opposite of set_flag.

22 years agoIf the path exists and is a directory, return non-NULL. Missed this before
Jeffrey Stedfast [Fri, 26 Jul 2002 19:25:02 +0000 (19:25 +0000)]
If the path exists and is a directory, return non-NULL. Missed this before

2002-07-26  Jeffrey Stedfast  <fejj@ximian.com>

* providers/local/camel-local-store.c (get_folder): If the path
exists and is a directory, return non-NULL. Missed this before
which is how we could return NULL even on success. Oops.

22 years agoThe flags'n'tags copy was unnecessary. Removed it.
Peter Williams [Fri, 26 Jul 2002 17:21:23 +0000 (17:21 +0000)]
The flags'n'tags copy was unnecessary. Removed it.

2002-07-26  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-summary.c
(camel_imap_summary_add_offline_uncached): The flags'n'tags
copy was unnecessary. Removed it.

22 years agoRevert Jeff's previous change, it broke local folders. Uninitialized
Peter Williams [Fri, 26 Jul 2002 17:03:02 +0000 (17:03 +0000)]
Revert Jeff's previous change, it broke local folders. Uninitialized

2002-07-26  Peter Williams  <peterw@ximian.com>

* Revert Jeff's previous change, it broke local
folders. Uninitialized exceptions or something.

22 years agoioops, this file too
Jeffrey Stedfast [Fri, 26 Jul 2002 03:39:15 +0000 (03:39 +0000)]
ioops, this file too

22 years agoIf we're gonna do an elite hack, lets do it right.
Jeffrey Stedfast [Fri, 26 Jul 2002 03:38:49 +0000 (03:38 +0000)]
If we're gonna do an elite hack, lets do it right.

2002-07-25  Jeffrey Stedfast  <fejj@ximian.com>

If we're gonna do an elite hack, lets do it right.

* providers/local/camel-local-store.c (get_folder): On success,
return non-NULL so that our caller doesn't have to depend on 'ex'
being non-NULL in order to work correctly.

* providers/local/camel-mbox-store.c (get_folder): Don't bother
checking if an exception was set, just use the return value of
camel-local-store's get_folder.

* providers/local/camel-maildir-store.c (get_folder): Same as the
mbox change.

* providers/local/camel-mh-store.c (get_folder): Here too.

22 years agoPrototype.
Peter Williams [Thu, 25 Jul 2002 22:51:58 +0000 (22:51 +0000)]
Prototype.

2002-07-25  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-summary.h
(camel_imap_summary_add_offline_uncached): Prototype.

* providers/imap/camel-imap-summary.c
(camel_imap_summary_add_offline_uncached): New function to add an
uncached message to the summary while offline.

* providers/imap/camel-imap-store.c (imap_connect_online): Only
refresh the folders if the disco diary is empty (ie, we're not
resyncing.)

* providers/imap/camel-imap-folder.c (imap_transfer_offline): Emit
an event for the source if deleting its originals. Also, if we
can't load the message, still process it, using the new imap
summary function.

22 years agoRemove "possibly non-fatal" exception strings, all exceptions are fatal
Jeffrey Stedfast [Thu, 25 Jul 2002 22:11:11 +0000 (22:11 +0000)]
Remove "possibly non-fatal" exception strings, all exceptions are fatal

2002-07-25  Jeffrey Stedfast  <fejj@ximian.com>

* providers/smtp/camel-smtp-transport.c: Remove "possibly
non-fatal" exception strings, all exceptions are fatal unless
their caller decides otherwise.
(connect_to_server): If smtp_helo() fails due to us getting
disconnected, treat the exception as fatal.
(smtp_connect): Abort if smtp_helo() fails and we got
disconnected.
(smtp_send_to): If smtp_mail() fails, abort the send operation.
(smtp_set_exception): If respbuf was NULL, then we got
disconnected and so update our state accordingly.
(smtp_disconnect): Only send a QUIT if we are still in the
connected state (or, at least think we are).

22 years agoIt would help to mark the UIDs as deleted before we try to expunge them
Peter Williams [Thu, 25 Jul 2002 18:04:44 +0000 (18:04 +0000)]
It would help to mark the UIDs as deleted before we try to expunge them

2002-07-24  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-folder.c (imap_expunge_uids_resyncing): It
would help to mark the UIDs as deleted before we try to expunge them
(in the case when no other UIDs were marked deleted this didn't happen.)
Also fix an FMR.
(imap_expunge_uids_offline): Trigger a folder_changed event with our
own changeinfo because camel_imap_response_free won't be able to do that
for us.

22 years agoRenamed from shell_exec(). Also, we now want to pass argc/argv on to the
Jeffrey Stedfast [Thu, 25 Jul 2002 07:43:16 +0000 (07:43 +0000)]
Renamed from shell_exec(). Also, we now want to pass argc/argv on to the

2002-07-25  Jeffrey Stedfast  <fejj@ximian.com>

* camel-filter-driver.c (do_shell): Renamed from
shell_exec(). Also, we now want to pass argc/argv on to the
CamelFilterDriverShellFunc.
(camel_filter_driver_set_shell_func): Renamed a bit.

* camel-filter-search.c (pipe_message): Renamed from shell_exec().

22 years agoUse execv ("sh", "-c", command) rather than execing the command directly.
Jeffrey Stedfast [Thu, 25 Jul 2002 06:04:55 +0000 (06:04 +0000)]
Use execv ("sh", "-c", command) rather than execing the command directly.

2002-07-25  Jeffrey Stedfast  <fejj@ximian.com>

* camel-filter-search.c (run_command): Use execv ("sh", "-c",
command) rather than execing the command directly.

22 years agoWhen writing the summary, use TRUNC flag, duh. Also, write to a temp file
Not Zed [Wed, 24 Jul 2002 15:13:43 +0000 (15:13 +0000)]
When writing the summary, use TRUNC flag, duh. Also, write to a temp file

2002-07-25  Not Zed  <NotZed@Ximian.com>

        * camel-folder-summary.c (camel_folder_summary_save): When writing
        the summary, use TRUNC flag, duh.  Also, write to a temp file
        first, and rename when closed successfully, and check ferror() and
        fclose() against 0 rather than -1.

        * providers/local/camel-mbox-summary.c (summary_update): Decrement
        i if we remove the summary item so we dont skip every 2nd one.

        * camel-mime-utils.c (header_decode_mailbox): Use
        rfc2047_decode_word explicitly incase we just found an encoded
        word.  Stops us re-decoding the string twice, which fixes memory
        corruption in #26330 when the HUGE string is used later.

2002-07-24  Not Zed  <NotZed@Ximian.com>

        * camel-partition-table.c (camel_key_table_next): Didn't unlock if
        we exited on an empty key list.

22 years agoSync before doing an expunge if we dont have uidplus. See #25766.
Not Zed [Wed, 24 Jul 2002 03:41:24 +0000 (03:41 +0000)]
Sync before doing an expunge if we dont have uidplus. See #25766.

2002-07-24  Not Zed  <NotZed@Ximian.com>

        * providers/imap/camel-imap-folder.c (imap_expunge_uids_online):
        Sync before doing an expunge if we dont have uidplus.  See #25766.
        (imap_expunge_uids_resyncing): Same here.

22 years agoMove folders to a subdirectory of storage_path, rather than in it. Bye bye
Not Zed [Wed, 24 Jul 2002 02:51:44 +0000 (02:51 +0000)]
Move folders to a subdirectory of storage_path, rather than in it. Bye bye

2002-07-24  Not Zed  <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c (get_folder_online): Move
folders to a subdirectory of storage_path, rather than in it.
Bye bye everyones settings.  See 24947.
        (get_folder_offline): And here too.
        (delete_folder): And here too.
        (rename_folder): and here too.
        (get_folder_info_offline): And here too.  I love code reuse.

22 years agoDuplicated the very much hack in imap_store_refresh_folders() to avoid a
Not Zed [Wed, 24 Jul 2002 02:33:26 +0000 (02:33 +0000)]
Duplicated the very much hack in imap_store_refresh_folders() to avoid a

2002-07-24  Not Zed  <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c (get_folder_info_online):
        Duplicated the very much hack in imap_store_refresh_folders() to
        avoid a deadlock in #27959.  A decent fix has to wait for a
        rewrite.

22 years ago#include <string.h> for memcpy.
Jeffrey Stedfast [Tue, 23 Jul 2002 05:14:58 +0000 (05:14 +0000)]
#include <string.h> for memcpy.

2002-07-23  Jeffrey Stedfast  <fejj@ximian.com>

* camel-tcp-stream.c: #include <string.h> for memcpy.

22 years agos/Out/Our in a debug printf
Jeffrey Stedfast [Mon, 22 Jul 2002 23:08:37 +0000 (23:08 +0000)]
s/Out/Our in a debug printf

22 years agoOops, forgot to implement this. Fixes #24604.
Not Zed [Mon, 22 Jul 2002 07:28:49 +0000 (07:28 +0000)]
Oops, forgot to implement this. Fixes #24604.

2002-07-22  Not Zed  <NotZed@Ximian.com>

        * camel-vee-folder.c (vee_set_message_user_tag): Oops, forgot to
        implement this.  Fixes #24604.

22 years agoOnly add a \r if the character before the \n wasn't already a \r - this
Jeffrey Stedfast [Mon, 22 Jul 2002 03:17:04 +0000 (03:17 +0000)]
Only add a \r if the character before the \n wasn't already a \r - this

2002-07-21  Jeffrey Stedfast  <fejj@ximian.com>

* camel-mime-filter-crlf.c (filter): Only add a \r if the
character before the \n wasn't already a \r - this covers for when
people add DOS files as attachments. Fixes bug #28056.
`

22 years agoChanged to use a different length calculator.
Not Zed [Fri, 19 Jul 2002 11:25:02 +0000 (11:25 +0000)]
Changed to use a different length calculator.

2002-07-19  Not Zed  <NotZed@Ximian.com>

        * camel-mime-part-utils.c (convert_buffer): Changed to use a
        different length calculator.

22 years ago#include <glib.h> #include <libgnome/gnome-defs.h>
Jeffrey Stedfast [Wed, 17 Jul 2002 22:42:36 +0000 (22:42 +0000)]
#include <glib.h> #include <libgnome/gnome-defs.h>

#include <glib.h>
#include <libgnome/gnome-defs.h>

apparently needed for gnome-i18n.h

22 years ago#include <libgnome/gnome-i18n.h>
Jeffrey Stedfast [Wed, 17 Jul 2002 22:40:24 +0000 (22:40 +0000)]
#include <libgnome/gnome-i18n.h>

22 years agoAdd the appropriate #include for the _() macro.
Jeffrey Stedfast [Wed, 17 Jul 2002 22:27:23 +0000 (22:27 +0000)]
Add the appropriate #include for the _() macro.

2002-07-17  Jeffrey Stedfast  <fejj@ximian.com>

* camel-lock.c: Add the appropriate #include for the _() macro.

22 years agoGot rid of the stupid "tryagain" semantics, which didn't work.
Not Zed [Wed, 17 Jul 2002 12:17:52 +0000 (12:17 +0000)]
Got rid of the stupid "tryagain" semantics, which didn't work.

2002-07-17  Not Zed  <NotZed@Ximian.com>

        * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Got
        rid of the stupid "tryagain" semantics, which didn't work.
        (pop3_connect): Fixed here to only retry under proper conditions.

22 years agoWhen CRLF encoding, "empty" (after stripping trailing whitespace
Jeffrey Stedfast [Tue, 16 Jul 2002 22:11:19 +0000 (22:11 +0000)]
When CRLF encoding, "empty" (after stripping trailing whitespace

2002-07-16  Jeffrey Stedfast  <fejj@ximian.com>

* camel-mime-filter-canon.c (filter): When CRLF encoding, "empty"
(after stripping trailing whitespace characters) lines need to end
in CRLF also, not just lines with data in them.

22 years agoClean up some improper usage of CamelExceptions (looking at
Peter Williams [Tue, 16 Jul 2002 20:39:08 +0000 (20:39 +0000)]
Clean up some improper usage of CamelExceptions (looking at

2002-07-16  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-folder.c (imap_sync_online): Clean
up some improper usage of CamelExceptions (looking at
camel_exception_is_set when ex = NULL).

* providers/imap/camel-imap-store.c (get_folder_online): Here too.

* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_new): Nothing sets the exception so
don't bother to check it at the end of this function. Prevents
a warning about checking a NULL exception's value.

22 years agoMake the standard AUTH format take priority over the AUTH= priority, since
Jeffrey Stedfast [Tue, 16 Jul 2002 19:50:17 +0000 (19:50 +0000)]
Make the standard AUTH format take priority over the AUTH= priority, since

2002-07-16  Jeffrey Stedfast  <fejj@ximian.com>

* providers/smtp/camel-smtp-transport.c (smtp_helo): Make the
standard AUTH format take priority over the AUTH= priority, since
sometimes servers only list a subset of the supported authtypes in
the AUTH= response while they list all authtypes in the standard
AUTH response. Fixes "bug" #27841.

22 years agoIf we're not online and the message isn't in our cache, give up.
Peter Williams [Tue, 16 Jul 2002 15:14:27 +0000 (15:14 +0000)]
If we're not online and the message isn't in our cache, give up.

2002-07-15  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-folder.c (imap_get_message): If we're
not online and the message isn't in our cache, give up.

22 years agoRemoved. (get_score): Removed. Labels & scores are stored in tags, we
Not Zed [Tue, 16 Jul 2002 02:34:23 +0000 (02:34 +0000)]
Removed. (get_score): Removed. Labels & scores are stored in tags, we

2002-07-15  Not Zed  <NotZed@Ximian.com>

        * camel-filter-search.c (get_label): Removed.
        (get_score): Removed.  Labels & scores are stored in tags, we
        already have a function to get tags.
        (user_tag): Fail if we dont get valid arguments, it must be a
        string type.
        (system_flag): Same here.

22 years agoTry to get the FQDN from the results of gethostname(). If that fails, then
Jeffrey Stedfast [Mon, 15 Jul 2002 22:44:13 +0000 (22:44 +0000)]
Try to get the FQDN from the results of gethostname(). If that fails, then

2002-07-15  Jeffrey Stedfast  <fejj@ximian.com>

* camel-mime-utils.c (header_msgid_generate): Try to get the FQDN
from the results of gethostname(). If that fails, then fall back
to the results gotten from gethostname() or if that fails just use
"localhost.localdomain". Addresses bug #17416.
(header_decode_param): Protect against a NULL value.

22 years agoGet rid of the constant 'required' variable, just use the value when
Jeffrey Stedfast [Mon, 15 Jul 2002 20:40:16 +0000 (20:40 +0000)]
Get rid of the constant 'required' variable, just use the value when

2002-07-15  Jeffrey Stedfast  <fejj@ximian.com>

* providers/smtp/camel-smtp-transport.c (smtp_data): Get rid of
the constant 'required' variable, just use the value when calling
set_best_encoding.

22 years agoChanged the mbox and spool provider descriptions to try and be more clear.
Jeffrey Stedfast [Mon, 15 Jul 2002 20:36:54 +0000 (20:36 +0000)]
Changed the mbox and spool provider descriptions to try and be more clear.

2002-07-15  Jeffrey Stedfast  <fejj@ximian.com>

* providers/local/camel-local-provider.c: Changed the mbox and
spool provider descriptions to try and be more clear. I'm not sure
I like the mention of Evolution in the mbox provider description,
but there was no other way to make it clear that it MOVED mail out
of the mbox folder into a folder managed by Evolution without
mentioning Evolution. *sigh* Anyways, to me "retrieve" means move,
but apparently this isn't clear to the weak minded.

22 years ago>= is not appropriate here because the sequences are 1-based; so seq =
Peter Williams [Mon, 15 Jul 2002 19:18:12 +0000 (19:18 +0000)]
>= is not appropriate here because the sequences are 1-based; so seq =

2002-07-15  Peter Williams  <peterw@ximian.com>

* providers/imap/camel-imap-folder.c (imap_rescan): >= is not appropriate
here because the sequences are 1-based; so seq = summary_len is valid.
Hopefully addresses 15646, because this caused the last message in a folder
to be reloaded, replacing its CamelMessageInfo, and the tree view was using
the old CamelMessageInfo.

22 years agoOnly assign a uid if indexing is enabled. This stops us always assigning a
Not Zed [Mon, 15 Jul 2002 02:11:16 +0000 (02:11 +0000)]
Only assign a uid if indexing is enabled. This stops us always assigning a

2002-07-13  Not Zed  <NotZed@Ximian.com>

        * camel-folder-summary.c
        (camel_folder_summary_info_new_from_message): Only assign a uid if
        indexing is enabled.  This stops us always assigning a uid in the
        imap folder and disco folder?

        * providers/imap/camel-imap-folder.c (imap_update_summary): Also
        check the uid is set at all, another bit of a fix for #15667.

2002-07-09  Not Zed  <NotZed@Ximian.com>

        * providers/imap/camel-imap-folder.c (imap_update_summary): Check
        for existing messages of the same uid before doing anything.  If
        it exists, do nothing (perhaps it should merge?).  A dirty hack for
        #15667.

22 years agoOn error, do not unref the parts gotten using camel_multipart_get_part()
Jeffrey Stedfast [Fri, 12 Jul 2002 23:14:16 +0000 (23:14 +0000)]
On error, do not unref the parts gotten using camel_multipart_get_part()

2002-07-12  Jeffrey Stedfast  <fejj@ximian.com>

* camel-multipart-encrypted.c (camel_multipart_encrypted_decrypt):
On error, do not unref the parts gotten using
camel_multipart_get_part() since that function does not ref the
parts. Also don't forget to reset the decrypted stream before
trying to parse it ;-)

22 years agoUpdated to not use camel_type_get_global_classfuncs() since this is just a
Jeffrey Stedfast [Fri, 12 Jul 2002 07:12:24 +0000 (07:12 +0000)]
Updated to not use camel_type_get_global_classfuncs() since this is just a

2002-07-12  Jeffrey Stedfast  <fejj@ximian.com>

* camel-multipart.c (camel_multipart_class_init): Updated to not
use camel_type_get_global_classfuncs() since this is just a cast
macro now.

22 years agooops, changed the location of where we check for multipart/encrypted
Jeffrey Stedfast [Fri, 12 Jul 2002 06:59:08 +0000 (06:59 +0000)]
oops, changed the location of where we check for multipart/encrypted

22 years agoHandle multipart/encrypted parts too.
Jeffrey Stedfast [Fri, 12 Jul 2002 06:27:11 +0000 (06:27 +0000)]
Handle multipart/encrypted parts too.

2002-07-12  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-folder.c (get_content): Handle
multipart/encrypted parts too.

* camel-mime-part-utils.c
(camel_mime_part_construct_content_from_parser): Handle
multipart/encrypted types too.

22 years agoDon't let any parts have a binary encoding.
Jeffrey Stedfast [Fri, 12 Jul 2002 02:57:32 +0000 (02:57 +0000)]
Don't let any parts have a binary encoding.

2002-07-11  Jeffrey Stedfast  <fejj@ximian.com>

* providers/smtp/camel-smtp-transport.c (smtp_data): Don't let any
parts have a binary encoding.

22 years agooops, apparently I didn't save?
Jeffrey Stedfast [Thu, 11 Jul 2002 22:36:22 +0000 (22:36 +0000)]
oops, apparently I didn't save?

22 years agoFixes bug #27672
Jeffrey Stedfast [Thu, 11 Jul 2002 22:30:51 +0000 (22:30 +0000)]
Fixes bug #27672

2002-07-11  Jeffrey Stedfast  <fejj@ximian.com>

Fixes bug #27672

* camel-mime-filter-bestenc.c: Conditionally #include <config.h>

* camel-mime-filter-linewrap.c: Same here... although we could
probably just get rid of this filter? We don't seem to use it
anywhere since we try to QP/Base64 encode any text parts with long
lines. Besides, we couldn't use this filter for SMTP anyway since
we can't risk possibly linewrapping a binary mime part. I dunno,
maybe this could be useful in the composer though? *shrug*

* providers/smtp/camel-smtp-transport.c (smtp_data): Always call
camel_mime_message_set_best_encoding() even if the server allows
8BITMIME and even if we don't have any 8bit parts because we may
have parts with long lines (>998 octets) which also need to be
encoded.

* camel-mime-message.c (check_8bit): Don't forget to check for the
binary encoding here as well.

22 years agoIf we are fetching HEADERs, don't cache the stream - instead just create a
Jeffrey Stedfast [Thu, 11 Jul 2002 20:57:12 +0000 (20:57 +0000)]
If we are fetching HEADERs, don't cache the stream - instead just create a

2002-07-11  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-folder.c (parse_fetch_response): If we
are fetching HEADERs, don't cache the stream - instead just create
a mem-stream and return that. This reduces a significant amount of
overhead due to disk i/o.

22 years agoDon't forget to set an appropriate exception before returning NULL.
Jeffrey Stedfast [Thu, 11 Jul 2002 18:24:32 +0000 (18:24 +0000)]
Don't forget to set an appropriate exception before returning NULL.

2002-07-11  Jeffrey Stedfast  <fejj@ximian.com>

* camel-multipart-encrypted.c (camel_multipart_encrypted_decrypt):
Don't forget to set an appropriate exception before returning
NULL.

22 years agoMake sure message is non-NULL before setting the source on it.
Jeffrey Stedfast [Wed, 10 Jul 2002 23:34:01 +0000 (23:34 +0000)]
Make sure message is non-NULL before setting the source on it.

2002-07-10  Jeffrey Stedfast  <fejj@ximian.com>

* camel-filter-driver.c (get_message_cb): Make sure message is
non-NULL before setting the source on it.

22 years agoRenamed stdin to stdin_fd, stdout to stdout_fd, and stderr to stderr_fd in
Jeffrey Stedfast [Wed, 10 Jul 2002 20:15:22 +0000 (20:15 +0000)]
Renamed stdin to stdin_fd, stdout to stdout_fd, and stderr to stderr_fd in

2002-07-10  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c: Renamed stdin to stdin_fd, stdout to
stdout_fd, and stderr to stderr_fd in struct _GpgCtx since
Solaris' stdin/stdout/etderr variables seem to be macros and are
thus breaking the compilation.

22 years agoSet the IS_SOURCE provider flag.
Jeffrey Stedfast [Thu, 4 Jul 2002 23:15:16 +0000 (23:15 +0000)]
Set the IS_SOURCE provider flag.

2002-07-04  Jeffrey Stedfast  <fejj@ximian.com>

* providers/nntp/camel-nntp-provider.c: Set the IS_SOURCE provider
flag.

22 years agoChange all exceptions to report which POP server failed (and tried to make
Jeffrey Stedfast [Thu, 4 Jul 2002 18:34:59 +0000 (18:34 +0000)]
Change all exceptions to report which POP server failed (and tried to make

2002-07-04  Jeffrey Stedfast  <fejj@ximian.com>

* providers/pop3/camel-pop3-store.c: Change all exceptions to
report which POP server failed (and tried to make a few of the
exceptions a bit more clear).

22 years agoIf we get an exception from the child sync, update the exception string so
Not Zed [Wed, 3 Jul 2002 03:11:03 +0000 (03:11 +0000)]
If we get an exception from the child sync, update the exception string so

2002-07-03  Not Zed  <NotZed@Ximian.com>

* camel-vee-folder.c (vee_sync): If we get an exception from the
child sync, update the exception string so we know where it really
was.

* camel-vee-store.c (change_folder): Util to emit created/deleted
events.
(vee_get_folder): If the folder has path elements, and its parents
dont exist, create dummy no-select nodes.  This is for bug #4246.
(vee_delete_folder): Use change_folder() to save code.

* providers/local/camel-mbox-folder.c (mbox_set_message_flags):
Only set xevchange if we're storing status headers in pine format,
so we dont do a full sync every time any flag changes.

22 years agoTake a void object arg. (camel_object_remove_event): "
Not Zed [Wed, 3 Jul 2002 01:42:50 +0000 (01:42 +0000)]
Take a void object arg. (camel_object_remove_event): "

2002-06-27  Not Zed  <NotZed@Ximian.com>

        * camel-object.c (camel_object_hook_event): Take a void object arg.
        (camel_object_remove_event): "
        (camel_object_unhook_event): "
        (camel_object_trigger_event): ", also, execute events in the same
        order they were added, i.e. reverse hook-list order.

22 years agoDon't use --no-auto-key-retrieve, this option has apparently been
Jeffrey Stedfast [Fri, 28 Jun 2002 16:36:29 +0000 (16:36 +0000)]
Don't use --no-auto-key-retrieve, this option has apparently been

2002-06-28  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_get_argv): Don't use
--no-auto-key-retrieve, this option has apparently been deprecated
in gpg 1.0.7.

22 years agoLoop on our reads while errno is EINTR or EAGAIN. Also make sure to
Jeffrey Stedfast [Fri, 28 Jun 2002 00:07:00 +0000 (00:07 +0000)]
Loop on our reads while errno is EINTR or EAGAIN. Also make sure to

2002-06-27  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_op_step): Loop on our reads while
errno is EINTR or EAGAIN. Also make sure to completely read stdout
and stderr by keeping better state.
(gpg_ctx_parse_status): In the case of a NODATA response from gpg,
try to use the diagnostics that gpg may have written to its
stderr.
(gpg_verify): Check that the gpg process has not exited.
(gpg_ctx_op_wait): Make sure we haven't already exited (as by
gpg_ctx_op_is_exited()) and if we have, retrieve the exit status
from the gpg context.

22 years agoLoop on our reads while errno is EINTR or EAGAIN. Also make sure to
Jeffrey Stedfast [Thu, 27 Jun 2002 23:16:37 +0000 (23:16 +0000)]
Loop on our reads while errno is EINTR or EAGAIN. Also make sure to

2002-06-27  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_op_step): Loop on our reads while
errno is EINTR or EAGAIN. Also make sure to completely read stdout
and stderr by keeping better state.
(gpg_ctx_parse_status): In the case of a NODATA response from gpg,
try to use the diagnostics that gpg may have written to its
stderr.

22 years agoLoop on our reads while errno is EINTR or EAGAIN. Also make sure to
Jeffrey Stedfast [Thu, 27 Jun 2002 17:55:26 +0000 (17:55 +0000)]
Loop on our reads while errno is EINTR or EAGAIN. Also make sure to

2002-06-27  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_op_step): Loop on our reads while
errno is EINTR or EAGAIN. Also make sure to completely read stdout
and stderr by keeping better state.

22 years agoLoop on our reads while errno is EINTR or EAGAIN.
Jeffrey Stedfast [Thu, 27 Jun 2002 05:21:36 +0000 (05:21 +0000)]
Loop on our reads while errno is EINTR or EAGAIN.

2002-06-27  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_op_step): Loop on our reads while
errno is EINTR or EAGAIN.

22 years agoRemoved.
Jeffrey Stedfast [Wed, 26 Jun 2002 22:15:24 +0000 (22:15 +0000)]
Removed.

2002-06-26  Jeffrey Stedfast  <fejj@ximian.com>

* camel-pgp-context.[c,h]: Removed.

* camel-pgp-mime.c (pgp_mime_part_sign_restore_part): Removed.
(pgp_mime_part_sign_prepare_part): Removed.
(camel_pgp_mime_part_sign): Removed.
(camel_pgp_mime_part_verify): Removed.
(camel_pgp_mime_part_encrypt): Removed.
(camel_pgp_mime_part_decrypt): Removed.
(camel_pgp_mime_is_rfc2015_signed): Documented.
(camel_pgp_mime_is_rfc2015_encrypted): Same.

22 years agoOops, this needs to take a userid argument.
Jeffrey Stedfast [Wed, 26 Jun 2002 20:38:08 +0000 (20:38 +0000)]
Oops, this needs to take a userid argument.

2002-06-26  Jeffrey Stedfast  <fejj@ximian.com>

* camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt):
Oops, this needs to take a userid argument.

22 years agoRemoved (never did anything anyway).
Jeffrey Stedfast [Wed, 26 Jun 2002 19:20:32 +0000 (19:20 +0000)]
Removed (never did anything anyway).

2002-06-26  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_clearsign): Removed (never did anything
anyway).

* camel-pgp-context.c (pgp_clearsign): Removed.

* camel-cipher-context.c (camel_cipher_clearsign): Removed unused
method.

22 years agoNew class implementing the multipart/encrypted content type. Contains
Jeffrey Stedfast [Wed, 26 Jun 2002 19:14:34 +0000 (19:14 +0000)]
New class implementing the multipart/encrypted content type. Contains

2002-06-26  Jeffrey Stedfast  <fejj@ximian.com>

* camel-multipart-encrypted.[c,h]: New class implementing the
multipart/encrypted content type. Contains methods for encrypting
and decrypting a multipart/encrypted MIME object.

22 years agoCheck for NODATA too.
Jeffrey Stedfast [Wed, 26 Jun 2002 18:49:05 +0000 (18:49 +0000)]
Check for NODATA too.

2002-06-26  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_parse_status): Check for NODATA
too.

22 years agoRemove the #include for camel-spoold-store.h
Jeffrey Stedfast [Wed, 26 Jun 2002 02:49:39 +0000 (02:49 +0000)]
Remove the #include for camel-spoold-store.h

2002-06-25  Jeffrey Stedfast  <fejj@ximian.com>

* providers/local/camel-local-provider.c: Remove the #include for
camel-spoold-store.h

22 years agoInclude <sys/time.h> for struct timeval.
Not Zed [Wed, 26 Jun 2002 01:07:05 +0000 (01:07 +0000)]
Include <sys/time.h> for struct timeval.

2002-06-26  Not Zed  <NotZed@Ximian.com>

* camel-gpg-context.c: Include <sys/time.h> for struct timeval.

* providers/local/camel-local-provider.c
(camel_provider_module_init): Removed spoold provider.  The spool
provider does it now.

2002-06-25  Not Zed  <NotZed@Ximian.com>

* providers/local/camel-spool-folder.c (camel_spool_folder_new):
Support a new xstatus option - folders update/honour the
Status/X-Status headers in addition to X-Evolution.

* providers/local/camel-local-summary.c
(camel_local_summary_write_headers): If supplied with an
additional status or xstatus arg, write a Status header and/or
X-Status.  Also fix the case of properly terminating the headers
if an xev line isn't supplied.

* providers/local/Makefile.am (libcamellocalinclude_HEADERS,SOURCES):
Removed spoold-store.[ch].

* providers/local/camel-local-provider.c
(camel_provider_module_init): For the spoold type, just use the
spool store instead.

* providers/local/camel-spool-store.h: Added a type field, so the
1 store can implement different types without having to subclass.

* providers/local/camel-spool-store.c
(camel_spool_store_get_toplevel_dir): Removed, inherits from local
store now.
(construct): If we're pointing to a file, treat it as mbox mode,
otherwise treat it as 'elm' mode.
(get_folder): Only test for INBOX in mbox mode.
(get_folder_info_elm):
(get_folder_info_mbox): Two alternatives for getting folder info,
depending on the type of folder we're looking at.
(get_folder_info_mbox): Make the url include the protocol.
(scan_dir): "

* providers/local/camel-spoold-store.c
(camel_spoold_store_get_toplevel_dir): Removed, inherits from
local store now.

* camel-folder.c (get_message_user_tag): Dont use a
g_return_if_fail for info==NULL.  This is not an error.
(set_message_user_tag): And same here.
(set_message_user_flag): Sigh, and here.
(get_message_user_flag): And here.
(set_message_flags): and here ...
(get_message_flags): Dum de dum, de done at last.

* providers/local/camel-mbox-folder.c (mbox_get_message): Check
for new messages whenever we retrieve one.  In the common
no-update case, this is a single stat.
(mbox_get_message): If we need to rescan, then force a full rescan
to make sure it does the right thing.
(mbox_get_message): Cleanup the exception handling a bit, if we do
get an error, propagate any folder changes anyway as well.
(mbox_set_message_user_flag): Argh more of these stupid g_returns
taht shouldn't be.
(mbox_set_message_user_tag): Here too.
(mbox_set_message_flags): If the read flag is being changed, mark
it as an xevchange (i.e. Status line change).

* providers/local/camel-mbox-summary.c (summary_rebuild): Merged
into summary_update.
(summary_update): Changed to allow it to update existing lists of
messages without clearing out the summary.
(mbox_summary_check): Dont clear the summary, just re-scan.
(message_info_new): Attempt to support the 'Status: RO' elm/pine
thing.
(camel_mbox_summary_encode_status):
(camel_mbox_summary_decode_status): Util functions for
creating/parsing the Status line.
(camel_mbox_summary_sync_mbox): Write out the status line if we're
going to try support it.
(camel_mbox_summary_xstatus): Implement option to control
read/write of (x-)status.
(message_info_new): Do x-status stuff based on run-time option.
(camel_mbox_summary_sync_mbox): "
(mbox_summary_add): If x-status enabled, then always add
status/x-status headers to message.

* camel-folder-summary.c (summary_assign_uid): If the messageinfo
is already in the summary, AND is the same messageinfo, dont do
anything, return a value to indicate this.
(camel_folder_summary_add): Do nothing if this info already in the
summary, so we can perform updates.

2002-06-24  Not Zed  <NotZed@Ximian.com>

* providers/local/camel-local-summary.c
(camel_local_summary_check_force): New method to force the next
summary check to be a full check, set if a mismatch occurs.

* camel-folder-summary.c (camel_folder_summary_load): If we have
no summary path set, dont do any i/o, rather than abort.
(camel_folder_summary_save): "
(camel_folder_summary_header_load): "

* providers/local/camel-spool-store.h: Inherit from camel mbox
store, even if we override almost everything.

* providers/local/camel-local-folder.c
(camel_local_folder_construct): If the base path points to a file,
use that as the folder path as well.

* providers/local/camel-spool-folder.h: Inherit from
camel-mbox-folder.

* providers/local/camel-spool-summary.c (spool_summary_sync_full):
Use camel_mbox_summary_sync_mbox to do most of the work.

* providers/local/camel-spool-summary.[ch]: Make spool-summary
inherit from mbox summary rather than foldersummary.

* providers/local/camel-mbox-summary.c (mbox_summary_sync): Make
sync_full/quick virtual methods.
(camel_mbox_summary_sync_mbox): The full sync method put into a
simple function that sync's from fd to fd.
(mbox_summary_sync_full): Use summary_sync_mbox to do the real
work.
(mbox_summary_check): Create removed events if the folder gets
cleared.  Also, dont clear the summary before a rebuild, try to
merge.

22 years ago#include <sys/time.h>
Jeffrey Stedfast [Wed, 26 Jun 2002 00:48:29 +0000 (00:48 +0000)]
#include <sys/time.h>

2002-06-25  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c: #include <sys/time.h>

22 years agoReturn the option as --digest-algo=<micalg> (gpg_ctx_parse_status): Decode
Jeffrey Stedfast [Tue, 25 Jun 2002 06:21:17 +0000 (06:21 +0000)]
Return the option as --digest-algo=<micalg> (gpg_ctx_parse_status): Decode

2002-06-25  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_hash_str): Return the option as
--digest-algo=<micalg>
(gpg_ctx_parse_status): Decode more status information and keep
track of trust and such.
(gpg_ctx_op_complete): Make sure we aren't waiting for gpg to
write data to stdout (such as encrypted/decrypted data or a
signature).
(gpg_encrypt): Remove the fejj@stampede.org hard-coded value
(which had only meant to be for testing).

22 years agoimplemented camel_gpg_context_set_always_trust()
Jeffrey Stedfast [Tue, 25 Jun 2002 01:19:32 +0000 (01:19 +0000)]
implemented camel_gpg_context_set_always_trust()

22 years agoUse --command-fd rather than --passphrase-fd since what we really want is
Jeffrey Stedfast [Tue, 25 Jun 2002 00:54:20 +0000 (00:54 +0000)]
Use --command-fd rather than --passphrase-fd since what we really want is

2002-06-24  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_get_argv): Use --command-fd rather
than --passphrase-fd since what we really want is an interactive
mode (besides, --passphrase-fd requires a passphrase to be sent
before --status-fd will send a NEED_PASSPHRASE status message).
(gpg_ctx_parse_status): When we encounter a BAD_PASSPHRASE, tell
the session to uncache it.

22 years agoUse --command-fd rather than --passphrase-fd since what we really want is
Jeffrey Stedfast [Mon, 24 Jun 2002 22:59:59 +0000 (22:59 +0000)]
Use --command-fd rather than --passphrase-fd since what we really want is

2002-06-24  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_get_argv): Use --command-fd rather
than --passphrase-fd since what we really want is an interactive
mode (besides, --passphrase-fd requires a passphrase to be sent
before --status-fd will send a NEED_PASSPHRASE status message).

22 years agoCheck for ERRSIG also. (gpg_ctx_op_step): Don't try writing a passphrase
Jeffrey Stedfast [Mon, 24 Jun 2002 02:50:53 +0000 (02:50 +0000)]
Check for ERRSIG also. (gpg_ctx_op_step): Don't try writing a passphrase

2002-06-23  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_ctx_parse_status): Check for ERRSIG
also.
(gpg_ctx_op_step): Don't try writing a passphrase unless our
operation requires it.

22 years agoReturn -1 on error. (gpg_decrypt): Same. (gpg_sign): Again here.
Jeffrey Stedfast [Sat, 22 Jun 2002 23:07:55 +0000 (23:07 +0000)]
Return -1 on error. (gpg_decrypt): Same. (gpg_sign): Again here.

2002-06-22  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.c (gpg_encrypt): Return -1 on error.
(gpg_decrypt): Same.
(gpg_sign): Again here.
(gpg_ctx_op_step): Only attenmpt to read from the status-fd if we
are not already 'complete'.

* camel-pgp-mime.c (camel_pgp_mime_part_encrypt): Flush the
filtered stream.

22 years agomore fixes, now verifying works and signing almost works as well, except gpg is runni...
Jeffrey Stedfast [Sat, 22 Jun 2002 08:07:08 +0000 (08:07 +0000)]
more fixes, now verifying works and signing almost works as well, except gpg is running out of memory for me? not sure if that is a gpg or evo bug

22 years agoyay, I get to hold more state because Unix pipes suck so badly. This is
Jeffrey Stedfast [Sat, 22 Jun 2002 04:58:55 +0000 (04:58 +0000)]
yay, I get to hold more state because Unix pipes suck so badly. This is
getting very close to working now... I think that as soon as I debug this
segfault, it will work. Probably dereferencing a NULL pointer or something
stupid like that.

22 years agoadded camel_gpg_context_new which I had forgotten before
Jeffrey Stedfast [Fri, 21 Jun 2002 20:47:20 +0000 (20:47 +0000)]
added camel_gpg_context_new which I had forgotten before

22 years agoNew source files implementing the CamelCipherContext class for gnupg.
Jeffrey Stedfast [Fri, 21 Jun 2002 19:11:57 +0000 (19:11 +0000)]
New source files implementing the CamelCipherContext class for gnupg.

2002-06-21  Jeffrey Stedfast  <fejj@ximian.com>

* camel-gpg-context.[c,h]: New source files implementing the
CamelCipherContext class for gnupg.

* camel-pgp-context.c (camel_pgp_context_new): Return a
CamelCipherContext.

* camel-pgp-mime.c (camel_pgp_mime_part_decrypt): Take a
CamelCipherContext argument rather than a CamelPgpContext since we
now have a CamelGpgContext also.
(camel_pgp_mime_part_encrypt): Same.
(camel_pgp_mime_part_verify): Same.
(camel_pgp_mime_part_sign): Same.

22 years agoUpdated to support searching as well as making it use CamelDigestSummary.
Jeffrey Stedfast [Thu, 20 Jun 2002 21:32:17 +0000 (21:32 +0000)]
Updated to support searching as well as making it use CamelDigestSummary.

2002-06-20  Jeffrey Stedfast  <fejj@ximian.com>

* camel-digest-folder.c: Updated to support searching as well as
making it use CamelDigestSummary.

* camel-digest-summary.[c,h]: New class to handle the summary for
CamelDigestFolder.

* camel-tcp-stream-ssl.c (set_errno): PR_IO_TIMEOUT_ERROR should
map to ETIMEDOUT and not EAGAIN.
(stream_connect): Reset the PR_Poll() timeout back to 2 minutes as
this wasn't the problem afterall.

22 years agoPR_IO_TIMEOUT_ERROR should map to ETIMEDOUT and not EAGAIN.
Jeffrey Stedfast [Thu, 20 Jun 2002 06:34:14 +0000 (06:34 +0000)]
PR_IO_TIMEOUT_ERROR should map to ETIMEDOUT and not EAGAIN.

2002-06-20  Jeffrey Stedfast  <fejj@ximian.com>

* camel-tcp-stream-ssl.c (set_errno): PR_IO_TIMEOUT_ERROR should
map to ETIMEDOUT and not EAGAIN.
(stream_connect): Reset the PR_Poll() timeout back to 2 minutes as
this wasn't the problem afterall.

22 years agoDrop back to initial state if we came from eof state.
Not Zed [Thu, 20 Jun 2002 05:50:38 +0000 (05:50 +0000)]
Drop back to initial state if we came from eof state.

2002-06-19  Not Zed  <NotZed@Ximian.com>

        * camel-mime-parser.c (folder_scan_drop_step): Drop back to
        initial state if we came from eof state.

22 years agoSet the poll timeout to be PR_INTERVAL_MIN, this one shouldn't need to be
Jeffrey Stedfast [Wed, 19 Jun 2002 18:13:24 +0000 (18:13 +0000)]
Set the poll timeout to be PR_INTERVAL_MIN, this one shouldn't need to be

2002-06-19  Jeffrey Stedfast  <fejj@ximian.com>

* camel-tcp-stream-ssl.c (stream_connect): Set the poll timeout to
be PR_INTERVAL_MIN, this one shouldn't need to be 2 minutes (plus
it blocks my connection at home for far too long).

22 years agoMake sure we hold the command_lock before accessing current_folder.
Jeffrey Stedfast [Wed, 19 Jun 2002 17:57:04 +0000 (17:57 +0000)]
Make sure we hold the command_lock before accessing current_folder.

2002-06-19  Jeffrey Stedfast  <fejj@ximian.com>

* providers/imap/camel-imap-folder.c (imap_refresh_info): Make
sure we hold the command_lock before accessing current_folder.
(imap_append_online): Same.
(imap_transfer_online): Same.

* providers/imap/camel-imap-store.c (delete_folder): We need to
hold the command_lock before we can set the current_folder to
NULL.
(rename_folder): Same.
(get_folder_info_online): We need to make sure we hold the
command_lock in order to use current_folder.
(everywhere): Same.

22 years agoDon't bother trying to authenticate (and thus don't throw up an error
Jeffrey Stedfast [Wed, 19 Jun 2002 05:35:59 +0000 (05:35 +0000)]
Don't bother trying to authenticate (and thus don't throw up an error

2002-06-19  Jeffrey Stedfast  <fejj@ximian.com>

* providers/smtp/camel-smtp-transport.c (smtp_connect): Don't
bother trying to authenticate (and thus don't throw up an error
dialog) unless the server is an ESMTP server and supports
authentication.

* camel-sasl-plain.c: Change the user-friendly name to PLAIN, this
is what it should be. Not "Password" because user's immediately
think that they need authentication when they see "Password" even
if they don't need it at all.

22 years agoUpdate the freeze state of the new source folder.
Jeffrey Stedfast [Mon, 17 Jun 2002 21:44:06 +0000 (21:44 +0000)]
Update the freeze state of the new source folder.

2002-06-17  Jeffrey Stedfast  <fejj@ximian.com>

* camel-vee-folder.c (camel_vee_folder_add_folder): Update the
freeze state of the new source folder.
(camel_vee_folder_remove_folder): Undo any freeze state that we
have imposed on this source folder.

22 years agoremove the camel-remote-store private struct
Jeffrey Stedfast [Mon, 17 Jun 2002 18:32:05 +0000 (18:32 +0000)]
remove the camel-remote-store private struct

22 years agofile camel-unmatched-folder.c was initially added on branch notzed-play-2.
Michael Zucci [Mon, 17 Jun 2002 01:49:02 +0000 (01:49 +0000)]
file camel-unmatched-folder.c was initially added on branch notzed-play-2.

22 years agofile camel-unmatched-folder.h was initially added on branch notzed-play-2.
Michael Zucci [Mon, 17 Jun 2002 01:49:02 +0000 (01:49 +0000)]
file camel-unmatched-folder.h was initially added on branch notzed-play-2.

22 years agofile camel-vtrash-store.c was initially added on branch notzed-play-2.
Michael Zucci [Mon, 17 Jun 2002 01:49:02 +0000 (01:49 +0000)]
file camel-vtrash-store.c was initially added on branch notzed-play-2.

22 years agofile camel-vtrash-store.h was initially added on branch notzed-play-2.
Michael Zucci [Mon, 17 Jun 2002 01:49:02 +0000 (01:49 +0000)]
file camel-vtrash-store.h was initially added on branch notzed-play-2.