<<< Date Index >>>     <<< Thread Index >>>

Re: Replying to Email / Removing previous signature



On 18 Feb 2008 13:08 -0500, by tech@xxxxxxx (Joseph):
> When replying to an email that you sent earlier, how would you go about
> removing the previous signature?

Run a message through this awk script before passing it to your
editor. (Set $editor to a wrapper script.)

** cut **
{if ($0 ~ /^> -- ?$/) {
         while ($0 !~ /^-- $/) {
            getline
         }
      print " " > OUTFILE
     }
     print $0 > OUTFILE
  }
** cut **

I don't remember where I picked it up originally, but it works wonders
to cut out a signature that is separated from the body text with "-- ".

-- 
Michael Kjörling .. michael@xxxxxxxxxxx .. http://michael.kjorling.se
* ..... No bird soars too high if he soars with his own wings ..... *
* ENCRYPTED email preferred -- OpenPGP key ID: 0x(758F8749)BDE9ADA6 *
* ASCII Ribbon Campaign: Against HTML mail, proprietary attachments *

Attachment: pgpvBhP9qEycw.pgp
Description: PGP signature