The senario: upas/fs -n echo open /apop/pop.sally.com/steve sally.johnston > /mail/fs/ctl echo open /n/fred/mail/box/steve/mbox fred > /mail/fs/ctl faces -i -m /mail/fs/sally.johnston -m /mail/fs/fred B3 clicking on the icons in faces doesn't work. The problem is the logic in nedmail WRT the singleton mail file, which I have added another clause to, however, I'am not sure how presotto expected this to work - I may have worked around a much simpler bug. This code fixes the problem anyway. -Steve Reference: /n/sources/patch/applied/nedmail-singleton Date: Wed Sep 1 18:32:31 CES 2004 --- /sys/src/cmd/upas/ned/nedmail.c Wed Sep 1 18:32:31 2004 +++ /sys/src/cmd/upas/ned/nedmail.c Wed Sep 1 18:32:30 2004 @@ -2357,13 +2357,25 @@ n = Elemlen-12; sprint(mbname+n, "%ld", time(0)); } - + if(fprint(fd, "open %s %s", s_to_c(path), mbname) < 0){ fprint(2, "!can't 'open %s %s': %r\n", file, mbname); s_free(path); return -1; } close(fd); + }else + if (singleton && access(singleton, 0)==0 + && strncmp(singleton, "/mail/fs/", 9) == 0){ + if ((p = strchr(singleton +10, '/')) == nil){ + fprint(2, "!bad mbox name"); + return -1; + } + n = p-(singleton+9); + strncpy(mbname, singleton+9, n); + mbname[n+1] = 0; + path = s_reset(nil); + mboxpath(mbname, user, path, 0); }else{ path = s_reset(nil); mboxpath("mbox", user, path, 0);