mimepart.pas - do not use stream.seek
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@216 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
parent
d4c0d58e04
commit
b5ee2d693e
10
mimepart.pas
10
mimepart.pas
@ -1,9 +1,9 @@
|
|||||||
{==============================================================================|
|
{==============================================================================|
|
||||||
| Project : Ararat Synapse | 002.009.000 |
|
| Project : Ararat Synapse | 002.009.001 |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Content: MIME support procedures and functions |
|
| Content: MIME support procedures and functions |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Copyright (c)1999-200812 |
|
| Copyright (c)1999-2021 |
|
||||||
| |
|
| |
|
||||||
| Redistribution and use in source and binary forms, with or without |
|
| Redistribution and use in source and binary forms, with or without |
|
||||||
| modification, are permitted provided that the following conditions are met: |
|
| modification, are permitted provided that the following conditions are met: |
|
||||||
@ -32,7 +32,7 @@
|
|||||||
| DAMAGE. |
|
| DAMAGE. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
||||||
| Portions created by Lukas Gebauer are Copyright (c)2000-2012. |
|
| Portions created by Lukas Gebauer are Copyright (c)2000-2021. |
|
||||||
| Portions created by Petr Fejfar are Copyright (c)2011-2012. |
|
| Portions created by Petr Fejfar are Copyright (c)2011-2012. |
|
||||||
| All Rights Reserved. |
|
| All Rights Reserved. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
@ -891,7 +891,7 @@ begin
|
|||||||
else
|
else
|
||||||
s := CharsetConversion(s, FCharsetCode, FTargetCharset);
|
s := CharsetConversion(s, FCharsetCode, FTargetCharset);
|
||||||
WriteStrToStream(FDecodedLines, s);
|
WriteStrToStream(FDecodedLines, s);
|
||||||
FDecodedLines.Seek(0, soFromBeginning);
|
FDecodedLines.Position := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{==============================================================================}
|
{==============================================================================}
|
||||||
@ -972,7 +972,7 @@ begin
|
|||||||
Encoding := 'base64';
|
Encoding := 'base64';
|
||||||
l := TStringList.Create;
|
l := TStringList.Create;
|
||||||
FPartBody.Clear;
|
FPartBody.Clear;
|
||||||
FDecodedLines.Seek(0, soFromBeginning);
|
FDecodedLines.Position := 0;
|
||||||
try
|
try
|
||||||
case FPrimaryCode of
|
case FPrimaryCode of
|
||||||
MP_MULTIPART, MP_MESSAGE:
|
MP_MULTIPART, MP_MESSAGE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user