mglaman/mail

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Console app for reading via IMAP

dev-master 2015-03-06 23:06 UTC

This package is auto-updated.

Last update: 2021-10-13 10:28:53 UTC


README

A Symfonfy console IMAP tool for those of us who are bad at checking email.

Configure

Copy config.yml.example to config.yml. Change the host, port, username, and password.

Commands

Simply running mail will return the number of recent and total emails from your inbox. With any of the commands, sub out [box] with a folder name.

Available commands:
  mail check [BOX]        Returns number of recent and total emails.
  mail list [BOX]         Displays overview 10 recent emails
  mail view ID [BOX]      Views an email
  mail rm ID [BOX]        Moves email to trash. Supports command separated IDs.

Kudos

  • php-imap library so I didn't have to wrap imap_*
  • platformsh-cli for reference on making Symfony console application.