aboutsummaryrefslogtreecommitdiffstats
path: root/camel
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo. #53466.Priit Laes2004-05-013-3/+6
| | | | | | | | 2004-04-30 Priit Laes <amd@tt.ee> * providers/nntp/camel-nntp-summary.c: Fix typo. #53466. svn path=/trunk/; revision=25722
* Change the UID_SET_LIMIT to 768 (something <1000 octets as suggested byJeffrey Stedfast2004-04-282-2/+9
| | | | | | | | | | 2004-04-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c: Change the UID_SET_LIMIT to 768 (something <1000 octets as suggested by rfc2683). Fixes bug #57389. svn path=/trunk/; revision=25665
* Mark exception strings for translation and fixed a spelling mistake.Jeffrey Stedfast2004-04-282-55/+60
| | | | | | | | | 2004-04-28 Jeffrey Stedfast <fejj@ximian.com> * camel-smime-context.c: Mark exception strings for translation and fixed a spelling mistake. svn path=/trunk/; revision=25664
* ** See bug #57659.Not Zed2004-04-273-5/+15
| | | | | | | | | | | | | | 2004-04-27 Not Zed <NotZed@Ximian.com> ** See bug #57659. * camel-vee-store.c (vee_get_folder_info): translate Unmatched in the folder display name. * camel-store.c (add_special_info): dont translate full_name or path, only do that for name. svn path=/trunk/; revision=25626
* Added HAS_LICENSE flag for allowing camel providers to display licenseSarfraaz Ahmed2004-04-232-0/+18
| | | | | | | | | 2004-04-23 Sarfraaz Ahmed <asarfraaz@novell.com> * camel-provider.h: Added HAS_LICENSE flag for allowing camel providers to display license file. svn path=/trunk/; revision=25592
* Send a flag list rather than \Deleted by itself. See #57381.Not Zed2004-04-222-4/+10
| | | | | | | | | | 2004-04-22 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (imap_expunge_uids_online) (imap_expunge_uids_resyncing): Send a flag list rather than \Deleted by itself. See #57381. svn path=/trunk/; revision=25574
* Don't bother doing any work if perm_flags is 0.Jeffrey Stedfast2004-04-222-6/+16
| | | | | | | | | 2004-04-21 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (imap4_sync_changes): Don't bother doing any work if perm_flags is 0. svn path=/trunk/; revision=25572
* added CAMEL_LIBS to LIBADD added new function to get addres book namesSivaiah Nallagatla2004-04-213-68/+176
| | | | | | | | | | | | 2004-04-21 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/Makefile.am : added CAMEL_LIBS to LIBADD * providers/groupwise/camel-gw-listener.c (get_addressbook_names_from_server): added new function to get addres book names from server. (add_addressbook_sources) (modify_addressbook_sources) : changed the implementation to use address book returned form above call while creating e-sources svn path=/trunk/; revision=25559
* set the meta data file on nntp folders.Not Zed2004-04-212-0/+8
| | | | | | | | | 2004-04-21 Not Zed <NotZed@Ximian.com> * providers/nntp/camel-nntp-folder.c (camel_nntp_folder_new): set the meta data file on nntp folders. svn path=/trunk/; revision=25553
* implement dummy virtual method.Not Zed2004-04-213-0/+45
| | | | | | | | | | | | 2004-04-21 Not Zed <NotZed@Ximian.com> * camel-disco-folder.c (disco_refresh_info_online): implement dummy virtual method. * providers/nntp/camel-nntp-folder.c (nntp_folder_refresh_info_online): implement. Fixes #57280. svn path=/trunk/; revision=25552
* Fixed to not expect ]'s as part of the BODY atom token.Jeffrey Stedfast2004-04-202-1/+12
| | | | | | | | | 2004-04-19 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (untagged_fetch): Fixed to not expect ]'s as part of the BODY atom token. svn path=/trunk/; revision=25520
* will never be true. Fixes bug #56982.Jeffrey Stedfast2004-04-172-1/+6
| | | | | | | | | 2004-04-16 Jeffrey Stedfast <fejj@ximian.com> * camel-vee-store.c (change_folder): (flags & 0) will never be true. Fixes bug #56982. svn path=/trunk/; revision=25495
* Changed imap_atom_specials[] to not treat ']' as an atom char (as perJeffrey Stedfast2004-04-162-2/+10
| | | | | | | | | | 2004-04-15 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-utils.c: Changed imap_atom_specials[] to not treat ']' as an atom char (as per rfc3501). Fixes bug #50985. svn path=/trunk/; revision=25485
* Use %F instead of %S so that the folder name gets properly converted fromJeffrey Stedfast2004-04-152-1/+9
| | | | | | | | | | | | 2004-04-14 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (imap_check_folder_still_extant): Use %F instead of %S so that the folder name gets properly converted from using '/' path delimeters to whatever the native character the server uses. Should fix bug #56715. svn path=/trunk/; revision=25465
* do offline mail syncing (only for open folders so far). If we fail doingNot Zed2004-04-142-5/+38
| | | | | | | | | | 2004-04-14 Not Zed <NotZed@Ximian.com> * camel-disco-store.c (set_status): do offline mail syncing (only for open folders so far). If we fail doing syncing or store sync, don't abort. svn path=/trunk/; revision=25453
* Rearranged some error checking code to fix bug #56405.Jeffrey Stedfast2004-04-142-10/+16
| | | | | | | | | 2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): Rearranged some error checking code to fix bug #56405. svn path=/trunk/; revision=25448
* implement the new counts, and get them all atomically so they're onlyNot Zed2004-04-133-14/+60
| | | | | | | | | | | | | | 2004-04-13 Not Zed <NotZed@Ximian.com> * camel-folder.c (folder_getv): implement the new counts, and get them all atomically so they're only calculated once and can return consistent results. * camel-folder.h: Added CAMEL_FOLDER_DELETED, CAMEL_FOLDER_JUNKED, and CAMEL_FOLDER_VISIBLE args, to support client display of various values. svn path=/trunk/; revision=25437
* Fix NotZed's fix to not mark messages as unseen. Fixes bug #56879.Jeffrey Stedfast2004-04-132-4/+9
| | | | | | | | | 2004-04-13 Jeffrey Stedfast <fejj@ximian.com> * camel-folder.h (camel_folder_delete_message): Fix NotZed's fix to not mark messages as unseen. Fixes bug #56879. svn path=/trunk/; revision=25436
* change the auth type string from Password to plain/passwordSivaiah Nallagatla2004-04-132-1/+7
| | | | | | | | | | 2004-04-13 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (add_addressbook_sources) : change the auth type string from Password to plain/password svn path=/trunk/; revision=25426
* Fix for bug #56878.Jeffrey Stedfast2004-04-132-8/+29
| | | | | | | | | | | | | | | | 2004-04-12 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #56878. * camel-gpg-context.c (gpg_verify): Don't rely on the exit code of gpg, we already save enough state to decide if the sig is valid without it. Modified to only set BAD if gpg->validsig and gpg->nopubkey are both FALSE. If we get a NO_PUBKEY status message, then it simply means that the the sender could not be verified. (gpg_ctx_parse_status): Listen for NO_PUBKEY status messages. svn path=/trunk/; revision=25420
* add bookname to uriSivaiah Nallagatla2004-04-112-6/+11
| | | | | | | | | | 2004-04-11 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (add_addressbook_sources) (modify_addressbook_sources) : add bookname to uri svn path=/trunk/; revision=25412
* Fix capitalisation of the "mailcheck" section title and move it to the topJeffrey Stedfast2004-04-103-7/+17
| | | | | | | | | | | | | | 2004-04-09 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-provider.c: Fix capitalisation of the "mailcheck" section title and move it to the top (so it matches with the UI). * providers/imap/camel-imap-folder.c (imap_get_message): Fetch the entire message in one fell swoop even if the message size is larger than 5k *if* the message is a single part. Fixes bug #56686. svn path=/trunk/; revision=25387
* Changed (!flags & _CREATE) to (!(flags & _CREATE)) (get_folder_online): DoJeffrey Stedfast2004-04-082-4/+108
| | | | | | | | | | | | | 2004-04-08 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): Changed (!flags & _CREATE) to (!(flags & _CREATE)) (get_folder_online): Do what create_folder() does and if the parent folder has \NoInferiors set but contains no messages, delete the parent folder and recreate it before creating the child folder. Fixes bug #56651. svn path=/trunk/; revision=25374
* always set the seen flag when we delete a message. I demand that this may,Not Zed2004-04-083-2/+11
| | | | | | | | | | | | | | 2004-04-08 Not Zed <NotZed@Ximian.com> * camel-folder.h (camel_folder_delete_message): always set the seen flag when we delete a message. I demand that this may, or may not, fix #56549. * camel-folder.c: (camel_folder_set_message_flags): fixed the doco slightly (well reversed the flag and set explanation) and give an example. svn path=/trunk/; revision=25371
* include camel-debug.hNot Zed2004-04-085-54/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-08 Not Zed <NotZed@Ximian.com> * camel-folder.c: include camel-debug.h * providers/local/camel-mbox-folder.c (mbox_set_message_user_flag): message changed to folder_changed. (mbox_set_message_user_tag): ditto. * camel-vee-folder.c (camel_vee_folder_finalise): dont hook onto message_changed. (camel_vee_folder_add_folder): or unhook. (camel_vee_folder_remove_folder): " (message_changed): or proxy. * camel-folder.c (camel_folder_class_init): removed the message_changed event - its redundant, and covered by folder_changed, and just makes life difficult for everything using message_changed/folder_changed (and nothing uses it anyway). (message_changed): removed. (set_message_user_flag): emit a folder_changed event instead of message changed. (set_message_user_tag): " (set_message_flags): " * camel-object.h: revered the CAMEL_OBJECT_TYPE change, it should be a global variable access. svn path=/trunk/; revision=25367
* Added mutex locking where appropriate.Jeffrey Stedfast2004-04-072-2/+27
| | | | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c: Added mutex locking where appropriate. svn path=/trunk/; revision=25348
* Added mutex locking where appropriate.Jeffrey Stedfast2004-04-072-11/+57
| | | | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c: Added mutex locking where appropriate. svn path=/trunk/; revision=25346
* Defined.Jeffrey Stedfast2004-04-078-8/+26
| | | | | | | | | | | | | | | | 2004-04-06 Jeffrey Stedfast <fejj@ximian.com> * camel-folder-summary.h (CAMEL_FOLDER_SUMMARY_TYPE): Defined. * camel-object.h (CAMEL_OBJECT_TYPE): Fixed. * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_utf7_name): Implemented. * providers/imap4/camel-imap4-store.c (imap4_build_folder_info): Use camel_folder_info_build() to build the folder-info tree. svn path=/trunk/; revision=25345
* #if 0 out the sys/debugreg stuff.Not Zed2004-04-062-1/+3
| | | | | | | | 2004-04-06 Not Zed <NotZed@Ximian.com> * camel-debug.c: #if 0 out the sys/debugreg stuff. svn path=/trunk/; revision=25334
* ** See bug #56110.Not Zed2004-04-063-12/+69
| | | | | | | | | | | | | | | | | | | | | 2004-04-06 Not Zed <NotZed@Ximian.com> ** See bug #56110. * providers/imap/camel-imap-folder.c (get_content): more debug! (get_content): if we have no content-type header set on a sub-part of a multipart/digest, then we need to set it to message/rfc822 as in the multipart/digest rfc (2046 or so?). * camel-folder.c (camel_folder_get_message): output this stuff as folder debug. * providers/imap/camel-imap-folder.c (imap_get_message): add some imap:folder debug. (get_content): get xx.TEXT rather than xx if we're from a message parent part. svn path=/trunk/; revision=25333
* ** See bug #56464.Not Zed2004-04-065-16/+59
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-06 Not Zed <NotZed@Ximian.com> ** See bug #56464. * camel-folder.c (camel_folder_transfer_messages_to): do not lock the source here. (transfer_message_to): call the main entry point for get message and append message. ** See bug #56050. * camel-vee-store.c (vee_delete_folder): delete the state file if it exists. * camel-object.c (camel_object_state_write): create the parent dir if we need to. Also spit a warning if we fail in the end. * camel-vee-folder.c (camel_vee_folder_new): set the persistent state file location. (vee_sync): write the state file when we sync. svn path=/trunk/; revision=25331
* dont add folders to folders_out here, only in get_folders_add_folders.Not Zed2004-04-053-13/+21
| | | | | | | | | | | | | | | | | | 2004-04-05 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folders): dont add folders to folders_out here, only in get_folders_add_folders. * camel-store.c (camel_folder_info_build): simplify 'list append' since we have next pointer at the head of the struct. * providers/imap/camel-imap-store.c (create_folder): fixed "containes" spelling count. (get_folder_online): " (get_folders_add_folders): duh, add the folder info to the folders_out array. svn path=/trunk/; revision=25310
* New function to get the deleted message count (used for Outbox count whichJeffrey Stedfast2004-04-033-5/+53
| | | | | | | | | | 2004-04-02 Jeffrey Stedfast <fejj@ximian.com> * camel-folder.c (camel_folder_get_deleted_message_count): New function to get the deleted message count (used for Outbox count which is total minus deleted). svn path=/trunk/; revision=25304
* turn this on, this should always be on, it points to real bugs in theNot Zed2004-04-023-7/+33
| | | | | | | | | | | | | 2004-04-02 Not Zed <NotZed@Ximian.com> * camel-exception.c (w): turn this on, this should always be on, it points to real bugs in the code. * camel-folder-summary.c (summary_build_content_info): dont set attachments if its a signature block. (summary_build_content_info_message): same. svn path=/trunk/; revision=25298
* Wrap annoying exeption warnings with w().Jeffrey Stedfast2004-04-022-6/+12
| | | | | | | | 2004-04-01 Jeffrey Stedfast <fejj@ximian.com> * camel-exception.c (w): Wrap annoying exeption warnings with w(). svn path=/trunk/; revision=25288
* fixed changelogJeffrey Stedfast2004-03-311-1/+0
| | | | svn path=/trunk/; revision=25255
* Partially implemented. (imap4_get_folder): Implemented.Jeffrey Stedfast2004-03-313-19/+305
| | | | | | | | | | 2004-03-30 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-store.c (imap4_get_folder_info): Partially implemented. (imap4_get_folder): Implemented. svn path=/trunk/; revision=25254
* Use header_decode_text() rather than rfc2047_decode_word() to decode theJeffrey Stedfast2004-03-312-2/+9
| | | | | | | | | | | | 2004-03-30 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (header_decode_param): Use header_decode_text() rather than rfc2047_decode_word() to decode the brokenly rfc2047 encoded param value string in case it is actually made up of multiple rfc2047 encoded words. Thanks to Andrei Nigmatulin for the fix. svn path=/trunk/; revision=25243
* added some debug to dump the whole folderinfo tree if store:folder_info isNot Zed2004-03-307-22/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-30 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_get_folder_info): added some debug to dump the whole folderinfo tree if store:folder_info is set. * providers/imapp/camel-imapp-driver.c: #if 0 out some code, to kill warnings. * camel-url-scanner.c: include ctype.h for isspace (wonder if it should use utf8 funcs?). 2004-03-29 Not Zed <NotZed@Ximian.com> ** See #56146. * providers/imap/camel-imap-store.c (get_folders): check the top-level folders list for duplicates as well. (get_folders_add_folders): split out the folder return merging code from get_folders. Absolute mess of crap to deal with more busted servers. * camel-debug.c (camel_debug_start, camel_debug_end): some helpers to wrap debug output for atomicicity. svn path=/trunk/; revision=25238
* Implemented.Jeffrey Stedfast2004-03-3026-1997/+2114
| | | | | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap4-folder.c (camel_imap4_folder_new): Implemented. * providers/imap4/camel-imap4-engine.c (engine_parse_namespace): If the namespace begins with "INBOX", canonicalise the INBOX portion (ie, make it all caps). * providers/imap4/camel-imap4-store.c (imap4_noop): Implemented. svn path=/trunk/; revision=25237
* Updated to actually parse the STATUS response into a list of item/valueJeffrey Stedfast2004-03-302-23/+128
| | | | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_status): Updated to actually parse the STATUS response into a list of item/value pairs. (create_folder): Updated for above change. (get_folder_counts): Only call get_folder_status() once (we can get both values with a single call now). Fixes a FIXME and might also fix bug #55784. svn path=/trunk/; revision=25232
* Removed debugging printfs.Jeffrey Stedfast2004-03-303-4/+13
| | | | | | | | | | | | | | | | 2004-03-29 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder_info): Removed debugging printfs. * providers/local/camel-local-folder.c (camel_local_folder_construct): Since the folder was *just* created, it shouldn't have any subfolders so set the CAMEL_FOLDER_NOCHILDREN flag (altho, ideally, we wouldn't be guessing these flags at all - rather we'd call get_folder_info() or some such). Fixes bug #56010. svn path=/trunk/; revision=25231
* close pre tag in case we just flush. I am not sure if it's still worth toRadek Doulik2004-03-302-3/+24
| | | | | | | | | | | | | 2004-03-29 Radek Doulik <rodo@ximian.com> * camel-mime-filter-tohtml.c (html_convert): close pre tag in case we just flush. I am not sure if it's still worth to check for inlen == 0 and handle it specially, but didn't want to make too big changes. Fixes #55817 svn path=/trunk/; revision=25229
* use object_bag_peek instead of _get, since we dont want to clash/wait forNot Zed2004-03-294-23/+51
| | | | | | | | | | | | | | | 2004-03-29 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_counts): use object_bag_peek instead of _get, since we dont want to clash/wait for reservations. More #56045 related fixes. (get_folder_counts): revert the lookup/hashtable stuff for the folder, and use object_bag_peek. * camel-object.c (camel_object_bag_peek): new method to get an object bag entry without worrying about if its reserved or not. svn path=/trunk/; revision=25220
* get the content-type off of the multipart-signed, not its container. ThisNot Zed2004-03-292-2/+6
| | | | | | | | | | 2004-03-29 Not Zed <NotZed@Ximian.com> * camel-gpg-context.c (gpg_verify): get the content-type off of the multipart-signed, not its container. This seems wrong ... but might fix #56084. svn path=/trunk/; revision=25218
* remove locking here, we're locked whne we enter. (fill_fi): callNot Zed2004-03-292-4/+9
| | | | | | | | | | 2004-03-29 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_counts): remove locking here, we're locked whne we enter. (fill_fi): call refresh_info unlocked. More for #56045. svn path=/trunk/; revision=25217
* New source files implementing the CamelFolder class for the new IMAP4Jeffrey Stedfast2004-03-294-0/+840
| | | | | | | | | | 2004-03-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-folder.[c,h]: New source files implementing the CamelFolder class for the new IMAP4 implementation. svn path=/trunk/; revision=25215
* added .cvsignoreJeffrey Stedfast2004-03-291-0/+7
| | | | svn path=/trunk/; revision=25214
* added camel-imap-store.[c,h] to the buildJeffrey Stedfast2004-03-292-20/+47
| | | | svn path=/trunk/; revision=25213
* added camel-imap-provider.cJeffrey Stedfast2004-03-293-1/+141
| | | | svn path=/trunk/; revision=25211
* build fixesJeffrey Stedfast2004-03-292-6/+7
| | | | svn path=/trunk/; revision=25210
* New source files implementing the CamelFolderSummary class for the newJeffrey Stedfast2004-03-294-0/+1206
| | | | | | | | | | 2004-03-28 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-summary.[c,h]: New source files implementing the CamelFolderSummary class for the new IMAP4 implementation. svn path=/trunk/; revision=25209
* Reverted imap.web.de fix.Jeffrey Stedfast2004-03-272-6/+8
| | | | | | | | | 2004-03-26 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_update_summary): Reverted imap.web.de fix. svn path=/trunk/; revision=25199
* Added new maildir flags D for draft and commented P for forwarded.Not Zed2004-03-263-4/+30
| | | | | | | | | | | | | | 2004-03-26 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-summary.c (flagbits[]): Added new maildir flags D for draft and commented P for forwarded. * providers/imap/camel-imap-store.c (get_folder_counts): Instead of looking up the folder in the object bag which will handle reservations and perhaps deadlock, just get the list of opened folders and use them if they're available. Should fix #56045. svn path=/trunk/; revision=25195
* No longer need to split ']' tokens from atom tokens due to a fixup in theJeffrey Stedfast2004-03-265-35/+914
| | | | | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-engine.c (camel_imap_engine_parse_resp_code): No longer need to split ']' tokens from atom tokens due to a fixup in the ABNF grammar in rfc3501. * providers/imap4/camel-imap-specials.c: Changed ATOM_SPECIALS to include ']' (this is an addition in rfc3501). * providers/imap4/camel-imap-store.[c,h]: New Store class for IMAP. Implemnted a bunch of but still got a ways to go. svn path=/trunk/; revision=25192
* If the server is imap.web.de, just ask for all the headers rather thanJeffrey Stedfast2004-03-264-8/+32
| | | | | | | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_update_summary): If the server is imap.web.de, just ask for all the headers rather than "HEADER.FIELDS.NOT (RECEIVED)". Actually, maybe we should always just query for the entire header block? (imap_get_message): If the server is brain-damaged (that's a technical term), always fetch the message in whole, never bother to try and fetch partial messages (Courier-IMAP gives us the wrong BODY responses fairly often). * providers/imap/camel-imap-store.c (connect_to_server): Set store->braindamaged to TRUE if we find the string "Courier-IMAP" in the greeting. svn path=/trunk/; revision=25190
* Fix for bug #55018.Jeffrey Stedfast2004-03-262-4/+35
| | | | | | | | | | | | | | | | 2004-03-25 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55018. * providers/imap/camel-imap-store.c (create_folder): Don't allow the suer to create folders with #, %, * or the directory separator in the folder name (added the checks for %, * and #). (get_folder_online): Add a check to make sure the folder name is sane before sending a CREATE (ie. we want to allow getting of folders with discouraged characters in them if they exist, but we don't want to allow the user to create them). svn path=/trunk/; revision=25186
* Removed newline character from the provider descriptionMartyn Russell2004-03-252-1/+6
| | | | | | | | | 2004-03-25 Martyn Russell <ginxd@btopenworld.com> * providers/smtp/camel-smtp-provider.c: Removed newline character from the provider description svn path=/trunk/; revision=25182
* removed ldap seetings and added a settng for SOAP port read port numberSivaiah Nallagatla2004-03-253-93/+80
| | | | | | | | | | | | | | 2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-groupwise-provider.c : removed ldap seetings and added a settng for SOAP port * providers/groupwise/camel-gw-listner.h (add_calendar_tasks_sources) (remove_calendar_tasks_sources), (modify_calendar_tasks_sources) : read port number from url instead of hardcoding Also removed code for adding e-sources for ldap address book and adding now e-sources for groupwise address book svn path=/trunk/; revision=25180
* New convenience wrapper function. (engine_parse_status): Fixed to handleJeffrey Stedfast2004-03-254-9/+79
| | | | | | | | | | | | | | | | 2004-03-24 Jeffrey Stedfast <fejj@ximian.com> * providers/imap4/camel-imap-engine.c (camel_imap_engine_literal): New convenience wrapper function. (engine_parse_status): Fixed to handle literal mailbox strings. * providers/imap4/camel-imap-command.c (camel_imap_command_newv): Changed how %L works - create the CamelIMAPLiteral for our caller instead of expecting them to create it for us. We can autodetect what type of object (stream vs data-wrapper) the literal is, so it's trivial to do. svn path=/trunk/; revision=25179
* #include <stdlib.h> for strtoul()Jeffrey Stedfast2004-03-251-0/+1
| | | | svn path=/trunk/; revision=25178
* The beginnings of a new IMAP provider moduleJeffrey Stedfast2004-03-2512-0/+4071
| | | | svn path=/trunk/; revision=25176
* Reworked the else bit to fix a bug where if we had the BODY structure, weJeffrey Stedfast2004-03-242-51/+56
| | | | | | | | | | 2004-03-23 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_get_message): Reworked the else bit to fix a bug where if we had the BODY structure, we simply wouldn't try fetching the actual message. svn path=/trunk/; revision=25161
* use camel debug to add some debug here.Not Zed2004-03-237-69/+260
| | | | | | | | | | | | | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * camel-exception.c (camel_exception_setv): use camel debug to add some debug here. * camel.c (camel_init): call camel_debug_init(). * camel-debug.c (camel_debug_init, camel_debug): new util stuff for extended debug options. * providers/imap/camel-imap-folder.c (imap_get_message): if we're supposed to be online, check we are online before proceeding. Actually major restructure so we re-try the fetch a couple of times first before failing. i.e. silent reconnect. See #55381. svn path=/trunk/; revision=25153
* connect lock around this. was getting a race with mem corruptionNot Zed2004-03-232-2/+12
| | | | | | | | | | 2004-03-23 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_folder_info_online): connect lock around this. was getting a race with mem corruption otherwise. svn path=/trunk/; revision=25151
* decode newsgroups header into a list of newsgroups.Not Zed2004-03-225-2/+81
| | | | | | | | | | | | | | | | | | 2004-03-22 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (camel_header_newsgroups_decode) (camel_header_newsgroups_free): decode newsgroups header into a list of newsgroups. ** See #55887. * providers/nntp/camel-nntp-summary.c (camel_nntp_summary_check): NOOP if we're offline. * providers/nntp/camel-nntp-store.c (nntp_connected): spit a warning if we try to do stuff whilst offline, rather than crash. svn path=/trunk/; revision=25142
* ref the diary before replaying it. it could get unreffed during replay ifNot Zed2004-03-193-9/+16
| | | | | | | | | | | | | | | 2004-03-19 Not Zed <NotZed@Ximian.com> * camel-disco-store.c (disco_connect): ref the diary before replaying it. it could get unreffed during replay if there's an error and we disconnect. * camel-store.c (camel_store_get_folder): no longer use folder_lock, we already have adequate serialisation code here or below here. I hope. (camel_store_get_folder_info): same here. svn path=/trunk/; revision=25126
* remove async_thread thing.Not Zed2004-03-194-59/+4
| | | | | | | | 2004-03-19 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.h: remove async_thread thing. svn path=/trunk/; revision=25125
* Checking that mi->content->type != NULL is no longer good enough to tellJeffrey Stedfast2004-03-182-4/+30
| | | | | | | | | | | | | 2004-03-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_get_message): Checking that mi->content->type != NULL is no longer good enough to tell if a ContentInfo is complete (ie. contains the parsed BODY response). We need to check that th ContentInfo has children if the part is a multipart of message/rfc822 part. Apparently Zucchi didn't test his camel-folder-summary changes using IMAP. svn path=/trunk/; revision=25105
* reverted last fix and:Radek Doulik2004-03-183-36/+35
| | | | | | | | | 2004-03-17 Radek Doulik <rodo@ximian.com> * camel-folder-summary.h: use 1<<30 for CAMEL_MESSAGE_JUNK_LEARN, 1<<17 was already used by imap provider and maybe others svn path=/trunk/; revision=25103
* Don't bloody junktest filter mail unless the user has configured EvolutionJeffrey Stedfast2004-03-182-27/+37
| | | | | | | | | 2004-03-17 Jeffrey Stedfast <fejj@ximian.com> * camel-folder.c (folder_changed): Don't bloody junktest filter mail unless the user has configured Evolution to do so. svn path=/trunk/; revision=25102
* Reverted jeff's fix for #55018, since it wasn't tested, and doesn't work.Not Zed2004-03-172-75/+35
| | | | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * providers/local/camel-maildir-store.c: Reverted jeff's fix for #55018, since it wasn't tested, and doesn't work. Wrote an alternate implementation, and tested it at least once. Turns out it was a one line error, it still wasn't tested. Oh well, its rewritten now. svn path=/trunk/; revision=25100
* See bug #55618.Not Zed2004-03-175-1/+54
| | | | | | | | | | | | | | | | | | | | 2004-03-17 Not Zed <NotZed@Ximian.com> * See bug #55618. * camel-disco-diary.c (camel_disco_diary_new): seek to the end of the file after we open it. c99 apparently says the file merely adds to the end of the file when you write, not that it is opened and positioned at the end of the file (linux's man pages are out of date). * camel-folder-summary.c (content_info_new): setup the content type as well, from the headers. * providers/imap/camel-imap-summary.c (camel_imap_summary_add_offline): copy size from the source info. svn path=/trunk/; revision=25096
* Always use '/' to derive the basename of the folder. folder->full_name isJeffrey Stedfast2004-03-162-1/+6
| | | | | | | | | | | 2004-03-15 Jeffrey Stedfast <fejj@ximian.com> * camel-folder.c (folder_rename): Always use '/' to derive the basename of the folder. folder->full_name is always the UNIX-path evrsion of the folder name, no matter what the actual path delimeter is on the underlying store. svn path=/trunk/; revision=25079
* If the initial SELECT fails and CREATE is specified, clear the exceptionJeffrey Stedfast2004-03-162-1/+10
| | | | | | | | | | | 2004-03-15 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): If the initial SELECT fails and CREATE is specified, clear the exception before attempting to CREATE, this way we don't have an exception set even if the CREATE passes. Fixes bug #55607. svn path=/trunk/; revision=25078
* rever previous patch. We don't want to set the default mime/type, it'llNot Zed2004-03-162-4/+6
| | | | | | | | | | 2004-03-16 Not Zed <NotZed@Ximian.com> * camel-mime-message.c (camel_mime_message_init): rever previous patch. We don't want to set the default mime/type, it'll break stuff. svn path=/trunk/; revision=25074
* same as below for path.Not Zed2004-03-155-5/+21
| | | | | | | | | | | | | | | | | | 2004-03-15 Not Zed <NotZed@Ximian.com> * providers/local/camel-mbox-store.c (delete_folder): same as below for path. * providers/local/camel-local-store.c (delete_folder): NULL out str before looking up the state file using it. Otherwise we double-free str. * camel-mime-parser.c (folder_scan_skip_line): we want to scan till in-end-1. If we've been called we're either at the end of data, or we know we have an end of line character within memory. Another case in Bug #53355. svn path=/trunk/; revision=25068
* set the mime-type field on the content the same way asNot Zed2004-03-157-9/+92
| | | | | | | | | | | | | | | | | 2004-03-15 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (get_content, get_message): set the mime-type field on the content the same way as construct_from_stream does. Bug #55472. * camel-mime-message.c (camel_mime_message_dump): utility function to dump message content to stdout. (camel_mime_message_init): default mime type to message/rfc822. * camel.c (camel_init): change camel verbose debug to be an int, a bitmask of debug options. svn path=/trunk/; revision=25064
* drop embedded whitespace characters, and don't do unquoting, etc. SeeNot Zed2004-03-152-8/+31
| | | | | | | | | | 2004-03-15 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (camel_header_location_decode): drop embedded whitespace characters, and don't do unquoting, etc. See rfc2557 4.4.2 and rfc2017 3.1. svn path=/trunk/; revision=25058
* Now takes an argument to specify whether disconnecting when respbuf isJeffrey Stedfast2004-03-132-15/+23
| | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_set_exception): Now takes an argument to specify whether disconnecting when respbuf is NULL is safe (to prevent us from recursively disconnecting or disconnecting during a connect). svn path=/trunk/; revision=25054
* Fix for bug #53497.Jeffrey Stedfast2004-03-132-38/+37
| | | | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #53497. * providers/smtp/camel-smtp-transport.c (smtp_helo): Instead of unreffing the streams, call camel_service_disconnect(). (smtp_mail): Same. (smtp_rcpt): Same. (smtp_data): Same. (smtp_send_to): Ignore exceptions for smtp_rset(). Also, check that we are connected before we try to send (in Evolution's current usage scenario, this isn't a problem but in the future if we ever try to fire off several messages via the same smtp connection, it may be - especially if RSET failed during the previous send). svn path=/trunk/; revision=25053
* clearn the learn bit only if setRadek Doulik2004-03-132-3/+6
| | | | | | | | 2004-03-12 Radek Doulik <rodo@ximian.com> * camel-folder.c (folder_changed): clearn the learn bit only if set svn path=/trunk/; revision=25051
* Fixes for bug #55018.Jeffrey Stedfast2004-03-135-59/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #55018. * providers/local/camel-local-folder.c (camel_local_folder_construct): Use camel_url_to_string() here too, so we properly encode the fragment. * providers/local/camel-mbox-store.c (get_folder_info): Use CamelURL to properly encode the fi->uri. Pass the CamelURL into scan_dir() so that scan_dir() can re-use it (rather than having to malloc/parse/free for each file/dir) (scan_dir): Use camel_url_to_string(). * providers/local/camel-maildir-store.c (get_folder_info): Same as mbox. (scan_dir): Same as mbox. We also need to set the CAMEL_FOLDER_NOSELECT flag if appropriate. * providers/local/camel-mh-store.c (get_folder_info): Same as mbox and maildir. (folders_scan): Now takes a url argument which we pass off to folder_info_new(). (recursive_scan): Same. (folder_info_new): Use camel_url_to_string(). svn path=/trunk/; revision=25050
* watch for setting JUNK flag, if JUNK_LEARN is not set as well then resetRadek Doulik2004-03-133-72/+184
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-11 Radek Doulik <rodo@ximian.com> * camel-folder.c (camel_folder_set_message_flags): watch for setting JUNK flag, if JUNK_LEARN is not set as well then reset JUNK_LEARN bit (folder_changed): look for junk changes in uid_changed's messages, if these changes request junk filter learning (CAMEL_MESSAGE_JUNK_LEARN bit set) then prepare junk and nonjunk uid arrays, clear CAMEL_MESSAGE_JUNK_LEARN bit so that we don't process it again (folder_changed): start filter thread if there's junk and/or nonjunk arrays (filter_filter): if junk/nonjunk arrays are non-NULL, call junk filter report to learn junk/non-junk messages (filter_free): free junk/nonjunk uids and arrays * camel-folder-summary.h: added CAMEL_MESSAGE_JUNK_LEARN to CamelMessageFlags, used when setting CAMEL_MESSAGE_JUNK flag to say that we request junk plugin to learn that message as junk/non-junk svn path=/trunk/; revision=25045
* If errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE orJeffrey Stedfast2004-03-132-37/+44
| | | | | | | | | | | | | | | | | | | | 2004-03-12 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (connect_to_server): If errno is EINTR, set USER_CANCEL instead of SERVICE_UNAVAILABLE or whatever. (smtp_helo): Same. (smtp_auth): Same. (smtp_mail): Same. (smtp_rcpt): Same. (smtp_data): Same. (smtp_rset): Same. (smtp_quit): Same. (smtp_set_exception): Here too. (smtp_auth): If the AUTH response code is not 334, then use smtp_set_exception() to get the most accurate error report we can. svn path=/trunk/; revision=25044
* fixed ChangeLogJeffrey Stedfast2004-03-121-1/+0
| | | | svn path=/trunk/; revision=25037
* Sanity check that count is <1024 and also use g_try_malloc so that we canJeffrey Stedfast2004-03-122-3/+12
| | | | | | | | | | 2004-03-11 Jeffrey Stedfast <fejj@ximian.com> * camel-object.c (cobject_state_read): Sanity check that count is <1024 and also use g_try_malloc so that we can recover if malloc fails. svn path=/trunk/; revision=25036
* removed this. not sure what it was doing there, a 1 line funciton usedNot Zed2004-03-112-16/+24
| | | | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (no_such_folder): removed this. not sure what it was doing there, a 1 line funciton used once. (get_folder_online): pass exception to camel_imap_command. if we got a user cancel, pass it up. (hash_folder_name, compare_folder_name): more g_ascii_strcasecmp stuff. svn path=/trunk/; revision=25026
* we need to add the folderinfo always if we're recursive from top. ShouldNot Zed2004-03-112-2/+6
| | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * camel-vee-store.c (vee_get_folder_info): we need to add the folderinfo always if we're recursive from top. Should fix #52965 and maybe the other vfolders not showing on startup bug. svn path=/trunk/; revision=25025
* (imap_store_refresh_folders): check we're updating an imap folder,Michael Zucci2004-03-112-3/+11
| | | | | | we could also have trash folders in the store too. svn path=/trunk/; revision=25021
* turn off NOINFERIORS always, translate to nochildren.Not Zed2004-03-1115-171/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-11 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (get_one_folder_offline): (parse_list_response_as_folder_info): turn off NOINFERIORS always, translate to nochildren. 2004-03-08 Not Zed <NotZed@Ximian.com> * camel-vee-store.c (vee_get_folder_info): setup virtual/system flags as appropriate. (change_folder): setup flags properly. * providers/nntp/camel-nntp-store.c (nntp_store_get_subscribed_folder_info): mark all folders as system folders. * providers/local/camel-mh-store.c (fill_fi): add this to setup folderinfo. (folder_info_new): call fill_fi to fill unread/total. (recursive_scan, folders_scan): ahh yeah, so wtf was i thinking, store->flags != get_folder_info flags!!!! * providers/local/camel-maildir-store.c (camel_folder_info_new): remove unread count arg & setup total. (fill_fi): setup total field. (scan_dir): remove the code that checked the directory directly - use fill_fi instead. It will more accurately reflect what you get when you visit the folder. (camel_folder_info_new): mark "." as a system folder. (scan_dir): try to setup children/no children flags properly. * providers/local/camel-mbox-store.c (fill_fi): setup total field. (scan_dir): init total. (get_folder_info): " 2004-03-05 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (parse_list_response_as_folder_info): mark INBOX as a system folder. Can't be renamed/deleted. (fill_fi): setup total field. (get_folder_counts): ditto. * camel-store.c (add_special_info): set the system folder flag. * camel-store.h: time to fix up the camelfolderinfo mess. fix some member names, and add some type fields. Fixed all uses. svn path=/trunk/; revision=25019
* fix all the warningsMichael Zucci2004-03-045-8/+10
| | | | svn path=/trunk/; revision=24962
* ** See bug #53355.Not Zed2004-03-042-3/+15
| | | | | | | | | | | | 2004-03-04 Not Zed <NotZed@Ximian.com> ** See bug #53355. * providers/imap/camel-imap-folder.c (get_content): if the parent isn't a message/rfc822 type, we don't want to get the section.TEXT for multipart/signed, we just want to get section. svn path=/trunk/; revision=24955
* use "Calendar" and "Checklist" for the folder names, instead of "Default".Rodrigo Moya2004-03-032-8/+14
| | | | | | | | | | | 2004-03-03 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-gw-listener.c (add_calendar_tasks_sources): use "Calendar" and "Checklist" for the folder names, instead of "Default". (remove_calendar_tasks_sources): remove the correct folder. svn path=/trunk/; revision=24949
* attempt at uncancelling a cancelled operation.Not Zed2004-03-033-0/+28
| | | | | | | | | 2004-03-03 Not Zed <NotZed@Ximian.com> * camel-operation.c (camel_operation_uncancel): attempt at uncancelling a cancelled operation. svn path=/trunk/; revision=24947
* forgot to turn off voluminous debugMichael Zucci2004-03-031-1/+1
| | | | svn path=/trunk/; revision=24943
* fun dun diddley un fun. Since we're writing a const buffer, we need toNot Zed2004-03-0311-79/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-03 Not Zed <NotZed@Ximian.com> * camel-stream-filter.c (do_write, do_write): fun dun diddley un fun. Since we're writing a const buffer, we need to copy it first. See #54937. 2004-02-27 Not Zed <NotZed@Ximian.com> ** See bug #54755. * camel-vtrash-folder.c (vtrash_append_message) (vtrash_transfer_messages_to): error/fail out if the user tries to copy messages to the trash. (vtrash_transfer_messages_to): use the destination bit not the source bit for moving messages to a vtrash folder. * camel-gpg-context.c (gpg_ctx_parse_status): ignore NODATA response, otherwise we abort in a meaningless way. See #52939. * providers/imap/camel-imap-utils.c: use g_ascii_str[n]casecmp everywhere. * providers/imap/camel-imap-utils.c (imap_body_decode): fix the sense of the nil check for the subtype of a mutlipart. See #53355. 2004-02-26 Not Zed <NotZed@Ximian.com> * camel-session.c (camel_session_check_junk_for_imap) (camel_session_set_check_junk_for_imap): removed. * providers/imap/camel-imap-provider.c: Add filter_junk and filter_junk_inbox options to the receive option page. * providers/imap/camel-imap-store.c (imap_setv, imap_getv): handle FILTER_JUNK and FILTER_JUNK_INBOX parameters. (imap_setv): conver to switch rather than if statement. (construct): handle url args for filter_junk and filter_junk_inbox. * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Set the folder's flags based on the stores junk settings. (imap_update_summary): remove the test for session_check_junk_for_imap, its handled per-store now. * camel-folder.c (folder_changed): only check for FILTER_RECENT or FILTER_JUNK to see if we need to do filtering. * camel-folder.h (CAMEL_FOLDER_FILTER_JUNK): renamed from CAMEL_FOLDER_SUPRESS_JUNK_TEST (and obviously inverted logic). svn path=/trunk/; revision=24942
* Overrides the parent method. We don't want to encode user flags/tags orJeffrey Stedfast2004-03-032-2/+30
| | | | | | | | | | | 2004-03-02 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-summary.c (mbox_summary_encode_x_evolution): Overrides the parent method. We don't want to encode user flags/tags or the size of the header will change and force a complete rewrite of the mbox file. svn path=/trunk/; revision=24937
* ** See bug #54755.Not Zed2004-02-272-5/+14
| | | | | | | | | | | | | | 2004-02-27 Not Zed <NotZed@Ximian.com> ** See bug #54755. * camel-vtrash-folder.c (vtrash_append_message) (vtrash_transfer_messages_to): error/fail out if the user tries to copy messages to the trash. (vtrash_transfer_messages_to): use the destination bit not the source bit for moving messages to a vtrash folder. svn path=/trunk/; revision=24906
* use g_ascii_str[n]casecmp everywhere. fix the sense of the nil check forNot Zed2004-02-271-29/+31
| | | | | | | | | | | | 2004-02-27 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-utils.c: use g_ascii_str[n]casecmp everywhere. * providers/imap/camel-imap-utils.c (imap_body_decode): fix the sense of the nil check for the subtype of a mutlipart. See #53355. svn path=/trunk/; revision=24905
* ignore NODATA response, otherwise we abort in a meaningless way. SeeNot Zed2004-02-271-10/+2
| | | | | | | | | 2004-02-27 Not Zed <NotZed@Ximian.com> * camel-gpg-context.c (gpg_ctx_parse_status): ignore NODATA response, otherwise we abort in a meaningless way. See #52939. svn path=/trunk/; revision=24904
* Free the uids *after* reporting Complete, otherwise we get an FMR if ourJeffrey Stedfast2004-02-263-3/+16
| | | | | | | | | | | | | | | 2004-02-25 Jeffrey Stedfast <fejj@ximian.com> * camel-filter-driver.c (camel_filter_driver_filter_folder): Free the uids *after* reporting Complete, otherwise we get an FMR if our caller didn't pass in the uids. * camel-sasl-gssapi.c (gssapi_challenge): #ifdef out another gss_release_buffer() call as this function causes memory corruption if using Heimdal's implementation of Kerberos5. Yay Heimdal. svn path=/trunk/; revision=24872
* do not avoid junk mails in unread count52004-02-262-1/+6
| | | | | | | | | 2004-02-25 <rodo@ximian.com> * camel-folder.c (get_unread_message_count): do not avoid junk mails in unread count svn path=/trunk/; revision=24868
* moved the RECNET flag into the folder area (bit 17-30).Not Zed2004-02-256-21/+33
| | | | | | | | | | | | | | | | | | | | | 2004-02-25 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-summary.h (CAMEL_IMAP_MESSAGE_RECENT): moved the RECNET flag into the folder area (bit 17-30). 2004-02-24 Not Zed <NotZed@Ximian.com> ** See bug #53876. * providers/imap/camel-imap-command.c (camel_imap_command): ref the folder before unreffing store->current_folder, incase they're the same. Do a select anyway. * providers/imap/camel-imap-folder.c (imap_refresh_info): keep the connect_lock for longer, imap_rescan for one assumes its locked. Fixes a race selecting the folder for refresh. svn path=/trunk/; revision=24862
* #include <signal.h>, we don't need limits.hJeffrey Stedfast2004-02-252-5/+7
| | | | | | | | 2004-02-24 Jeffrey Stedfast <fejj@ximian.com> * camel-stream-process.c: #include <signal.h>, we don't need limits.h svn path=/trunk/; revision=24851
* fixed the g_return_val_if_changed expr that I messed up. doh.Jeffrey Stedfast2004-02-251-1/+1
| | | | svn path=/trunk/; revision=24847
* New function to do what camel_store_uri_cmp() was supposed to do.Jeffrey Stedfast2004-02-253-0/+60
| | | | | | | | | 2004-02-24 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_folder_uri_equal): New function to do what camel_store_uri_cmp() was supposed to do. svn path=/trunk/; revision=24846
* If our folder has a subdir, but no actual children, then we need to unsetRodney Dawes2004-02-242-0/+10
| | | | | | | | | | | | 2004-02-23 Rodney Dawes <dobey@ximian.com> * providers/local/camel-mbox-store.c (scan_dir): If our folder has a subdir, but no actual children, then we need to unset the flag for CAMEL_FOLDER_CHILDREN Fixes #54470 svn path=/trunk/; revision=24845
* remove debugMichael Zucci2004-02-241-8/+1
| | | | svn path=/trunk/; revision=24843
* kill some debugMichael Zucci2004-02-242-16/+3
| | | | svn path=/trunk/; revision=24842
* kill sum debugMichael Zucci2004-02-241-3/+3
| | | | svn path=/trunk/; revision=24841
* Removed. Useless/broken function.Jeffrey Stedfast2004-02-243-11/+5
| | | | | | | | | 2004-02-23 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_uri_cmp): Removed. Useless/broken function. svn path=/trunk/; revision=24836
* fixedJeffrey Stedfast2004-02-211-10/+15
| | | | svn path=/trunk/; revision=24821
* Init list to NULL to prevent the crash in bug #54574.Jeffrey Stedfast2004-02-212-1/+6
| | | | | | | | | 2004-02-20 Jeffrey Stedfast <fejj@ximian.com> * camel-provider.c (camel_provider_list): Init list to NULL to prevent the crash in bug #54574. svn path=/trunk/; revision=24819
* wrap this file with #ifdef ENABLE_SMIME instead of #ifdef HAVE_NSS.Chris Toshok2004-02-202-2/+7
| | | | | | | | | 2004-02-19 Chris Toshok <toshok@ximian.com> * camel-smime-context.c: wrap this file with #ifdef ENABLE_SMIME instead of #ifdef HAVE_NSS. svn path=/trunk/; revision=24810
* Add sanity checking to the folder name if we are going to create it, justJeffrey Stedfast2004-02-202-0/+20
| | | | | | | | | | 2004-02-19 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder): Add sanity checking to the folder name if we are going to create it, just like we do in create_folder(). svn path=/trunk/; revision=24796
* Fixes for api changes.Not Zed2004-02-1915-330/+274
| | | | | | | | | | | | | | | | | | | 2004-02-19 Not Zed <NotZed@Ximian.com> * providers/*/camel-*-provider.c (camel_provider_module_init): Fixes for api changes. * camel-provider.c (camel_provider_load): no longer take session argument. the providers are global resources. (camel_provider_init): dont return anything anymore. (error?) call from camel_init now. Use a recursive lock too. * camel-session.c (camel_session_register_provider) (camel_session_list_providers, camel_session_get_provider): Moved to camel-provider, camel_provider_register/list/get. (vee_provider): moved to camel-provider.c svn path=/trunk/; revision=24794
* s/parading/masquerading/Jeffrey Stedfast2004-02-191-1/+1
| | | | svn path=/trunk/; revision=24783
* Use the trust to decide the validity signature status. (Better way ofJeffrey Stedfast2004-02-193-12/+15
| | | | | | | | | | | | 2004-02-18 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_verify): Use the trust to decide the validity signature status. (Better way of solving yesterday's problem) * camel-cipher-context.h: Revert change from yesterday. svn path=/trunk/; revision=24779
* Set the trust.Jeffrey Stedfast2004-02-183-2/+22
| | | | | | | | | | 2004-02-17 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_verify): Set the trust. * camel-cipher-context.h: Add a trust metric to signatures. svn path=/trunk/; revision=24763
* implment, make sync a noop on vee stores. Speeds up exit, so we don't tryNot Zed2004-02-172-0/+13
| | | | | | | | | | 2004-02-17 Not Zed <NotZed@Ximian.com> * camel-vee-store.c (vee_sync): implment, make sync a noop on vee stores. Speeds up exit, so we don't try and sync and re-sync folders multiple times. svn path=/trunk/; revision=24758
* ** See bug #53861.Not Zed2004-02-172-0/+12
| | | | | | | | | | | | 2004-02-17 Not Zed <NotZed@Ximian.com> ** See bug #53861. * providers/nntp/camel-nntp-summary.c (add_range_xover): Fix from Edd Dumbill <edd@usefulinc.com> to avoid aborting on irrelevently truncated lines. svn path=/trunk/; revision=24754
* ** See bug #51045.Not Zed2004-02-1620-140/+437
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-16 Not Zed <NotZed@Ximian.com> ** See bug #51045. * providers/imap/camel-imap-store.c (fill_fi): similar to mbox version. (get_folder_counts): use fill_fi to try and get folder counts if we're not doing the hard slog. (get_one_folder_offline): use fill_fi to try to get folder counts from open folders or summaries. * providers/local/camel-maildir-store.c (fill_fi): similar to mbox version. (scan_dir): use fill_fi to get the unread count now. * providers/local/camel-mbox-store.c (fill_fi): helper to lookup unread count either from active folder or from summary file, if it's available. (scan_dir, get_folder_info): use helper above to get folder info. * devel-docs/camel-folder-summary.txt: New document describing the format/conventions in the CamelFolderSummary file. * providers/nntp/camel-nntp-summary.c (summary_header_load/save): * providers/imapp/camel-imapp-summary.c (summary_header_load/save): * providers/imap/camel-imap-summary.c (summary_header_load/save): Handle versions, per-class version number (1). * providers/local/camel-mbox-summary.c (summary_header_load/save): Handle versions properly, add a per-class version (1). Write out the folder size as a size_t rather than 32 bit int. * providers/local/camel-local-summary.c (summary_header_load/save): read/write the per-class version number (1). * camel-folder-summary.c (summary_header_load): do version checking differently, allow the version to be bumped without aborting the load. Added unread/deleted/junk counts to base header. (summary_header_save): Save out the new-format header. Version bumped to 13. * camel.c (camel_init): return 0 rather than spit a compiler warning. * camel-file-utils.c (camel_file_util_encode_*_t): macro-ise the type encoder/decoders. Also add size_t encoder/decoder. svn path=/trunk/; revision=24744
* added bug# to a changelog entryJeffrey Stedfast2004-02-141-1/+2
| | | | svn path=/trunk/; revision=24741
* Same.Jeffrey Stedfast2004-02-148-52/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-13 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c (get_folder_online): Same. * providers/local/camel-mh-store.c (get_folder): Same as maildir changes. * providers/local/camel-maildir-store.c (get_folder): Make exceptions strings consistanmt with the mbox exception strings (and vise versa). Also handle the CAMEL_STORE_FOLDER_EXCL flag. * providers/local/camel-mbox-store.c (get_folder): Check CAMEL_STORE_FOLDER_EXCL flag. * providers/local/camel-local-store.c (get_folder): Simplified by using camel_mkdir instead of doing it manually. * camel-store.c (camel_store_get_folder): If the folder exists in the cache and the O_EXCL flag was passed, return NULL and set an exception. * camel-store.h: Added a new CAMEL_STORE_FOLDER_EXCL flag for use with get_folder(). svn path=/trunk/; revision=24738
* Since decoding a string doesn't allow strings longer than 65536, truncateJeffrey Stedfast2004-02-132-2/+10
| | | | | | | | | | 2004-02-12 Jeffrey Stedfast <fejj@ximian.com> * camel-file-utils.c (camel_file_util_encode_string): Since decoding a string doesn't allow strings longer than 65536, truncate strings that are longer than 65536 here. svn path=/trunk/; revision=24728
* ** See bug #53978.Not Zed2004-02-092-1/+11
| | | | | | | | | | | | 2004-02-09 Not Zed <NotZed@Ximian.com> ** See bug #53978. * providers/local/camel-mbox-store.c: added ".lock" to the list of ignored extensions. (ignore_file): ignore anything ending in ~ too. svn path=/trunk/; revision=24678
* ** See bug #51319.Not Zed2004-02-093-11/+17
| | | | | | | | | | | | 2004-02-09 Not Zed <NotZed@Ximian.com> ** See bug #51319. * providers/local/camel-local-folder.c (camel_local_folder_construct): re-enable indexing when folder is first opened. Also load defaults if no meta-data present. svn path=/trunk/; revision=24677
* Use strrchr, not strchr.Jeffrey Stedfast2004-02-073-1/+5
| | | | | | | | 2004-02-06 Jeffrey Stedfast <fejj@ximian.com> * camel-provider.c (camel_provider_init): Use strrchr, not strchr. svn path=/trunk/; revision=24668
* Forget the need_id, not the userid. Fixes bug #53908.Jeffrey Stedfast2004-02-072-1/+4
| | | | | | | | | 2004-02-06 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_ctx_parse_status): Forget the need_id, not the userid. Fixes bug #53908. svn path=/trunk/; revision=24658
* Set a CAMEL_FOLDER_VIRTUAL bit on the special folder info so our UI canJeffrey Stedfast2004-02-073-2/+16
| | | | | | | | | | | | 2004-02-06 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (add_special_info): Set a CAMEL_FOLDER_VIRTUAL bit on the special folder info so our UI can know if it is virtual or not (meant for vTrash/vJunk). (camel_store_get_folder_info): Don't add vTrash/vJunk if the NO_VIRTUAL flag bit is set. Used by the subscriptions editor. svn path=/trunk/; revision=24656
* changed to return a boolean to indicate if the flags were actually changedNot Zed2004-02-067-37/+55
| | | | | | | | | | 2004-02-06 Not Zed <NotZed@Ximian.com> * camel-folder.c (camel_folder_set_message_flags): changed to return a boolean to indicate if the flags were actually changed or not. Fixed all implementors. svn path=/trunk/; revision=24643
* rename .cmeta file too, and fix the recovery order.Not Zed2004-02-056-316/+342
| | | | | | | | | | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> * providers/local/camel-mbox-store.c (rename_folder): rename .cmeta file too, and fix the recovery order. * providers/local/camel-local-store.c (rename_folder): rename the .cmeta file too. * providers/local/camel-local-folder.c (local_rename): fix this to use local_get_full_path stuff. * camel-store.c (camel_store_rename_folder): fix umr's comparing old and new names. svn path=/trunk/; revision=24630
* ** See bug #53553.Not Zed2004-02-0510-75/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-05 Not Zed <NotZed@Ximian.com> ** See bug #53553. * camel-provider.c (camel_provider_init): changed to return a hashtable of url protocols to CamelProviderModule structs, rather than simple strings. * camel-session.c (get_provider): if we load a provider module, mark it as loaded. (ensure_loaded): Check the module loaded flag before trying to load it. * providers/local/libcamellocal.urls: Remove spoold from the list, since it doesn't exist anymore. Actually fixes #53553, the rest is to robustify the code. 2004-02-05 Not Zed <NotZed@Ximian.com> * camel-session.c (CS_CLASS): dont typecheck cast. * camel-store.c (camel_vjunk_folder_new): removed, use vtrash_new(junk). (setup_special): changed to get_special, with a type now, and dont add vtrash folders to the sources. (get_trash, get_junk): down to 1 liners, call get_special * camel-vtrash-folder.c (CF_CLASS): dont use cast typecheck macros here, makes debugging easier and removes redundant checks. (camel_vtrash_folder_init): dont set flags here. (camel_vtrash_folder_new): takes a new argument, type, for junk folders too, removed name arg (taken from type). (vtrash_transfer_messages_to): parameterise flag processing. svn path=/trunk/; revision=24625
* Get rid of some unnecessary CAMEL_OBJECT() casts.Jeffrey Stedfast2004-02-053-31/+42
| | | | | | | | | | | | | | | 2004-02-04 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-store.c: Get rid of some unnecessary CAMEL_OBJECT() casts. * providers/imap/camel-imap-folder.c (camel_imap_folder_new): The folder_name argument passed to this function is ALWAYS in the UNIX path form (ie. using '/' as the dir sep) and so when getting the short_name, don't use imap_store->dir_sep as the dir sep, always use '/'. Fixes bug #53755 for the IMAP case. svn path=/trunk/; revision=24622
* Fix for bug #53755 (local folders case)Jeffrey Stedfast2004-02-053-14/+28
| | | | | | | | | | | | | | | 2004-02-04 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #53755 (local folders case) * providers/local/camel-mbox-store.c (xrename): No longer takes an exception arg, we just set errno. Our caller can take care of setting an exception. (rename_folder): Don't pass an exception to xrename(), we always overwrote if an error occured it anyway. (rename_folder): Rename the .sbd as well. svn path=/trunk/; revision=24616
* (store_sync): duh, actually pass expunge to folder_sync.Michael Zucci2004-02-042-1/+2
| | | | svn path=/trunk/; revision=24607
* added 'expunge' parameter, easier 'empty trash on exit' call.Not Zed2004-02-045-14/+22
| | | | | | | | | | | | | | | 2004-02-04 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_sync): added 'expunge' parameter, easier 'empty trash on exit' call. 2004-02-04 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (parse_list_response_as_folder_info): if we can't add the folder to the summary {i.e. duplicate}, then ignore it. See #53836. svn path=/trunk/; revision=24606
* changed order around, first try to delete and only remove from the objectNot Zed2004-02-048-244/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-04 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_delete_folder): changed order around, first try to delete and only remove from the object bag if the delete worked. If vjunk/vtrash enabled, don't allow those to be deleted. (cs_delete_cached_folder): helper to delete the folder if its in the cache, remove it from trash/junk, etc. (camel_store_unsubscribe_folder): changed similarly to delete_folder. * camel-vee-store.c (vee_delete_folder): dont do any trash/junk processing anymore. 2004-02-03 Not Zed <NotZed@Ximian.com> * camel-store.c: use the folders object bag to manage the trash folder and junk folders. Remove the init_trash and init_junk stuff, just use get_trash and get_junk to mean the same thing. Get rid of the hacked up vjunk and vtrash "uri" stuff too. * camel-object.c (camel_object_bag_add): null out the pair->func, otherwise we get an uninitalised memory read during unhook event. svn path=/trunk/; revision=24603
* updated last fix to use void* instead of gpointerJeffrey Stedfast2004-02-041-5/+5
| | | | svn path=/trunk/; revision=24598
* Use macro casts from int to pointer.Jeffrey Stedfast2004-02-045-17/+45
| | | | | | | | | | | | | | | | | | | | | | 2004-02-03 Jeffrey Stedfast <fejj@ximian.com> * camel-vee-folder.c (vee_folder_build_folder): Use macro casts from int to pointer. * camel-folder.c (camel_folder_change_info_add_source): Same as below. (camel_folder_change_info_add_source_list): Same. * camel-folder-search.c (camel_folder_search_execute_expression): Use GINT_TO_POINTER() to cast 1 to a pointer for g_hash_table_insert(). * camel-vee-folder.c (vee_folder_remove_folder): 64bit fixes. (folder_added_uid): Same. (vee_folder_build_folder): Here too. (folder_changed_add_uid): And here. (folder_changed_remove_uid): Same. svn path=/trunk/; revision=24597
* New test suite for url scanning.Jeffrey Stedfast2004-02-044-40/+240
| | | | | | | | | | | | | | | | | | | | | 2004-02-03 Jeffrey Stedfast <fejj@ximian.com> * tests/misc/url-scan.c: New test suite for url scanning. * camel-url-scanner.c: Added single/double quotes to url_braces[] in case the user is quoting the url. (camel_url_web_end): Add "-;:" to list of punctuation to strip off the end of urls. Also fixed to handle user@domain's (camel_url_addrspec_start): Strip open brace characters from the beginning of the addr. (camel_url_web_start): Make sure "www" wasn't part of something not a url (like "Ewww.Gross") by check that pos[-1] is either an open brace or whitespace. (camel_url_addrspec_end): Don't allow toplevel domain addr-specs (if we encounter something that looks like it is a toplevel domain addr, it is more likely to be bogus than correct). svn path=/trunk/; revision=24592
* Fixes for bug #53091.Jeffrey Stedfast2004-02-032-1/+11
| | | | | | | | | | | | | 2004-02-02 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #53091. * providers/imap/camel-imap-store.c (create_folder): Set the new folder's fi->flags to CAMEL_FOLDER_NOCHILDREN since we know it doesn't have any (we just created it!). (subscribe_folder): Same. svn path=/trunk/; revision=24572
* Copy the flags too. Fixes the local folder case of bug #53091.Jeffrey Stedfast2004-02-032-1/+7
| | | | | | | | | 2004-02-02 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (folder_info_clone_rec): Copy the flags too. Fixes the local folder case of bug #53091. svn path=/trunk/; revision=24571
* Same as below.Jeffrey Stedfast2004-02-013-4/+14
| | | | | | | | | | | | | | 2004-01-31 Jeffrey Stedfast <fejj@ximian.com> * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): Same as below. * providers/smtp/camel-smtp-transport.c (smtp_connect): Instead of using the form %s@%s in the password prompt, use %s on host %s, hopefully this will be less confusing to users who have usernames of the form user@vhost. svn path=/trunk/; revision=24558
* Fix spelling error in provider descriptionRodney Dawes2004-01-312-1/+8
| | | | | | | | | | | 2004-01-30 Rodney Dawes <dobey@ximian.com> * providers/groupwise/camel-groupwise-provider.c: Fix spelling error in provider description Fixes #53572 svn path=/trunk/; revision=24550
* Protect against multiple camel_init() calls. Remember if we've alreadyJeffrey Stedfast2004-01-312-0/+17
| | | | | | | | | 2004-01-30 Jeffrey Stedfast <fejj@ximian.com> * camel.c (camel_init): Protect against multiple camel_init() calls. Remember if we've already been called. svn path=/trunk/; revision=24547
* copy the old_name that comes in, since it might be the actual folder_name,Not Zed2004-01-302-1/+11
| | | | | | | | | | 2004-01-30 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_rename_folder): copy the old_name that comes in, since it might be the actual folder_name, which will go away during processing. Related to #53123. svn path=/trunk/; revision=24532
* ** See bug #53269.Not Zed2004-01-292-4/+9
| | | | | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> ** See bug #53269. * providers/nntp/camel-nntp-store.c (nntp_store_get_cached_folder_info): don't dereference last before checking if its null. svn path=/trunk/; revision=24514
* added a doc comment.Not Zed2004-01-294-38/+53
| | | | | | | | | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> * camel-object.c (camel_object_bag_rekey): added a doc comment. ** See bug #53520. * camel-session.c (get_service): free the url once done, it now gets copied by the service. * camel-service.c (construct): copy the url that comes in, don't just '0Wn34z' it. clena up exception handling too. svn path=/trunk/; revision=24513
* output scan->name and scan->value for writing metadata, rather thanNot Zed2004-01-292-2/+6
| | | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> * camel-object.c (cobject_state_write): output scan->name and scan->value for writing metadata, rather than meta->name/value which just duplicates the last entry, related to #53195. svn path=/trunk/; revision=24510
* zero out passwd/user/host before freeing them.Not Zed2004-01-292-0/+11
| | | | | | | | | 2004-01-29 Not Zed <NotZed@Ximian.com> * camel-url.c (camel_url_free): zero out passwd/user/host before freeing them. svn path=/trunk/; revision=24509
* Make sure the new dir path exists before trying to rename files to avoidJeffrey Stedfast2004-01-292-7/+48
| | | | | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (rename_folder): Make sure the new dir path exists before trying to rename files to avoid ENOENT errors. Also save errno when we encounter errors so that we can report the true error later rather than an error we may get while reverting changes. Also, it is OK if the ibex files don't exist, so check for that errno case. svn path=/trunk/; revision=24496
* add port and /soap parts to relative uri while updating it when accountSivaih Nallagatla2004-01-282-4/+11
| | | | | | | | | | 2004-01-28 Sivaih Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c (account_changed) (modify_esources) : add port and /soap parts to relative uri while updating it when account changed svn path=/trunk/; revision=24489
* set CAMEL_FOLDER_SUPRESS_JUNK_TEST flag (imap_update_summary): updateRadek Doulik2004-01-274-4/+25
| | | | | | | | | | | | | | | 2004-01-27 Radek Doulik <rodo@ximian.com> * providers/imap/camel-imap-folder.c (camel_imap_folder_new): set CAMEL_FOLDER_SUPRESS_JUNK_TEST flag (imap_update_summary): update CAMEL_FOLDER_SUPRESS_JUNK_TEST flag * camel-folder.c (folder_changed): use CAMEL_FOLDER_SUPRESS_JUNK_TEST flag instead of check_junk_for_imap * camel-folder.h (CAMEL_FOLDER_SUPRESS_JUNK_TEST): added new flag svn path=/trunk/; revision=24463
* ** See bug #53373.Not Zed2004-01-274-25/+57
| | | | | | | | | | | | | 2004-01-27 Not Zed <NotZed@Ximian.com> ** See bug #53373. * camel-store.c (camel_store_rename_folder): use object_bag_rekey to rename the object. object_bag use was broken. * camel-object.c (camel_object_bag_rekey): new api to atomically re-key svn path=/trunk/; revision=24458
* use check_junk_for_imap flagRadek Doulik2004-01-244-3/+43
| | | | | | | | | | 2004-01-23 Radek Doulik <rodo@ximian.com> * camel-folder.c (folder_changed): use check_junk_for_imap flag * camel-session.c: add check_junk_for_imap flag svn path=/trunk/; revision=24381
* (imap_get_message): revert peterw's change of 2002-07-15, insteadMichael Zucci2004-01-231-8/+0
| | | | | | | | of checking for online mode here, let get_message do it when you retrieve the parts. This lets a multi-fetch (i.e. large) message work more betterer in offline mode. svn path=/trunk/; revision=24377
* removed the meaningless fixme, a butt-retrieved-number is as good as anyNot Zed2004-01-232-1/+12
| | | | | | | | | | | | | | 2004-01-23 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-folder.c (IMAP_SMALL_BODY_SIZE): removed the meaningless fixme, a butt-retrieved-number is as good as any in this case. (imap_get_message): revert peterw's change of 2002-07-15, instead of checking for online mode here, let get_message do it when you retrieve the parts. This lets a multi-fetch (i.e. large) message work more betterer in offline mode. svn path=/trunk/; revision=24376
* Fix prototype to be consistent.Jeremy Katz2004-01-232-2/+6
| | | | | | | | 2004-01-22 Jeremy Katz <katzj@redhat.com> * camel-mime-part.c: Fix prototype to be consistent. svn path=/trunk/; revision=24367
* ** See bug #52996.Not Zed2004-01-213-11/+81
| | | | | | | | | | | | | | | | | | | | | | 2004-01-21 Not Zed <NotZed@Ximian.com> ** See bug #52996. * camel-data-cache.c (camel_data_cache_add): put a do-loop around the object_bag_reserve stuff, otherwise we can add/abort out of sync (i.e. when object_bag_reserve returned a pointer we mustn't call add/abort). * camel-object.c (camel_object_bag_*): Added some inline doco. ~ ~ ~ ~ ~ ~ svn path=/trunk/; revision=24339
* ** See bug #52817.Not Zed2004-01-2015-31/+53
| | | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52817. * camel-session.c (camel_session_get_password): merged reprompt and secret into a flags field, and add more options. Fixed all callers. svn path=/trunk/; revision=24323
* ** See bug #52899.Not Zed2004-01-202-1/+8
| | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52899. * camel-gpg-context.c (gpg_ctx_parse_status): use need_id as the password key, not userid. svn path=/trunk/; revision=24315
* add port and "/soap" to source uriSiviaah Nallagatla2004-01-192-2/+11
| | | | | | | | | 2004-01-19 Siviaah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.c ( remove_calender_tasks_sources, modify_calender_tasks_sources) : add port and "/soap" to source uri svn path=/trunk/; revision=24303
* use a CamelURL to properly encode the url we generate.Not Zed2004-01-194-8/+40
| | | | | | | | | | | | | | | | | 2004-01-19 Not Zed <NotZed@Ximian.com> * camel-vee-store.c (change_folder): use a CamelURL to properly encode the url we generate. (vee_get_folder_info): ditto. (vee_get_folder_info): removed unused variable/warning. * camel-session.c (vee_provider): Update the provider flags for URL_FRAGMENT_IS_PATH. * providers/imapp/camel-imapp-utils.c (imap_parse_addfress_list): namespaces fixes for HEADER_ADDRESS* svn path=/trunk/; revision=24299
* Limit the flags we set (or unset) to the folder's permanent flags.Jeffrey Stedfast2004-01-172-9/+14
| | | | | | | | | 2004-01-17 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-folder.c (imap_sync_online): Limit the flags we set (or unset) to the folder's permanent flags. svn path=/trunk/; revision=24289
* Same.Jeffrey Stedfast2004-01-175-29/+40
| | | | | | | | | | | | | 2004-01-16 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-message.c (camel_mime_message_build_mbox_from): Same. * camel-internet-address.c (internet_decode): Same. * camel-mime-utils.[c,h]: Namespaced camel_header_address_t enums s/HEADER_ADDRESS_/CAMEL_HEADER_ADDRESS_/g svn path=/trunk/; revision=24281
* added some conf entries for LDAP address setup addedSivaiah Nallagatla2004-01-163-16/+169
| | | | | | | | | | | | 2004-01-16 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-groupwise-provider.c: added some conf entries for LDAP address setup * providers/groupwise/camel-gw-listener.c: added add_ldap_addressbook_source, modify_ldap_addressbook_source, remove_ldap_addressbook_source functions for setting up LDAP address book. Also setting "username" property on cal/tasks ESources svn path=/trunk/; revision=24270
* *** empty log message ***Rodrigo Moya2004-01-161-16/+8
| | | | svn path=/trunk/; revision=24269
* added some hook debug h(x)Michael Zucci2004-01-161-0/+7
| | | | svn path=/trunk/; revision=24267
* remove debugs, oops.Michael Zucci2004-01-151-5/+5
| | | | svn path=/trunk/; revision=24234
* ** See bug #52881.Not Zed2004-01-153-65/+218
| | | | | | | | | | | | | | | | | | | 2004-01-15 Not Zed <NotZed@Ximian.com> ** See bug #52881. * camel-object.c (camel_object_bag*): Support reserving different keys from the same thread. Oh the pain. * camel-vee-store.c (vee_get_folder_info): implement child flags properly. Changed to build tree itself rather than calling camel_folder_info_build. (vee_get_folder): if we're adding a folder with dummy parents, create and add the dummy parent folders too (as real folder objects). We are the only owner of the ref, so this sort of leaks the folder, but they're small. svn path=/trunk/; revision=24233
* missing renaming.Rodrigo Moya2004-01-152-1/+6
| | | | | | | | | 2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c (camel_provider_module_init): missing renaming. svn path=/trunk/; revision=24224
* set the "auth" property on the ESource's we create, to get authentication.Rodrigo Moya2004-01-142-0/+6
| | | | | | | | | 2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-gw-listener.c (add_esource): set the "auth" property on the ESource's we create, to get authentication. svn path=/trunk/; revision=24216
* ** Patch from Timo Sirainen <tss@iki.fi> to honour read-only status forNot Zed2004-01-143-1/+24
| | | | | | | | | | | | | | 2004-01-14 Not Zed <NotZed@Ximian.com> ** Patch from Timo Sirainen <tss@iki.fi> to honour read-only status for imap folders. * providers/imap/camel-imap-folder.c (camel_imap_folder_selected): check for read-only status response. (imap_sync_online): only call sync_offline if we're read-only. (imap_expunge_uids_resyncing): NOOP for read-only. svn path=/trunk/; revision=24212
* remove debug printf.Not Zed2004-01-143-4/+23
| | | | | | | | | | | | | | | | 2004-01-14 Not Zed <NotZed@Ximian.com> * providers/local/camel-local-folder.c (local_getv): remove debug printf. ** See bug #52835. * camel-smime-context.c (sm_get_passwd): removed debugging. If we get called multiple times in a row, then forget the old password and re-prompt - it was a bad password. Zero out password memory too. svn path=/trunk/; revision=24208
* missing renaming.Rodrigo Moya2004-01-142-3/+7
| | | | | | | | 2004-01-13 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c: missing renaming. svn path=/trunk/; revision=24200
* removed unused groupwise-config-listener.[ch] filesSivaiah Nallagatla2004-01-132-546/+0
| | | | | | | 2004-01-13 Sivaiah Nallagatla <snallagatla@novell.com> removed unused groupwise-config-listener.[ch] files svn path=/trunk/; revision=24198
* renamed groupwise-config-listener.[ch] to these file names and alsoSivaiah Nallagatla2004-01-134-2/+553
| | | | | | | | | | | 2004-01-13 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/camel-gw-listener.[ch] : renamed groupwise-config-listener.[ch] to these file names and also changed code to use CamelURL insted of EUri * providers/groupwise/camel-groupwise-provider.c : use the renamed config listener apis * providers/groupwise/Makefile.am : changed the source file names svn path=/trunk/; revision=24197
* bump version and requirementsJP Rosevear2004-01-131-0/+1
| | | | | | | | 2004-01-12 JP Rosevear <jpr@ximian.com> * configure.in: bump version and requirements svn path=/trunk/; revision=24193
* fixed distcheckJeffrey Stedfast2004-01-131-2/+0
| | | | svn path=/trunk/; revision=24192
* now based on discofolder, cache_message and append_message implemented,Meilof Veeningen2004-01-1312-316/+1712
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-12 Meilof Veeningen <meilof@wanadoo.nl> * providers/nntp/camel-nntp-folder.[ch]: now based on discofolder, cache_message and append_message implemented, only retrieve messages when we are subscribed, some stubs * providers/nntp/camel-nntp-provider.c: newsgroup name display settings, password authentication, fix for check_equal where the protocols wouldn't be checked * providers/nntp/camel-nntp-store.[ch]: base on discostore with online/offline support, subscriptions, downloading changed parts of the newsgroup list, some stubs, authentication, automatic reconnect * providers/nntp/camel-nntp-store-summary.[ch]: NNTP store summary based on IMAP code * providers/nntp/camel-nntp-summary.c: save summary after xover * providers/nntp/camel-nntp-grouplist.h: added CamelNNTPGroupList structs * providers/nntp/Makefile.am: added store summary svn path=/trunk/; revision=24178
* ** See bug 52725.Not Zed2004-01-124-2/+18
| | | | | | | | | | | | | | 2004-01-12 Not Zed <NotZed@Ximian.com> ** See bug 52725. * providers/imap/camel-imap-folder.c (get_content): pass in transfer encoding when setting up wrapper part. * providers/imap/camel-imap-wrapper.c (camel_imap_wrapper_new): Added an encoding type parameter, set on data wrapper. svn path=/trunk/; revision=24164
* if e_iconv() returns -1, check that errno != EINVAL - if errno *is*Jeffrey Stedfast2004-01-112-11/+30
| | | | | | | | | | | | | | | | | 2004-01-10 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (rfc2047_encode_word): if e_iconv() returns -1, check that errno != EINVAL - if errno *is* EINVAL, it just means that our convlen wasn't long enough to include the whole sequence. This is fine, we'll just start where we left off next loop thru. Fixes bug #52593 (the buffer was duplicated because state wasn't flushed). (camel_header_encode_string): Fixed a type-o in loop where encoding=0, don't g_string_append_len starting at 'word' inptr-start bytes long - 'word' could be NULL and/or inptr-start could be longer than inptr-word. svn path=/trunk/; revision=24149
* libcamelgroupwise.urls instead of libcamelimap.urlsRodney Dawes2004-01-102-1/+7
| | | | | | | | | 2004-01-09 Rodney Dawes <dobey@ximian.com> * providers/groupwise/Makefile.am (EXTRA_DIST): libcamelgroupwise.urls instead of libcamelimap.urls svn path=/trunk/; revision=24138
* added null check for source url to take care of accounts with Server TypesSivaiah Nallagatla2004-01-092-1/+11
| | | | | | | | | 2004-01-09 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/groupwise-config-listener.c (is_groupwise_account): added null check for source url to take care of accounts with Server Types as "None" svn path=/trunk/; revision=24129
* fix removal of journal file, and remove the cmeta state file too.Not Zed2004-01-096-9/+144
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (imap_forget_folder): fix removal of journal file, and remove the cmeta state file too. * providers/imap/camel-imap-folder.c (imap_getv): count up so we call parent class if we missed any, rather than only if we didn't miss any. (imap_rename): rename the object state file. (camel_imap_folder_new): set the object state file for persistent properties. * camel-disco-folder.c (disco_getv): support (PERSISTENT_)PROPERTIES & OFFLINE_SYNC. (disco_setv): implement OFFLINE_SYNC. (camel_disco_folder_get_type): setup disco properties list. (cdf_folder_changed): honour the offline_sync setting on the current folder. (disco_sync): save object state. (disco_setv): save object state if it changed. svn path=/trunk/; revision=24126
* move assertions here. (set_mime_type_field): change order slightly toNot Zed2004-01-092-5/+12
| | | | | | | | | | | 2004-01-09 Not Zed <NotZed@Ximian.com> * camel-data-wrapper.c (camel_data_wrapper_set_mime_type_field): move assertions here. (set_mime_type_field): change order slightly to properly handle setting the same object. removed assertions from internal method. svn path=/trunk/; revision=24123
* *** empty log message ***Rodrigo Moya2004-01-081-0/+2
| | | | svn path=/trunk/; revision=24114
* add groupwise to SUBDIRS new camel provider for groupwise new class to addSivaiah Nallagatla2004-01-086-20/+590
| | | | | | | | | | | 2004-01-08 Sivaiah Nallagatla <snallagatla@novell.com> * providers/Makefile.am : add groupwise to SUBDIRS * providers/groupwise/camel-groupwise-provider.c: new camel provider for groupwise * providers/groupwise/groupwise-config-listener.[ch] : new class to add e-sources for groupwise calender and tasks * providers/groupwise/Makefile.am : added new files to Makefile.am svn path=/trunk/; revision=24111
* include sys/types.h for freebsdJP Rosevear2004-01-062-0/+5
| | | | | | | | 2004-01-05 JP Rosevear <jpr@ximian.com> * camel-utf8.c: include sys/types.h for freebsd svn path=/trunk/; revision=24060
* renamed from imap_*.Rodrigo Moya2004-01-052-6/+11
| | | | | | | | | 2004-01-05 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c (groupwise_url_hash, groupwise_url_equal): renamed from imap_*. svn path=/trunk/; revision=24044
* check the right return of the socket call, dont set fd to the value of theNot Zed2004-01-052-1/+6
| | | | | | | | | 2004-01-05 Not Zed <NotZed@Ximian.com> * camel-tcp-stream-raw.c (socket_connect): check the right return of the socket call, dont set fd to the value of the -1 check! svn path=/trunk/; revision=24040
* Save errno and check the return of the socket() call.Jeffrey Stedfast2004-01-032-7/+18
| | | | | | | | | 2003-12-27 Jeffrey Stedfast <fejj@ximian.com> * camel-tcp-stream-raw.c (socket_connect): Save errno and check the return of the socket() call. svn path=/trunk/; revision=24028
* g_module_open the other providers we depend on to avoid load orderingRodrigo Moya2003-12-254-0/+226
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-24 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c (camel_provider_module_init): g_module_open the other providers we depend on to avoid load ordering problems. 2003-12-22 Rodrigo Moya <rodrigo@ximian.com> * providers/groupwise/camel-groupwise-provider.c: removed useless configuration options, and added other options from the IMAP provider. (camel_provider_module_init): register a SMTP transport object also, and removed SASL registration, since we don't support it. 2003-12-19 Sivaiah Nallagatla <snallagatla@novell.com> * providers/groupwise/Makefile.am: * providers/groupwise/libcamelgroupwise.urls: * providers/groupwise/camel-groupwise-provider.c: added Camel provider for Groupwise accounts, based on the IMAP one. svn path=/trunk/; revision=24008
* Don't immediately prompt for a passwd after receiving the NEED_PASSPHRASEJeffrey Stedfast2003-12-122-13/+34
| | | | | | | | | | | | | | | 2003-12-11 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_ctx_parse_status): Don't immediately prompt for a passwd after receiving the NEED_PASSPHRASE status message. Instead, parse the userid that gpg needs a passwd for and store it on our context. Wait for a GET_HIDDEN status message before prompting, this way if the user has their gpg configured to use gpg-agent, the user won't get 2 passwd prompts. (gpg_sign): Fixed to not free a gpg context that we have not allocated (could happen in a fail case). svn path=/trunk/; revision=23925
* Use CAMEL_FODLER_NOCHILDREN rather than NOINFERIORS because NOINFERIORSJeffrey Stedfast2003-12-112-3/+9
| | | | | | | | | | | | 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder_info): Use CAMEL_FODLER_NOCHILDREN rather than NOINFERIORS because NOINFERIORS means the folder cannot contain subfolders. However, our mbox structure always allows subfolders. (scan_dir): Same. svn path=/trunk/; revision=23913
* Add a CAMEL_FOLDER_NOCHILDREN flag.Jeffrey Stedfast2003-12-115-5/+15
| | | | | | | | | | | | | 2003-12-10 Jeffrey Stedfast <fejj@ximian.com> * camel-store.h: Add a CAMEL_FOLDER_NOCHILDREN flag. * providers/imap/camel-imap-store.c (get_folders): Same as below. * providers/imap/camel-imap-utils.c (imap_parse_list_response): s/CAMEL_IMAP_FOLDER_NOCHILDREN/CAMEL_FOLDER_NOCHILDREN/ svn path=/trunk/; revision=23911
* also check application/pkcs7-signature (bloody applemail).Not Zed2003-12-102-2/+12
| | | | | | | | | | | 2003-12-10 Not Zed <NotZed@Ximian.com> * camel-smime-context.c (sm_verify): also check application/pkcs7-signature (bloody applemail). (camel_smime_context_describe_part): as above, and fix the logic. dont think its used anyway. Bug #51750. svn path=/trunk/; revision=23908
* put the camel-smime-context.[ch] back in here, remove it from EXTRA_DIST,Not Zed2003-12-105-12/+109
| | | | | | | | | | | | | | | | | | | | | 2003-12-10 Not Zed <NotZed@Ximian.com> * Makefile.am (libcamel_la_SOURCES): put the camel-smime-context.[ch] back in here, remove it from EXTRA_DIST, and make it compile optinally the same way camel-tcp-stream-ssl.c does (#ifdef ...). * camel-smime-context.c (sm_verify_cmsg): add signer info to certvalidity. * camel-cipher-context.c (CamelCipherValidity): Added certinfo to validity for signing and encrypting, so we can find the keys later for a gui. (camel_cipher_validity_add_certinfo): add signer or encrypter info to the validity. (camel_cipher_validity_envelope): add sign/encrypt keys. svn path=/trunk/; revision=23904
* remove dthe clearenv stuff, not sure why its there. s/setenv/putenv/ forNot Zed2003-12-102-12/+9
| | | | | | | | | | 2003-12-10 Not Zed <NotZed@Ximian.com> * camel-stream-process.c (do_exec_command): remove dthe clearenv stuff, not sure why its there. s/setenv/putenv/ for portability. See Bug #51767. svn path=/trunk/; revision=23896
* ** See bug #51899.Not Zed2003-12-093-2/+12
| | | | | | | | | | | | 2003-12-09 Not Zed <NotZed@Ximian.com> ** See bug #51899. * providers/imap/camel-imap-store.c (get_folders): add the first fi to the info's hash, so we dont duplicate it if we come across it again (which we generally will). svn path=/trunk/; revision=23889
* Revert the s/is_/camel_mime_is_/ changes or we get really long variableJeffrey Stedfast2003-12-092-20/+28
| | | | | | | | | | | | 2003-12-08 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (header_decode_rfc2184_param): Revert the s/is_/camel_mime_is_/ changes or we get really long variable names. (header_decode_param): Same. (header_decode_param_list): Here too. svn path=/trunk/; revision=23680
* encode the address before sending it out, rather than using the raw/utf8Not Zed2003-12-098-108/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-09 Not Zed <NotZed@Ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_send_to): encode the address before sending it out, rather than using the raw/utf8 version. * camel-internet-address.c (camel_internet_address_encode_address): check for quoting the local part of the address before outputting it. (cia_encode_addrspec): quote local part if need be. (camel_internet_address_encode_address): make folding optional based on whether inlen is null or not. * camel-mime-utils.[ch]: rename is_* to camel_mime_is_* and export the type functions. 2003-12-08 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-utils.c (imap_atom_specials): add } to the atom specials list. This isn't correct, but some busted servers expect it. Bug #50728. 2003-12-02 Not Zed <NotZed@Ximian.com> * providers/local/camel-local-folder.c (local_setv): remove some debug printfs. ** See bug #51576. * camel-url.c (camel_url_decode): robustify url decoding for bad input, addresses a crash. svn path=/trunk/; revision=23676
* Fixes bug #51881Jeffrey Stedfast2003-12-093-2/+62
| | | | | | | | | | | | | 2003-12-08 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #51881 * providers/local/camel-mbox-store.c (delete_folder): Same. * providers/local/camel-local-store.c (delete_folder): Unlink the cmeta file too. svn path=/trunk/; revision=23675
* Remove hard coded disable deprecated flagsJP Rosevear2003-12-079-15/+11
| | | | | | | | 2003-12-06 JP Rosevear <jpr@ximian.com> * */Makefile.am: Remove hard coded disable deprecated flags svn path=/trunk/; revision=23658
* Properly set the O_NONBLOCK flag along with any previously set flags.Jeffrey Stedfast2003-12-064-9/+27
| | | | | | | | | | | | | | | | 2003-12-05 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_ctx_op_start): Properly set the O_NONBLOCK flag along with any previously set flags. * camel-filter-search.c (run_command): Don't set O_NONBLOCK on the pipe (1. we don't need to, and 2. we should have been setting O_NONBLOCK|prev_flags but we weren't, and so the pipe got O_RDONLY|O_NONBLOCK even tho we wanted to write to it). * camel-filter-driver.c (pipe_to_system): Same. svn path=/trunk/; revision=23651
* check recent messages for junk mailRadek Doulik2003-12-045-3/+49
| | | | | | | | | | | | | | | | 2003-12-04 Radek Doulik <rodo@ximian.com> * camel-folder.c (folder_changed): check recent messages for junk mail * camel-session.c (camel_session_check_junk): new wrapper method for check_junk flag (camel_session_set_check_junk): ditto * camel-session.h (struct _CamelSession): added check_junk flag (if to check incoming mail for junk messages) svn path=/trunk/; revision=23629
* Free fi->path if we are gonna replace it with the vinfo path.Jeffrey Stedfast2003-12-042-0/+4
| | | | | | | | | 2003-12-03 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (add_special_info): Free fi->path if we are gonna replace it with the vinfo path. svn path=/trunk/; revision=23625
* Treat parent_name == NULL and parent_name == "" the same.Jeffrey Stedfast2003-12-042-1/+4
| | | | | | | | | 2003-12-03 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (create_folder): Treat parent_name == NULL and parent_name == "" the same. svn path=/trunk/; revision=23609
* Only add vTrash/vJunk info's if we've requested the toplevel folder tree,Jeffrey Stedfast2003-12-042-18/+31
| | | | | | | | | | | | | 2003-12-03 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_get_folder_info): Only add vTrash/vJunk info's if we've requested the toplevel folder tree, otherwise we get vTrash/vJunk folders in odd places in the folder tree. (add_special_info): Use the provider->url_flags to determine if the url uses the fragment or not for the path. svn path=/trunk/; revision=23606
* ** See bug #51478.Not Zed2003-12-022-1/+11
| | | | | | | | | | | 2003-12-02 Not Zed <NotZed@Ximian.com> ** See bug #51478. * camel-gpg-context.c (gpg_ctx_free): handle the context being NULL, and exit silently. svn path=/trunk/; revision=23550
* Start at fd = 3.Jeffrey Stedfast2003-12-025-26/+21
| | | | | | | | | | | | | | 2003-12-01 Jeffrey Stedfast <fejj@ximian.com> * camel-process.c (camel_process_fork): Start at fd = 3. * camel-gpg-context.c (gpg_ctx_op_start): Same. * camel-filter-driver.c (pipe_to_system): Same. * camel-filter-search.c (run_command): Start at fd = 3. svn path=/trunk/; revision=23549
* Same.Jeffrey Stedfast2003-12-017-84/+104
| | | | | | | | | | | | | | | | | | | 2003-12-01 Jeffrey Stedfast <fejj@ximian.com> * camel-stream-process.c (do_exec_command): Same. * camel-process.c (camel_process_fork): Same. * camel-filter-search.c (run_command): Same as below. * camel-filter-driver.c (pipe_to_system): Same as below. * camel-gpg-context.c (gpg_ctx_op_start): Use fcntl() to set FD_CLOEXEC on each fd rather than close()ing it. Apparently Linux's older pthread implementations use sockets and so this fouls threading up. GO LINUX! GO! svn path=/trunk/; revision=23527
* set flags only for new folder infoRadek Doulik2003-12-011-2/+2
| | | | svn path=/trunk/; revision=23520
* set SUBSCRIBED and NOINFERIORS flags to special folders, renamed methodRadek Doulik2003-12-012-3/+78
| | | | | | | | | | | | | | | | 2003-12-01 Radek Doulik <rodo@ximian.com> * camel-store.c (add_special_info): set SUBSCRIBED and NOINFERIORS flags to special folders, renamed method from add_vtrash_or_vjunk_info (camel_store_get_folder_info): call add_special_info directly 2003-11-28 Radek Doulik <rodo@ximian.com> * camel-store.c (camel_store_get_folder_info): use old code from mail-ops to add vtrash/vjunk info svn path=/trunk/; revision=23515
* Enable GUI option for 'custom command' connection. Don't g_free strings inDavid Woodhouse2003-12-013-1/+15
| | | | | | | | | | | 2003-11-28 David Woodhouse <dwmw2@redhat.com> * providers/imap/camel-imap-provider.c: Enable GUI option for 'custom command' connection. * providers/imap/camel-imap-store.c: Don't g_free strings in .rodata. It's considered rude. svn path=/trunk/; revision=23510
* Added list-unsubscribe header match.Not Zed2003-12-015-20/+83
| | | | | | | | | | | | | | | | | | | 2003-11-28 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (mail_list_magic[]): Added list-unsubscribe header match. 2003-11-26 Not Zed <NotZed@Ximian.com> * camel-smime-context.c (sm_verify_cmsg): take a stream rather than a part for the content. (sm_verify): get the content directly as a stream. * camel-multipart-signed.c (camel_multipart_signed_get_content_stream): new api to get the content stream which will match the signed version. svn path=/trunk/; revision=23507
* Commit missing entry.JP Rosevear2003-11-271-1/+1
| | | | svn path=/trunk/; revision=23496
* make sure we always dist the smime stuffJP Rosevear2003-11-272-0/+6
| | | | | | | | 2003-11-26 JP Rosevear <jpr@ximian.com> * Makefile.am: make sure we always dist the smime stuff svn path=/trunk/; revision=23495
* conditionally compile s/mime supportJP Rosevear2003-11-262-2/+15
| | | | | | | | | 2003-11-26 JP Rosevear <jpr@ximian.com> * Makefile.am (libcamelinclude_HEADERS): conditionally compile s/mime support svn path=/trunk/; revision=23494
* change args to make it suit storing the validity in a tree.Not Zed2003-11-253-14/+39
| | | | | | | | | | | | | | | | 2003-11-25 Not Zed <NotZed@Ximian.com> * camel-cipher-context.c (camel_cipher_validity_envelope): change args to make it suit storing the validity in a tree. (camel_cipher_validity_init): init the list header. (camel_cipher_validity_clone): call validity_new so it gets init properly. (camel_cipher_validity_free): free any children nodes recursively. * camel-cipher-context.h (CamelCipherValidity): added next/prev and list header. svn path=/trunk/; revision=23484
* Don't destroy the providers as it mans we can never ever have more than 1Jeffrey Stedfast2003-11-192-2/+10
| | | | | | | | | | 2003-11-18 Jeffrey Stedfast <fejj@ximian.com> * camel-session.c (camel_session_finalise): Don't destroy the providers as it mans we can never ever have more than 1 session object. See bug #51119 for details. svn path=/trunk/; revision=23431
* Single condition shorteningArtur Flinta2003-11-181-1/+1
| | | | svn path=/trunk/; revision=23409
* Fixed an exception to give a more meaningful description.Jeffrey Stedfast2003-11-182-12/+11
| | | | | | | | | | 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (create_folder): Fixed an exception to give a more meaningful description. (get_folder_info): We always want to scan at least one level deep. svn path=/trunk/; revision=23406
* Fixed an exception to give a more meaningful description.Jeffrey Stedfast2003-11-182-1/+7
| | | | | | | | | 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (create_folder): Fixed an exception to give a more meaningful description. svn path=/trunk/; revision=23397
* set flags in another place tooJeffrey Stedfast2003-11-151-0/+6
| | | | svn path=/trunk/; revision=23357
* Handle "" as a request for a full dirscan as well (not just NULL). MakesJeffrey Stedfast2003-11-153-19/+34
| | | | | | | | | | | | | | 2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * providers/local/camel-mbox-store.c (get_folder_info): Handle "" as a request for a full dirscan as well (not just NULL). Makes it consistant with other stores. (scan_dir): Set the fi->flags appropriately. * providers/local/camel-mbox-folder.c (camel_mbox_folder_get_full_path): Removed temporary hack. svn path=/trunk/; revision=23356
* oops, put the mempool stuff back, we don't use e-memory afterall. DamnNot Zed2003-11-142-0/+114
| | | | | | | | | 2003-11-14 Not Zed <NotZed@Ximian.com> * camel-mime-parser.c (SCAN_BUF): oops, put the mempool stuff back, we don't use e-memory afterall. Damn plane hacking. svn path=/trunk/; revision=23344
* Remove mempool code, we use the stuff in e-util. (PRESERVE_HEADERS): newNot Zed2003-11-147-154/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-13 Not Zed <NotZed@Ximian.com> * camel-mime-parser.c: Remove mempool code, we use the stuff in e-util. (PRESERVE_HEADERS): new compile option, if on, we preserve headers and folding exactly rather than unfolding all input. THIS BREAKS EVERYTHING right now, so don't turn it on. * camel-gpg-context.c (gpg_decrypt): reset the input memstream before passing it to the gpg engine. * tests/smime/pgp-mime.c (main): redirect /dev/null to stdin so it doesn't hang waiting for input. (main): removed from build - this tests multipart/signed explictly, but now the details of this is handled directly by the cipher context. * tests/smime/pgp.c (main): fixes for api changes. (main): redirect /dev/null to stdin so it doesn't hang waiting for input. * tests/message/test1.c (main): update for api changes. * camel-smime-context.c (sm_verify): look at the content object's mime type, not the container's type. svn path=/trunk/; revision=23343
* look at the content object's mime type, not the container's type.Not Zed2003-11-134-6/+37
| | | | | | | | | | | | | | | | | 2003-11-13 Not Zed <NotZed@Ximian.com> * camel-smime-context.c (sm_verify): look at the content object's mime type, not the container's type. 2003-11-11 Not Zed <NotZed@Ximian.com> * camel-cipher-context.c (camel_cipher_validity_set_valid): take into account the @valid argument and set validity properly. (camel_cipher_validity_clone): new method to copy validities. * camel-smime-context.c (sm_signing_cmsmessage): removed a todo. svn path=/trunk/; revision=23311
* merged spam filtering branchRadek Doulik2003-11-1315-21/+316
| | | | svn path=/trunk/; revision=23302
* split out the CMSMessage verification code so it can be used fromNot Zed2003-11-108-173/+380
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-10 Not Zed <NotZed@Ximian.com> * camel-smime-context.c (sm_verify_cmsg): split out the CMSMessage verification code so it can be used from enveloped or externally signed data. * camel-cipher-context.c (camel_cipher_verify): only take a mimepart, internally handle multiparts and the hash. 2003-11-07 Not Zed <NotZed@Ximian.com> * camel-cipher-context.c: make ciphervalidity a public structure, added encrypt status. (camel_cipher_decrypt): changed to return a ciphervalidity. fixed implementations. (camel_cipher_validity_*): Fixed implementations to match new structure, some of this is now redundant. 2003-11-06 Not Zed <NotZed@Ximian.com> * camel-smime-context.c (camel_smime_context_describe_part): implement. svn path=/trunk/; revision=23242
* Don't bother trying to see if the server advertises EHLO. Simply alwaysJeffrey Stedfast2003-11-072-18/+15
| | | | | | | | | | 2003-11-05 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (connect_to_server): Don't bother trying to see if the server advertises EHLO. Simply always try EHLO and fall back to HELO if EHLO fails. Fixes bug #50535. svn path=/trunk/; revision=23199
* new (unfinished) api to peek inside smime parts to tell us whats in it.Not Zed2003-11-058-107/+291
| | | | | | | | | | | | | | | | | | | | | | | | 2003-11-05 Not Zed <NotZed@Ximian.com> * camel-smime-context.c (camel_smime_context_describe_part): new (unfinished) api to peek inside smime parts to tell us whats in it. 2003-11-03 Not Zed <NotZed@Ximian.com> * camel-gpg-context.c (gpg_encrypt): Make this output the full multipart/encrypted part, not just the encrypted content part. * camel-cipher-context.c (camel_cipher_sign): change to output full mime part, not just a stream. (camel_cipher_canonical_to_stream): utility function to canonicalise a mimepart to a stream. * camel-smime-context.c (sm_encode_cmsmessage): removed. (sm_sign): change interface to output a full mime-part, not just a part of a mime part in multipart/signed mode. svn path=/trunk/; revision=23187
* We might need to convert the passwd from UTF-8 into the locale charset.Jeffrey Stedfast2003-11-052-4/+25
| | | | | | | | | | 2003-11-04 Jeffrey Stedfast <fejj@ximian.com> * camel-gpg-context.c (gpg_ctx_parse_status): We might need to convert the passwd from UTF-8 into the locale charset. Fixes bug #50485. svn path=/trunk/; revision=23186
* removed, now redundant.Not Zed2003-10-313-452/+4
| | | | | | | | 2003-10-31 Not Zed <NotZed@Ximian.com> * camel-cms-context.[ch]: removed, now redundant. svn path=/trunk/; revision=23143
* implement something basic.Not Zed2003-10-302-2/+17
| | | | | | | | 2003-10-30 Not Zed <NotZed@Ximian.com> * camel-smime-context.c (sm_get_passwd): implement something basic. svn path=/trunk/; revision=23130
* Added a note about api inconsistencies.Not Zed2003-10-3012-1301/+1253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-30 Not Zed <NotZed@Ximian.com> * camel-cipher-context.h: Added a note about api inconsistencies. 2003-10-30 Not Zed <NotZed@Ximian.com> * camel-multipart-encrypted.c (camel_multipart_encrypted_decrypt): fix for cipher_decrypt changes. * camel-gpg-context.c, camel-cipher-context.c: moved all the init code to the end to save having to keep forward declarations around. (camel_cipher_decrypt): changed to take mimepart input and return a mimepart. (gpg_decrypt): fix for changed args. 2003-10-29 Not Zed <NotZed@Ximian.com> * camel-smime-context.[ch]: replaced entirely with a new implementation which inherits from camel-cipher-context, and add to build. * camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt): fix for cipher_encrypt api changes. (camel_multipart_encrypted_decrypt): use g_ascii_strcasecmp. * camel-gpg-context.c (gpg_encrypt): Fix to handle input/output as parts not streams * camel-cipher-context.c (camel_cipher_encrypt): change to take mimeparts rather than streams as input/output. And remove the 'sign' argument, it is implied if userid is supplied. 2003-10-28 Not Zed <NotZed@Ximian.com> * tests/smime/pgp.c (main): fix for ciphercontext api changes. * camel-multipart-signed.c (camel_multipart_signed_verify): pass in the part to cipher_verify directly. (camel_multipart_signed_sign): let the cipher context setup the part details. * camel-gpg-context.c (gpg_sign): put the signature stream into a mimepart, with appropriate headers/encoding. (swrite): write out a mimepart rather than a stream. (gpg_verify): handle changed args. * camel-cipher-context.c (camel_cipher_sign): write the signature to a mimepart rather than a simple stream. (camel_cipher_verify): take the signature as a mimepart not a stream. 2003-10-22 Not Zed <NotZed@Ximian.com> * camel-utf8.c (camel_ucs2_utf8, camel_utf8_ucs2): helpers for ucs2 stuff. ucs2 is 16 bit truncated unicode. svn path=/trunk/; revision=23127
* We should check List-Post before List-Id (List-Post has to contain theJeffrey Stedfast2003-10-292-10/+17
| | | | | | | | | | | 2003-10-28 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c: We should check List-Post before List-Id (List-Post has to contain the mailing-list posting address, whereas List-Id does not.) WAlso moved X-Loop to after List-Id to make FreeBSD lusers happy. Fixes bug #32297. svn path=/trunk/; revision=23111
* Fixes bug #35083Jeffrey Stedfast2003-10-294-12/+57
| | | | | | | | | | | | | | | | | | | 2003-10-28 Jeffrey Stedfast <fejj@ximian.com> * Fixes bug #35083 * providers/imap/camel-imap-store.c (connect_to_server): Same here. * providers/pop3/camel-pop3-store.c (connect_to_server): Same as the smtp changes. * providers/smtp/camel-smtp-transport.c (connect_to_server): If HAVE_SSL is undefined, don't default to raw connections if the option to connect via ssl is set. Instead set an exception and return fail. svn path=/trunk/; revision=23110
* better detection of broken date to give to broken_date_parser.Frédéric Crozat2003-10-282-0/+20
| | | | | | | * camel-mime-utils.c: (camel_header_decode_date): better detection of broken date to give to broken_date_parser. svn path=/trunk/; revision=23101
* If a word is longer than CAMEL_TEXT_INDEX_MAX_WORDLEN, then ignore it.Jeffrey Stedfast2003-10-282-2/+11
| | | | | | | | | | 2003-10-24 Jeffrey Stedfast <fejj@ximian.com> * camel-text-index.c (text_index_name_add_buffer): If a word is longer than CAMEL_TEXT_INDEX_MAX_WORDLEN, then ignore it. This fixes bug #50096. svn path=/trunk/; revision=23091
* Removed unneeded CAMEL_OBJECT() casts.Jeffrey Stedfast2003-10-2424-104/+117
| | | | | | | | 2003-10-23 Jeffrey Stedfast <fejj@ximian.com> * *.c: Removed unneeded CAMEL_OBJECT() casts. svn path=/trunk/; revision=23052
* Merge new-ui-branch into the trunk.Ettore Perazzoli2003-10-2210-21/+108
| | | | svn path=/trunk/; revision=22966
* Fixed a #include.Jeffrey Stedfast2003-10-162-1/+5
| | | | svn path=/trunk/; revision=22909
* Allow timezone offsets to be up to 14 hours ahead of UTC. Fixes bugJeffrey Stedfast2003-10-103-3/+10
| | | | | | | | | | | 2003-10-09 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (header_decode_date): Allow timezone offsets to be up to 14 hours ahead of UTC. Fixes bug #49357. * broken-date-parser.c (get_tzone): Same. svn path=/trunk/; revision=22838
* Removed an unused variable.Jeffrey Stedfast2003-10-092-1/+5
| | | | | | | | | 2003-10-08 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_helo): Removed an unused variable. svn path=/trunk/; revision=22823
* fixed a comment spelling mistake and removede CAMEL_OBJECT() casting where ↵Jeffrey Stedfast2003-09-261-12/+13
| | | | | | it was not needed (ref and unref calls) svn path=/trunk/; revision=22700
* If the localhost lookup results in a numeric IPv6 host, use the formJeffrey Stedfast2003-09-252-1/+9
| | | | | | | | | | 2003-09-25 Jeffrey Stedfast <fejj@ximian.com> * providers/smtp/camel-smtp-transport.c (smtp_helo): If the localhost lookup results in a numeric IPv6 host, use the form "[IPv6:<addr>]" as specified in rfc2821. Fixes bug #46006. svn path=/trunk/; revision=22694