Go to file
Colin 31c56a3030 cleaned up an edge. 2024-05-04 08:44:47 -04:00
build_logs imap-json-fetcher 2024-05-04 08:25:54 -04:00
dist cleaned up an edge. 2024-05-04 08:44:47 -04:00
README.md imap-json-fetcher 2024-05-04 08:25:54 -04:00
build.sh imap-json-fetcher 2024-05-04 08:25:54 -04:00
email-20240504-084413-0.json cleaned up an edge. 2024-05-04 08:44:47 -04:00
email-20240504-084413-1.json cleaned up an edge. 2024-05-04 08:44:47 -04:00
go.mod cleaned up an edge. 2024-05-04 08:44:47 -04:00
go.sum cleaned up an edge. 2024-05-04 08:44:47 -04:00
main.go cleaned up an edge. 2024-05-04 08:44:47 -04:00

README.md

IMAP JSON Fetcher

Setup

Before running the imap-json-fetcher, ensure that the following environment variables are set:

  • IMAP_HOST: Your IMAP server address (e.g., imap.example.com:993).
  • IMAP_USERNAME: Your email username.
  • IMAP_PASSWORD: Your email password.

You can set these environment variables in a Unix-like terminal as follows:

export IMAP_HOST="your_imap_server_address"
export IMAP_USERNAME="your_username"
export IMAP_PASSWORD="your_password"

Running the Script

To run the imap-json-fetcher, navigate to the dist directory where the binary is located, and use the following command:

./imap-json-fetcher

This assumes that you have already compiled the binary and placed it in the dist directory.

Output

The imap-json-fetcher will listen for new emails and output the extracted email addresses in separate JSON files, one per email, named in the format email-seqNum.json.