Thread View: news.software.readers
10 messages
10 total messages
Started by Craig Werner
Fri, 05 Sep 1997 00:00
Slrn: altering "From" line in email replies
Author: Craig Werner
Date: Fri, 05 Sep 1997 00:00
Date: Fri, 05 Sep 1997 00:00
12 lines
870 bytes
870 bytes
Hello, everyone. I'd like to alter the "From:" line slrn generates in email replies using the slrn "r" command. Can anyone tell me the variable to use? (I have an old slrn manual here but can't find the answer to this question.) Thanks for all help. Craig Werner <wernercg@cris.com>
Re: Slrn: altering "From" line in email replies
Author: Craig Werner
Date: Tue, 16 Sep 1997 00:00
Date: Tue, 16 Sep 1997 00:00
37 lines
1767 bytes
1767 bytes
Sylvain Robitaille <sp_robi@alcor.concordia.ca> wrote: >Unless I'm mistaking, the Username and Hostname entries in .slrnrc will form >the From: line of both Usenet posts, and email replies. This is certainly >for the machine I'm posting from at the moment. Sylvain, it works differently from my machine. Here on cris.com, we have two domain names, either cris.com or concentric.net. The .slrnrc line hostname "cris.com" assures that my public posts go out as "wernercg@cris.com", but it does not have this effect on email replies, which go out as "wernercg@concentric.net" by default. The only work-around that I have found since posting my original question is to use the line set reply_custom_headers "wernercg@cris.com" in my .slrnrc file. Anyone know if I'm using the right approach? BTW, setting the "hostname" to "concentric.net" using the line hostname "concentric.net produces posts from "concentric.net". That's how I know the "hostname" variable governs posts from this machine. Craig Werner <wernercg@cris.com> or <wernercg@concentric.net>
Re: Slrn: altering "From" line in email replies
Author: Sylvain Robitaille
Date: Tue, 16 Sep 1997 00:00
Date: Tue, 16 Sep 1997 00:00
23 lines
1635 bytes
1635 bytes
On 5 Sep 1997 23:46:06 GMT, Craig Werner <Wernercg@voyager.cris.com> wrote: > > I'd like to alter the "From:" line slrn generates in email replies using > the slrn "r" command. Can anyone tell me the variable to use? (I have an > old slrn manual here but can't find the answer to this question.) Unless I'm mistaking, the Username and Hostname entries in .slrnrc will form the From: line of both Usenet posts, and email replies. This is certainly for the machine I'm posting from at the moment. I don't know if any way exists to have separate username/hostname for email replies than for usenet posts. -- ---------------------------------------------------------------------- Sylvain Robitaille sp_robi@alcor.concordia.ca Assistant to the System Managers Concordia University Computing Services Department Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: Slrn: altering "From" line in email replies
Author: Sylvain Robitaille
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
58 lines
2975 bytes
2975 bytes
On 16 Sep 1997 10:38:37 GMT, Craig Werner <Wernercg@viking.cris.com> wrote: > Sylvain Robitaille <sp_robi@alcor.concordia.ca> wrote: > >Unless I'm mistaking, the Username and Hostname entries in .slrnrc will form > >the From: line of both Usenet posts, and email replies. This is certainly > >for the machine I'm posting from at the moment. > > Sylvain, it works differently from my machine. > > Here on cris.com, we have two domain names, either cris.com or > concentric.net. The .slrnrc line > > hostname "cris.com" > > assures that my public posts go out as "wernercg@cris.com", but it does > not have this effect on email replies, which go out as > "wernercg@concentric.net" by default. Hrmmm... I just checked this again on my machine, and it seems I was wrong. (Ok, let's at least *pretend* to be a *little* surprised!) From what I can gather, the From: line of email messages is dependant entirely on the mail transport agent, (ie.: sendmail). My machine actually sends email replies as being From: syl@Elvira.home (which is a bogus address), not From: username@hostname, as I expected. :-( So now, I think the answer to your question lies in /etc/sendmail.cf... > The only work-around that I have found since posting my original question > is to use the line > > set reply_custom_headers "wernercg@cris.com" > > in my .slrnrc file. > Anyone know if I'm using the right approach? I don't think so... Does this work? (If it does, then yes, I'd say you have the right approach, but I'd be surprised). > BTW, setting the "hostname" to "concentric.net" using the line > > hostname "concentric.net > > produces posts from "concentric.net". That's how I know the "hostname" > variable governs posts from this machine. What do the posts say if you don't set hostname at all? (They would use the actual name of the machine) -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Assistant to the System Managers Concordia University Computing Services Department Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: Slrn: altering "From" line in email replies
Author: Craig Werner
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
25 lines
1470 bytes
1470 bytes
syl@alcor.concordia.ca (Sylvain Robitaille) writes: >On 16 Sep 1997 10:38:37 GMT, Craig Werner <Wernercg@viking.cris.com> wrote: >> The only work-around that I have found since posting my original question >> is to use the line >> set reply_custom_headers "wernercg@cris.com" >> in my .slrnrc file. >> Anyone know if I'm using the right approach? >I don't think so... Does this work? (If it does, then yes, I'd say you have >the right approach, but I'd be surprised). It does indeed work. :-) >What do the posts say if you don't set hostname at all? (They would use the >actual name of the machine) You're exactly right. In that case, they use the complete machine name: wernercg@machinename.cris.com. Craig Werner <wernercg@cris.com>
Re: Slrn: Different From: lines in different newsgroups (was: altering "From" line in email replies)
Author: Sylvain Robitaille
Date: Mon, 22 Sep 1997 00:00
Date: Mon, 22 Sep 1997 00:00
27 lines
1767 bytes
1767 bytes
I have a question, which I think is somewhat similar to the question regarding From: lines in email replies. Right now, I use these lines in my .slrnrc file, to be able to post from my PC at home, and people can know who the posts came from: hostname "alcor.concordia.ca" set username "syl" Note that I've also used 'set username "sp_robi"', which brings me to my question. Has anyone figured out a way to have different From: lines for different newsgroups? Specifically, I'd like to post to our local newsgroup hierarchy (concordia.*) with username 'syl', and to any other groups with username 'sp_robi'. -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Assistant to the System Managers Concordia University Computing Services Department Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: Slrn: Different From: lines in different newsgroups (was: altering "From" line in email replies)
Author: Byrial Jensen
Date: Tue, 23 Sep 1997 00:00
Date: Tue, 23 Sep 1997 00:00
17 lines
1458 bytes
1458 bytes
Grey Cloak <spamtrap@greycloak.access.one.net> wrote: >Thanks, I think I going to fiddle with your code and try to get a different >angle. IE different sifg files per group. Look at the slrn/doc/README.macros file. It have an example of a article_mode_hook which changes among others things the signature file. To write a little more complicated slang, you will also need 'slang/doc/slang.tex' for a description of the slang language, and 'slang/doc/intrins.txt' for a list of intrinsic slang functions like 'is_substr'. Best regards - Byrial
Re: Slrn: Different From: lines in different newsgroups (was: altering "From" line in email replies)
Author: Sylvain Robitaille
Date: Tue, 23 Sep 1997 00:00
Date: Tue, 23 Sep 1997 00:00
39 lines
2009 bytes
2009 bytes
On 23 Sep 1997 08:40:27 GMT, Byrial Jensen <byrial@post3.tele.dk> wrote:
>
> You can use the article_mode_hook to change the username when you enter
> a local newsgroup, but that won't work if you start the posting from
> group mode.
>
> How to do? Make a slang file named say '.slrn.sl' in your home
> directory with the following content, and interpret it from your
> '.slrnrc' file with 'interpret ".slrn.sl"'.
>
> define article_mode_hook ()
> {
> variable username = "sp_robi";
>
> if (1 == is_substr (current_newsgroup (), "concordia"))
> {
> username = "syl";
> }
>
> set_string_variable ("username", username);
> }
>
> define group_mode_hook ()
> {
> set_string_variable ("username", "sp_robi");
> }
Thanks. I'll give this a try...
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Assistant to the System Managers Concordia University
Computing Services Department Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: Slrn: Different From: lines in different newsgroups (was: altering "From" line in email replies)
Author: Grey Cloak
Date: Tue, 23 Sep 1997 00:00
Date: Tue, 23 Sep 1997 00:00
54 lines
2266 bytes
2266 bytes
On 23 Sep 1997 08:40:27 GMT,
Byrial Jensen cause to appear:
>Sylvain Robitaille <syl@alcor.concordia.ca> wrote:
>
>>Has anyone figured out a way to have different From: lines for different
>>newsgroups? Specifically, I'd like to post to our local newsgroup
>>hierarchy (concordia.*) with username 'syl', and to any other groups with
>>username 'sp_robi'.
>How to do? Make a slang file named say '.slrn.sl' in your home
>directory with the following content, and interpret it from your
>'.slrnrc' file with 'interpret ".slrn.sl"'.
Thanks, I think I going to fiddle with your code and try to get a different
angle. IE different sifg files per group.
Thank You
>
>define article_mode_hook ()
>{
> variable username = "sp_robi";
>
> if (1 == is_substr (current_newsgroup (), "concordia"))
> {
> username = "syl";
> }
>
> set_string_variable ("username", username);
>}
>
>define group_mode_hook ()
>{
> set_string_variable ("username", "sp_robi");
>}
>
>Best regards
>- Byrial
--
Grey Cloak
---------------------------------------------
.###########. Change spamtrap to grycloak, to email me.
##'___ ___`## Wizard.FAQ v2.0 send blank Email to:
## * > < * ## wizardfaq@greycloak.access.one.net
### ) | | ( ###
###\_-===-_/### http://www.geocities.com/Area51/7614
# ~!!!~ # http://w3.one.net/~grycloak/dreams/dream.htm
Re: Slrn: Different From: lines in different newsgroups (was: altering "From" line in email replies)
Author: Byrial Jensen
Date: Tue, 23 Sep 1997 00:00
Date: Tue, 23 Sep 1997 00:00
37 lines
1787 bytes
1787 bytes
Sylvain Robitaille <syl@alcor.concordia.ca> wrote:
>Has anyone figured out a way to have different From: lines for different
>newsgroups? Specifically, I'd like to post to our local newsgroup
>hierarchy (concordia.*) with username 'syl', and to any other groups with
>username 'sp_robi'.
You can use the article_mode_hook to change the username when you enter
a local newsgroup, but that won't work if you start the posting from
group mode.
How to do? Make a slang file named say '.slrn.sl' in your home
directory with the following content, and interpret it from your
'.slrnrc' file with 'interpret ".slrn.sl"'.
define article_mode_hook ()
{
variable username = "sp_robi";
if (1 == is_substr (current_newsgroup (), "concordia"))
{
username = "syl";
}
set_string_variable ("username", username);
}
define group_mode_hook ()
{
set_string_variable ("username", "sp_robi");
}
Best regards
- Byrial
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