[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Part1 - Part2 - Single Page

Top Document: [news.software.readers] trn newsreader FAQ, part 2: Advanced
Previous Document: KDHF: In a killfile, what's the difference between /@domain-pattern/f:command and /@domain-pattern/Hfrom:command?
Next Document: ADCU: In rn-compatibility mode, trn dumps core when I Unread killed subjects.


MPAS: How do I write a macro to easily reply to the current article with some canned piece of text (e.g., instructions for getting FAQs)?


Contributors: Jamshid Afshar <jamshid@ses.com>,
        Jeffrey Hurwit <jhurwit@netcom.com>,
        Peter J. Kappesser <Peter_Kappesser@promail.com>

If you have formail (part of the procmail mail filter package) at your
site, you can use the "|" command to stuff the article into the front
end of a pipeline such as:

| (formail -rk; cat canned.text.file) | /usr/lib/sendmail -t

In your .trnmac file, assign this string to the key of your choice,
substituting the correct location for sendmail your site. If you don't
have formail, you can write a script, perhaps using perl, which will at
least eat the piped-in article, change Reply-To: (if it exists,
otherwise change From:) to To:, tack it on to your canned.text.file
(which should have the Subject: and From: headers), and pipe the result
to sendmail.



Top Document: [news.software.readers] trn newsreader FAQ, part 2: Advanced
Previous Document: KDHF: In a killfile, what's the difference between /@domain-pattern/f:command and /@domain-pattern/Hfrom:command?
Next Document: ADCU: In rn-compatibility mode, trn dumps core when I Unread killed subjects.

Part1 - Part2 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
@tigerden.com (Peter J. Kappesser)

Last Update October 12 2008 @ 00:13 AM

© 2008 FAQS.ORG. All rights reserved.