Not viewing sent emails from Gmail

I recently downloaded eM client to use for my gmail account with IMAP. It seems to have downloaded my inbox… but in the folder “sent messages” in eM, I can only see emails that are dated older than 2016. If I click “all emails” though, I can view my recently sent emails. I need the sent emails to appear in “send messages” and incoming emails to appear in “inbox” just as in the gmail web interface…

Please let me know how to solve this…

One thing you can try is to right-click on the All Mail folder and choose Properties > Repair.