polybar-scripts/polybar-scripts/inbox-imap-pythongpg
x70b1 414e8d1640 inbox-imap-pythongpg: add pgp feature (close #119) 2019-02-22 22:31:59 +01:00
..
screenshots inbox-imap-pythongpg: add pgp feature (close #119) 2019-02-22 22:31:59 +01:00
README.md inbox-imap-pythongpg: add pgp feature (close #119) 2019-02-22 22:31:59 +01:00
inbox-imap-python.py inbox-imap-pythongpg: add pgp feature (close #119) 2019-02-22 22:31:59 +01:00

README.md

Script: inbox-imap-pythongpg

A script that shows if there are unread mails in your IMAPs inbox. Passwords are encrypted with gpg.

inbox-imap-pythongpg

Configuration

You must have a gpg key to secure your password in configuration files. Encrypt your password using your gpg key like this.

echo 'your password' > /tmp/imappass
gpg -er 'your gpg keyid' /tmp/imappass
mv /tmp/imappass.gpg ~/.imappass.gpg
shred /tmp/imappass && rm /tmp/imappass

For Gmail, you must allow less secure apps.

Module

[module/inbox-imap-pythongpg]
type = custom/script
exec = ~/polybar-scripts/inbox-imap-pythongpg.py
interval = 60