Code Monkey home page Code Monkey logo

notifymail's Introduction

##Table of Contents##

A. Description

notifmail is an email daemon checker which notifies system about new emails on configured IMAP servers.

B. Installation

B.1. Prerequisites

Have python and other prerequisites on host:

  • python
  • python-notify2
  • openssl
  • python-daemon

Example - Fedora:

$ sudo yum install python openssl python-daemon python-pip
$ sudo pip install notify2

Example - Ubuntu:

$ sudo apt-get install python python-notify2 openssl python-daemon

B.2. Install

$ cd <notifmail git clone directory>
$ sudo ./setup.py install

C. Configuration

notifmail uses a configuration for connection to IMAP server and for other configurations. A sample file one is packaged in the sources as "notifmail.conf.sample". To get started copy this file in ~/.notifmail:

$ mkdir ~/.notifmail
$ cp ./notifmail.conf.sample ~/.notifmail/notifmail.conf

Edit ~/.notifmail/notifmail.conf.sample with your configuration.

D. Running notifmail

To start notifmail:

$ notifmail

For more info about notifmail's command line parameters:

$ notifmail -h

E. notifmail 'home' directory

notifmail's 'home' directory is located in $HOME/.notifmail and contains:

E.1. notifmail.conf

This file contains the IMAP accounts configuration to be used by notifmail. Can contain multiple accounts but each account must include:

  • imap_server
  • imap_user
  • imap_password

There are two optional variables:

  • all: Used to define mailboxes for which notifmail should trigger a notification with every new email. Multiple mailboxes must be separated by semicolon.
  • summary: Used to define mailboxes for which notifmail should trigger one summary notification. Multiple mailboxes must be separated by semicolon. See C. Configuration also.

E.2. notifmail.log

This is the logging file. By default notifmail runs as daemon so all messages go to this file. If you run daemon in foreground, log messages will be duplicated between logfile and stdout. For more info run:

$ notifmail -h

E.3. notifmail.lock

This is a lock file to avoid having multiple notifmail instances.

notifymail's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.