<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>browser timeout during long fetchmail sessions</title> 
  <pubDate>Fri, 10 Apr 2026 09:50:18 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/3159</link> 
  <atom:link rel="self" type="application/rss+xml" title="browser timeout during long fetchmail sessions" href="https://bugs.horde.org/ticket/3159/rss" /> 
  <description>browser timeout during long fetchmail sessions</description> 
 
   
   
  <item> 
   <title>Hi,



When I receive large attachments (2Mb+) at my account</title> 
   <description>Hi,



When I receive large attachments (2Mb+) at my account, fetchmail a lot of times stops before the mail-fetch is finished.



Actually, I believe it is the browser that stops.  The reason is when you click on the &quot;Fetch Mail&quot; icon in the popup, the web server doesnt feed anything back to the browser at all until everything has finished fetching.



The browser simply times out and closes the connection because it doesnt receive any response.  This timeout have tested to vary from 20seconds (IE) to up to 45seconds (FireFox).



This problem is described here with a sample solution: (look under Sjoerd van der Hoorn - 21 June) - I havent verified the sample solution.

http://fi.php.net/manual/en/function.set-time-limit.php



(I have made sure my PHP max-execution-timeout is 300 and checked with my host that APACHE&#039;s timeout is also 300seconds)



I have done some modifications but they are not very neat at all, the best way is to have something like a &quot;progress bar&quot; or something that spits out something every 5-10seconds.



My mods are cruide and doesnt fully work but kind of helps it a little: I fetch from two accounts so have so far inserted a line in Fetchmail.php (under imp/lib) approx line 299 (under the &quot;foreach&quot; loop within function fetchmail() ):



echo &quot;&lt;font color=white&gt;Fetching mail for account: &quot;.$val.&quot;&lt;/font&gt;&lt;br&gt;&quot;;

flush();



and at the same time swapped the output header lines in fetchmail.php (under imp) so the header is spitted out to the browser before fetchmail process begins.



Suggestion:

1. progress bar, or just &quot;full stop&quot;, or

2. just flush out blank-spaces or something which are not displayed on the webpage but will keep the connection alive, or

3. anything else?



If you can display how many messages fetchmail is fetching and the total size right at the start that would be good too (??)



Thanks :)

</description> 
   <pubDate>Fri, 16 Dec 2005 20:42:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3159#t14896</link> 
  </item> 
   
  <item> 
   <title>and my ugly mod ruins the login/maintenance screen because i</title> 
   <description>and my ugly mod ruins the login/maintenance screen because it sends text before the header is sent on that particular screen..

</description> 
   <pubDate>Fri, 16 Dec 2005 22:18:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3159#t14897</link> 
  </item> 
   
  <item> 
   <title>No longer needed - fetchmail will not be a part of IMP 5.0.</title> 
   <description>No longer needed - fetchmail will not be a part of IMP 5.0.</description> 
   <pubDate>Wed, 29 Jul 2009 05:47:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3159#t55077</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
