Pages: 1
RSS
POP3 Extremely Slow to Download
 
I've had this problem for a while but I always assumed it was my shared hosting provider being crappy.  However, I changed providers and the problem still exists.  Worse still, I can use another email client and it downloads POP3 mail very fast.  So the problem appears to be on The Bat!'s end and I could use some help troubleshooting it.  I'd rather not switch to another email client.

Basically, POP3 transfers for me average around 5KB/s.  My internet connection is 1gb symmetrical.  The actual message seems to download quickly based on the progress bar but then it pauses 30-45 seconds before it tries to download the next message.

I am using no filters, plug-ins, anti-spam, etc.  I have tried pausing my firewall and virus protections but it made no difference.  I have verified there are no write speed issues with the drive my The Bat! is stored on.

I am using version7.4.16 (64-bit) on Win11.  I tried running it under Win7 compatibility mode to see if that made a difference but no luck there.   If someone can confirm that POP3 speeds are fine in the latest version I will happily upgrade.

Thanks!
 
Have you tried checking/repairing your message base (folder | maintenance center) ?

Does The Bat run faster after you have rebooted Windows 11 into "safe mode with networking"?

Did you try the other (faster) email client with this same mail account? Did you use the same settings (port numbers, encryption, etc) as in The Bat?

(I would say at this point that the most likely cause is still your antivirus/anti-malware intercepting and analyzing the pop3 traffic. Note that both new AND old versions should retrieve your mail quickly.. someone's assurance that the current version works fast for them is no guarantee that it won't have the same problem that your old version is having on your system)
I volunteer as a moderator to help keep the forum tidy. I do not work for Ritlabs SRL.
 
Quote
Daniel van Rooijen wrote:
Have you tried checking/repairing your message base (folder | maintenance center) ?

Does The Bat run faster after you have rebooted Windows 11 into "safe mode with networking"?

Did you try the other (faster) email client with this same mail account? Did you use the same settings (port numbers, encryption, etc) as in The Bat?
I have repaired the message base (there were no issues).  When I tested the other (faster) email client I did use the same POP3 account with the same settings, port numbers, etc.

I have not yet tried safe mode but I do not believe the firewall/antivirus is the slowdown if the other email client performs as expected.  I will give it a try to be sure, though.
 
Safe mode with network support did not change things.  I'm not sure how to troubleshoot the issue further.  It's a bit disheartening since I've been storing my mail in The Bat! since 1999.  I'd like to keep everything in one place.
 
Good, that means that we can exclude all third party software as a potential cause.

A few more things that I would try (not necessarily in this order) :

1) Delays are often the result of a process looking for data (or trying to write data) on a device that's in sleep mode, or that's on a slow network, or that has many thousands of folders or millions of files to work through. If that might be the case here, disconnect any and all external devices that can store files: External hard drives, optical drives, memory sticks, memory cards, etc.  If your PC is on a LAN, disable or unplug the network (if you can do so without disconnecting from the internet router?) and see if that helps.

2) Use Nirsoft's free "CPORTS" utility to see if any unexpected internet connections are being made when you check for new mail (btw, when you're working with the slow account, do you press F2 to check only that specific account for new mail, or Alt-F2 to check all accounts at once?).

3) Use Microsoft SysInternals' free "Process Monitor" utility (https://learn.microsoft.com/en-us/sysinternals/downloads/procmon) to check what's happening when the delays occur. Beforehand, close all programs that are not required so you don't have to watch all their activities. Within ProcMon, you can right-click on the names of irrelevant processes and exclude them to reduce the data and hopefully zoom in on what The Bat is doing.

4) Are you really really positive that the Sorting Office/Filters for that account does not have any active filters in the Incoming Mail and Read Messages sections? No Common Filters (system wide) either?

5) Lookup the message with license details that Ritlabs sent you at the time of registration to see what the latest version is that's covered by your license. Download that version and upgrade The Bat with it.

6) If that provider is one that uses a non-standard email implementation, like Gmail or Microsoft, see if there are any server-side settings that may have to be made, e.g. to white-list The Bat.

p.s.: Are you storing crazy numbers of messages (say more than ~250,000) in that account's inbox? If so, I'd consider moving most of them to a new folder (e.g. 'Archive' or '1999-2019') and compress the inbox, so that newly retrieved messages won't trigger a whole lot of indexing activity.
I volunteer as a moderator to help keep the forum tidy. I do not work for Ritlabs SRL.
 
One more possibility: since you're using a rather old version of TB, maybe it is not supporting new versions of protocols, and the e-mail server is not supporting the old protocol versions well. Two things to try:
1. Play around with protocols (TLS/STARTTLS) and port numbers in TB account properties for transport
2. Try a newer version of TB on a separate machine and see if there's a difference (a trial version will do)

I'm speaking from own experience: a protocol version update on an e-mail server once forced me to upgrade TB.
 
First, thank you both for taking the time to help me.  I greatly appreciate.  I've tried most of your suggestions and the results are below.  Sadly there has been no change in download speed.

1.  I disconnected external USB drives with no change.  All of my The Bat! files are stored in a Veracrypt container.  I moved them out of the container to a new folder on my primary nvme drive with no change.

2.  I only check mail for a single account at a time while I am attempting to troubleshoot.  With CPORTS running I do not see anything new processes appearing after The Bat! email check.  I tried sorting by remote host and do not see any other processes connecting to the mail server nor do I see anything unexpected if I look at localhost connections.  There is a lot of stuff running in CPORTS and I'm unsure how to read all of the data, however, so it is possible I've missed something.

3.  Process Monitor is a deluge of info even with non-essential programs shut down.  However, I am not seeing anything unexpected pop up after I check for email.  It is mainly just gobs of svchost processes that were appearing before I checked for email.

4.  There are no sorting/office filters.  I created new account files to test this problem.  I have verified that there are no filters in the account and that there are no common filters, either.

5.  I am using the latest version of The Bat! that my license supports (but see the end of this email where I address Miloš' suggestion.)

6.  It is a standard shared webhosting provider running Dovecot as the mail server.

7.  I start each troubleshooting session with a new, empty account so there are no pre-existing messages to potentially slow things down.

8.  I tried alternate protocols like TLS and STARTTLS and the appropriate ports but I am unable to get a TLS handshake to complete.  I'm trying to troubleshoot possible certificate issues.  I have downloaded and installed the latest version of The Bat! as a trial but the issue persists so I do not think it is a protocol implementation.  Unfortunately I do not have a separate machine available to test it on so this did not rule out any machine specific issues that may be affecting performance.

For what it is worth, watching email downloads in the connection window reveal that the body of emails all download nearly instantly regardless of size.  Then there is a ~30 second delay before the next message download is attempted.  This is where the overall download speed seems to be getting killed.  To me this would seem to indicate a file write delay or a pause pending another process but I can't identify what those might be.  I have run benchmarks on the data drives I've tried to make sure there are no normal filesystem bottlenecks.
 
Quote
Dale Rose wrote:

For what it is worth, watching email downloads in the connection window reveal that the body of emails all download nearly instantly regardless of size.  Then there is a ~30 second delay before the next message download is attempted.  This is where the overall download speed seems to be getting killed.  To me this would seem to indicate a file write delay or a pause pending another process but I can't identify what those might be.

My thinking is the same, but with slow drives (sleep mode) and third party processes ruled out (safe mode, procmon), it's hard to think of anything else that The Bat may be doing (or that it may be waiting for).. For now, I have only a few more suggestions:

- Double-check that in 'Options | Preferences | Plugins', both Anti-virus and Anti-spam are empty.
- While you're there, go to 'Options | Preferences | Attachment security' and click Reset for the top most two options (older versions would keep appending file types to these lines, causing problems. I'm not sure if v7.* was still affected though).
- In 'Options | S/MIME and TLS', switch the certificate store from Internal Implementation to Microsoft CryptoAPI.
- In 'Account Properties | Transport | Protocol logging' as well as 'Account properties | Options', turn (verbose) logging on and (after retrieving some mail) check the log files for any clues.
I volunteer as a moderator to help keep the forum tidy. I do not work for Ritlabs SRL.
Pages: 1