9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] acme Mail change for outgoing folder
@ 2002-09-18 14:50 John Krug
  0 siblings, 0 replies; 2+ messages in thread
From: John Krug @ 2002-09-18 14:50 UTC (permalink / raw)
  To: 9fans

The following small change shows addressee rather than sender (which
I, and possibly others, prefer) when viewing the outgoing folder in
acme Mail.  I'm not sure whether it is the best way but it appears to
work.

term% pwd
/acme/mail
term% md5sum src/mesg.c
dad4c6a2cda3ab5b5a5304bcbef170c2	src/mesg.c
term% diff src/mesg.c nnsrc/mesg.c
285c285
< info(Message *m, int ind)
---
> info(Message *m, int ind, int ogf)
288a289
> 	char *p;
289a291,295
> 	if (ogf)
> 		p=m->to;
> 	else
> 		p=m->fromcolon;
>
300c306
< 			snprint(s, 80, fmt, m->fromcolon);
---
> 			snprint(s, 80, fmt, p);
303c309
< 			snprint(s, 80, fmt, m->fromcolon, m->subject);
---
> 			snprint(s, 80, fmt, p, m->subject);
311c317
< 	i = eappend(i, "\t", m->fromcolon);
---
> 	i = eappend(i, "\t", p);
333a340
> 	int ogf=0;
334a342,344
> 	if (strcmp(realdir, "/mail/fs/outgoing/") == 0)
> 		ogf=1;
>
346c356
< 		tmp = info(m, ind);
---
> 		tmp = info(m, ind, ogf);
term%



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] acme Mail change for outgoing folder
@ 2002-09-18 16:54 rob pike, esq.
  0 siblings, 0 replies; 2+ messages in thread
From: rob pike, esq. @ 2002-09-18 16:54 UTC (permalink / raw)
  To: 9fans

Thanks.  I've published this change on sources.

-rob



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-18 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-18 14:50 [9fans] acme Mail change for outgoing folder John Krug
2002-09-18 16:54 rob pike, esq.

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).