[tin-dev] [tin 2.6.4] snapshots

Urs Janßen urs at tin.org
Sun Nov 10 11:39:55 CET 2024


*gnaaa*, without that dot tin builds an invalid (truncated) Sender:-header
and then complains about it and you can't post (without disbale_sender).

=== modified file 'src/header.c'
--- old/src/header.c	2024-11-08 07:42:18 +0000
+++ new/src/header.c	2024-11-10 10:31:53 +0000
@@ -325,7 +325,7 @@
 	if ((ptr = get_full_name())) /* TODO: rfc2047 encode */
 		snprintf(sender, sizeof(sender), ((strpbrk(ptr, "\".:;<>@[]()\\")) ? "\"%s\"" : "%s "), ptr);
 
-	snprintf(sender + strlen(sender), sizeof(sender) - strlen(sender), "<%*s@", LOGIN_NAME_MAX, userid);
+	snprintf(sender + strlen(sender), sizeof(sender) - strlen(sender), "<%.*s@", LOGIN_NAME_MAX, userid);
 
 #	ifdef HAVE_GETHOSTBYNAME
 	ptr = get_fqdn(get_host_name());




More information about the tin-dev mailing list