[comp.mail.misc] signature

atluri@berlioz (Venkata R. Atluri) (05/17/89)

Hello!

Can somebody tell me if there is an automatic way to read in the 
signature ( the fancy stuff that you put at the end of your posting)
without using "~r signature".  can it be done with "~a" or "~A"?
Thank you

---atluri

obg@eltek.jakgym.se (Olof Backing) (05/18/89)

In article <225@berlioz.nsc.com> atluri@berlioz (Venkata R. Atluri) writes:
>Hello!
>
>Can somebody tell me if there is an automatic way to read in the 
>signature ( the fancy stuff that you put at the end of your posting)
>without using "~r signature".  can it be done with "~a" or "~A"?

It depends on what kind of program that you're using. The standard
mail/mailx doesn't handle automatic signaturefiles, but more advanced
mailers like Elm, rmail (under GNuEMacs) and perhaps mh and mush will
handle such features.
I should also point out that rn and Pnews does include the signaturefile
if there is any.

                                              regards, Olof
-- 
Olof Backing                              UUCP: {unido, mcvax}!sunic!eltek!obg
Havrevagen 14                             Internet: obg@jakgym.se
S-175 43  Jarfalla, Sweden                Voice: 0758-35516

ray3rd@ssc-vax.UUCP (Ray E. Saddler III) (05/18/89)

In article <225@berlioz.nsc.com>, atluri@berlioz (Venkata R. Atluri) asks:
> Can somebody tell me if there is an automatic way to read in the 
> signature ( the fancy stuff that you put at the end of your posting)
> without using "~r signature".  can it be done with "~a" or "~A"?

Postnews looks for a file called '.signature' in you're home
directory.  Just rename you're 'signature' to '.signature'

> Thank you

You're welcome

> ---atluri


-- 
Ray E. Saddler III       |    __  __ __       __ |          UseNet
Boeing Aerospace         |   / / / //   //| //   | uw-beaver!ssc-vax!ray3rd
P.O. Box 3999 m.s. 3R-05 |  /-< / //-  // |// _  |         PhoneNet
Seattle, Wa.  98124  USA | /__//_//__ //  //__/  |      1+206-657-2824

jonathan@cs.keele.ac.uk (Jonathan Knight) (05/19/89)

From article <196@eltek.jakgym.se>, by obg@eltek.jakgym.se (Olof Backing):
> In article <225@berlioz.nsc.com> atluri@berlioz (Venkata R. Atluri) writes:
>>
>>Can somebody tell me if there is an automatic way to read in the 
>>signature.....
> 
> It depends on what kind of program that you're using. The standard
> mail/mailx doesn't handle automatic signaturefiles.....

Not so!  It just takes a little more time to set up.

This is for ucb mail but I believe it works for mailx as well.

I had (before I started using ELM) a .mailrc which had the line

	set   sendmail=/fs/cs/jonathan/bin/mailsign

which tells mail to use my mailsign program to deliver the mail
and not /usr/lib/sendmail.  The mailsign program looked like this:

	#! /bin/sh
	# This shell script will add by .signature file onto mail
	# in the same way its done for my postings.
	(cat; \
	 echo ''; \
	 cat $HOME/.signature ) | /usr/lib/sendmail $*

which as you can see copies the mail, a blank line, and then my
signature into sendmail which is called with the normal argument
list.  Does the job very well, it can also be used to add header
lines by 'echo'ing the header before doing the 'cat'.
-- 
  ______    JANET :jonathan@uk.ac.keele.cs     Jonathan Knight,
    /       BITNET:jonathan%cs.kl.ac.uk@ukacrl Department of Computer Science
   / _   __ other :jonathan@cs.keele.ac.uk     University of Keele, Keele,
(_/ (_) / / UUCP  :...!ukc!kl-cs!jonathan      Staffordshire.  ST5 5BG.  U.K.

atluri@berlioz (Venkata R. Atluri) (05/23/89)

Hello again

Thanks for all the replies I got for the question on signature
I finally solved my problem by using the shell script posted
by Jonathan Knight of UK. Thanks once again.
  
---atluri