aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert1997-12-03 07:11:43 +0000
committerPaul Eggert1997-12-03 07:11:43 +0000
commitd04f50310af5a829d7120e0d4dd3581669322e39 (patch)
tree151c9e8cc5845d8083c68ab06ef42eeb3c2bd466 /lib-src
parent845cde06cd0e21689c48f854a819e8a4de4e5f5a (diff)
downloademacs-d04f50310af5a829d7120e0d4dd3581669322e39.tar.gz
emacs-d04f50310af5a829d7120e0d4dd3581669322e39.zip
(mbx_write) [MAIL_USE_POP]: Disable the code which quotes with a
'>' any lines starting with "From " read from the POP server, but leave the code in place, wrapped in #ifdef MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later because it turns out that something is depending on it. Change suggested by Paul Eggert <eggert@twinsun.com>. Convert the character \037 (^_) at the beginning of a line into the character '^' followed by the character '_', because otherwise Emacs can't parse the resulting file as a valid BABYL file. Change suggested by Paul Eggert <eggert@twinsun.com>.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/movemail.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 866f0b08139..b7b51d35061 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -830,11 +830,20 @@ mbx_write (line, mbf)
830 char *line; 830 char *line;
831 FILE *mbf; 831 FILE *mbf;
832{ 832{
833#ifdef MOVEMAIL_QUOTE_POP_FROM_LINES
833 if (IS_FROM_LINE (line)) 834 if (IS_FROM_LINE (line))
834 { 835 {
835 if (fputc ('>', mbf) == EOF) 836 if (fputc ('>', mbf) == EOF)
836 return (NOTOK); 837 return (NOTOK);
837 } 838 }
839#endif
840 if (line[0] == '\037')
841 {
842 if (fputs ("^_", mbf) == EOF)
843 return (NOTOK);
844 line++;
845 len--;
846 }
838 if (fputs (line, mbf) == EOF) 847 if (fputs (line, mbf) == EOF)
839 return (NOTOK); 848 return (NOTOK);
840 if (fputc (0x0a, mbf) == EOF) 849 if (fputc (0x0a, mbf) == EOF)