Re: [evolution-patches] [PATCH] Include day of week in outgoing Date: header.



this looks ok

On Thu, 2003-06-26 at 13:04, David Woodhouse wrote:
> (Resent because I think I got the wrong address last time)
> 
> Against CVS, resubmitted now that the feature freeze is (almost?)
> over...
> 
> Index: camel/camel-mime-utils.c
> ===================================================================
> RCS file: /cvs/gnome/evolution/camel/camel-mime-utils.c,v
> retrieving revision 1.183
> diff -u -p -r1.183 camel-mime-utils.c
> --- camel/camel-mime-utils.c	15 May 2003 23:30:06 -0000	1.183
> +++ camel/camel-mime-utils.c	24 Jun 2003 21:10:35 -0000
> @@ -3422,6 +3422,10 @@ static char *tz_months [] = {
>  	"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
>  };
>  
> +static char *tz_days [] = {
> +	"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
> +};
> +
>  char *
>  header_format_date(time_t time, int offset)
>  {
> @@ -3437,7 +3441,8 @@ header_format_date(time_t time, int offs
>  
>  	memcpy(&tm, gmtime(&time), sizeof(tm));
>  
> -	return g_strdup_printf("%02d %s %04d %02d:%02d:%02d %+05d",
> +	return g_strdup_printf("%s, %02d %s %04d %02d:%02d:%02d %+05d",
> +			       tz_days[tm.tm_wday],
>  			       tm.tm_mday, tz_months[tm.tm_mon],
>  			       tm.tm_year + 1900,
>  			       tm.tm_hour, tm.tm_min, tm.tm_sec,
> Index: camel/ChangeLog
> ===================================================================
> RCS file: /cvs/gnome/evolution/camel/ChangeLog,v
> retrieving revision 1.1834
> diff -u -p -r1.1834 ChangeLog
> --- camel/ChangeLog	20 Jun 2003 03:53:33 -0000	1.1834
> +++ camel/ChangeLog	24 Jun 2003 21:10:36 -0000
> @@ -1,3 +1,8 @@
> +2003-06-24  David Woodhouse  <dwmw2 infradead org>
> +
> +	* camel-mime-utils.c (header_format_date): Put day of week
> +	into outgoing email.
> +
>  2003-06-18  Not Zed  <NotZed Ximian com>
>  
>  	* camel-service.c (get_hostbyaddr, get_hostbyname): if we got
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]