Thunderbird can be configured to work seamlessly with Gmail. Emails are synced between your local Thunderbird and online Gmail.