From: Sven G. <mai...@gu...> - 2005-07-28 09:48:26
|
* Troy Piggins <tr...@pi...> [2005-07-28 11:30]: > ... So for example my usenet identity for July would be > 050...@pi... and that email address would only be valid for > a month. and when you use it on 2005-07-31 then it will become invalid the next day? ;-) > Is there a method in s-lang/slrn to achieve something > like this (which didn't work when I tested it) : > set username "`date +%y%m`usenet" i suppose you can use the gmtime function for this: % this creates the Message-ID: line - example: % Message-ID: <200...@gu...> static define create_msg_id () { variable tm = gmtime (_time ()); return sprintf ("%d-%02d-%02dT%02d-%02d-%02...@gu...", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); } but i know some folks have already done this with slrn, so posting to news.software.readers should do the trick. > As a side note/question - I leave slrn running for > long periods of time. If I were to successfully carry > out the above, I imagine I would need to interpret > the .sl file every month to update the username. no - the function should do it all on the fly. but will you ignore replies to posts which simply come in "late"? you never know what you'll miss. > Is there a way to automate this, or would I just have to > remember to quit and restart slrn every month. > > -- > Troy Piggins - Been a novice linux user since 1998 > - When do I become an expert? > RedHat 9: mutt 1.5.9i, procmail 3.22, postfix 2.2.4, slrn 0.9.8.1, > vim 6.1, kernel 2.4.20-31.9 time to upgrade your vim.. ;-) Sven -- Sven Guckes ukuug2005@ guckes.net http://www.ukuug.org/events/linux2005/ UKUUG 2005 Linux Technical Conference Thursday 4th to Sunday 7thAugust 2005 Workshop "Advanced Editing with Vim" University of Wales, Swansea Workshop "Power Shell Usage with Zsh" http://www.guckes.net/ukuug2005/ docs |