allow `po:user@host' mailbox syntax

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5031 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1998-06-24 18:36:51 +00:00
parent 4ec15b8e7d
commit 778d4a1c5d

View File

@@ -519,9 +519,14 @@ parse_pobox (char *a0, char *a1,
if (p) {
*p++ = '\0';
if (strcmp (h, "po") == 0) {
h = getenv("MAILHOST");
if (h == NULL)
errx (1, "MAILHOST not set");
h = strchr(p, '@');
if(h)
*h++ = '\0';
else {
h = getenv("MAILHOST");
if (h == NULL)
errx (1, "MAILHOST not set");
}
}
u = p;
} else {