Gmail and Thunderbird/Outlook

is there a way to open, read and store the content (the e-mails) of a gmail-account locally in thunderbird or outlook?