Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sending only a coverpage



Well, it's not just the headers that I want to disappear, but everything.
Regardless your idea would work with sed except that sed is a line editor,
and consequently creates a series of newlines.  grep, on the other had,
could be used to return a non-existent line, which would eliminate the
entire mail from flowing to sendfax (which is what I want), but procmail
recipes only permit one command per recipe, and since grep and sendfax must
be used together I'd have to produce a script to run them together as one
command... which is what I'm trying to avoid.  I'd like to have the whole
procedure enclosed in one rc file.  If this isn't feasable, I'm more
inclined to team it up with a perl script as it would be much more flexible
for development.

I was hoping that there was a 'sendfax -nostdin' option or something.

Thanks.

Lee Howard


At 07:43 PM 5/10/00 +0200, Marco Kaiser wrote:
>Hi,
>
>to avoid the headers from being sent to sendfax, why don't you pipe the
>mail through sed and delete all header lines? As far as I remember, all
>headers are on consecutive lines, then followed by an empty line, then
>comes the body (is this true? well, there is a way to find the beginning
>of the message..., review RFC822 if needed).
>So just use sed to delete all lines starting with the first line up to
>the first blank line, and pass the remaining lines thru to sendfax.
>
>Hope that helps,
>Marco
>
>Lee Howard wrote:
>> 
>> I'm modifying a .procmailrc file that handles outbound fax requests on an
>> email-to-fax gateway to allow the sending of a coverpage only as a "small
>> note"
>> 
.....
>> 
>> So apparently sendfax doesn't like my workaround.  I'm not far from
>> deciding to get my job done with a perl script rather than entirely relying
>> on procmail, but does anyone have any ideas on how I can supress the
>> standard input from becoming the body of the fax?
>> 
>> Thanks.
>> 
>> Lee Howard
>
>



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services