Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stray CR in certain conditions #4

Open
kermit4 opened this issue May 7, 2019 · 0 comments
Open

Stray CR in certain conditions #4

kermit4 opened this issue May 7, 2019 · 0 comments

Comments

@kermit4
Copy link

kermit4 commented May 7, 2019

Conditions probably more common than when the related code was written:

To: REDACTED
Subject: REDACTED
Date: Fri, 3 May 2019 16:41:13 +0000
Message-ID:
 <DM6PR04MB520904A2D651378BB98350@DM6PR05209.namprd04.prod.outlook.com>
Content-Type: multipart/related;
    boundary="_004_DM6PR04MB520904A2D6516D7C3FC378BB98350DM6PR04MB5209namp_";
    type="multipart/alternative"
MIME-Version: 1.0

--_004_DM6PR04MB520904A2D6516D7C3FC378BB98350DM6PR04MB5209namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

hi

--_004_DM6PR04MB520904A2D6516D7C3FC378BB98350DM6PR04MB5209namp_

altermime --debug --input=cr --disclaimer=file.txt

when the input data is LF delimited, shows

mime_alter.c:1293:AM_read_headers:DEBUG: lfcount=0, crlfcount=0
mime_alter.c:1298:AM_read_headers:DEBUG:Delimeter set to CRLF

with --debug

leading it to think its CRLF delimited (as lfcount is not > than crlfcount), and inserts a stray CR after the file.txt

Certainly we can't do if lfcount>=crcount.

It doesn't happen without the "quoted-printable".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant