summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-11-21 10:48:13 -0800
committerOri Bernstein <ori@eigenstate.org>2019-11-21 10:48:13 -0800
commit4cef9b12fd98d3d93894e3267c47f36775560702 (patch)
tree48bc356dbaefa91e5468f63d286448bf8d95d31c /sys/src
parent29b6ad33305dc4a69940d6f636d6f129931cf9f1 (diff)
show urls in html messages.
sometimes, I get phishing emails with links that I have an unstoppable urge to click.
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/upas/Mail/html.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/src/cmd/upas/Mail/html.c b/sys/src/cmd/upas/Mail/html.c
index 64730856f..3740bf9c5 100644
--- a/sys/src/cmd/upas/Mail/html.c
+++ b/sys/src/cmd/upas/Mail/html.c
@@ -13,9 +13,8 @@ formathtml(char *body, int *np)
int i, j, p[2], q[2];
Exec *e;
char buf[1024];
- Channel *sync;
- e = emalloc(sizeof(struct Exec));
+ e = emalloc(sizeof(Exec));
if(pipe(p) < 0 || pipe(q) < 0)
error("can't create pipe: %r");
@@ -23,15 +22,15 @@ formathtml(char *body, int *np)
e->p[1] = p[1];
e->q[0] = q[0];
e->q[1] = q[1];
- e->argv = emalloc(3*sizeof(char*));
+ e->argv = emalloc(4*sizeof(char*));
e->argv[0] = estrdup("htmlfmt");
- e->argv[1] = estrdup("-cutf-8");
- e->argv[2] = nil;
+ e->argv[1] = estrdup("-a");
+ e->argv[2] = estrdup("-cutf-8");
+ e->argv[3] = nil;
e->prog = "/bin/htmlfmt";
- sync = chancreate(sizeof(int), 0);
- e->sync = sync;
+ e->sync = chancreate(sizeof(int), 0);
proccreate(execproc, e, EXECSTACK);
- recvul(sync);
+ recvul(e->sync);
close(p[0]);
close(q[1]);