Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: Saving buffers when splitting
Date: Fri, 19 Sep 2003 16:03:28 -0400	[thread overview]
Message-ID: <4nr82ceeb3.fsf@lockgroove.bwh.harvard.edu> (raw)
In-Reply-To: <87vfrogaet.fsf@jautero.no-ip.org> (Juha Autero's message of "Fri, 19 Sep 2003 16:44:42 +0300")

On Fri, 19 Sep 2003, Juha.Autero@iki.fi wrote:

> I'm trying to use fancy-spliting to scan files for viruses with
> Linux command line Anti-Virus. I have used spamassasin code as an
> example, but my problem is that I wouldn't want to use
> call-process-region since that would require external script to
> write message to file since command line scanner doesn't scan stdin.
> 
> So, what is the best way to write mail to file when splitting mail?
> I have tried gnus-write-file, but it didn't work. Usually, when I
> have problems I just give up since email viruses aren't a problem in
> Linux. Recently, I got over 100 Swen viruses and would like to
> filter them.

Does this help?

make-temp-file is a compiled Lisp function in `subr'.
(make-temp-file PREFIX &optional DIR-FLAG SUFFIX)

Create a temporary file.
The returned file name (created by appending some random characters at the end
of PREFIX, and expanding against `temporary-file-directory' if necessary),
is guaranteed to point to a newly created empty file.
You can then use `write-region' to write new data into the file.

Ted



  parent reply	other threads:[~2003-09-19 20:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-19 13:44 Juha Autero
2003-09-19 17:24 ` Juha Autero
2003-09-19 20:03 ` Ted Zlatanov [this message]
2003-09-19 23:00   ` Juha Autero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4nr82ceeb3.fsf@lockgroove.bwh.harvard.edu \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).