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) {
|
if (p) {
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
if (strcmp (h, "po") == 0) {
|
if (strcmp (h, "po") == 0) {
|
||||||
h = getenv("MAILHOST");
|
h = strchr(p, '@');
|
||||||
if (h == NULL)
|
if(h)
|
||||||
errx (1, "MAILHOST not set");
|
*h++ = '\0';
|
||||||
|
else {
|
||||||
|
h = getenv("MAILHOST");
|
||||||
|
if (h == NULL)
|
||||||
|
errx (1, "MAILHOST not set");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
u = p;
|
u = p;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user