So as said in the title, i want to find a way download my emails on my pc and save them in a file. ( so then i could use linux text manipulation commands on them to do some filtering )
i'v found "mutt" a text-based e-mail client, and configured it to log into my GMail inbox. But first, it seems like it doesn't get all my emails. And then, I didn't find a way to save the emails i get in a file.
So if anyone knows any way of doing it, please make me know.
When accessing the emails in Gmail it takes some time to download and sometimes Google will kick you out and you need to reconnect. If you make to many requests it may even quick you out for a full day.
You can use Thunderbird to download the messages. It archives the emails in mbox format. Here's the part you are going to love:
Thunderbird does use a slightly modified version (more info here.)
Hope it helps :)