X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;h=d97af9084ba3442a7667ac9bee7c19b067c34c5f;hp=3713954abcdef817ba9ed5e22d4f4ce19d3fb73f;hb=83e04675b53374a1436029a367283d6d4ee05a07;hpb=205e60873e26bb542945dc2c48d7385af84ba120 diff --git a/uip/slocal.c b/uip/slocal.c index 3713954..d97af90 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1318,7 +1318,7 @@ you_lose: if (first) { first = 0; if (strncmp(buffer, "From ", i)==0) { - char *fp, *cp, *hp, *ep; + char *fp, *cp; /* ** get copy of envelope information ** ("From " line) @@ -1329,27 +1329,10 @@ you_lose: ** Now create a "Return-Path:" line ** from the "From " line. */ - hp = cp = strchr(fp = envelope + i, ' '); - while ((hp = strchr(++hp, 'r'))) { - if (uprf(hp, "remote from")) { - hp = strrchr(hp, ' '); - break; - } - } - if (hp) { - /* - ** return path for UUCP style - ** addressing - */ - ep = strchr(++hp, '\n'); - snprintf(buffer, sizeof(buffer), "Return-Path: %.*s!%.*s\n", (int)(ep - hp), hp, (int)(cp - fp), fp); - } else { - /* - ** return path for standard domain - ** addressing - */ - snprintf(buffer, sizeof(buffer), "Return-Path: %.*s\n", (int)(cp - fp), fp); - } + cp = strchr(fp = envelope + i, ' '); + snprintf(buffer, sizeof(buffer), + "Return-Path: %.*s\n", + (int)(cp - fp), fp); /* Add Return-Path header to message */ fputs(buffer, ffp);