🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Rejo Zenger Sun, 24 Aug 2003 19:29
slrn, slang and changing from when replying
#131606
Author: Rejo Zenger
Date: Sun, 24 Aug 2003 19:29
40 lines
2131 bytes
Hi,

I have a couple of slang scripts in use (on another host that is) that
alter the From, Reply-To, Approved and Message-Id headers. Everything is
working fine, except when replying by e-mail. What am I doing wrong?

Headers generated when posting to newsgroups:

  From: Rejo Zenger <41061751521f.rejo@smac.rz.nl.eu.org>
  Reply-To: 41061751521r.rejo@smac.rz.nl.eu.org

Headers generated when replying by e-mail:

  Reply-To: 41061569193r.rejo@rz.nl.eu.org
  From: Rejo Zenger <rejo@rz.nl.eu.org>

These do not work. I want to have either <rejo@rz.nl.eu.org> or the
spamtrap <41061751521f.rejo@smac.rz.nl.eu.org> as addresses.

The slang involved:

  define spamtraps_post_hook ()
  {
      variable custom_headers = Fixed_Custom_Headers;
      set_string_variable ("username", sprintf ("4%df.rejo", _time ()));
      set_string_variable ("replyto", sprintf ("4%dr.rejo%s", _time (), "@smac.rz.nl.eu.org"));
      custom_headers += sprintf ("Message-Id: <4%dm.rejo%s>\n", _time (), "@smac.rz.nl.eu.org");
      [...]
  }
  add_post_hook (&spamtraps_post_hook);

And the same as spamtraps_followup_hook.

So, how do I change the From and Reply-to when replying by e-mail?

Thanks in advance,

-- 
Rejo Zenger <rejo@rz.xs4all.nl> - http://rejo.zenger.nl - PGP 0x75FC50F3
Re: slrn, slang and changing from when replying
#131659
Author: Thomas Schultz
Date: Mon, 25 Aug 2003 14:28
11 lines
1472 bytes
* Rejo Zenger [2003-08-24 19:29] :
[...]
> So, how do I change the From and Reply-to when replying by e-mail?

Did you register your function for reply_hook?
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2003-08-19] New slrn FAQ available
| Home of the slrn newsreader | [2003-07-31] First beta with offline reading
| http://slrn.sourceforge.net | [2002-03-13] slrn 0.9.7.4 is out
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