buzz-ed/README.md

52 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2017-03-02 07:20:17 +01:00
# Introduction
Using mutt (or pine), but annoyed that it doesn't give you any
2019-08-26 10:54:46 +02:00
notifications when you've received new emails? buzz-ed is a simple
2017-03-02 07:20:17 +01:00
application that detects new emails on IMAP servers using IDLE (push
2019-08-26 10:54:46 +02:00
rather than pull). When it detects unseen messages, it shows writes
the amount of new messages to a defined file and runs a defined command.
2017-03-02 07:20:17 +01:00
This project is a Rust fork of
[hasmail](https://github.com/jonhoo/hasmail), which provides basically
the same features, and is written in Go.
2017-09-28 00:28:11 +02:00
2017-03-02 07:20:17 +01:00
# Configuration
2019-08-26 10:54:46 +02:00
buzz-ed looks for a
2017-03-02 07:20:17 +01:00
[TOML](https://github.com/toml-lang/toml#user-content-example)
2019-08-26 10:54:46 +02:00
configuration file in `~/.config/buzz/buzz.toml` on startup. The
2017-03-02 07:20:17 +01:00
configuration file consists of a number of sections, each corresponding
to one account:
```toml
[gmail]
server = "imap.gmail.com"
port = 993
username = "jon@gmail.com"
pwcmd = "gnome-keyring-query get gmail_pw"
```
2019-08-26 10:54:46 +02:00
## Running buzz-ed
```
buzz /tmp/mails "pkill -RTMIN+2 i3blocks"
```
The first argument is the file, where it stores the amount of unread messages.
The second argument is the script or programm it starts after the amount has changed.
2017-03-02 07:20:17 +01:00
## Account fields
The value in `[]` can be anything (though avoid `.` as it will be parsed
2019-08-26 10:54:46 +02:00
as a new TOML section). The options for an account are as follows:
2017-03-02 07:20:17 +01:00
- `server`: The address to connect to. MUST currently be SSL/TLS
enabled.
- `port`: The port to connect to.
- `username`: Username for authentication.
- `pwcmd`: Command to execute to get password for authentication.