aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-url-scanner.c
Commit message (Collapse)AuthorAgeFilesLines
* Kill dead filesJP Rosevear2005-01-111-522/+0
| | | | svn path=/trunk/; revision=28342
* have our own so we don't need to link with glib.Not Zed2004-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * camel-lock-helper.c (g_strerror): have our own so we don't need to link with glib. * providers/*/Makefile.am: Do not install ANY provider header files. No providers are subclassable. No providers are directly linkable. * camel.pc.in: create package config file. * tests/lib/folders.c (test_folder_message_ops): updated counts for delete also marking unread. * tests/lib/camel-test.c (camel_test_provider_init): new api for initialising test system 'in-build'. * camel-provider.c: remove the assertions, init if we need to,k use pthread_once stuff to serialise it. * tests/folder/test3.c (main): remove gtk stuff (???). * tests/*: Fix all the makefiles. Made make-check work 'in-build'. * tests/lib/folders.c (test_folder_counts): update for api changes. (test_message_info): similar. * providers/Makefile.am: removed groupwise from the build, this can't go in here anymore, not in its current state. * camel-net-utils.c (camel_gethostbyaddr_r) (camel_gethostbyname_r): the old e_gethost* calls from e-host-utils.c. 2004-11-15 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-utils.c (imap_path_to_physical): copied from e-path.c. (imap_path_find_folders): copied from e-path.c. * camel.h: remove the provider stuff from the header. * camel-provider.c: globalise provider_init variable, and asserton it in all functions that rely on it. * camel-service.c: removed getaddrinfo/etc. * camel-net-utils.[ch]: separate out camel_getaddrinfo etc. * Makefile.am: split camel into 2 libraries, libcamel and libcamel-store. * camel-multipart-signed.c (camel_multipart_signed_sign) (camel_multipart_signed_verify, prepare_sign): remove old deprecated api. * camel-multipart-encrypted.c (camel_multipart_encrypted_encrypt) (camel_multipart_encrypted_decrypt): remove old deprecated api. svn path=/trunk/; revision=28046
* In the case of start() or end() failing, loop starting with the firstJeffrey Stedfast2004-08-061-14/+22
| | | | | | | | | | 2004-08-03 Jeffrey Stedfast <fejj@novell.com> * camel-url-scanner.c (camel_url_scanner_scan): In the case of start() or end() failing, loop starting with the first character immediately following the failed match position. Fixes bug #62136. svn path=/trunk/; revision=26831
* More fixes.Jeffrey Stedfast2004-06-281-25/+5
| | | | | | | | 2004-06-27 Jeffrey Stedfast <fejj@novell.com> * camel-url-scanner.c (camel_url_web_end): More fixes. svn path=/trunk/; revision=26532
* remove more debugging printfsJeffrey Stedfast2004-06-261-3/+0
| | | | svn path=/trunk/; revision=26525
* fixed an uninitialised memory read from my last fixJeffrey Stedfast2004-06-261-10/+17
| | | | svn path=/trunk/; revision=26524
* Fixed to handle :pass in proto://user:pass@host. Fixes bug #60104.Jeffrey Stedfast2004-06-251-9/+36
| | | | | | | | | 2004-06-25 Jeffrey Stedfast <fejj@novell.com> * camel-url-scanner.c (camel_url_web_end): Fixed to handle :pass in proto://user:pass@host. Fixes bug #60104. svn path=/trunk/; revision=26514
* added some debug to dump the whole folderinfo tree if store:folder_info isNot Zed2004-03-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use strrchr, not strchr.Jeffrey Stedfast2004-02-071-0/+2
| | | | | | | | 2004-02-06 Jeffrey Stedfast <fejj@ximian.com> * camel-provider.c (camel_provider_init): Use strrchr, not strchr. svn path=/trunk/; revision=24668
* New test suite for url scanning.Jeffrey Stedfast2004-02-041-39/+89
| | | | | | | | | | | | | | | | | | | | | 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
* Urls are unlikely to end with punctuation or closing braces, so strip anyJeffrey Stedfast2003-04-181-0/+7
| | | | | | | | | | | | | | | | | | | 2003-04-16 Jeffrey Stedfast <fejj@ximian.com> * camel-url-scanner.c (camel_url_web_end): Urls are unlikely to end with punctuation or closing braces, so strip any of those off the end of the url. Fixes bug #41461. * tests/mime-filter/data/html.1.out: Removed a trailing \n at the end of the file, this is incorrect (since out input file does not contain one). * camel-mime-filter-tohtml.c (html_convert): Only output a <br> if we found an eoln in the input. Along the same lines, don't write a '\n' to the output buffer unless we've encountered that eoln in the input. Fixes bug #41407. svn path=/trunk/; revision=20882
* Doh! If inptr == pos + 1, then return FALSE (before it was checking forJeffrey Stedfast2003-03-101-1/+1
| | | | | | | | | | 2003-03-09 Jeffrey Stedfast <fejj@ximian.com> * camel-url-scanner.c (camel_url_addrspec_end): Doh! If inptr == pos + 1, then return FALSE (before it was checking for inptr == pos, but it will never be pos). svn path=/trunk/; revision=20225
* watch for <>'s tooJeffrey Stedfast2003-02-151-1/+2
| | | | svn path=/trunk/; revision=19914
* Mark chars with the high-bit set as CTRL chars. (camel_url_web_end): IfJeffrey Stedfast2003-02-151-11/+42
| | | | | | | | | | | | 2003-02-14 Jeffrey Stedfast <fejj@ximian.com> * camel-url-scanner.c (url_scanner_table_init): Mark chars with the high-bit set as CTRL chars. (camel_url_web_end): If the char before the start of the url is an open-brace, watch out for the matching close-brace. (camel_url_file_end): Same. svn path=/trunk/; revision=19913
* Fixed to not be fooled in the case where the address is followedJeffrey Stedfast2002-12-101-35/+50
| | | | | | | | | | | | | | 2002-12-09 Jeffrey Stedfast <fejj@ximian.com> * camel-url-scanner.c (camel_url_addrspec_end): Fixed to not be fooled in the case where the address is followed immediately by a period. (camel_url_web_end): Made more robust. (camel_url_scanner_scan): Oops. We need to set the match->pattern string pointer to the correct pattern before executing the start/end methods (as some of them rely on this info). svn path=/trunk/; revision=19077
* New code to scan for patterns (used only for url pattern matching atm, butJeffrey Stedfast2002-12-101-0/+396
2002-12-09 Jeffrey Stedfast <fejj@ximian.com> * camel-url-scanner.c: New code to scan for patterns (used only for url pattern matching atm, but we may find other uses for this and thus rename it? I dunno). Uses ETrie. svn path=/trunk/; revision=19075