Re: Signature

Jörg Sommer <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hello Ivan,

Ivan Popovski <[email protected]> wrote:
> I always wanted easy way of doing random signatures (or rotating
> them) in slrn, but never liked stuff i found in faq. So i looked at
> slrn code and realized that it would be very easy to implement
> something like:
>
> set signature "signature|"
>
> would execute "signature" script from home directory and
> put its output as signature. There are already functions like
> slrn_popen/pclose, etc that helped :)

Why not use the editor_command for this? Use a script like:

#v+
#!/bin/sh

file=$1
shift

signature >> $file
exec $@ $file
#v-

and put this in your slrnrc

set editor_command "my_script '%s' vim"

Bye, Jörg.
-- 
Ein Mensch sieht ein und das ist wichtig,
nichts ist ganz flach und nichts ganz richtig.
                                               (Eugen Roth)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.