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

Not understanding the errors received? #108

Open
AndyM48 opened this issue Apr 14, 2024 · 0 comments
Open

Not understanding the errors received? #108

AndyM48 opened this issue Apr 14, 2024 · 0 comments

Comments

@AndyM48
Copy link

AndyM48 commented Apr 14, 2024

I am very grateful for your tnef decoding work, but I am not sure that I understand the errors that I get using it.
For example, with a simple winmail.dat file - being a message and no embedded attachment:

$ ytnef -f -v . winmail.dat
ERROR: Error reading signature
$ echo $?
0

Same file

$ ytnef -f -H -F -v . winmail.dat
Attempting to parse ....
ERROR: Error reading signature
Attempting to parse winmail.dat...
$ echo $?
0

And now a winmail.dat file with three embedded attachments:

$ ytnef -f . winmail.dat
./FILENAME_1.pdf
./FILENAME_2.pdf
./FILENAME_3.pdf
$ echo $?
0

Same file

$ ytnef -f -H -F -v . winmail.dat
Attempting to parse ....
ERROR: Error reading signature
Attempting to parse winmail.dat...
Aid Owner: [4] 
Request Response: [2] 
ERROR: Error writing -H/FILENAME_1.pdf to disk!
ERROR: Error writing -H/FILENAME_2.pdf to disk!
ERROR: Error writing -H/FILENAME_3.pdf to disk!
$ echo $?
253

It seems that I receive an error with almost any use of the +-H and/or the +-F flags, and the files are not extracted.

I am not entirely sure that I know what the H and F flags are supposed to do, I thought that they would write out the email message in HTML or RTF format, but surely they should not fail to extract the attachment if the -f flag is present?

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