Skip to content

Commit 9ce526b

Browse files
committed
mod_smtp_mailing_lists: Fix RFC 2919 List-Id header value format.
The username part and domain should be separated by '.', not '@'.
1 parent c44d366 commit 9ce526b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mod_smtp_mailing_lists.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int add_list_headers(struct mailing_list *l, FILE *fp, const char *from)
213213
fprintf(fp, "Sender: <%s@%s>\r\n", l->user, rdomain); /* groups.io and Yahoo just use the reflector address; mailman does "user" <user-bounces@domain> */
214214

215215
/* Many RFC 2369 headers */
216-
fprintf(fp, "List-Id: <%s@%s>\r\n", l->user, rdomain); /* RFC 2919; "" for groups.io and Yahoo Groups; mailman does "list name" <reflector> */
216+
fprintf(fp, "List-Id: <%s.%s>\r\n", l->user, rdomain); /* RFC 2919; "" for groups.io and Yahoo Groups; mailman does "list name" <reflector> */
217217
fprintf(fp, "List-Subscribe: <mailto:%s+%s@%s>\r\n", l->user, "subscribe", rdomain); /* groups.io uses +subscribe, mailman uses -request ...?subject=subscribe */
218218
fprintf(fp, "List-Unsubscribe: <mailto:%s+%s@%s>\r\n", l->user, "unsubscribe", rdomain);
219219
/* Skip List-Archive header, this isn't accessible to users */

0 commit comments

Comments
 (0)