Thread View: news.software.readers
3 messages
3 total messages
Started by Mark McLeod
Fri, 19 Jan 1996 00:00
Automatic Signature in TRN?
Author: Mark McLeod
Date: Fri, 19 Jan 1996 00:00
Date: Fri, 19 Jan 1996 00:00
14 lines
1121 bytes
1121 bytes
I have been using `trn' for a long time, and have enjoyed it except for one minor irritation. I have not found any method for putting my signature into the message automatically. I have coped by re-mapping a function-key to execute the appropriate commands to insert my signature file into the ".article" or ".letter" while I am editing. If someone has found a method that includes the signature in the ".article" or ".letter" before invoking the editor, please share your secret. I suspect that many users of this fine software will appreciate your insights. -- Mark McLeod (mam@radix.net)
Re: Automatic Signature in TRN?
Author: Jeffrey Hurwit
Date: Sat, 20 Jan 1996 00:00
Date: Sat, 20 Jan 1996 00:00
22 lines
1650 bytes
1650 bytes
In article <4dprbs$t5q@saltmine.radix.net>,
mam@Radix.Net (Mark McLeod) wrote:
> I have been using `trn' for a long time, and have enjoyed it except
>for one minor irritation. I have not found any method for putting my
>signature into the message automatically. I have coped by re-mapping
>a function-key to execute the appropriate commands to insert my
>signature file into the ".article" or ".letter" while I am editing.
> If someone has found a method that includes the signature in the
>".article" or ".letter" before invoking the editor, please share your
>secret. I suspect that many users of this fine software will
>appreciate your insights.
If you name it .signature, most versions of INEWS that I know of
will append it to your article before posting it, after Pnews hands
it off to INEWS. If you really want it inserted into your editor's
window, perhaps a simple shell script that intercedes when Pnews
calls up your editor would do the trick.
Jeff
Re: Automatic Signature in TRN?
Author: Ollivier Robert
Date: Sun, 21 Jan 1996 00:00
Date: Sun, 21 Jan 1996 00:00
94 lines
3576 bytes
3576 bytes
[[ cc'ed to Mark ]]
In article <4dprbs$t5q@saltmine.radix.net>, Mark McLeod <mam@Radix.Net> wrote:
> If someone has found a method that includes the signature in the
> ".article" or ".letter" before invoking the editor, please share your
> secret. I suspect that many users of this fine software will
> appreciate your insights.
If you look at Pnews, the script called by Trn when one posts, you'll see
that:
1. if you have a .signature (like in mail) it will incorporate it,
2. you have a better way to do it:
use .news_sig for you news signature and .mail_sig for you mail signature
(if it is different). You should configure your mail software not to use
.signature but .mail_sig (that's what I do with Elm).
I also have a patch to Pnews.SH to use the ~/News/ hierarchy in order to
have different signatures depending on the groups...
So you can have news/signature and news/software/readers/signature. The
global .news_sig is used if no signature file is found.
Beware that if you use .news.sig/.mail_sig, you must *not* have a
.signature of you'll have the signature twice...
--- Pnews.SH.DIST Thu Apr 27 11:06:36 1995
+++ Pnews.SH Tue Oct 31 21:20:57 1995
@@ -130,4 +130,28 @@
tweak="$tmp/Pntwk.$$"
+# roberto - 4/7/95
+#
+# check all component of the group's tree beginning at last component
+# replaced by Thomas.Parmelan@darshiva.efrei.fr's own which does a better
+# job at bound checking.
+#
+check_tree() {
+ ng_tree=$1
+ path_list=`$echo $ng_tree | $sed 's,\.,/,g'`
+ while $test "x$path_list" != "x"; do
+ if $test -r $base_dir/$path_list/signature; then
+ local_sig="$base_dir/$path_list/signature"
+ return 0
+ fi
+ new_path_list=`$echo $path_list | $sed 's,/[^/]*$,,'`
+ if $test "$new_path_list" = "$path_list"; then
+ path_list=""
+ else
+ path_list=$new_path_list
+ fi
+ done
+ local_sig=""
+}
+
case "$NETSPEED" in
[0-4]) ;;
@@ -397,5 +421,21 @@
$echo ""
-if $test -r $news_sig; then
+# roberto - 4/7/95
+#
+# Try to look in "path1/..path(n)/signature" first
+# then "path1/../path(n-1)/signature" till ~/News/signature
+#
+first_ng=`$echo $hdr_newsgroups | $sed 's,\([^ ]*\) .*,\1,'`
+base_dir="$dotdir/News"
+
+$echo First group is $first_ng
+local_sig=""
+check_tree $first_ng
+if $test ! x$local_sig = x ; then
+ echo Will use $local_sig for $first_ng
+ $echo "-- " >> $tmpart
+ $sed 4q $local_sig >> $tmpart
+elif $test -r $news_sig; then
+ $echo Will use standard signature in $news_sig
$echo "-- " >> $tmpart
$sed 4q $news_sig >> $tmpart
@@ -591,4 +631,5 @@
esac
done
+
!NO!SUBS!
$eunicefix Pnews
--
Ollivier ROBERT -=- FreeBSD: The daemon is FREE! -=- roberto@freebsd.org
-=-=-=-=-=-=-=-=-=-=- FreeBSD 2.x FAQ maintainer -=-=-=-=-=-=-=-=-=-=-=-=-
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