Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thunderbird attachments
Message
From
16/09/2016 05:25:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01640896
Message ID:
01640938
Views:
48
>Cans Thunderbird store all attachments in a designated folder? If so how is this done?

Nope, Thunderbird keeps the messages as they were, with full headers and all attachments in MIME paragraphs (which is plain old base64 - see strconv() to convert those).

When exporting them you can just "Save all" and then manually pick a folder where they will be saved. To do anything programmatically, you may open the inbox as a text file, using fOpen() (filetostr() may choke you, it's one huge file, I got a few which are over the 2G mark), but then finding the message in that huge string would be a task unto itself. I did that once, and the code still works, but it chokes above certain sizes, because I store the lines read into arrays (which I then analyze to find headers and store their offsets and message lengths into a dbf). Kind of messy, but it works. And if need be, I can then cut out the message, save it into a temp file, and extract the attachments into any folder I want.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform