platform/upstream/evolution-data-server.git
22 years agoRemoved. (stream_write): Keep looping (non-blocking case) if errno is
Jeffrey Stedfast [Tue, 30 Oct 2001 03:09:01 +0000 (03:09 +0000)]
Removed. (stream_write): Keep looping (non-blocking case) if errno is

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

* camel-tcp-stream-openssl.c (my_SSL_write): Removed.
(stream_write): Keep looping (non-blocking case) if errno is
EAGAIN, EINTR or EWOULDBLOCK. For NONBLOCKing I/O, sync up with
CamelTcpStreamRaw. As with CamelTcpStreamRaw/SSL - make sure to
write out everything before returning.
(my_SSL_read): Removed.
(stream_read): Just call ssl_error_to_errno() and check the errno
values that we care about so we can keep the general look of all
this stream code the same. Also when checking the return value of
SSL_read, check for <0 instead of ==-1 since the man page for
SSL_read doesn't say it will return -1 on fail, it just says <0.
(stream_flush): Don't fsync() since syncing on a socket is a Bad
Thing (tm).

* camel-tcp-stream-ssl.c (stream_write): Make sure we write out
everything just like in camel-tcp-stream-raw.c.

* camel-stream-buffer.c (camel_stream_buffer_gets): If
camel_stream_read() returns -1, don't necessarily return -1 to our
caller since it's possible that we did actually "read" some data
(ie, we copied some pre-buffered data into the out buffer).

* camel-stream-buffer.h: Removed CAMEL_STREAM_BUFFER_NEWLINE since
it never got used anywhere and it isn't supported anyway.

22 years agoIf we get an empty name, then mark that as NoSelect. Workaround fix for
0 [Tue, 30 Oct 2001 01:34:55 +0000 (01:34 +0000)]
If we get an empty name, then mark that as NoSelect. Workaround fix for

2001-10-30    <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c
        (parse_list_response_as_folder_info): If we get an empty name,
        then mark that as NoSelect.  Workaround fix for #13239.

22 years agoSet an X-Evolution-Source header on the returned message so replies come
Dan Winship [Tue, 30 Oct 2001 00:52:11 +0000 (00:52 +0000)]
Set an X-Evolution-Source header on the returned message so replies come

* providers/imap/camel-imap-folder.c (get_message_simple,
imap_get_message): Set an X-Evolution-Source header on the
returned message so replies come from the right identity.

22 years agoIf we're not going to search on a changed uid, make sure we change out
9 [Tue, 30 Oct 2001 00:24:55 +0000 (00:24 +0000)]
If we're not going to search on a changed uid, make sure we change out

2001-10-29    <NotZed@Ximian.com>

        * camel-vee-folder.c (folder_changed_change): If we're not going
        to search on a changed uid, make sure we change out copy still.
        Fixes #13916.

22 years agoDon't emit a folder_subscribed signal if we are in the process of renaming
Jeffrey Stedfast [Mon, 29 Oct 2001 23:23:12 +0000 (23:23 +0000)]
Don't emit a folder_subscribed signal if we are in the process of renaming

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

* providers/imap/camel-imap-store.c (subscribe_folder): Don't emit
a folder_subscribed signal if we are in the process of renaming
folders.
(unsubscribe_folder): Same here but for the unsubscribe signal.
(rename_folder): Unsubscribe from the folder being renamed and any
subfolders it may have before actually renaming. Once the folder
has been renamed, re-subscribe to it and it's subfolders with the
new name.

* camel-store.c (camel_folder_info_build): Sort the folder info's
before constructing the tree.

22 years agoMinor fix - should have been using a strNcmp when checking if it was an
Jeffrey Stedfast [Mon, 29 Oct 2001 20:51:24 +0000 (20:51 +0000)]
Minor fix - should have been using a strNcmp when checking if it was an

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

* camel-mime-utils.c (header_decode_param): Minor fix - should
have been using a strNcmp when checking if it was an rfc2047
encoded word.

22 years agoNotify the user that PGP 2.6.x is no longer supported and use
Jeffrey Stedfast [Mon, 29 Oct 2001 18:40:12 +0000 (18:40 +0000)]
Notify the user that PGP 2.6.x is no longer supported and use

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

* camel-pgp-context.c (pgp_sign): Notify the user that PGP 2.6.x
is no longer supported and use camel_exception_set() instead of
setv() where appropriate.
(pgp_clearsign): Same.
(pgp_verify): And again here.
(pgp_encrypt): Here too.
(pgp_decrypt): And finally here.

22 years agoDon't free the hash table key if the folder wasn't found in the hash
Dan Winship [Mon, 29 Oct 2001 18:31:40 +0000 (18:31 +0000)]
Don't free the hash table key if the folder wasn't found in the hash

* providers/imap/camel-imap-store.c (unsubscribe_folder): Don't
free the hash table key if the folder wasn't found in the hash
table. I'm not sure where the bug is/was that made it possible to
add a folder to the tree after creating it failed, but now if that
happens, it won't crash if you try to delete it again. (#11492)

22 years agoif the service is being connected and thinks it's online, but the session
Dan Winship [Mon, 29 Oct 2001 18:25:42 +0000 (18:25 +0000)]
if the service is being connected and thinks it's online, but the session

* camel-disco-store.c (camel_disco_store_status): if the service
is being connected and thinks it's online, but the session is
offline, then mark the service offline as well. Fixes 13683.

22 years agoTurn off w() -> warnings.
9 [Mon, 29 Oct 2001 08:24:00 +0000 (08:24 +0000)]
Turn off w() -> warnings.

2001-10-29    <NotZed@Ximian.com>

        * camel-mime-utils.c: Turn off w() -> warnings.

        * providers/imap/camel-imap-store.c (rename_folder): Also rename
        the message cache.
        (rename_folder): Fix subscribed folders table with rename(s).

        * providers/imap/camel-imap-folder.c (imap_rename): Implement,
        rename the cache dir pointer.

        * providers/imap/camel-imap-message-cache.c
        (camel_imap_message_cache_set_path): New method to set the path
        used by a message cache.

22 years agoFix the 'is this a matching subfolder or subfolder'' logic to match
9 [Mon, 29 Oct 2001 05:06:59 +0000 (05:06 +0000)]
Fix the 'is this a matching subfolder or subfolder'' logic to match

2001-10-29    <NotZed@Ximian.com>

        * camel-vee-store.c (build_info): Fix the 'is this a matching
        subfolder or subfolder'' logic to match camel-store
        get_subfolders'.

        * camel-store.c (get_subfolders): Fix the 'is this a matching
        folder or subfolder' logic.

22 years agoChanged to call ibex_move to rename it internally.
8 [Sun, 28 Oct 2001 13:05:36 +0000 (13:05 +0000)]
Changed to call ibex_move to rename it internally.

2001-10-28    <NotZed@Ximian.com>

        * providers/local/camel-local-store.c (rename_folder): Changed to
        call ibex_move to rename it internally.

22 years agoUse the right variable, not info.
8 [Sun, 28 Oct 2001 10:51:19 +0000 (10:51 +0000)]
Use the right variable, not info.

2001-10-28    <NotZed@Ximian.com>

* camel-store.c (camel_store_rename_folder): Use the right variable, not info.

22 years agoMake sure we've actually read data before checking if p[-] is '\r' or not.
Jeffrey Stedfast [Sun, 28 Oct 2001 09:37:36 +0000 (09:37 +0000)]
Make sure we've actually read data before checking if p[-] is '\r' or not.

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

* camel-stream-buffer.c (camel_stream_buffer_read_line): Make sure
we've actually read data before checking if p[-] is '\r' or not.

22 years agoSame.
Jeffrey Stedfast [Sun, 28 Oct 2001 07:03:32 +0000 (07:03 +0000)]
Same.

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

* camel-tcp-stream-raw.c (stream_write): Same.

* camel-stream-fs.c (stream_write): If errno isn't EAGAIN, just
exit with -1 and instead of using continue (which doesn't go to
the top of the do-while thus making our logic suck), just set w to
0. Still seems to be a bug in select() if it's telling us the
socket is ready for data when it really isn't but oh well.

22 years agoUse path not protocol as the path part of the uri of the folder_created
8 [Sun, 28 Oct 2001 05:10:56 +0000 (05:10 +0000)]
Use path not protocol as the path part of the uri of the folder_created

2001-10-28    <NotZed@Ximian.com>

* providers/local/camel-local-folder.c
(camel_local_folder_construct): Use path not protocol as the path
part of the uri of the folder_created event.

* providers/local/camel-maildir-store.c (scan_dir): If FAST is
set, dont try and scan for unread counts.

* providers/local/camel-local-store.c (create_folder): Implement,
just return the folderinfo of the folder matched, not all of it.

* camel-store.c (camel_store_rename_folder): Rename the
camelfolders before emitting the folderchanged event (otherwise
vstore fails to pick up change.

* camel-store.c (camel_store_init): Always use a default dir_sep
of '/'.

* camel-store.h (struct _CamelStore): Added a dir_sep to the base
store so rename and whatnot can work, temporary fix for mixed dir
separator in folder name api's.

* providers/imap/camel-map-store.c:
(imap_connect_online): Also set the store's dir_sep here.
(imap_connect_offline): "

22 years agoMore fixing of the license texts.
Ettore Perazzoli [Sat, 27 Oct 2001 18:14:49 +0000 (18:14 +0000)]
More fixing of the license texts.

22 years agoFixing the license text.
Ettore Perazzoli [Sat, 27 Oct 2001 16:59:34 +0000 (16:59 +0000)]
Fixing the license text.

22 years agoFinished implementation.
7 [Sat, 27 Oct 2001 06:00:34 +0000 (06:00 +0000)]
Finished implementation.

2001-10-27    <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c (rename_folder): Finished
        implementation.

        * providers/local/camel-local-folder.c (local_rename): Implement
        local rename of folder objects.

2001-10-26    <NotZed@Ximian.com>

        * camel-vee-folder.c (camel_vee_folder_class_init): Hook into
        rename function.
        (vee_rename): Implement the veefolder rename function.
        (camel_vee_folder_class_init):
        (folder_changed_change): Kill a warning with a cast.

        * camel-vee-store.c (vee_rename_folder): Emit a folder_renamed
        event properly, also call parent to do some rename stuff.

        * camel-store.h: Added a CamelRenameInfo for the rename event.

        * camel-folder.c (camel_folder_rename): New function to rename a
        folder object.
        (camel_folder_class_init): Added a renamed event.
        (folder_rename): Default impl, set full_name, and set name
        assuming the dir separator is '/'.

        * camel-store.c (camel_store_class_init): Added folder_renamed
        event.
        (camel_store_rename_folder): Rename an active folder object if we
        have one, and update the folder table.
        (rename_folder): Make a default implementation that handles
        updating the folder tree.

22 years agoDon't bother checking ex since we can rely on the response being NULL on
Jeffrey Stedfast [Sat, 27 Oct 2001 05:12:50 +0000 (05:12 +0000)]
Don't bother checking ex since we can rely on the response being NULL on

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

* providers/imap/camel-imap-store.c (delete_folder): Don't bother
checking ex since we can rely on the response being NULL on error.
(rename_folder): Implemented.

22 years agoUpdate the licensing information to require version 2 of the GPL
Ettore Perazzoli [Sat, 27 Oct 2001 00:20:37 +0000 (00:20 +0000)]
Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

22 years agoCheck to make sure that the dataset is non-NULL before using and/or
Jeffrey Stedfast [Fri, 26 Oct 2001 23:13:20 +0000 (23:13 +0000)]
Check to make sure that the dataset is non-NULL before using and/or

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

* providers/imap/camel-imap-folder.c (imap_get_message): Check to
make sure that the dataset is non-NULL before using and/or
freeing.

22 years agoCheck for EWOULDBLOCK too? (stream_read): Same. (stream_flush): Return 0
Jeffrey Stedfast [Fri, 26 Oct 2001 22:54:02 +0000 (22:54 +0000)]
Check for EWOULDBLOCK too? (stream_read): Same. (stream_flush): Return 0

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

* camel-tcp-stream-raw.c (stream_write): Check for EWOULDBLOCK
too?
(stream_read): Same.
(stream_flush): Return 0 always, fsync() and tcp sockets don't
play nice :-)

* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_get): Lets try putting a
camel_stream_reset() here. Logic being that the stream may have
been read from since it was cached and thus our caller may try
reading from it and get no data from it since it is already at the
EOS. This may fix bug #12943.

22 years agoCheck for EWOULDBLOCK too? (stream_read): Same.
Jeffrey Stedfast [Fri, 26 Oct 2001 22:52:15 +0000 (22:52 +0000)]
Check for EWOULDBLOCK too? (stream_read): Same.

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

* camel-tcp-stream-raw.c (stream_write): Check for EWOULDBLOCK too?
(stream_read): Same.

* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_get): Lets try putting a
camel_stream_reset() here. Logic being that the stream may have
been read from since it was cached and thus our caller may try
reading from it and get no data from it since it is already at the
EOS. This may fix bug #12943.

22 years agoLets try putting a camel_stream_reset() here. Logic being that the stream
Jeffrey Stedfast [Fri, 26 Oct 2001 20:03:02 +0000 (20:03 +0000)]
Lets try putting a camel_stream_reset() here. Logic being that the stream

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

* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_get): Lets try putting a
camel_stream_reset() here. Logic being that the stream may have
been read from since it was cached and thus our caller may try
reading from it and get no data from it since it is already at the
EOS. This may fix bug #12943.

22 years agoRemove the stupid warning that should never have been there in the first
5 [Fri, 26 Oct 2001 00:37:52 +0000 (00:37 +0000)]
Remove the stupid warning that should never have been there in the first

2001-10-25    <NotZed@Ximian.com>

        * camel-search-private.c (utf8_get): Remove the stupid warning
        that should never have been there in the first place.

        * camel-sasl-digest-md5.c (digest_response): s/iconv/e_iconv/

        * camel-pgp-context.c (pgp_verify): "

        * camel-mime-utils.c (rfc2047_decode_word, rfc2047_decode_word,
        append_8bit, rfc2047_encode_word, rfc2184_decode,
        header_decode_param): "

        * camel-mime-part-utils.c (convert_buffer, convert_buffer): "

        * camel-mime-filter-charset.c (reset, complete, filter): "

22 years agoDon't let fi->name be NULL.
Dan Winship [Thu, 25 Oct 2001 00:27:39 +0000 (00:27 +0000)]
Don't let fi->name be NULL.

* providers/imap/camel-imap-store.c (unsubscribe_folder): Don't
let fi->name be NULL.

22 years agoupdated the SIMULATE_FLAKY_NETWORK code
Jeffrey Stedfast [Wed, 24 Oct 2001 22:15:47 +0000 (22:15 +0000)]
updated the SIMULATE_FLAKY_NETWORK code

22 years agoSame as in the TcpStreamRaw code. (stream_write): And again here...
Jeffrey Stedfast [Wed, 24 Oct 2001 21:09:35 +0000 (21:09 +0000)]
Same as in the TcpStreamRaw code. (stream_write): And again here...

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

* camel-stream-fs.c (stream_read): Same as in the TcpStreamRaw code.
(stream_write): And again here...

* camel-tcp-stream-raw.c (stream_read): Handle the EAGAIN error
case as well.
(stream_write): Same here, this might fix the SMTP truncation
thing? I hope?

22 years agoRemove an extra * in one of the regexps that glibc apparently doesn't mind
Dan Winship [Tue, 23 Oct 2001 16:18:47 +0000 (16:18 +0000)]
Remove an extra * in one of the regexps that glibc apparently doesn't mind

* camel-mime-utils.c (mail_list_magic): Remove an extra * in one
of the regexps that glibc apparently doesn't mind but bsd does.

22 years agomade d(x) x recompile again.
3 [Tue, 23 Oct 2001 06:20:06 +0000 (06:20 +0000)]
made d(x) x recompile again.

2001-10-23    <NotZed@Ximian.com>

        * providers/local/camel-mbox-summary.c: made d(x) x recompile again.

22 years agoNo, use Storing, as the other code does :p (spool_summary_check): Check
2 [Mon, 22 Oct 2001 22:40:58 +0000 (22:40 +0000)]
No, use Storing, as the other code does :p (spool_summary_check): Check

2001-10-22    <NotZed@Ximian.com>

        * providers/local/camel-spool-summary.c (summary_rebuild): No, use
        Storing, as the other code does :p
        (spool_summary_check): Check for consistency.

22 years agos/summarising/summarizing/. (spool_summary_check): s/summarise/summarize/.
Jon Trowbridge [Mon, 22 Oct 2001 22:34:46 +0000 (22:34 +0000)]
s/summarising/summarizing/. (spool_summary_check): s/summarise/summarize/.

2001-10-22  Jon Trowbridge  <trow@ximian.com>

* providers/local/camel-spool-summary.c (summary_rebuild):
s/summarising/summarizing/.
(spool_summary_check): s/summarise/summarize/.

22 years agoIf we are kludging around a inline-pgp signed part, do some charset
Jeffrey Stedfast [Mon, 22 Oct 2001 21:50:21 +0000 (21:50 +0000)]
If we are kludging around a inline-pgp signed part, do some charset

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

* camel-pgp-mime.c (camel_pgp_mime_part_verify): If we are
kludging around a inline-pgp signed part, do some charset
conversion to protect any 8bit text.

22 years agoUse search_type_mlist for mailing list searches.
Michael Zucci [Mon, 22 Oct 2001 21:08:05 +0000 (21:08 +0000)]
Use search_type_mlist for mailing list searches.

* camel-filter-search.c, camel-folder-search.c (check_header): Use
search_type_mlist for mailing list searches.

* camel.c (camel_init): call camel-mime-utils-init func.

* camel-mime-utils.c: Changed mail mail_list_magic to include a
domain part, also pre-compile all the patterns.  They are all
backward compatible except List-Id: which now uses the
mail-address-like <list-name.host.name> part rather than the
plain-text part (which might've been blank anyway).
(camel_mime_utils_init): Initialisation function to setup any
static data required by camel-mime-utils at run-time.  We now
setup the base64/charset class tables here, so it doesn't need to
be done statically.
(camel_mime_special_table, camel_mime_base64_rank): No longer
statically initialise these.
(main): Removed + the tests at the end of the file.
(header_raw_check_mailing_list): Dont compile regex's here,
already compiled in utils_init.  Use the regex patterns to remove
leading <'s from addresses.  Also, if there is a domain part
matched, add that after a '@' is added.

camel-search-private.c:
(camel_search_header_match): Added SEARCH_TYPE_MLIST for mlist
search types.  It ignores the domain part if either (but not both)
of the values dont have it.

22 years ago (camel_search_header_match): Oops, missing i=0.
Michael Zucci [Mon, 22 Oct 2001 19:12:06 +0000 (19:12 +0000)]
(camel_search_header_match): Oops, missing i=0.

22 years agoPass a CORBA_Environment to bonobo_config_get_string so it doesn't g_warn
Dan Winship [Mon, 22 Oct 2001 18:46:46 +0000 (18:46 +0000)]
Pass a CORBA_Environment to bonobo_config_get_string so it doesn't g_warn

* e-passwords.c (e_passwords_get_password): Pass a
CORBA_Environment to bonobo_config_get_string so it doesn't g_warn
on error. (Since the "error" is most likely just that the password
isn't cached.)
(e_passwords_remember_password, e_passwords_get_password,
e_passwords_add_password): Change "if (foo) { entire function; }"
to "if (!foo) return;"

* e-html-utils.c (special_chars): Don't allow single quote or
backtick in email addresses, or pipes following URLs.

22 years agoMatch check against all addresses in a multiple address match. Should fix
2 [Mon, 22 Oct 2001 18:29:01 +0000 (18:29 +0000)]
Match check against all addresses in a multiple address match. Should fix

2001-10-22    <NotZed@Ximian.com>

        * camel-search-private.c (camel_search_header_match): Match check
        against all addresses in a multiple address match.  Should fix
        #13051.

22 years agoAdd a hack: if the multipart/signed part has a "x-inline-pgp-hack"
Dan Winship [Mon, 22 Oct 2001 17:44:50 +0000 (17:44 +0000)]
Add a hack: if the multipart/signed part has a "x-inline-pgp-hack"

       * camel-pgp-mime.c (camel_pgp_mime_part_verify): Add a hack: if
       the multipart/signed part has a "x-inline-pgp-hack" parameter in
       its Content-Type, don't pass the MIME headers as part of the data
       to be verified.

22 years agoadded $GNOME_INCLUDEDIR to INCLUDES, needed for latest libgnome, which
Rodrigo Moya [Mon, 22 Oct 2001 17:10:14 +0000 (17:10 +0000)]
added $GNOME_INCLUDEDIR to INCLUDES, needed for latest libgnome, which

2001-10-22  Rodrigo Moya <rodrigo@ximian.com>

* Makefile.am: added $GNOME_INCLUDEDIR to INCLUDES, needed for latest
libgnome, which install headers in $(prefix)/gnome-1.0

22 years agoOnly do the rawtext checks if the part is a text part, otherwise don't
Jeffrey Stedfast [Mon, 22 Oct 2001 02:08:10 +0000 (02:08 +0000)]
Only do the rawtext checks if the part is a text part, otherwise don't

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

* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): Only do the rawtext
checks if the part is a text part, otherwise don't bother wasting
cpu cycles.

22 years agoUpdated comments to make the code a bit more clear.
Jeffrey Stedfast [Mon, 22 Oct 2001 00:45:25 +0000 (00:45 +0000)]
Updated comments to make the code a bit more clear.

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

* camel-store.c (camel_folder_info_build): Updated comments to
make the code a bit more clear.

22 years agoDont do the macro stuff - basically so you can actually debug calls.
1 [Sun, 21 Oct 2001 20:27:43 +0000 (20:27 +0000)]
Dont do the macro stuff - basically so you can actually debug calls.

2001-10-21    <NotZed@Ximian.com>

        * camel-store.c (CS_CLASS): Dont do the macro stuff - basically so
        you can actually debug calls.
        (camel_store_uri_cmp): New function to compare store objects.

        * camel-vee-folder.c (vee_folder_add_info): oops, dont free the
        vuid, since its alloca'd now.
        (folder_changed_change): Kill a compile warning.

22 years agooops, dont free the vuid, since its alloca'd now.
1 [Sun, 21 Oct 2001 18:18:51 +0000 (18:18 +0000)]
oops, dont free the vuid, since its alloca'd now.

2001-10-21    <NotZed@Ximian.com>

* camel-vee-folder.c (vee_folder_add_info): oops, dont free the
vuid, since its alloca'd now.

22 years agoIf no exception supplied, use a local one. (move_message_to): Set the seen
0 [Sat, 20 Oct 2001 01:01:06 +0000 (01:01 +0000)]
If no exception supplied, use a local one. (move_message_to): Set the seen

2001-10-20    <NotZed@Ximian.com>

        * camel-folder.c (move_messages_to): If no exception supplied, use
        a local one.
        (move_message_to): Set the seen flag also when we delete it.

22 years agoIf the destination folder is the vfolder source folder, then
Jeffrey Stedfast [Fri, 19 Oct 2001 23:32:05 +0000 (23:32 +0000)]
If the destination folder is the vfolder source folder, then

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

* camel-vtrash-folder.c (vtrash_move_messages_to): If the
destination folder is the vfolder source folder, then
set_message_flags on it.

22 years agoWhen registering provider, translate all strings.
9 [Fri, 19 Oct 2001 22:25:54 +0000 (22:25 +0000)]
When registering provider, translate all strings.

2001-10-19    <NotZed@Ximian.com>

        * camel-session.c (register_provider): When registering provider,
        translate all strings.

22 years agocamel-vee-folder.c (folder_changed_change): Change logic, we always add
Michael Zucci [Fri, 19 Oct 2001 21:26:18 +0000 (21:26 +0000)]
camel-vee-folder.c (folder_changed_change): Change logic, we always add

camel-vee-folder.c
        (folder_changed_change): Change logic, we always add changed stuff
        if it now matches, but dont remove it unless its auto-remove, only
        propagate changes for it.
        (vee_set_message_flags): Call parent method after doing our work.
        (vee_set_message_user_flag): Same here.

22 years agoFixes a deadlock. camel-vee-folder.c: (folder_changed_change): Ok, so dont
Michael Zucci [Fri, 19 Oct 2001 20:32:22 +0000 (20:32 +0000)]
Fixes a deadlock. camel-vee-folder.c: (folder_changed_change): Ok, so dont

Fixes a deadlock.
camel-vee-folder.c:
(folder_changed_change): Ok, so dont hold the subfolder lock for
the whole duration of the changed event, although we probably
should, requires a recursive mutex.

22 years ago Typo, srlen aint right.
Michael Zucci [Fri, 19 Oct 2001 07:03:50 +0000 (07:03 +0000)]
Typo, srlen aint right.

22 years agocamel-vee-folder.c: (folder_changed_change_uid): Use alloca for vuid, and
Michael Zucci [Fri, 19 Oct 2001 06:39:54 +0000 (06:39 +0000)]
camel-vee-folder.c: (folder_changed_change_uid): Use alloca for vuid, and

camel-vee-folder.c:
(folder_changed_change_uid): Use alloca for vuid, and not
sprintf(".lengths")
(vee_search_by_expression): Dont use sprintf for vuid.
(vee_search_by_uids): "
(vee_folder_add_info): "
(folder_changed_remove_uid): "
(folder_changed_change): "
(folder_changed_change_uid): Also check folder_unmatched for
changed uid's so we properly update/propagate unmatched changes.

22 years agoLock the right lock for unmatched subfolder list stuff. If the sub folder
9 [Fri, 19 Oct 2001 05:33:21 +0000 (05:33 +0000)]
Lock the right lock for unmatched subfolder list stuff. If the sub folder

2001-10-19    <NotZed@Ximian.com>

* camel-vee-folder.c (camel_vee_folder_remove_folder): Lock the
right lock for unmatched subfolder list stuff.  If the sub folder
is deleted & part of unmatched, or the last ref to the sub folder
is gone from unmatched, blow it away completely from unmatched,
but only do it once.
(vee_folder_remove_folder): Added arg to kill unmatched
unconditionally.  Also handle deleted folders, always remove
stuff.
(folder_changed_change): Lock subfolder lock for entirety of
operation, and also check to see if the subfolder is still there
before doing any fancy work (incase it got removed while we were
waiting to execute).

* camel-store.c (camel_store_unsubscribe_folder): If we are
unsubscribing from a folder we have loaded, set the folder
deleted, as with the delete_folder case.

22 years agoIf a charset isn't specified or claims to be utf-8, check the validity of
Jeffrey Stedfast [Fri, 19 Oct 2001 02:34:13 +0000 (02:34 +0000)]
If a charset isn't specified or claims to be utf-8, check the validity of

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

* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): If a charset isn't
specified or claims to be utf-8, check the validity of the text
and if it's invalid, set the rawtext bit to TRUE. If the charset
is x-unknown or some other x- charset, always set the rawtext bit
to TRUE.

22 years agoAdded CAMEL_CFLAGS so we get the right iconv stuff, patch from Yanko
8 [Fri, 19 Oct 2001 01:54:42 +0000 (01:54 +0000)]
Added CAMEL_CFLAGS so we get the right iconv stuff, patch from Yanko

2001-10-18    <NotZed@Ximian.com>

        * providers/(imap|local|pop3|sendmail|smtp)/Makefile.am: Added
        CAMEL_CFLAGS so we get the right iconv stuff, patch from Yanko
        Kaneti <yaneti@declera.com>

22 years agoMake sure the cancel_fd isn't -1.
Jeffrey Stedfast [Fri, 19 Oct 2001 00:30:36 +0000 (00:30 +0000)]
Make sure the cancel_fd isn't -1.

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

* camel-pgp-context.c (crypto_exec_with_passwd): Make sure the
cancel_fd isn't -1.

22 years agoFlush the stream here, not sure it really matters but it might (hopefully)
Jeffrey Stedfast [Thu, 18 Oct 2001 23:15:34 +0000 (23:15 +0000)]
Flush the stream here, not sure it really matters but it might (hopefully)

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

* providers/imap/camel-imap-message-cache.c (insert_finish): Flush
the stream here, not sure it really matters but it might
(hopefully) fix bug #12943.

22 years agoMake user-cancellable.
Jeffrey Stedfast [Thu, 18 Oct 2001 22:48:26 +0000 (22:48 +0000)]
Make user-cancellable.

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

* camel-pgp-context.c (crypto_exec_with_passwd): Make
user-cancellable.

22 years agoString cleanup for bug #6640.
Jeffrey Stedfast [Thu, 18 Oct 2001 22:26:06 +0000 (22:26 +0000)]
String cleanup for bug #6640.

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

* providers/local/camel-local-provider.c: String cleanup for bug
#6640.

22 years agoFix my Cyrus imapd workaround...instead of checking to see if info->flags
Jeffrey Stedfast [Thu, 18 Oct 2001 20:38:45 +0000 (20:38 +0000)]
Fix my Cyrus imapd workaround...instead of checking to see if info->flags

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

* providers/imap/camel-imap-folder.c (imap_sync_online): Fix my
Cyrus imapd workaround...instead of checking to see if info->flags
== FLAGGED, just check to see if it contains any IMAP flags.

22 years agoUse '.' as the inbox name for filter new messages test.
7 [Wed, 17 Oct 2001 22:59:15 +0000 (22:59 +0000)]
Use '.' as the inbox name for filter new messages test.

2001-10-17    <NotZed@Ximian.com>

        * providers/local/camel-maildir-folder.c
        (camel_maildir_folder_new): Use '.' as the inbox name for filter
        new messages test.

22 years agoNew function to clone a folderinfo tree.
7 [Wed, 17 Oct 2001 22:44:27 +0000 (22:44 +0000)]
New function to clone a folderinfo tree.

2001-10-17    <NotZed@Ximian.com>

        * camel-store.c (camel_folder_info_clone): New function to clone a
        folderinfo tree.

22 years agoSame as maildir and mbox append-message.
Jeffrey Stedfast [Wed, 17 Oct 2001 22:23:29 +0000 (22:23 +0000)]
Same as maildir and mbox append-message.

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

* providers/local/camel-mh-folder.c (mh_append_message): Same as
maildir and mbox append-message.

* providers/local/camel-maildir-folder.c (maildir_append_message):
Same as mbox append.

* camel-exception.c (camel_exception_set): Make sure the new
description isn't the same as the old description pointer before
freeing the old one.
(camel_exception_setv): Don't free the old description until we
set the new one this way we can reuse the old description in the
new description.

* providers/local/camel-mbox-folder.c (mbox_append_message): If
errno == EINTR, then we got a user-cancel so set the exception
appropriately so that we don't make the user shit his pants.

22 years agoMake sure the new description isn't the same as the old description
Jeffrey Stedfast [Wed, 17 Oct 2001 22:16:46 +0000 (22:16 +0000)]
Make sure the new description isn't the same as the old description

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

* camel-exception.c (camel_exception_set): Make sure the new
description isn't the same as the old description pointer before
freeing the old one.
(camel_exception_setv): Don't free the old description until we
set the new one this way we can reuse the old description in the
new description.

* providers/local/camel-mbox-folder.c (mbox_append_message): If
errno == EINTR, then we got a user-cancel so set the exception
appropriately so that we don't make the user shit his pants.

22 years agoAdd an optimization for when destination folder is the same as the source
Jeffrey Stedfast [Wed, 17 Oct 2001 21:33:41 +0000 (21:33 +0000)]
Add an optimization for when destination folder is the same as the source

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

* camel-filter-driver.c (do_copy): Add an optimization for when
destination folder is the same as the source folder.

22 years agoPatch from Danw, Use unread count of -1 to mark unflagged messages. Make
7 [Wed, 17 Oct 2001 20:38:15 +0000 (20:38 +0000)]
Patch from Danw, Use unread count of -1 to mark unflagged messages. Make

2001-10-17    <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c (get_folder_info_online):
        (parse_list_response_as_folder_info): Patch from Danw, Use unread
        count of -1 to mark unflagged messages.  Make sure any folder we
        dont lookup explicitly is marked as -1.  Should fix #9947 and
        friends.

        * providers/local/camel-mbox-summary.c (mbox_summary_sync): Only
        touch the summary if the timestamp or size changed.

22 years agoSet the DELETED flag on directly on the info if the source folder doesn't
Jeffrey Stedfast [Wed, 17 Oct 2001 20:23:42 +0000 (20:23 +0000)]
Set the DELETED flag on directly on the info if the source folder doesn't

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

* camel-filter-driver.c (camel_filter_driver_filter_message): Set
the DELETED flag on directly on the info if the source folder
doesn't have summary capability.

22 years agoAs below.
Not Zed [Wed, 17 Oct 2001 04:09:17 +0000 (04:09 +0000)]
As below.

2001-10-17  Not Zed  <NotZed@Ximian.com>

        * camel-tcp-stream-raw.c (stream_write): As below.

        * camel-stream-fs.c (stream_write): If not checking cancellation,
        make sure we write out everything asked of us.

22 years agoRearange the order of the gpg options slightly otherwise it might try to
Jeffrey Stedfast [Wed, 17 Oct 2001 00:12:33 +0000 (00:12 +0000)]
Rearange the order of the gpg options slightly otherwise it might try to

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

* camel-pgp-context.c (pgp_verify): Rearange the order of the gpg
options slightly otherwise it might try to use "--no-tty" as the
filename to verify :-)

22 years agoIf CAMEL_DEBUG is defined, print some useful ref/unref info.
Jeffrey Stedfast [Tue, 16 Oct 2001 21:47:34 +0000 (21:47 +0000)]
If CAMEL_DEBUG is defined, print some useful ref/unref info.

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

* camel-object.[c,h]: If CAMEL_DEBUG is defined, print some useful
ref/unref info.

* providers/imap/camel-imap-store.c (delete_folder): Fixed an
assignment warning.

* camel-uid-cache.c (camel_uid_cache_new): Make sure that the
parent directory exists before trying to open the filename, if it
doesn't, create it.

22 years agoIf no content, dont try and decode further and spit meaningless warnings.
6 [Tue, 16 Oct 2001 20:35:49 +0000 (20:35 +0000)]
If no content, dont try and decode further and spit meaningless warnings.

2001-10-16    <NotZed@Ximian.com>

        * camel-mime-utils.c (header_address_decode): If no content, dont
        try and decode further and spit meaningless warnings.

22 years agoOnly perform the operation on the folder if the folder has summary
Jeffrey Stedfast [Tue, 16 Oct 2001 19:03:16 +0000 (19:03 +0000)]
Only perform the operation on the folder if the folder has summary

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

* camel-filter-driver.c (do_flag): Only perform the operation on
the folder if the folder has summary capability, else just poke
the info directly. Fixes the "Filters don't work" bug.
(do_score): Same.
(do_colour): And here too.

22 years agoSave the errno before calling fcntl so fcntl doesn't overwrite errno in
Jeffrey Stedfast [Mon, 15 Oct 2001 22:10:19 +0000 (22:10 +0000)]
Save the errno before calling fcntl so fcntl doesn't overwrite errno in

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

* camel-stream-fs.c (stream_read): Save the errno before calling
fcntl so fcntl doesn't overwrite errno in case of a previous
error.
(stream_write): Same.

22 years agoReplace the Bcc headers in a single location and don't flush the data
Jeffrey Stedfast [Sat, 13 Oct 2001 18:21:31 +0000 (18:21 +0000)]
Replace the Bcc headers in a single location and don't flush the data

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

* providers/smtp/camel-smtp-transport.c (smtp_data): Replace the
Bcc headers in a single location and don't flush the data unless
the write was successful.

22 years agooops, it should remove the bcc header, not the cc header
Jeffrey Stedfast [Fri, 12 Oct 2001 23:09:34 +0000 (23:09 +0000)]
oops, it should remove the bcc header, not the cc header

22 years agoRemove the stripheader filter from the build.
Jeffrey Stedfast [Fri, 12 Oct 2001 22:45:10 +0000 (22:45 +0000)]
Remove the stripheader filter from the build.

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

* Makefile.am: Remove the stripheader filter from the build.

* camel-mime-filter-stripheader.[c,h]: Removed.

* providers/smtp/camel-smtp-transport.c (smtp_data): Check the
return value of camel_stream_flush to make sure it flushed the
data successfully before continuing. Don't use the stripheader
filter, it was completely broken - instead remove the header and
set it again after we send.

22 years agoUnhook from all events before removing folder.
2 [Fri, 12 Oct 2001 22:27:56 +0000 (22:27 +0000)]
Unhook from all events before removing folder.

2001-10-12    <NotZed@Ximian.com>

        * camel-vee-folder.c (camel_vee_folder_remove_folder): Unhook from
        all events before removing folder.
        (camel_vee_folder_add_folder): Hook onto delete event.
        (camel_vee_folder_finalise): Unhook from deleted event for suibfolder.
        (subfolder_deleted): When the folder is deleted, remove it from
        the vfolder automagically.

22 years agonew parameter to e_passwords_init, and add prototype for
Chris Toshok [Fri, 12 Oct 2001 22:19:34 +0000 (22:19 +0000)]
new parameter to e_passwords_init, and add prototype for

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

* e-passwords.h: new parameter to e_passwords_init, and add
prototype for e_passwords_clear_component_passwords.

* e-passwords.c (e_passwords_init): copy off the component name.
(e_passwords_shutdown): free/NULL the component name.
(e_passwords_clear_component_passwords): new function.  remove the
subtree rooted at /Passwords/<ComponentName>.
(e_passwords_remember_password): use component_name when building
up the path.
(e_passwords_get_password): same.
(e_passwords_add_password): remove/free the currently stored
session password for this key if there is one, before adding the
new one.

22 years agochange prototype for e_passwords_get_password.
Chris Toshok [Fri, 12 Oct 2001 02:01:38 +0000 (02:01 +0000)]
change prototype for e_passwords_get_password.

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

* e-passwords.h: change prototype for e_passwords_get_password.

* e-passwords.c (e_passwords_get_password): remove 'const' from
return type - the return type is now allocated and must be freed
by the caller.

22 years agoconvert the uids list to a subset appropriate for each subfolder before
1 [Thu, 11 Oct 2001 23:39:08 +0000 (23:39 +0000)]
convert the uids list to a subset appropriate for each subfolder before

2001-10-11    <NotZed@Ximian.com>

        * camel-vee-folder.c (vee_search_by_uids): convert the uids list
        to a subset appropriate for each subfolder before trying to search
        on it.

22 years agoRemoved charset/locale charset lookup and iconv_open/close functions,
1 [Thu, 11 Oct 2001 22:08:20 +0000 (22:08 +0000)]
Removed charset/locale charset lookup and iconv_open/close functions,

2001-10-11    <NotZed@Ximian.com>

        * camel-charset-map.[ch]: Removed charset/locale charset lookup
        and iconv_open/close functions, moved to gal.  Fixed all callers.

22 years agoSame.
Jeffrey Stedfast [Thu, 11 Oct 2001 21:57:20 +0000 (21:57 +0000)]
Same.

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

* camel-tcp-stream-ssl.c (ssl_cert_is_saved): Same.

* camel-tcp-stream-openssl.c (ssl_cert_is_saved): Instead of
opening the file, stat it and make sure that it belongs to us.

22 years agoopen the bonobo config db for our passwords. (e_passwords_shutdown): sync
Chris Toshok [Thu, 11 Oct 2001 20:13:23 +0000 (20:13 +0000)]
open the bonobo config db for our passwords. (e_passwords_shutdown): sync

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

* e-passwords.c (e_passwords_init): open the bonobo config db for
our passwords.
(e_passwords_shutdown): sync and unref the bonobo db, and clear
out the per session hash.
(e_passwords_forget_passwords): remove the bonobo config db
/Passwords path, and free up the session hash (but don't destroy
it).
(e_passwords_remember_password): remove the key/value from the
session hash, after inserting it into the bonobo db.
(e_passwords_get_password): look up a session password for the
uri, and if it's not there, consult the bonobo db.
(e_passwords_ask_password): quiet gcc's warnings, and only consult
the toggle button state if we actaully created it.

22 years agoSame hack as below.
Jeffrey Stedfast [Wed, 10 Oct 2001 22:13:05 +0000 (22:13 +0000)]
Same hack as below.

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

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

* camel-tcp-stream-ssl.c (ssl_bad_cert): Hack around the fact that
adding a cert to nss's certdb seems to not work.

22 years agoOnly re-build the folder if we're expunging. Also only clear out the
0 [Wed, 10 Oct 2001 21:50:42 +0000 (21:50 +0000)]
Only re-build the folder if we're expunging. Also only clear out the

2001-10-10    <NotZed@Ximian.com>

        * camel-vee-folder.c (vee_sync): Only re-build the folder if we're
        expunging.  Also only clear out the changed folders list if we're
        expungung and everything worked.

22 years ago slight wording changes, mainly LGPL=>GPL
Michael Zucci [Wed, 10 Oct 2001 21:50:30 +0000 (21:50 +0000)]
slight wording changes, mainly LGPL=>GPL

22 years agoAdded a hack for Solaris systems.
Jeffrey Stedfast [Wed, 10 Oct 2001 21:36:22 +0000 (21:36 +0000)]
Added a hack for Solaris systems.

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

* camel-charset-map.c (camel_charset_map_init): Added a hack for
Solaris systems.

22 years agooops, we want get_unread_message_count, not get_message_count!
0 [Wed, 10 Oct 2001 19:48:27 +0000 (19:48 +0000)]
oops, we want get_unread_message_count, not get_message_count!

2001-10-10    <NotZed@Ximian.com>

        * providers/local/camel-maildir-store.c (scan_dir): oops, we want
        get_unread_message_count, not get_message_count!

2001-10-09    <NotZed@Ximian.com>

        * camel-service.c (camel_service_disconnect): Duplicate connect
        code that unregisters a cancel op if we created one.

22 years agoupdated
Jeffrey Stedfast [Wed, 10 Oct 2001 19:03:29 +0000 (19:03 +0000)]
updated

22 years agoAnother go at getting the logic right again. Make transients only update
9 [Tue, 9 Oct 2001 23:36:31 +0000 (23:36 +0000)]
Another go at getting the logic right again. Make transients only update

2001-10-09    <NotZed@Ximian.com>

        * camel-operation.c (camel_operation_progress): Another go at
        getting the logic right again.  Make transients only update after
        5 seconds (CAMEL_OPERATION_TRANSIENT_DELAY)
        (camel_operation_end): Likewise.

22 years ago Forgot a little bit of debug.
Michael Zucci [Tue, 9 Oct 2001 23:13:21 +0000 (23:13 +0000)]
Forgot a little bit of debug.

22 years agoImplement.
9 [Tue, 9 Oct 2001 22:26:01 +0000 (22:26 +0000)]
Implement.

2001-10-09    <NotZed@Ximian.com>

        * providers/local/camel-spool-folder.c (spool_search_by_uids):
        Implement.

        * providers/imap/camel-imap-search.c (imap_body_contains): If
        searching a sub-set of the total message count, then use a UID
        range to search only specific messages.

        * camel-vee-folder.c (vee_folder_change_match): Removed.
        (folder_changed_add_uid): Helper func for changed code.
        (folder_changed_remove_uid): "
        (folder_changed_change_uid): "
        (folder_changed): Rewritten.  Supports proper auto-updating of
        changes, but not removals till a sync occurs.
        (vee_search_by_uids): Implement.
        (folder_changed): Changed to call an async threaded function to do
        the actual folder updating.

        * camel-folder-summary.c (camel_flag_list_copy): New func to copy
        a whole list of flags.
        (camel_tag_list_copy): New func to copy a whole list of flags.

        * providers/imap/camel-imap-folder.c (imap_search_by_uids):
        Implement.

        * providers/local/camel-local-folder.c (local_search_by_uids):
        Implement.

        * camel-folder.c (camel_folder_search_by_uids): New function,
        search a subset of uid's.
        (search_by_uids): Default impl, return error.

22 years agoreplace the ever-growing list of gbooleans with a single guint32 for
Dan Winship [Tue, 9 Oct 2001 03:07:39 +0000 (03:07 +0000)]
replace the ever-growing list of gbooleans with a single guint32 for

* camel-folder.h (struct _CamelFolder): replace the ever-growing
list of gbooleans with a single guint32 for flags.

* camel-folder.c: Update folder flag setting/checking.

* providers/pop3/camel-pop3-folder.c (camel_pop3_folder_init):
* providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new):
* providers/local/camel-spool-folder.c (spool_init,
camel_spool_folder_new):
* providers/local/camel-maildir-folder.c (camel_maildir_folder_new):
* providers/local/camel-local-folder.c (local_init):
* providers/imap/camel-imap-folder.c (camel_imap_folder_init,
camel_imap_folder_new):
* camel-vtrash-folder.c (camel_vtrash_folder_init):
* camel-vee-folder.c (camel_vee_folder_init):
* camel-digest-folder.c (camel_digest_folder_init): update folder
flag setting.

22 years agoUnlock the store before returning error. (noted by NotZed)
Dan Winship [Mon, 8 Oct 2001 16:29:32 +0000 (16:29 +0000)]
Unlock the store before returning error. (noted by NotZed)

* providers/imap/camel-imap-store.c (get_folder_online): Unlock
the store before returning error. (noted by NotZed)

22 years agoFix a slight error in logic. Just because the last word was an encoded
Jeffrey Stedfast [Sat, 6 Oct 2001 23:44:46 +0000 (23:44 +0000)]
Fix a slight error in logic. Just because the last word was an encoded

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

* camel-mime-utils.c (header_decode_text): Fix a slight error in
logic. Just because the last word was an encoded word doesn't mean
we ignore the lwsp padding, we only ignore it if the last word and
*this* word are encoded.

22 years agoImplemented uuencoding and decoding. (complete): Implemented uuencoding
Jeffrey Stedfast [Sat, 6 Oct 2001 07:19:41 +0000 (07:19 +0000)]
Implemented uuencoding and decoding. (complete): Implemented uuencoding

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

* camel-mime-filter-basic.c (filter): Implemented uuencoding and
decoding.
(complete): Implemented uuencoding and decoding.

* camel-mime-utils.c (uuencode_close): New function to flush the
uu encoder.
(uuencode_step): New function to uuencode a block of data.

22 years agoUse a folder_subscribed event rather than a folder_created one.
5 [Fri, 5 Oct 2001 21:49:17 +0000 (21:49 +0000)]
Use a folder_subscribed event rather than a folder_created one.

2001-10-05    <NotZed@Ximian.com>

        * providers/imap/camel-imap-store.c (subscribe_folder): Use a
        folder_subscribed event rather than a folder_created one.
        (unsubscribe_folder): Similarly for unsubscribed/deleted.
        (create_folder): Emit a folder_created event on the folders we
        added.  Not sure hsould probably check which ones are new and
        which ones are just existing ones?
        (delete_folder): Emit a folder_deletd event when we've deleted the
        folder.  Part of fix for #11831.

        * camel-store.c (camel_store_class_init): Added
        folder_subscribed/unsubscribed events.

22 years agoTurn off warnings. (get_name): Same.
Jeffrey Stedfast [Fri, 5 Oct 2001 19:38:24 +0000 (19:38 +0000)]
Turn off warnings. (get_name): Same.

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

* camel-service.c (camel_service_finalize): Turn off warnings.
(get_name): Same.

* camel-sasl.c (sasl_challenge): Turn off warnings.

* camel-tcp-stream.c (tcp_connect): Turn off warnings.
(tcp_getsockopt): Same.
(tcp_setsockopt): Here too.
(tcp_get_socket): And here.

* camel-folder.c (folder_sync): Turn off warnings.
(expunge): Same.
(append_message): Here too.
(get_message): And here.
(search_by_expression): And again here.
(folder_changed): Here too.

* camel-store.c (get_folder): Set an exception and turn off
debugging g_warnings.
(create_folder): Same.
(delete_folder): Here too.
(rename_folder): And here.
(get_trash): And here.
(get_folder_info): Same.
(free_folder_info): And again here.
(camel_folder_info_build): Here too.
(folder_subscribed): Same.
(subscribe_folder): Here too.
(unsubscribe_folder): And here.

22 years agoTry harder to get broken names out of addresses. Unencoded ,'s in names
5 [Fri, 5 Oct 2001 18:52:21 +0000 (18:52 +0000)]
Try harder to get broken names out of addresses. Unencoded ,'s in names

2001-10-05    <NotZed@Ximian.com>

* camel-mime-utils.c (header_decode_mailbox): Try harder to get
broken names out of addresses.  Unencoded ,'s in names will still
break it, but well what can you do eh?
(header_decode_mailbox): Always add .'s into address we've scanned
past a '.', even if we can't decode the next part.  Fix for some
annoying bug #.

22 years agoChange the order of execution slightly. We delete the folder first, then
4 [Fri, 5 Oct 2001 18:08:22 +0000 (18:08 +0000)]
Change the order of execution slightly. We delete the folder first, then

2001-10-04    <NotZed@Ximian.com>

        * camel-store.c (camel_store_delete_folder): Change the order of
        execution slightly.  We delete the folder first, then call the
        classes delete folder, then cleanup the hashtable afterwards.
        This is so deletes of vfolders work, since vee-store uses the
        folder hashtable to store all of is vfolders :-/

22 years agotedfast <fejj@ximian.com>
Jeffrey Stedfast [Thu, 4 Oct 2001 18:12:36 +0000 (18:12 +0000)]
tedfast <fejj@ximian.com>

tedfast  <fejj@ximian.com>

* camel-service.c (camel_service_connect): Unregister the
operation before unreffing it.