El 24/11/07, Carlos E. R. escribió:
Creo que ha cambiado un poco.
Grrr... siempre voy con retraso.
Antes era crear un /var/spool/fax/etc/FaxNotify:
#!/bin/sh #Cer: see man notify RETURNFILETYPE=pdf
Bueno, yo creo que editaba directamente otro archivo (el gordo).
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.
Ah, malditas actualizaciones... nota mental: no actualizar, no actualizar (usar fdisk, usar fdsik)
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.
Si has actualizado, mejor volver a ejecutar "faxaddmodem / faxsetup" y toda la parafernalia, por si las moscas... Saludos, -- Camaleón --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org