-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2007-11-24 a las 09:38 +0100, Camaleón escribió:
Para que te envíe un pdf con el fax recibido no necesitas un script distinto del que trae de serie... sólo tienes que configurar un par de variables en el propio script de hylafax para que te envíe el adjunto e indicar el formato -pdf, tiff o ps-.
Creo que ha cambiado un poco. Antes era crear un /var/spool/fax/etc/FaxNotify: #!/bin/sh #Cer: see man notify RETURNFILETYPE=pdf Pero eso a mí no me está funcionando. El script de marras era /var/spool/fax/bin/notify, pero ha cambiado que no veas. El antiguo tenía 28767 bytes, el actual 3978. Pero hay otros más: notify 3978 bytes notify-4.1 2234 notify-4.2 24977 notify.awk 10221 (no ejecutable - ¿es correcto?) Los comentarios del principal dicen: # notify qfile why jobtime [nextTry] # # Return mail to the submitter of a job when notification is needed. # # This is a rewrite of the notify.sh. # This version uses the "template" capabilityes to send the e-mails. # FaxQueuer only calls notify if the job requested notification, # So if we are called, we *will* send an email (barring any errors) # # etc/FaxNotify controls *what* we e-mail # - TEMPLATE=subdir # - RETURNFILETYPE=raw|PDF|PS|TIFF # # It send the e-mail to $mailaddr, which is the mailaddr of the job. # The e-mail template used is selectec from: # - etc/templates/$TEMPLATE/notify-$WHY-page.txt (only for pager jobs) # - etc/templates/$TEMPLATE/notify-$WHY.txt # If it is a pager job, and notify-$WHY-page.txt does *not* exist, it # will use the notify-$WHY.txt template. # # It honours the RETURNFILETYPE variable that can be set by FaxNotify. # If it is set, it will return *all* the submitted documents as attachments # with the e-mail, converted to the RETURNFILETYPE. # Multiple file types may be specified by separating them with # whitespace; in that case a separate attachment for each filetype # will be created. Estoy viendo que el directorio etc/templates/ no existe: quizás sea por eso por lo que no funciona [...] Sí, si que exite, no estaba mirando bien. A ver esto: # These settings may not be present in setup.cache if user upgraded and # didn't re-run faxsetup; we set them before calling setup.cache for # backward compatibility. A ver... Bueno, ya lo he ejecutado. Comparando con el backup, veo alguna diferencia, como "QPENCODE='/usr/bin/mimencode -q'" y alguna otra. Ah! Esta nota es importante, no me fijé antes: # etc/FaxNotify controls *what* we e-mail # - TEMPLATE=subdir # - RETURNFILETYPE=raw|PDF|PS|TIFF Yo sólo tengo RETURNFILETYPE, ahora hay que poner "TEMPLATE=es". Debía ser eso por loque no me funcionaba. Ahora sólo me queda probarlo... Hay también un template html... puede ser interesante. - -- Saludos Carlos E.R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHSBFetTMYHG2NR9URAmikAJ4rfgyeG0nq7VjQihzCqmrxVYkbwgCcD6e7 mroFgTLl60JR/r2gHN9vVEw= =tRKm -----END PGP SIGNATURE-----