Re: Signature
Ivan Popovski <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Feb 11, 2008 at 09:43:15PM -0500, John E. Davis wrote:
> I would rather do this via a signature hook. Then a slang-script
> could use popen/pclose etc to create the appropriate signature string.
> However, that is a new feature that will have to wait until after the
> 0.9.9 release.
Finally found some time to play with this, cause I m in middle of exams.
Ok hooks are great :) really nice stuff, but I realised it is even
simpler, just need to make slang script and register as hook :))
No need to mess with hooks.c or interp.c, just little script :)
Its wasnt problem cause slang is similar to C. All I did is
string_match_nth ;) '|' from signature, clear it, popen and write it
to '.sigtmp' and at the end set_string_variable("signature", ".sigtmp").
Piece of cake :)
Only need to polish script and if somebody wants it, just ask :)
Thank you all on help ;)
-------------------------------------------------------------------------
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/