8000 GitHub - mattfoster/blink1-scripts: My blink(1) scripts -- currently just imap_blinker
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mattfoster/blink1-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

imap_blinker

imap_blinker blinks out unread messages counts for multiple email accounts in different colours, using a blink(1)!

Requires

  • Ruby 1.9
  • blink1-tool. Grab it from github.
  • A config file (see below)

Usage

Simply run: imap_blinker from the command line, or a cronjob or whatever.

Config

You'll need a YMAL config file in you home directory, it should be called .imap_blinker.rc. Mine looks something like:

work:
    server: mail.mywork.com
    port: 993
    ssl: true
    verify: false
    mailbox: INBOX
    username: my_work_username
    password: my_secret_password
    colour: '255,0,0'
    enabled: true
  gmail:
    server: imap.gmail.com
    port: 993
    ssl: true
    mailbox: INBOX
    username: matt.p.foster@gmail.com
    password: my_application_specific_password
    colour: '0,255,0'
    enabled: true

server, mailbox, username, password and enabled are required, and the other parameters are optional.

In order to keep things fairly simple, I designed the config to allow specifying most IMAP parameters but only the colours used by the blink(1)

Debugging

There's currently very little in the way of error checking. If you need to debug anything, set the BLINK_DEBUG environment variable, which will cause IMAP debugging to be enabled, and unstopper blink1-tool's stdout and stderr streams. e.g.:

BLINK_DEBUG=yes ./imap_blinker.rb  

About

My blink(1) scripts -- currently just imap_blinker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0