From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53999 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Saving buffers when splitting Date: Fri, 19 Sep 2003 16:03:28 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4nr82ceeb3.fsf@lockgroove.bwh.harvard.edu> References: <87vfrogaet.fsf@jautero.no-ip.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064001849 12619 80.91.224.253 (19 Sep 2003 20:04:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2003 20:04:09 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M2539@lists.math.uh.edu Fri Sep 19 22:04:07 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A0RU6-0007ux-00 for ; Fri, 19 Sep 2003 22:04:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1A0RTt-0007nG-00; Fri, 19 Sep 2003 15:03:53 -0500 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1A0RTl-0007n8-00 for ding@lists.math.uh.edu; Fri, 19 Sep 2003 15:03:45 -0500 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id 4E60B3A004F for ; Fri, 19 Sep 2003 15:03:44 -0500 (CDT) Original-Received: from lockgroove.bwh.harvard.edu (lockgroove [134.174.9.133]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id h8JK3W719657; Fri, 19 Sep 2003 16:03:32 -0400 (EDT) Original-Received: (from tzz@localhost) by lockgroove.bwh.harvard.edu (8.11.6+Sun/8.11.0) id h8JK3Sf29444; Fri, 19 Sep 2003 16:03:28 -0400 (EDT) Original-To: Juha Autero X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: Juha Autero , ding@gnus.org In-Reply-To: <87vfrogaet.fsf@jautero.no-ip.org> (Juha Autero's message of "Fri, 19 Sep 2003 16:44:42 +0300") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53999 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53999 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