Thread View: news.software.readers
5 messages
5 total messages
Started by Kyle Tucker
Fri, 05 Feb 1999 00:00
knews mailName resource
Author: Kyle Tucker
Date: Fri, 05 Feb 1999 00:00
Date: Fri, 05 Feb 1999 00:00
10 lines
1029 bytes
1029 bytes
Hi, I have tried scores of variations in both my config-$NNTPSERVER and ~/.Xresources file and cannot get this to create a different From: header. Any other resource I play with seems fine. Anyone successfully get this to work? Thanks. - Kyle
Re: knews mailName resource
Author: Jeroen Scheerder
Date: Fri, 05 Feb 1999 00:00
Date: Fri, 05 Feb 1999 00:00
34 lines
1999 bytes
1999 bytes
Kyle Tucker <kylet@shore.net>:
> I have tried scores of variations in both my
> config-$NNTPSERVER and ~/.Xresources file and cannot
> get this to create a different From: header. Any other
> resource I play with seems fine. Anyone successfully
> get this to work?
More or less. AFAIK, knews is designed to generate a reply address that
is both syntacticlly valid and belonging to the user ("semantically
valid").
To the best of my knowledge, there is no mailName. By design. There
*is* a `fullName' field, however.
You can, of course, workaround this kind of thing by `cheating', i.e. by
fixing it either by hand or automatically when calling the editor, or
when posting. For example, you could easily set
Knews.editCommand: perl -pi -e 's/^From: .*/From: Me <just@bug.ging>/' %s; $EDITOR %s
in your .Xresources.
There is of course a reason why Knews won't let you fiddle with this.
Address validity is important for a number of reasons. So use that
kind of workaround very carefully.
-- J$
--
dash dash space
this is my .sig it's not so .big
Re: knews mailName resource
Author: Heikki Kantola
Date: Sat, 06 Feb 1999 00:00
Date: Sat, 06 Feb 1999 00:00
29 lines
1959 bytes
1959 bytes
Jeroen Scheerder <js@cwi.nl> informed
news.software.readers with the following:
>Kyle Tucker <kylet@shore.net>:
>> I have tried scores of variations in both my
>> config-$NNTPSERVER and ~/.Xresources file and cannot
>> get this to create a different From: header. Any other
>> resource I play with seems fine. Anyone successfully
>> get this to work?
>
>More or less. AFAIK, knews is designed to generate a reply address that
>is both syntacticlly valid and belonging to the user ("semantically
>valid").
>
>To the best of my knowledge, there is no mailName. By design. There
>*is* a `fullName' field, however.
Actually there's mailName-resource (or atleast that's what the man
page says, I'm just now unable to test Knews in action), but it just
allows you to adjust the username part of e-mail address, so if one
needs to adjust domain name that has to be done at compile time or
with some sort of editor hack or like.
--
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.
Re: knews mailName resource
Author: Kyle Tucker
Date: Mon, 08 Feb 1999 00:00
Date: Mon, 08 Feb 1999 00:00
27 lines
1975 bytes
1975 bytes
In article <slrn7bo3hm.72l.hezu@tuuri.ling.helsinki.fi>,
hezu@iki.fi (Heikki Kantola) writes:
> Jeroen Scheerder <js@cwi.nl> informed
> news.software.readers with the following:
>>
>>More or less. AFAIK, knews is designed to generate a reply address that
>>is both syntacticlly valid and belonging to the user ("semantically
>>valid").
>>
>>To the best of my knowledge, there is no mailName. By design. There
>>*is* a `fullName' field, however.
>
> Actually there's mailName-resource (or atleast that's what the man
> page says, I'm just now unable to test Knews in action), but it just
> allows you to adjust the username part of e-mail address,
Which is what I need to do as I have a different userid at work (where
I run knews) than I do on my ISP where I connect to via NNTP, so when
I post or reply I am doing it virtually from there. I compiled my
ISP's domain in but the mailName is being ignored. Looks like I'll be
diving into the source code. Thanks for the replies. BTW, the fullName
resource *does* work.
--
- Kyle
Re: knews mailName resource
Author: Kyle Tucker
Date: Wed, 10 Feb 1999 00:00
Date: Wed, 10 Feb 1999 00:00
41 lines
1953 bytes
1953 bytes
In article <lfEu2.286$wD5.60108@news.shore.net>, I wrote:
> I have tried scores of variations in both my
> config-$NNTPSERVER and ~/.Xresources file and cannot
> get this to create a different From: header. Any other
> resource I play with seems fine. Anyone successfully
> get this to work? Thanks.
I gave up and just hacked knews to read the shell variable $MAILNAME.
Works fine. Please don't critique my C programming skills. :)
*** domain.c.orig Sun Aug 23 10:23:19 1998
--- domain.c Wed Feb 10 10:39:23 1999
***************
*** 68,73 ****
--- 68,74 ----
void fix_domain_stuff()
{
+ char *mailname;
fix_domain_name();
fix_user_id();
***************
*** 78,83 ****
--- 79,87 ----
fputs("knews: Couldn't determain user id. "
"Posting will not be possible.\n", stderr);
+ mailname = getenv("MAILNAME");
+ if (mailname)
+ global.mail_name = mailname;
if (!global.mail_name || global.mail_name[0] == ' ')
global.mail_name = global.user_id;
}
--
- Kyle
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads