9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: John Krug <j.krug@lancaster.ac.uk>
To: 9fans@cse.psu.edu
Subject: [9fans] acme Mail change for outgoing folder
Date: Wed, 18 Sep 2002 15:50:04 +0100	[thread overview]
Message-ID: <22c5da3a72afa3c237576a41047c0757@lancaster.ac.uk> (raw)

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%



             reply	other threads:[~2002-09-18 14:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-18 14:50 John Krug [this message]
2002-09-18 16:54 rob pike, esq.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22c5da3a72afa3c237576a41047c0757@lancaster.ac.uk \
    --to=j.krug@lancaster.ac.uk \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).