benjojo / Gmail_GeoIPTagger

An app script that will label your email from where in the world it was sent from

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gmail_GeoIPTagger

An app script that will filter your email from where in the world it was sent from

It labels your email like this:

alt text

This code is experimental and not feature complete. If it breaks, you get to keep both pieces.

##Setup First open your google drive and make a new script

alt text

Then make a blank project

alt text

Copy and paste the contents of Code.gs into the code editor

alt text

Set your function to run as TagInbox and then hit run to make sure it works

alt text

The first time that it runs it will ask permissions to read and write to your gmail inbox and to connect to other services

It needs gmail access to tag things as labels, it needs to connect to external services to do GeoIP lookups.

alt text

alt text

If that runs smoothly we can now set it to run automatically Resources > Current Project Triggers

alt text

Then set the function to run every 10 mins

alt text

alt text

About

An app script that will label your email from where in the world it was sent from

License:MIT License


Languages

Language:JavaScript 100.0%