Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi imap read timeout bei abfragen von attachments (https://www.delphipraxis.net/122956-imap-read-timeout-bei-abfragen-von-attachments.html)

mcclane443 24. Okt 2008 21:37


imap read timeout bei abfragen von attachments
 
Hi, ich habe ein Problem mit meinem selbstgeschriebenen email client! rufe ich eine normale mail ab, kein problem, hat die mail jedoch einen anhang stürzt er ab mit read timeout! habe das read timeout auch schon auf 20 sekunden gesetzt (20000) hat aber auch nix gebracht, er stürzt sofort ab, nicht erst nach 20 sekunden! (scheint also nen anderes timeout zu sein, aber welches? außerdem stürzt er auch sofort ab wenn das attachment sehr klein ist (dachte mir hänge ich mal 7 kb an, dann dürfte es ja bei 16mbit dsl kein timeout geben aber denkste...)

also kann mir jemand mal nen tip geben wo das problem liegt? (habe die frage nirgens anders gestellt ;)


hier der sourceteil:

Delphi-Quellcode:
idimap41.Host := 'imap.gmail.com';
idimap41.Username := 'xxx@googlemail.com';
idimap41.Password := '*****';


idimap41.Connect(true);
if idimap41.ConnectionState = csAuthenticated
  then memo1.Lines.add('very good')
  else memo1.Lines.add('baaaaaad');
IdIMAP41.SelectMailBox('inbox');


idimap41.Retrieve(4,idmessage1);                               // <--------     hier kommt das timeout wenn mail 4 nen anhang hat
memo1.lines.add(idmessage1.Subject);
memo1.lines.add('#####################################');
memo1.Lines.add(idmessage1.Body.);

idimap41.disconnect;


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:34 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz