C-Command Software Forum

Search box using mail headers

I am trying to archive GMail using Google Takeout and then importing it into EagleFiler.

The GMail labels are not coming in as tags on the email (which I expected). Looking at the raw stored messages, I see that they are part of the headers in the email, for example:

X-Gmail-Labels: Important,Trash,Opened,Category Forums

It appears that there is not a way to search for these labels nor any text in most other labels at the collection of emails level. It is possible to search within an email message.

Am I missing something?

EagleFiler does not import the X-Gmail-Labels header as tags, though I can look into adding that in a future version. This header is also not indexed for searching.

I’m not sure what this is referring to. Could you give an example?

What I was trying to say is that it was not possible to search for most of the email headers except once one was searching within a single email. While I think there is enough utility to consider importing the Google Labels as tags, I was trying to note a general solution of searching for various tag values did not exist (or I did not find). Thanks.

Are there other headers that you want to be able to search? Currently, EagleFiler excludes most headers from search indexing because they could lead to unwanted search matches.

I am away from my original file and bandwidth limited so I had to look at a smaller set but the other one I see that would be useful “Delivered-To:”, I forward mail from several locations into GMail and use addressing of base+text@gmail.com to know where it originally came from. Most of the time it is deducible in the To: header which is already included.

That makes sense. Thanks for the suggestion.