|
Lines 476-482
Link Here
|
| 476 |
char **envfrom; |
476 |
char **envfrom; |
| 477 |
{ |
477 |
{ |
| 478 |
char tmpfrom[ADDRLEN + 1]; |
478 |
char tmpfrom[ADDRLEN + 1]; |
| 479 |
char *idx; |
479 |
char *iplus, *idx; |
| 480 |
struct mlfi_priv *priv; |
480 |
struct mlfi_priv *priv; |
| 481 |
char *auth_authen; |
481 |
char *auth_authen; |
| 482 |
char *verify; |
482 |
char *verify; |
|
Lines 530-535
Link Here
|
| 530 |
*/ |
530 |
*/ |
| 531 |
strncpy_rmsp(tmpfrom, *envfrom, ADDRLEN); |
531 |
strncpy_rmsp(tmpfrom, *envfrom, ADDRLEN); |
| 532 |
tmpfrom[ADDRLEN] = '\0'; |
532 |
tmpfrom[ADDRLEN] = '\0'; |
|
|
533 |
|
| 534 |
/* |
| 535 |
* Wipe the plus part of the sender address. |
| 536 |
* This avoids issues with mailing lists |
| 537 |
* using a unique sender address plus part. |
| 538 |
*/ |
| 539 |
if ((iplus = index(tmpfrom, '+')) != NULL && |
| 540 |
(idx = index(iplus, '@')) != NULL) { |
| 541 |
strncpy(iplus, idx, ADDRLEN - (idx - iplus)); |
| 542 |
tmpfrom[ADDRLEN - (idx - iplus)] = '\0'; |
| 543 |
idx = tmpfrom; |
| 544 |
} |
| 533 |
|
545 |
|
| 534 |
/* |
546 |
/* |
| 535 |
* Strip anything before the last '=' in the |
547 |
* Strip anything before the last '=' in the |