From 778d4a1c5dc094f59741480cc4a33225067fb5d2 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Wed, 24 Jun 1998 18:36:51 +0000 Subject: [PATCH] allow `po:user@host' mailbox syntax git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5031 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/push/push.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/appl/push/push.c b/appl/push/push.c index 985f07ad9..84dbfd802 100644 --- a/appl/push/push.c +++ b/appl/push/push.c @@ -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 {