Commit Graph

13 Commits

Author SHA1 Message Date
574ed950da Allow timezone offsets to be up to 14 hours ahead of UTC. Fixes bug
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
2003-10-09 16:46:30 +00:00
cc44248f58 Turn off debugging.
2003-06-01  Jeffrey Stedfast  <fejj@ximian.com>

	* broken-date-parser.c (d): Turn off debugging.

	* providers/pop3/camel-pop3-engine.c (get_capabilities): Move the
	code that prepends the 'password' authtype to the auth list so
	that we don't add it again when regetting the capabilities.

svn path=/trunk/; revision=21360
2003-06-01 23:49:29 +00:00
c56bdc1cef Workaround for POS mailers like the one in bug #42045.
2003-05-01  Jeffrey Stedfast  <fejj@ximian.com>

	Workaround for POS mailers like the one in bug #42045.

	* camel-mime-utils.c (header_decode_date): Make sure the numeric
	timezone is between -1200 and 1200, otherwise it is invalid.

	* broken-date-parser.c (get_tzone): Make sure the numeric timezone
	is between -1200 and 1200, otherwise it is invalid.

svn path=/trunk/; revision=21048
2003-05-02 17:37:11 +00:00
7ddf575be5 Fixed to not get false positives when the token is shorter than the actual
2002-12-03  Jeffrey Stedfast  <fejj@ximian.com>

	* broken-date-parser.c (get_tzone): Fixed to not get false
	positives when the token is shorter than the actual timezone
	string (but matches the first little bit of it).
	(datetok): Modified to properly handle when the first char of a
	token is a special char (such as a '-') that is also used as a
	token delimiter.

svn path=/trunk/; revision=18996
2002-12-03 18:23:17 +00:00
7ed66fac42 New function to decode the INTERNALDATE response from an IMAP server so we
2002-09-27  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-folder.c (decode_internaldate): New
	function to decode the INTERNALDATE response from an IMAP server
	so we don't have to use my broken-date-parser routines.

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

	* providers/imap/camel-imap-store.c (connect_to_server):
	NULL-check the streams before unreffing them in the case of a
	failure during ssl negotiations.

	* camel-tcp-stream-ssl.c (camel_tcp_stream_ssl_enable_ssl): Check
	SSL_ResetHandshake() for errors. Also force a handshake after
	we've reset the handshake state on the socket.

svn path=/trunk/; revision=18252
2002-09-27 20:20:08 +00:00
15af11c988 Use e_mktime_utc.
* camel-mime-utils.c (header_decode_date): Use e_mktime_utc.

	* camel-mime-message.c (camel_mime_message_set_date): Use
	e_localtime_with_offset.

	* broken-date-parser.c (decode_broken_date): Use e_mktime_utc.

svn path=/trunk/; revision=17986
2002-09-05 14:26:30 +00:00
5b5ae41e20 Treat commas as token delimeters. (WEEKDAY_CHARS): Use full weekday names
2002-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* broken-date-parser.c (datetok): Treat commas as token
	delimeters.
	(WEEKDAY_CHARS): Use full weekday names in case the broken mailer
	used the full names.
	(MONTH_CHARS): Same as above but for months.

svn path=/trunk/; revision=16456
2002-04-12 22:16:42 +00:00
c18057139c Fix this to work right. We need to convert the input buffer to the charset
2002-03-19  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-mime-utils.c (header_encode_param): Fix this to work
	right. We need to convert the input buffer to the charset we claim
	in the encoded param (duh).

svn path=/trunk/; revision=16214
2002-03-19 23:29:41 +00:00
3460dc5c49 Completely rewritten. It is now a load faster and a heck of a lot more
2001-12-21  Jeffrey Stedfast  <fejj@ximian.com>

	* broken-date-parser.c (parse_broken_date): Completely
	rewritten. It is now a load faster and a heck of a lot more
	accurate, also now returns a time_t and sets the saveoffset
	variable rather than returning a new char* buffer for the normal
	camel date parser to re-parse. This saves a fair number of cpu
	cycles :-)

	* camel-mime-utils.c (header_decode_date): Cleanup the broken date
	parsing code.

svn path=/trunk/; revision=15205
2001-12-21 19:51:58 +00:00
42606efd98 More fixing of the license texts.
svn path=/trunk/; revision=14216
2001-10-27 18:06:04 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
fe962a2055 Big header cleanups and nntp compile fix
svn path=/trunk/; revision=9024
2001-03-29 20:31:40 +00:00
c07840479d Utilities for parsing broken date strings.
2000-06-30  Jeffrey Stedfast  <fejj@helixcode.com>

	* broken-date-parser.[c,h]: Utilities for parsing broken
	date strings.

	* providers/imap/camel-imap-folder.c: fixed some mem leaks

svn path=/trunk/; revision=3840
2000-07-01 00:11:01 +00:00