At 21:15 +0200 14 Apr 2002, Alain Bench <[EMAIL PROTECTED]> wrote: > But in other cases, he has not done it. In the last 3 mails (the > first mail is not QP encoded, so it's normal) some dots *not* beginning > a line were rejected at beginning of next one, because of QP soft > cutting long lines... And Mutt didn't notice it should have encoded it. > I guess it's a bug. Or an only half working feature... ;-)
Yeah, I'd say it's a bug. The attached patch fixes it. > or even better in this case, but difficult to generalize, it could > have decided to insert it's line cut one char before: > > | % For many people that would be tricky but fortunately for you it's just "= > | l." I haven't done that for my patch, although it wouldn't be all that difficult to do it would require some larger changes to the relevant code. I don't think it's worth it just to save a couple bytes in a situation that should be fairly uncommon. -- Aaron Schrab [EMAIL PROTECTED] http://www.schrab.com/aaron/ I dunno, I dream in Perl sometimes... --Larry Wall
--- sendlib.c.dist Sun Apr 14 17:24:22 2002 +++ sendlib.c Sun Apr 14 17:25:20 2002 @@ -185,8 +185,16 @@ line[linelen] = 0; fputs (line, fout); fputc ('\n', fout); - line[0] = savechar; - linelen = 1; + if (savechar == '.') + { + strfcpy (line, "=2E", sizeof (line)); + linelen = 3; + } + else + { + line[0] = savechar; + linelen = 1; + } } }
msg27164/pgp00000.pgp
Description: PGP signature