IMAP Plugin for Steampipe
Use SQL to query mailboxes, messages and more using IMAP.
Quick start
Install the plugin with Steampipe:
steampipe plugin install imap
Run a query:
select
timestamp,
from_email,
subject
from
imap_message
where
mailbox = 'INBOX';
+---------------------+---------------------------+---------------------+
| timestamp | from_email | subject |
+---------------------+---------------------------+---------------------+
| 2021-06-04 10:04:09 | michael@dundermifflin.com | FW: Joke |
| 2021-09-20 10:10:01 | dwight@dundermifflin.com | Where's my stapler? |
| 2021-09-21 10:13:01 | pam@dundermifflin.com | Tonight... |
+---------------------+---------------------------+---------------------+
Developing
Prerequisites:
Clone:
git clone https://github.com/turbot/steampipe-plugin-imap.git
cd steampipe-plugin-imap
Build, which automatically installs the new version to your ~/.steampipe/plugins
directory:
make
Configure the plugin:
cp config/* ~/.steampipe/config
vi ~/.steampipe/config/imap.spc
Try it!
steampipe query
> .inspect imap
Further reading:
Contributing
Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.
help wanted
issues: