I use gmail on multiple devices and here is what I do.
1. Change gmail settings in google. In particular, you can control which
'labels' gmail exposes as imap directories. I only have the very few
ones I'm interested in made visible.
2. Ignore 'All Mail'. You simply don't need it. Gmail doesn't have email
folders. It only has 1 folder, 'All Mail'. Everything else is just
labels. The gmail imap interface presents the labels you define (and if
you have configured it, just a subset) as 'pseudo' imap folders.
3. I use mbsync and by default fetch/sync all the 'folders' I have set
in the gmail config i.e. I don't export all labels and I don't export
'All Mail'.
I also turn off most of gmail's 'special' folders i.e. important,
purchases, starred etc. I don't use them and don't need them. I really
just use 'sent', 'drafts', 'inbox', 'archive', 'later' and 2 specific
email list folders/labels. About once a week or so, I will log into
gmail on the web and check/delete the messages in the spam folder. I
also have gmail configured to 'purge' the trash folder every 30
days. From memory, I think I may have also made some other tweaks to how
gmail handles mail, archiving and all mail in the google gmail config.
The really big change I made was to stop using mail folders as much as I
use to. This was one of the big benefits of mu4e. Because it has such
powerful search capabilities, I don't need to put messages in different
folders or use lots of labels. This saves me lots of time as I don't
need to sort/store messages like I use to. My basic workflow is
1. All new messages come into either INBOX or one of my two mail
lists. Gmail sorting rules puts the messages into the mail list
'folders'.
2. I look at messages in inbox, mostly on my Linux system using mu4e,
but also on my mobile and sometimes my tablet. ;
3. After reading the message, I either move it to 'archive' if I'm done
wsith it and want to keep it, to 'later' if I need to do something
with/abolut it and will need to reference it and trash if I no longer
need it. Every few weeks I will go through my 'later' folder and move
anything no longer needing action to archive or delete it. The big
advantage I find with this approach is that my inbox is small and only
contains messages I need to read, my 'later' inboxs is relatively small
and only contains messages that either I need to take action on
i.e. request to do something, or contain info which may be useful
e.g. tracking number of a delivery I'm waiting on.
Most of the time, I'm reading messages from INBOX or referencing
information in 'later'. I rarely need to use 'archive', but when I do, I
just use mu4e to search for what I'm looking for. This setup also has
the advantage of keeping my sync process with mbsync short. With?he
default of pulling everything, you are pulling many messages multiple
times. With my scheme, I onlyh pull them once.
I don't find 'All Mail' fills up with spam. Not sure why I don't and you
do. I do find it can be confusing because messages you have deleted and
spam messages will sit in their until you have deleted spam and your
deleted expunge perod, configured within google, has been
reached. Reality is, I just don't look at it.
HTH