[prev in list] [next in list] [prev in thread] [next in thread]
List: listar-dev
Subject: [LDev] Re: [PATCH] quoted subjects and umlauts - Deux
From: andreas palsson <pucko () wanadoo ! fr>
Date: 2001-11-30 11:37:37
[Download RAW message or body]
Please throw away the junk I submitted earlier.
Below is a corrected patch.
The problem with the earlier version was a buffer_printf() to the wrong
buffer. :/
/pucko - embarrased
--
andreas palsson <pucko@wanadoo.fr>
... "Those who cannot remember the past are condemned to repeat it." - George Santayana
--- src/modules/send/hooks.c-org Wed Nov 21 08:45:05 2001
+++ src/modules/send/hooks.c Fri Nov 30 00:22:09 2001
@@ -106,12 +106,8 @@
donefile = 1 ;
}
if(tempsub[0] != '\0') {
- if(LMAPI->get_bool("humanize-quotedprintable")) {
- LMAPI->unquote_string(tempsub, subject, BIG_BUF);
- if (!strchr(subject,'\n')) strcat(subject,"\n");
- } else {
- LMAPI->buffer_printf(subject, BIG_BUF, "%s", tempsub);
- }
+ LMAPI->unquote_string(tempsub, subject, BIG_BUF);
+ if (!strchr(subject,'\n')) strcat(subject,"\n");
} else {
sprintf(subject, "%s", "(no subject)\n");
}
@@ -134,8 +130,13 @@
}
}
}
- LMAPI->requote_string( subject, tempsub, BIG_BUF ) ;
- LMAPI->write_file( outfile, "Subject: %s", tempsub );
+ if ( !LMAPI->get_bool("humanize-quotedprintable") ) {
+ LMAPI->requote_string( subject, tempsub, BIG_BUF );
+ }
+ else {
+ LMAPI->buffer_printf( tempsub, BIG_BUF, "%s", subject );
+ }
+ LMAPI->write_file( outfile, "Subject: %s", tempsub );
donefile = 1;
} else {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic