Python script to check for new unread GMAIL mail. And the subsequent opening of it in the browser
Opportunities and script logic:
- Checking for new email/s
- (Optional) The conclusion of the system message
- And the opening new mail/s in a browser
Requirements (for run gmail.py)
- python => 3.0
- open https://myaccount.google.com/lesssecureapps and set
Allow less secure apps: ON
- Copy file gmail.exe and gmail.cfg
- Change in
gmail.cfg
youlogin
andpass
from gmail account - Run gmail.exe
- (Optional) Run
add task.bat
as Administrator option.
- Install Python => 3.6 and
python-pip
- Copy repo
$ git clone https://github.com/Artlant/gmail-check.git
or "Download zip" - Run
$ pip install -r requirements.txt
ingmail-check
folder - Install Auto PY to EXE
- Convert gmail.py in "Auto PY to EXE and Convert"
- Copy repo
$ git clone https://github.com/Artlant/gmail-check.git
or "Download zip" - Run
$ sudo pip install -r requirements.txt
ingmail-check
folder - open https://myaccount.google.com/lesssecureapps and set
Allow less secure apps: ON
- Make sure the script is executable by running
chmod +x ./gmail.py
- Change in
gmail.cfg
youlogin
andpass
from gmail account - Run
$ ./gmail.py
//period call script should be implemented you. For example in linux:
watch -n 300./gmail.py
where -n sec
- every sec-seconds
./gmail.py -h
usage: gmail.py [-h] [-l] [-c CONFIG]
optional arguments:
-h, --help show this help message and exit
-l, --log show log info
-c file, --config file patch to a config file