From fb88cab9ff74bb0be89914f88c12f918c7e01515 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sat, 20 Feb 2021 13:01:48 -0800 Subject: upas/marshal: use login instead of user (thanks sirjofri) User is the upasname, and is unlikely to exist when we save the message to the outbox. We should use the login name instead. --- sys/src/cmd/upas/marshal/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/upas/marshal/marshal.c b/sys/src/cmd/upas/marshal/marshal.c index 893775b03..68f9c4f6b 100644 --- a/sys/src/cmd/upas/marshal/marshal.c +++ b/sys/src/cmd/upas/marshal/marshal.c @@ -1088,7 +1088,7 @@ sendmail(Addr *to, Addr *cc, Addr *bcc, int *pid, char *rcvr) case 0: close(pfd[0]); /* BOTCH; "From " time gets changed */ - f = foldername(nil, user, rcvr); + f = foldername(nil, login, rcvr); b = openfolder(f, time(0)); if(b != nil){ fd = Bfildes(b); -- cgit v1.2.3