-
Notifications
You must be signed in to change notification settings - Fork 24
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
Error - "files: mimetype text/plain; charset=utf-8 not supported in file ..." #69
Comments
Can you provide a sample message file? Maybe in a Github gist or something?
No. I'm processing individual messages (in EML format) and the tool extracts the attached reports properly (usually).
You don't need to worry about these dependencies since the tool written in Go. All the package requirements are settled at build time, so you don't have to worry about these dependencies in your runtime environment. |
It's interesting. I have no mime packages installed on my system and can process eml files as well. If you cannot provide sample file, you can post here output of
|
But according to this https://cs.opensource.google/go/go/+/refs/tags/go1.22.5:src/mime/type_unix.go - it's possible that some packages are needed to detect mime type. I have "/usr/share/mime/globs2" file on my Fedora system and it belongs to shared-mime-info package |
Here's a recent random sample dmarc file from Google with Here's another from Comcast with Both files include the header I also have the "/usr/share/mime/globs2" file, generated by It may or may not be important that these files are NOT specifically
while running
|
If you copy one of the files out of the Maildir and rename it as a |
Ha! Yes. I moved the sample files to a directory "dmarctest" and changed the extensions to
Of course, now I'm curious - what happened there? For reference and for instance, the sample files have the original names "1720949687.V804I914868M641386.topaz:2,S" and "1710608371.V804I910597M983359.topaz:2,". These are typical Maildir file names. Dovecot has some explanation of the filename format at https://doc.dovecot.org/admin_manual/mailbox_formats/maildir/ . |
As an additional check, I went back and renamed those sample files to "sampledmarcfile" and "sampledmarcfileutf8", without the explicit
The naming problem, then, really does appear to be connected to the |
Thank you for debugging, it looks like a bug |
I'd consider this an enhancement request instead of a bug, but it's your project. 😉 I ran into this issue but worked around it. I use AWS SES to receive DMARC reports which are placed in an S3 bucket with a hashed filename with no file extension. I have a script that downloads the files from S3 and renames them to have an eml file extension. |
@moorereason While I can appreciate your high pain threshold, I'm inclined toward "bug", and not "enhancement". Still, we might agree that this |
Interesting way. I use |
The reason for this unexpected behavior is simple |
Arch Linux
go 2:1.22.4-1
These errors apply to every single dmarc report received, including from various different sources.
Are each of the dmarc report files required to be manually extracted from the dmarc email, and moved to another directory, before processing? Or, is this a bug?
https://pkg.go.dev/unicode/utf8 says:
https://pkg.go.dev/mime says:
Am I missing this
utf8
package? Or themime
package? Or something else?The text was updated successfully, but these errors were encountered: