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

Long Subjects are truncated #27

Open
PabloBrianese opened this issue Aug 12, 2021 · 0 comments
Open

Long Subjects are truncated #27

PabloBrianese opened this issue Aug 12, 2021 · 0 comments

Comments

@PabloBrianese
Copy link

PabloBrianese commented Aug 12, 2021

Hello, and thank you very much for the work that goes into this module.

I run into this problem trying to read some real emails. The example string is extracted from a real email. If it matters, the .eml file was downloaded from Gmail.

Example

var emlformat = require('eml-format')
var longString = '=?UTF-8?Q?Fwd=3A_Webinario_SemACT=2DUNS_=2D_viernes_13=2F08=2C_14_hs_=2D_L?=\r\n' +
    '=?UTF-8?Q?eonardo_Alarcon_=28UNS=29_=5B=C2=A1se_agradece_difusi=C3=B3n=21=5D?='
var unquoted = emlformat.unquoteString(longString)
console.log(unquoted)
// Logs just half the string:
// Fwd:_Webinario_SemACT-UNS_-_viernes_13/08,_14_hs_-_L

I think I have identified the problem in the regular expresion capturing groups, and that I can fix it. I will try to help solve the issue later.

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