> For time being I've just added:
>   if (FFileName = '') and (FPrimaryCode = MP_BINARY) then
>     FFileName := 'Nameless Attachment ' + IntToHex(GetTick(), 8) +
>     '.dat';
> 
> into DecodePartHeader function... even through it would be fine to
> have this part of code at the end of DecodePartHeader function.

It is IMHo not good idea. Binary part can be legally without 
filename, or filename can be in text part too. It is just one of 
attributes. If filename is missing by some reason, better is return 
empty filename. Calling application can know: 'part not have filename 
attribute', and handle it as application wish. (construct false 
filename, ask user for filename, etc.)


-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to