Bug 478912

Summary: KMail is unusable on large gmail account
Product: [Applications] kmail2 Reporter: Marcos Junior <junalmeida>
Component: commands and actionsAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.24.4   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot of gmail usage
when clicking on a message

Description Marcos Junior 2023-12-23 01:59:54 UTC
Created attachment 164382 [details]
screenshot of gmail usage

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
KMail is unusable on large gmail accounts

STEPS TO REPRODUCE
1. Connect KMAIL with a large gmail account (like 300gb or larger)
2. Watch

OBSERVED RESULT
Messages takes hours to appears, and it starts going back to decades (I see first messages of 2007).
It seems the default is to download offline messages which will take hours indeed. 

EXPECTED RESULT
Most recent emails should show first in few seconds on a good connection. It should download emails on demand by default.
As comparison, Evolution shows the recent emails instantly. 

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.5.13-6-MANJARO (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-3537U CPU @ 2.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4000
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: K46CB
System Version: 1.0

ADDITIONAL INFORMATION
Comment 1 Marcos Junior 2023-12-23 02:14:03 UTC
Created attachment 164384 [details]
when clicking on a message

To add, when I click on any message on the list, all I get is this colorful "please wait"  message that sits there for hours.