FreeBSD Bugzilla – Attachment 230423 Details for
Bug 260700
mail/milter-greylist: handle mlmmj sender addresses correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Remove '+' and suffix from local part
plus-addr.diff (text/plain), 910 bytes, created by
Helge Oldach
on 2021-12-26 15:22:51 UTC
(
hide
)
Description:
Remove '+' and suffix from local part
Filename:
MIME Type:
Creator:
Helge Oldach
Created:
2021-12-26 15:22:51 UTC
Size:
910 bytes
patch
obsolete
>Before checking for a unique mailing list address containing '=', >drop the plus part of the sender address. > >26dec21 > > >--- milter-greylist.c 2020-08-28 02:06:45.000000000 +0200 >+++ milter-greylist.c 2021-12-26 12:16:21.710555000 +0100 >@@ -476,7 +476,7 @@ > char **envfrom; > { > char tmpfrom[ADDRLEN + 1]; >- char *idx; >+ char *iplus, *idx; > struct mlfi_priv *priv; > char *auth_authen; > char *verify; >@@ -530,6 +530,18 @@ > */ > strncpy_rmsp(tmpfrom, *envfrom, ADDRLEN); > tmpfrom[ADDRLEN] = '\0'; >+ >+ /* >+ * Wipe the plus part of the sender address. >+ * This avoids issues with mailing lists >+ * using a unique sender address plus part. >+ */ >+ if ((iplus = index(tmpfrom, '+')) != NULL && >+ (idx = index(iplus, '@')) != NULL) { >+ strncpy(iplus, idx, ADDRLEN - (idx - iplus)); >+ tmpfrom[ADDRLEN - (idx - iplus)] = '\0'; >+ idx = tmpfrom; >+ } > > /* > * Strip anything before the last '=' in the
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260700
: 230423