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

Attachments not extracted if filename is getting too long. #28

Open
KirstenZa opened this issue Dec 22, 2024 · 0 comments
Open

Attachments not extracted if filename is getting too long. #28

KirstenZa opened this issue Dec 22, 2024 · 0 comments

Comments

@KirstenZa
Copy link

KirstenZa commented Dec 22, 2024

The script stops if filenames are getting too long during extraction (e.g. limits of NTFS file names). This happens pretty often for me when using the template:
%date%_%time%_%fromMail%_%subject%_%filename%

For "regular users" it is even hard to understand what and where the problem is, especially when trying to extract the attachments of hundreds of e-mails.

I tried a simple fix. It solves my problems right now.

"implementation.js" (line 70):

if (filename.length > MAX_LENGTH) {
    filename = filename.substring(0, MAX_LENGTH);
}
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