I found your emailtodb class - and in principle it's exactly what I need.
I need to extract from the mail is besides senderinformation:
- mail subject
- mail text
- mail attachments - if any.
in principle exactly what your class is promising to do.
Unfortunatelly - if i run a simple test - it produces the wrong result.
My testcase is very simple:
I create a mail using Thunderbird with:
Mail subject the word :Testsubject
Mail text only the word: TEST
one mail attachment named: test.txt with three lines in it: Line1 xxx, Line2 yyy, Line3 zzz
but when I sent it and the mail is processed by your class the following happens:
emailtodb_email Subject is: Testsubject - thats ok
emailtodb_email Message is: xxx yyy zzz - which is wrong - should be in a file on disk and instead of xxx yyy zzz i would expect to see TEST here.
The mail text TEST is missing completely.
If I replace the text.txt attachment by a powerpoint file, all seems to be ok except I get no info about the mimetype.
I would appreciate it very much if you could help me.