mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
acme/Mail: provide runnable command to view html
This commit is contained in:
parent
15ceba4fc9
commit
aeb857e367
1 changed files with 4 additions and 1 deletions
|
@ -289,7 +289,10 @@ mesgshow(Mesg *m)
|
|||
name = "body";
|
||||
if((suff = strchr(name, '.')) == nil)
|
||||
suff = "";
|
||||
Bprint(wfd, "\tcp %s%sbody%s %s/%s\n", mbox.path, a->name, suff, home, name);
|
||||
if(strcmp(a->type, "text/html") == 0)
|
||||
Bprint(wfd, "\thtmlfmt -a %s%sbody.html\n", mbox.path, a->name);
|
||||
else
|
||||
Bprint(wfd, "\tcp %s%sbody%s %s/%s\n", mbox.path, a->name, suff, home, name);
|
||||
continue;
|
||||
}
|
||||
Bterm(wfd);
|
||||
|
|
Loading…
Reference in a new issue