conkw documentation - LatestUnreadMailsGrabber

This is the latest unread emails grabber. It fetches your unread emails from one or more IMAP sources and selects the most recent.

Use cases

Configuration

{
  "implementation":"net.pieroxy.conkw.webapp.grabbers.email.LatestUnreadMailsGrabber",
  "name":"mails",
  "config": {
    "ttl":"5m",
    "maxMessages":10,
    "accounts": [
      {
        "name": "my gmail account",
        "server":"imap.googlemail.com",
        "port":993,
        "credentialsRef":"myUserLoginPassword"
      },
      {
        "name": "my hotmail account",
        "server":"outlook.office365.com",
        "port":993,
        "credentialsRef":"TheUserCredentials"
      }
    ]
  }
}

Metrics

Here are the metrics this grabber outputs:

For each email returned, the following metrics are exposed (Here for the 1st email, 0):