(define sixhat (λ (dave) (display 'ideas)))

Exporting gmail to mbox notes

The task

clean old emails from gmail and regain some space.

The solution

  1. Export mail with Google Takeout
  2. Import mbox file into Mail / mutt / Thunderbird... or just archive it
  3. use gmail before:m/d/y search option, select all, and delete.
  4. Empty bin, trash, spam folders... voilá

The problem

Takeout exports all email, including that on spam and trash folders, and doesn't export the tags/folders your email is sitting on.

The pre-google takeout task I need to remeber next year

Empty the trash, spam and bin folders before doing the takeout thing (step 1).

The split by tags

To get email organized into individual mbox files instead of having all in one big mbox file, use Gmail MBOX splitter