Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] PDF attachement on a diet
If you grab the file using the browser, you just added
garbage in the file. Do cat <file> | col -b >
<newnotify.awk>
My permissions are
-rw-r--r-- 1 root root
but I guess that is not the problem. You have
uuncode/mimencode installed in the box?
--- The Duke Has You <thedukehasyou@xxxxxxxxxxx>
wrote:
> Hello.
>
> My HylaFax users have manifested to need to receive
> PDF attachements of
> their sent faxes.
>
> I took a notify.awk by Cedric (that I took from this
> list) and installed it.
> It works fine, but the resulting PDF attachements
> are 73 bytes. Always...
>
> /var/log/messages give no errors at all. Permissions
> on the awk file are 774
> root (anything else did not work)
>
> Are there other files that I have to change
> permissions on? If yes, which?
>
> I am running Hylafax 4.1.6 on a redhat 9 box.
> Everything installed standard
> and updated.
>
> Best regards.
>
> Duke
>
>
>
> --------------------------------------------
> paste from my notify.awk
> --------------------------------------------
> #! /bin/sh
> # $Id: notify.awk,v 1.1.1.1 1998/10/12 20:47:48 root
> Exp $
> #
> # HylaFAX Facsimile Software
> #
> # Copyright (c) 1990-1996 Sam Leffler
> # Copyright (c) 1991-1996 Silicon Graphics, Inc.
> #
> # Permission to use, copy, modify, distribute, and
> sell this software and
> # its documentation for any purpose is hereby
> granted without fee, provided
> # that (i) the above copyright notices and this
> permission notice appear in
> # all copies of the software and related
> documentation, and (ii) the names
> of
> # Sam Leffler and Silicon Graphics may not be used
> in any advertising or
> # publicity relating to the software without the
> specific, prior written
> # permission of Sam Leffler and Silicon Graphics.
> #
> # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT
> WARRANTY OF ANY KIND,
> # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT
> LIMITATION, ANY
> # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A
> PARTICULAR PURPOSE.
> #
> # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS
> BE LIABLE FOR
> # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL
> DAMAGES OF ANY KIND,
> # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
> USE, DATA OR PROFITS,
> # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF
> DAMAGE, AND ON ANY THEORY OF
> # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH
> THE USE OR PERFORMANCE
> # OF THIS SOFTWARE.
> #
>
> #
> # Awk support program for notify shell script. This
> # stuff is broken out into a separate file to avoid
> # overflowing the exec arg list on some systems like
> SCO.
> #
>
> function printItem(fmt, tag, value)
> {
> printf "%14s: " fmt "\n", tag, value;
> }
>
> function printBanner(banner)
> {
> print "";
> print " ---- " banner " ----";
> print "";
> }
>
> function docType(s)
> {
> if (match(s, "\.cover"))
> return "PostScript cover page";
> else if (match(s, "\.ps"))
> return "PostScript";
> else if (match(s, "\.tif"))
> return "TIFF";
> else if (match(s, "\.pcl"))
> return "PCL";
> else
> return "Unknown document type";
> }
>
> #
> # Construct a return-to-sender message.
> #
> function returnToSender()
> {
> # printBanner("Unsent job status");
> printBanner("Etat du fax non émis");
> printItem("%s", "Destination", number);
> printItem("%s", "JobID", jobid);
> printItem("%s", "GroupID", groupid);
> # printItem("%s", "Sender", sender);
> printItem("%s", "Emetteur", sender);
> # printItem("%s", "Mailaddr", mailaddr);
> printItem("%s", "Addr. mail", mailaddr);
> if (commid != "")
> printItem("%s", "CommID", commid);
> if (modem != "any")
> printItem("%s", "Modem", modem);
> printItem("%s", "Soumis depuis", client);
> if (jobType == "facsimile") {
> printItem("%u (mm)", "Largeur page", pagewidth);
> printItem("%.0f (mm)", "Hauteur page", pagelength);
> printItem("%.0f (lpi)", "Résolution", resolution);
> }
> printItem("%s", "Status", status == "" ? "
> (nothing available)" :
> status);
> printItem("%u (échanges avec l'équipement
> distant)", "Dialogues",
> tottries);
> printItem("%u (numérotations consécutives vers
> la destination)",
> "Numérotations", ndials);
> # printItem("%u (total phone calls placed)",
> "Calls", totdials);
> printItem("%u (total appels tentés)", "Appels",
> totdials);
> if (jobType == "facsimile") {
> # printItem("%u (pages transmitted)",
> "Pages", npages);
> printItem("%u (pages transmises)", "Pages",
> npages);
> printItem("%u (total pages à transmettre)",
> "TotPages", totpages);
> printItem("%u (tentatives envoi page courante)",
> "Tentatives", ntries);
> # printItem("%u (repertoire prochaine page)",
> "Dirnum", dirnum);
> # if (nfiles > 0) {
> # printBanner("Documents soumis à
> transmission");
> # print "Les documents suivants ont été soumis à
> la transmission et
> sont";
> # print "disponibles sur le serveur jusqu à ce
> qu ils soient
> automatiquement";
> # print "supprimés lorsque ce fax est purgé ("
> doneop "d). Les
> documents peuvent aussi être supprimés
> manuellement";
> # print "en utilisant la commande faxrm;
> consulter faxrm(1) pour
> information.";
> # print ""
> # printf "%-20s %8s %s\n", "Fichier", "Taille",
> "Type";
> # for (i = 0; i < nfiles; i++) {
> # "wc -c " files[i] | getline;
> # printf "%-20s %8d %s\n", files[i], $1,
> docType(files[i]);
> # close("wc -c " files[i]);
> # }
> # }
> } else if (jobType == "pager") {
> if (npins != 0) {
> printBanner("Pages en échec de transmission");
> for (i = 0; i < npins; i++)
> printf "%15s\n", "PIN " pins[i];
> }
> if (nfiles != 0) {
> printBanner("Message text");
> while ((getline <files[0]) > 0)
> print $0;
> close(files[0]);
> }
> }
> }
>
> function returnTranscript()
> {
> printBanner("Rapport de session ci-dessous");
> comFile = "log/c" commid;
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*