Re: Enviar pdf adjunto en un correo y este enviarlo como fax por hylafax

2006-02-14 Por tema Rocío Vázquez Furelos




Lo que estoy intentando hacer es enviar un email que lleva adjunto un pdf y quiero que tanto el email como el pdf se envien por fax. He conseguido que se envie el cuerpo del mail, pero lo que no he conseguido es que se envie el pdf porque me da el error que explicaba en mi correo anterior.

Alguien me puede ayudar?

Gracias de antemano.

El jue, 09-02-2006 a las 19:55 +0100, Iaki escribi:


El Jueves, 9 de Febrero de 2006 19:23, Roco Vzquez Furelos escribi:
 He conseguido que esto me funcione, tena mal escrita una ruta, pero
 ahora cuando envio el mail con el pdf adjutno me devuelve un correo con
 la siguiente informacion,  sabeis a que se debe?

 Your facsimile job to n_fax was not sent because document conversion
 to facsimile failed.  The output from the converter program was:

 Error: /nocurrentpoint in --show--
 Operand stack:
  --nostringval--
 Execution stack:
  %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %
 oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
 %stopped_push --nostringval-- --nostringval--
 Dictionary stack:
  --dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)--
 --dict:98/117(L)--
 Current allocation mode is local
 Last OS error: 2
 ESP Ghostscript 815.01: Unrecoverable error, exit code 1


 Check any PostScript documents for non-standard fonts and invalid
 constructs

  Unsent job status 

  Destination: 981160468
JobID: 38
  GroupID: 38
   Sender: =?ISO-8859-1?Q?Roc=EDo_V=E1zquez?= Furelos
 Mailaddr: [EMAIL PROTECTED]
   Submitted From: localhost
   Page Width: 209 (mm)
  Page Length: 296 (mm)
   Resolution: 98 (lpi)
   Status: Error: /nocurrentpoint in --show--
 Operand stack:
  --nostringval--
 Execution stack:
  %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %
 oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
 %stopped_push --nostringval-- --nostringval--
 Dictionary stack:
  --dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)--
 --dict:98/117(L)--
 Current allocation mode is local
 Last OS error: 2
 ESP Ghostscript 815.01: Unrecoverable error, exit code 1

  Dialogs: 0 (exchanges with remote device)
Dials: 0 (consecutive failed calls to destination)
Calls: 0 (total phone calls placed)
Pages: 0 (pages transmitted)
 TotPages: 0 (total pages to transmit)
 Attempts: 0 (attempts to send current page)
   Dirnum: 0 (directory of next page to send)

  Documents submitted for transmission 

 The following documents were submitted for transmission and are
 available on the server for reuse until they are automatically
 purged when this job is removed.  Documents may also be manually
 removed using the faxrm command; consult faxrm(1) for information.

 Filename Size Type
 docq/doc38.ps.38   139446 Unknown document type

 El jue, 09-02-2006 a las 13:43 +0100, Roco Vzquez Furelos escribi:
  Hola a todos,
 
  el asunto a lo mejor no explica bien lo que quiero hacer, a ver si
  aqui va mejor:
  Necesito enviar un correo desde un cliente de correo a una direccin
  n[EMAIL PROTECTED] y que este correo junto con los datos adjuntos que
  lleve se envie a ese nmero de fax.
  Estoy utilizando hylafax y he conseguido que el correo se envie a ese
  nmero de fax y el fax lo reciba.  El problema que tengo es que los
  datos adjuntos el fax no los recibe.
 
  He buscado en google y he visto que para hacer esto tengo que crear un
  script y hacer los siguientes pasos:
 
  1) Modificar /etc/hylafax/hyla.conf y aadir una lnea
  MIMEConverters:/usr/local/faxscripts/
  2) Crear un fichero filter.pl con permisos 755 en el
  directorio /usr/local/faxscripts/ con el siguiente contenido:
 
  #!/usr/bin/perl
  # Read from the standard input
  @text=STDIN;
  [EMAIL PROTECTED];
 
 
  # Count the number of showpage
  $count=0;
  for($i=0;$i=$size;$i++){if($text[$i] =~ /showpage/){$count++;}}
 
 
  # Discard the last line that contain showpage
  $num=1;
  for($i=0;$i=$size;$i++){
  if($text[$i] =~ /showpage/){
  if($num!=$count){$num++;}
  else{$text[$i]=~s/showpage//g;}
  }
 
 
  print $text[$i];
 
 
  }
 
  3) Crear un script pdf con el siguietne contenido:
 
  #!/bin/bash
  /bin/echo  
  /bin/echo showpage
  /usr/bin/gs -q -sPAPERSIZE=a4 -dBATCH -dNOPAUSE -r600x800
  -sDEVICE=pswrite -sOutputFile=- $1 | /usr/local/faxscripts/filter.pl
 
  4) Reiniciar hylafax y enviar un correo con un pdf adjunto.
  Hice todo esto y me llega el correo al fax pero el pdf que mando
  adjunto no me llega.
 

Enviar pdf adjunto en un correo y este enviarlo como fax por hylafax

2006-02-09 Por tema Rocío Vázquez Furelos




Hola a todos,

el asunto a lo mejor no explica bien lo que quiero hacer, a ver si aqui va mejor:
Necesito enviar un correo desde un cliente de correo a una direccin n[EMAIL PROTECTED] y que este correo junto con los datos adjuntos que lleve se envie a ese nmero de fax.
Estoy utilizando hylafax y he conseguido que el correo se envie a ese nmero de fax y el fax lo reciba. El problema que tengo es que los datos adjuntos el fax no los recibe.

He buscado en google y he visto que para hacer esto tengo que crear un script y hacer los siguientes pasos:

1) Modificar /etc/hylafax/hyla.conf y aadir una lnea MIMEConverters:/usr/local/faxscripts/
2) Crear un fichero filter.pl con permisos 755 en el directorio /usr/local/faxscripts/ con el siguiente contenido:




#!/usr/bin/perl 
# Read from the standard input 
@text=STDIN; 
[EMAIL PROTECTED]; 


# Count the number of showpage 
$count=0; 
for($i=0;$i=$size;$i++){if($text[$i] =~ /showpage/){$count++;}} 


# Discard the last line that contain showpage 
$num=1; 
for($i=0;$i=$size;$i++){ 
if($text[$i] =~ /showpage/){ 
if($num!=$count){$num++;} 
else{$text[$i]=~s/showpage//g;} 
} 


print $text[$i]; 


} 

3) Crear un script pdf con el siguietne contenido:

#!/bin/bash 
/bin/echo   
/bin/echo showpage 
/usr/bin/gs -q -sPAPERSIZE=a4 -dBATCH -dNOPAUSE -r600x800 
-sDEVICE=pswrite -sOutputFile=- $1 | /usr/local/faxscripts/filter.pl

4) Reiniciar hylafax y enviar un correo con un pdf adjunto. 
Hice todo esto y me llega el correo al fax pero el pdf que mando adjunto no me llega. 

Alguien sabra decirme por qu o que estoy haciendo mal?

Muchas gracias y perdon por un correo tan grande.










Re: Enviar pdf adjunto en un correo y este enviarlo como fax por hylafax

2006-02-09 Por tema Rocío Vázquez Furelos




He conseguido que esto me funcione, tena mal escrita una ruta, pero ahora cuando envio el mail con el pdf adjutno me devuelve un correo con la siguiente informacion, sabeis a que se debe?

Your facsimile job to n_fax was not sent because document conversion
to facsimile failed. The output from the converter program was:

Error: /nocurrentpoint in --show--
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)-- --dict:98/117(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 815.01: Unrecoverable error, exit code 1


Check any PostScript documents for non-standard fonts and invalid constructs

  Unsent job status 

 Destination: 981160468
 JobID: 38
 GroupID: 38
 Sender: =?ISO-8859-1?Q?Roc=EDo_V=E1zquez?= Furelos
 Mailaddr: [EMAIL PROTECTED]
 Submitted From: localhost
 Page Width: 209 (mm)
 Page Length: 296 (mm)
 Resolution: 98 (lpi)
 Status: Error: /nocurrentpoint in --show--
Operand stack:
--nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)-- --dict:98/117(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 815.01: Unrecoverable error, exit code 1

 Dialogs: 0 (exchanges with remote device)
 Dials: 0 (consecutive failed calls to destination)
 Calls: 0 (total phone calls placed)
 Pages: 0 (pages transmitted)
 TotPages: 0 (total pages to transmit)
 Attempts: 0 (attempts to send current page)
 Dirnum: 0 (directory of next page to send)

  Documents submitted for transmission 

The following documents were submitted for transmission and are
available on the server for reuse until they are automatically
purged when this job is removed. Documents may also be manually
removed using the faxrm command; consult faxrm(1) for information.

Filename Size Type
docq/doc38.ps.38 139446 Unknown document type

El jue, 09-02-2006 a las 13:43 +0100, Roco Vzquez Furelos escribi:

Hola a todos,

el asunto a lo mejor no explica bien lo que quiero hacer, a ver si aqui va mejor:
Necesito enviar un correo desde un cliente de correo a una direccin n[EMAIL PROTECTED] y que este correo junto con los datos adjuntos que lleve se envie a ese nmero de fax.
Estoy utilizando hylafax y he conseguido que el correo se envie a ese nmero de fax y el fax lo reciba. El problema que tengo es que los datos adjuntos el fax no los recibe.

He buscado en google y he visto que para hacer esto tengo que crear un script y hacer los siguientes pasos:

1) Modificar /etc/hylafax/hyla.conf y aadir una lnea MIMEConverters:/usr/local/faxscripts/
2) Crear un fichero filter.pl con permisos 755 en el directorio /usr/local/faxscripts/ con el siguiente contenido:




#!/usr/bin/perl 
# Read from the standard input 
@text=STDIN; 
[EMAIL PROTECTED]; 


# Count the number of showpage 
$count=0; 
for($i=0;$i=$size;$i++){if($text[$i] =~ /showpage/){$count++;}} 


# Discard the last line that contain showpage 
$num=1; 
for($i=0;$i=$size;$i++){ 
if($text[$i] =~ /showpage/){ 
if($num!=$count){$num++;} 
else{$text[$i]=~s/showpage//g;} 
} 


print $text[$i]; 


} 

3) Crear un script pdf con el siguietne contenido:

#!/bin/bash 
/bin/echo   
/bin/echo showpage 
/usr/bin/gs -q -sPAPERSIZE=a4 -dBATCH -dNOPAUSE -r600x800 
-sDEVICE=pswrite -sOutputFile=- $1 | /usr/local/faxscripts/filter.pl

4) Reiniciar hylafax y enviar un correo con un pdf adjunto. 
Hice todo esto y me llega el correo al fax pero el pdf que mando adjunto no me llega. 

Alguien sabra decirme por qu o que estoy haciendo mal?

Muchas gracias y perdon por un correo tan grande.



















Re: Enviar pdf adjunto en un correo y este enviarlo como fax por hylafax

2006-02-09 Por tema Iñaki
El Jueves, 9 de Febrero de 2006 19:23, Rocío Vázquez Furelos escribió:
 He conseguido que esto me funcione, tenía mal escrita una ruta, pero
 ahora cuando envio el mail con el pdf adjutno me devuelve un correo con
 la siguiente informacion,  sabeis a que se debe?

 Your facsimile job to nº_fax was not sent because document conversion
 to facsimile failed.  The output from the converter program was:

 Error: /nocurrentpoint in --show--
 Operand stack:
  --nostringval--
 Execution stack:
  %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %
 oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
 %stopped_push --nostringval-- --nostringval--
 Dictionary stack:
  --dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)--
 --dict:98/117(L)--
 Current allocation mode is local
 Last OS error: 2
 ESP Ghostscript 815.01: Unrecoverable error, exit code 1


 Check any PostScript documents for non-standard fonts and invalid
 constructs

  Unsent job status 

  Destination: 981160468
JobID: 38
  GroupID: 38
   Sender: =?ISO-8859-1?Q?Roc=EDo_V=E1zquez?= Furelos
 Mailaddr: [EMAIL PROTECTED]
   Submitted From: localhost
   Page Width: 209 (mm)
  Page Length: 296 (mm)
   Resolution: 98 (lpi)
   Status: Error: /nocurrentpoint in --show--
 Operand stack:
  --nostringval--
 Execution stack:
  %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %
 oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
 %stopped_push --nostringval-- --nostringval--
 Dictionary stack:
  --dict:1122/1686(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)--
 --dict:98/117(L)--
 Current allocation mode is local
 Last OS error: 2
 ESP Ghostscript 815.01: Unrecoverable error, exit code 1

  Dialogs: 0 (exchanges with remote device)
Dials: 0 (consecutive failed calls to destination)
Calls: 0 (total phone calls placed)
Pages: 0 (pages transmitted)
 TotPages: 0 (total pages to transmit)
 Attempts: 0 (attempts to send current page)
   Dirnum: 0 (directory of next page to send)

  Documents submitted for transmission 

 The following documents were submitted for transmission and are
 available on the server for reuse until they are automatically
 purged when this job is removed.  Documents may also be manually
 removed using the faxrm command; consult faxrm(1) for information.

 Filename Size Type
 docq/doc38.ps.38   139446 Unknown document type

 El jue, 09-02-2006 a las 13:43 +0100, Rocío Vázquez Furelos escribió:
  Hola a todos,
 
  el asunto a lo mejor no explica bien lo que quiero hacer, a ver si
  aqui va mejor:
  Necesito enviar un correo desde un cliente de correo a una dirección
  [EMAIL PROTECTED] y que este correo junto con los datos adjuntos que
  lleve se envie a ese número de fax.
  Estoy utilizando hylafax y he conseguido que el correo se envie a ese
  número de fax y el fax lo reciba.  El problema que tengo es que los
  datos adjuntos el fax no los recibe.
 
  He buscado en google y he visto que para hacer esto tengo que crear un
  script y hacer los siguientes pasos:
 
  1) Modificar /etc/hylafax/hyla.conf y añadir una línea
  MIMEConverters:/usr/local/faxscripts/
  2) Crear un fichero filter.pl con permisos 755 en el
  directorio /usr/local/faxscripts/ con el siguiente contenido:
 
  #!/usr/bin/perl
  # Read from the standard input
  @text=STDIN;
  [EMAIL PROTECTED];
 
 
  # Count the number of showpage
  $count=0;
  for($i=0;$i=$size;$i++){if($text[$i] =~ /showpage/){$count++;}}
 
 
  # Discard the last line that contain showpage
  $num=1;
  for($i=0;$i=$size;$i++){
  if($text[$i] =~ /showpage/){
  if($num!=$count){$num++;}
  else{$text[$i]=~s/showpage//g;}
  }
 
 
  print $text[$i];
 
 
  }
 
  3) Crear un script pdf con el siguietne contenido:
 
  #!/bin/bash
  /bin/echo  
  /bin/echo showpage
  /usr/bin/gs -q -sPAPERSIZE=a4 -dBATCH -dNOPAUSE -r600x800
  -sDEVICE=pswrite -sOutputFile=- $1 | /usr/local/faxscripts/filter.pl
 
  4) Reiniciar hylafax y enviar un correo con un pdf adjunto.
  Hice todo esto y me llega el correo al fax pero el pdf que mando
  adjunto no me llega.
 
  Alguien sabría decirme por qué o que estoy haciendo mal?
 
  Muchas gracias y perdon por un correo tan grande.



No tengo ni idea de lo que estás haciendo, pero por si te sirve te comento que 
se pueden extraer muy fácilmente los adjuntos de un correo con el comando 
uudeview del paquete que lleva su mismo nombre. Yo lo usé hace poco para un 
tema de correo.

Te lo comento por si