-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ Copy the `access_token` property to use in the Spicepod | |
|
||
### 3. Spicepod setup | ||
|
||
Edit the `spicepod.yaml` file in this directory, and replace the `<IMAP_EMAIL>` with the Outlook email address. Delete the `imap_host` parameter, as it is set automatically. | ||
Edit the `spicepod.outlook.yaml` file in this directory, and replace the `<IMAP_EMAIL>` with the Outlook email address. | ||
|
||
The OAuth access token for the IMAP connection will be used as the password, supplied as a secret via an environment variable. | ||
|
||
|
@@ -74,7 +74,7 @@ datasets: | |
- from: imap:[email protected] | ||
name: outlook_mailbox | ||
params: | ||
imap_password: ${secrets:OAUTH_ACCESS_TOKEN} | ||
imap_access_token: ${secrets:IMAP_ACCESS_TOKEN} | ||
``` | ||
### 4. Start Spice | ||
|
@@ -84,7 +84,7 @@ Start Spice, supplying the OAuth Access Token as an environment variable. | |
For example, in an `.env` file: | ||
|
||
```bash | ||
OAUTH_ACCESS_TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik5HVEZ2ZEstZnl0aEV1Q..." | ||
IMAP_ACCESS_TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik5HVEZ2ZEstZnl0aEV1Q..." | ||
``` | ||
|
||
Once started, the mailbox should be registered in the Spice Runtime logs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: v1 | ||
kind: Spicepod | ||
name: imap_email | ||
datasets: | ||
- from: imap:<IMAP_EMAIL> | ||
name: awesome_mailbox | ||
params: | ||
imap_access_token: ${secrets:IMAP_ACCESS_TOKEN} |