<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] debian bug #275060 mutt: doesn't preserve a set flag (~F) when editing message



On Sun, Feb 06, 2005 at 09:43:04PM +0900, TAKAHASHI Tamotsu wrote:
> --- imap/message.c.orig       Sun Dec 19 19:35:57 2004
> +++ imap/message.c    Sun Dec 19 20:07:30 2004
> @@ -518,6 +518,8 @@
> +  char replied[11] = " \\Answered";
> +  char flagged[10] = " \\Flagged";
> +  if (!msg->flags.replied)
> +    replied[0] = '\0';
> +  if (!msg->flags.flagged)
> +    flagged[0] = '\0';
> +  snprintf (buf, sizeof (buf), "APPEND %s (\\Seen%s%s) {%lu}", mbox, 
> replied, flagged, (unsigned long)len);
>  
this is neither an efficient nor an elegant way of coding this ...

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.