Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: Sending actual faxes in email
Nico Kadel-Garcia writes:
> On Sat, 17 Jul 1999, Jon E. Mitchiner wrote:
>
> > Hi --
> >
> > Ive looked through the FAQ but couldnt find anything pertaining to this.
> >
> > Basically what I would like to do is send the actual fax as an attachment
> > to the E-mail so people do not have to connect to the server. Would
> > something like this be possible?
>
> The script "faxrcvd" processes the received fax: you can edit this.
> The difficulty is that there is almost no good way to tell for whom a
> fax is intended: there is no standard "give this fax to
> raoul@cirl.harvard.edu" sort of field for fax transmissions.
>
Hi Jon. Maybe the attached will be of some help ... uses a procmail
recipe in the faxmaster's account.
John
--
John Conover, 631 Lamont Ct., Campbell, CA., 95008, USA.
VOX 408.370.2688, FAX 408.379.9602, whois '!JC154'
conover@inow.com, http://www2.inow.com/~conover/john.html
>From conover@inow.com Wed Jan 31 09:18:42 1996
Received: (from conover@localhost) by inow.com (8.6.12/8.6.9) id JAA06564 for john-archive@inow.com; Wed, 31 Jan 1996 09:18:41 -0800
Received: (from conover@localhost) by inow.com (8.6.12/8.6.9) id JAA06557; Wed, 31 Jan 1996 09:18:39 -0800
Date: Wed, 31 Jan 1996 09:18:39 -0800
Message-Id: <199601311718.JAA06557@inow.com>
From: John Conover <conover@inow.com>
To: flexfax@sgi.com, procmail@informatik.rwth-aachen.de,
SmartList@informatik.rwth-aachen.de, guenther@gac.edu
Subject: Re: Using MIME to ship faxes from HylaFax into the mail system
Reply-To: John Conover <conover@inow.com>
Return-Receipt-To: conover@inow.com
Read-Receipt-To: conover@inow.com
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
An update on using procmail to distribute HylaFax facsimile into the
Unix mail system, (thanks to Philip Guenther <guenther@gac.edu>, for
the procmail "receipe," which eliminates a shell script.)
HylFax is a fax server that has sources available via anonymous ftp to
sgi.com. To distribute faxes received by HylaFax into the Unix mail
system, using procmail as the interface, put the following in the
FaxMaster's ~/.procmailrc:
:0
* ^from:.*fax@my_domain\.com
{
:0 c
* ^Subject: +facsimile +received +from
* B ?? ^\/recvq[^:]*
|/usr/local/bin/metasend -b -t someone@my_domain.com\
-F fax@my_domain.com\
-s "Facsimile mail transmission"\
-S 5000000\
-m application/fax\
-f "/where/hylafax/is/installed/fax/$MATCH"
:0:
fax
}
which will route a MIME copy of the fax to the specified email
address, (someone@my_domain.com, probably the FaxMaster,) using the
metasend program from the MIME distribution. ($MATCH will contain
something like, "recvq/fax1234aaa.") The sources to the MIME
distribution are available via anonymous ftp to belcore.com. The faxes
can be viewed directly from a MIME compliant mailer using the viewfax
program, which is also available via anonymous ftp to sgi.com, by
placing the following line in your ~/.mailcap file:
application/fax ; showpicture -viewer 'viewfax -geometry +0+0' %s
I use GNU emacs as my mail user agent, which is not MIME compliant. However,
adding the following function to your ~/.emacs file:
;
; Rmail mime function
;
(defun rmail-mime ()
"Rmail mime."
(interactive)
(shell-command-on-region (point-min) (point-max) "metamail -m emacs -x -d" nil nil) ; pipe the message to metamail
)
will handle much, but not all, of MIME's functionality, including this
application of reading faxes. Or, if VM is preferred:
;
; Vm mime function.
;
(defun vm-mime ()
"Vm mime."
(interactive)
(vm-pipe-message-to-command "metamail -m emacs -x -d" 0) ; pipe the message to metamail
)
John
--
John Conover, 631 Lamont Ct., Campbell, CA., 95008, USA.
VOX 408.370.2688, FAX 408.379.9602
conover@inow.com