Sujet : Re: Has tin forgotten me?
De : urs (at) *nospam* buil.tin.org (Urs Janßen)
Groupes : news.software.readersDate : 03. Jan 2025, 04:46:18
Autres entêtes
Organisation : tin.org
Message-ID : <vl7mia$i4p$1@nntp.de>
References : 1 2 3 4 5 6
User-Agent : tin/2.6.5-20241224 ("Helmsdale") (Linux/6.1.0-27-amd64 (x86_64))
In Louis Epstein <
le@lekno.ws> wrote:
then you should add one (or figure out why the fallback to USER@HOST
doesn't work anymore (you would need to inspect the source for that).
I had always relied on that fallback.
I think I've figured that out (we've changed some internal structs to use
less memory but failed to adjust some (the patch below is a shortend version
to fix your issue) checks for (non)-empty-strings.
#v+
=== modified file 'src/header.c'
--- old/src/header.c 2024-12-15 14:03:16 +0000
+++ new/src/header.c 2025-01-03 03:22:39 +0000
@@ -288,7 +288,7 @@
{
const char *fromhost = domain_name;
- if (thisgrp && thisgrp->attribute->from && *thisgrp->attribute->from) {
+ if (thisgrp && thisgrp->attribute->from && *thisgrp->attribute->from && strchr(*thisgrp->attribute->from, '@')) {
strcpy(from_name, *thisgrp->attribute->from);
return;
}
#v-