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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user