Article View: news.software.readers
Article #41785Re: [slrn] Supercite and emacs and slrn
From: John E. Davis
Date: Sun, 28 Jun 1998 00:00
Date: Sun, 28 Jun 1998 00:00
38 lines
2108 bytes
2108 bytes
On 28 Jun 1998 08:40:41 GMT, Ian Zimmerman <itz@kronstadt.boxmail.com>
wrote:
>FWIW, for very much the same reason people gave in this thread, I
>abandoned the idea of using the built-in slrn editor shell-out.
With a macro, it should be very easy to write your own posting routine
that uses the original article. Basically, this would involve using
the intrinsic function `article_as_string' to get the original
article, then use `fopen' and `fputs' to write the article to a file
in, e.g., the postponed directory. Then the macro would call the
appropriate posting function and your editor variable could be
set to read the file that was previously saved, e.g., (untested)
define followup_hook ()
{
variable fp;
variable a;
a = article_as_string ();
fp = fopen (make_home_filename (".original-article"), "w");
if (fp == NULL)
error ("Unable to open file");
() = fputs (a, fp);
() = fclose (fp);
}
When you followup, slrn will call this hook. Now, the original
article should be available to your script.
For other posting functions, wrappers around the functions may be
necessary.
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis Cambridge, MA 02139-4307
Technical Details
Message-ID:
<slrn6pd1se.rls.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn6orne1.fij.TroubleEveryDay@user1.teleport.com> <6n074u$77n$1@aurwww.aur.alcatel.com> <slrn6pc0c8.9in.itz@kronstadt.rahul.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn6pd1se.rls.davis@aluche.mit.edu> Subject: Re: [slrn] Supercite and emacs and slrn Date: Sun, 28 Jun 1998 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn6orne1.fij.TroubleEveryDay@user1.teleport.com> <6n074u$77n$1@aurwww.aur.alcatel.com> <slrn6pc0c8.9in.itz@kronstadt.rahul.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 366874220 Organization: Center for Space Research Reply-To: davis@space.mit.edu Newsgroups: news.software.readers