[postfix-es] linea de master.cf

ESGLinux esggrupos en gmail.com
Vie Jul 24 14:06:48 CEST 2009


Finalmente lo he conseguido hackeando un poco el fichero vacation.pl de
postfixadmin de la version 2.2.1.1

Os paso el diff entre el original y lo que he cambiado yo para que me
funcione:

diff vacation.pl vacation.pl.hacked:

207,208c207,208
<    my $vacation_subject = encode_mimewords($subject, 'Encoding'=> 'q',
'Charset'=>'utf-8', 'Field'=>'Subject');
<    #my $vacation_subject = $subject;
---
> #   my $vacation_subject = encode_mimewords($subject, 'Encoding'=> 'q',
'Charset'=>'utf-8', 'Field'=>'Subject');
>    my $vacation_subject = $subject;
308c308
<    my ($email, $orig_from, $orig_to, $orig_messageid) = @_;
---
>    my ($email, $orig_from, $orig_to, $orig_messageid, $subject) = @_;
312a313,316
>
>
> #do_debug("esto es lo que sale en subject:", $subject);
>
316c320,321
<       do_debug ("[SEND RESPONSE] for $orig_messageid:\n", "FROM: $email
(orig_to: $orig_to)\n", "TO: $orig_from\n", "VACATION SUBJECT: $row[0]\n",
"VACATION BODY: $row[1]\n");
---
>       do_debug("esto es lo que sale en subject:", $row[0]);
>       do_debug ("[SEND RESPONSE] for $orig_messageid:\n", "FROM: $email
(orig_to: $orig_to)\n", "TO: $orig_from\n", "VACATION SUBJECT: $row[0].
$subject\n", "VACATION BODY: $row[1]\n");
319c324
<       do_mail ($email, $orig_from, $row[0], $row[1]);
---
>       do_mail ($email, $orig_from, $row[0]. $subject , $row[1]);
330a336
>
345a352,354
>
>
>
380c389
<       send_vacation_email( $email, $from, $to, $messageid);
---
>       send_vacation_email( $email, $from, $to, $messageid, $subject);

 Basicamente a lo que me he dedicado es a pasar el subject original entre
las distintas funciones y al final lo consegui

las líneas:
Finalmente lo he conseguido hackeando un poco el fichero vacation.pl de
postfixadmin de la version 2.2.1.1

Os paso el diff entre el original y lo que he cambiado yo para que me
funcione:

diff vacation.pl vacation.pl.hacked:

207,208c207,208
<    my $vacation_subject = encode_mimewords($subject, 'Encoding'=> 'q',
'Charset'=>'utf-8', 'Field'=>'Subject');
<    #my $vacation_subject = $subject;
---
> #   my $vacation_subject = encode_mimewords($subject, 'Encoding'=> 'q',
'Charset'=>'utf-8', 'Field'=>'Subject');
>    my $vacation_subject = $subject;

Las tuve que dejar de esa manera para que funcionaran bien los acentos,

Espero que le sirva a alguien más,

Gracias a todos por vuestra ayuda,

Un saludo,

ESG
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://lists.wl0.org/pipermail/postfix-es/attachments/20090724/11bb119f/attachment.html>


More information about the postfix-es mailing list