Gmail – Filter Gmail messages by the location of the sender

gmailgmail-filters

I want to filter the Gmail messages I receive in different folders based on the geographic region of the sender.

Is this possible? And if yes, how can it be done automatically?

Best Answer

The email headers contain IP addresses that in certain cases could be used to know the geographic location of the user device and the servers used but this could not work for all cases like users using a web email client.

In other words, it's possible but can't be reliably done for all senders. To do this you will require to use Google Apps Script or a third-party application in order to be able to read the messages headers.