9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] fix to types in acme mail
@ 2002-02-19  2:18 rob pike
  0 siblings, 0 replies; only message in thread
From: rob pike @ 2002-02-19  2:18 UTC (permalink / raw)
  To: 9fans

This fix is untested but it's adapted from the fix
I made to our local version and, if it's wrong, is
very close to right.  In essence, I misunderstood
the rfc822 conditions (an easy mistake) and the fix
is to let marshal do all the work by just not setting
the -t flag.

-rob
% diff reply.c $d/acme/mail/src/reply.c
202c202
< int	included[200];
---
> int	rfc822[200];
331c331
< 				included[natt++] = (h == INCLUDE);
---
> 				rfc822[natt++] = (h == INCLUDE);
362c362,364
< 		if(included[i])
---
> 		if(rfc822[i]){
> 			e->argv[j++] = estrdup("-t");
> 			e->argv[j++] = estrdup("message/rfc822");
364c366
< 		else
---
> 		}else
% 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-19  2:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-19  2:18 [9fans] fix to types in acme mail rob pike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).