Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(email-connector): create a documentation for the new email connector #4307

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

mathias-vandaele
Copy link
Contributor

…tor (inbound and outbound)

Description

When should this change go live?

  • This is a bug fix, security concern, or something that needs urgent release support.
  • This is already available but undocumented and should be released within a week.
  • This on a specific schedule and the assignee will coordinate a release with the DevEx team. (apply hold label or convert to draft PR)
  • This is part of a scheduled alpha or minor. (apply alpha or minor label)
  • There is no urgency with this change and can be released at any time.

PR Checklist

  • My changes are for an already released minor and are in /versioned_docs directory.
  • My changes are for the next minor and are in /docs directory (aka /next/).

@mathias-vandaele mathias-vandaele added the hold This issue is parked, do not merge. label Sep 16, 2024
Copy link
Contributor

👋 🤖 🤔 Hello! Did you make your changes in all the right places?

These files were changed only in docs/. You might want to duplicate these changes in versioned_docs/version-8.5/.

  • docs/components/connectors/out-of-the-box-connectors/email.md

You may have done this intentionally, but we wanted to point it out in case you didn't. You can read more about the versioning within our docs in our documentation guidelines.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

prettier

[prettier] reported by reviewdog 🐶

"messageId":"VE1P191MB1101730EEA31B2FEAB320143919A2@VE1P191MB1101.EURP191.PROD.OUTLOOK.COM",
"from":"INBOX",
"to":"TEST"


[prettier] reported by reviewdog 🐶

- `Unseen emails will be sync`: A process instance is created for every unseen email present in the folder at the
time the connector starts.
- `No initial sync. Only new emails`: The connector skips past emails and starts listening for new emails arriving
in the folder.
- `All emails will be sync`: A process instance is created for every email in the folder, regardless of their read
status, when the connector starts.


[prettier] reported by reviewdog 🐶

- `Mark as read after processing`: Emails that have been processed will be marked as read.
- `Do nothing`: No action will be taken on processed emails.
- `Delete after processing`: Emails that have been processed will be deleted from the folder.
- `Move to another folder after processing`: Processed emails will be moved to another specified folder.
- `Folder`: Indicates the destination folder where emails will be moved after processing. A new folder or folder
hierarchy
can be specified using a dot-separated path (e.g., 'Archive' or 'Projects.2023.January'). Non-existent folders
in the
path will be created automatically.


[prettier] reported by reviewdog 🐶

"messageId":"messageId",
"fromAddresses":["example@camunda.com"],
"subject":"Urgent Test",
"size":65646,
"plainTextBody":"Hey how are you?\r\n",
"htmlBody":"<html>Hello</html>"


[prettier] reported by reviewdog 🐶

|---------------------------------------|----------------------|--------------------------------------------------------------|

@johnBgood johnBgood added the deploy Stand up a temporary docs site with this PR label Sep 16, 2024
@github-actions github-actions bot temporarily deployed to camunda-docs September 16, 2024 15:19 Destroyed
Copy link
Contributor

@johnBgood johnBgood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments only, overall great 🔥


It allows the user to connect to any SMTP, POP3 or IMAP server using the email address and the associated password.

# POP3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only H2 appears in the right menu
Screenshot 2024-09-17 at 09 56 27

their local computer, where they can be read, managed, or archived even without an internet connection. It operates on a
simple download-and-delete model, meaning emails are typically removed from the server once they are retrieved.

- `POP3 host`: the host url of the POP3 server.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General comment:
It would be great to use tables for parameters, just like in the SQL connector.
Thus you can provide the default value, example values etc.

@@ -0,0 +1,695 @@
---
id: email
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This connector doesn't appear in the left menu: "Out of the box connectors"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying to understand why

"messageId":"RandomId",
"fromAddresses":["msa@communication.microsoft.com"],
"subject":"Example",
"size":99865
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment for the connector ifself, can we return sizeInBytes instead of size?


# Prerequisites

This inbound connector only work with IMAP server.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would highlight this, maybe a warn/note component, you can find examples in other connectors docs


### Activation condition

The **Activation condition** is an optional field where you can specify a Friendly Enough Expression Language (FEEL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Friendly Enough Expression Language (FEEL)

This could be a link to the docs

subject of the incoming email matches "urgent". If this field is left blank, the process will be triggered for every
email received by the connector.

:::warning By default, the Email Inbound Connector is designed not to execute its handling strategy if it encounters an
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rendering is weird there
Screenshot 2024-09-17 at 10 10 57

:::warning By default, the Email Inbound Connector is designed not to execute its handling strategy if it encounters an
email that it cannot process, such as when the activation condition is not fulfilled. :::

To ignore messages that do not meet the activation condition and still handle the email, check the **Consume unmatched
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consume unmatched
This could be a link I guess we have it documented somewhere

@github-actions github-actions bot temporarily deployed to camunda-docs September 17, 2024 08:21 Destroyed
mathias-vandaele and others added 10 commits September 17, 2024 14:32
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

prettier

[prettier] reported by reviewdog 🐶

- `Unseen emails will be sync`: A process instance is created for every unseen email present in the folder at the
time the connector starts.
- `No initial sync. Only new emails`: The connector skips past emails and starts listening for new emails arriving
in the folder.
- `All emails will be sync`: A process instance is created for every email in the folder, regardless of their read
status, when the connector starts.


[prettier] reported by reviewdog 🐶

- `Mark as read after processing`: Emails that have been processed will be marked as read.
- `Do nothing`: No action will be taken on processed emails.
- `Delete after processing`: Emails that have been processed will be deleted from the folder.
- `Move to another folder after processing`: Processed emails will be moved to another specified folder.
- `Folder`: Indicates the destination folder where emails will be moved after processing. A new folder or folder
hierarchy
can be specified using a dot-separated path (e.g., 'Archive' or 'Projects.2023.January'). Non-existent folders
in the
path will be created automatically.


[prettier] reported by reviewdog 🐶

"messageId":"messageId",
"fromAddresses":["example@camunda.com"],
"subject":"Urgent Test",
"size":65646,
"plainTextBody":"Hey how are you?\r\n",
"htmlBody":"<html>Hello</html>"


[prettier] reported by reviewdog 🐶

|---------------------------------------|----------------------|--------------------------------------------------------------|

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

prettier

[prettier] reported by reviewdog 🐶

- `Mark as read after processing`: Emails that have been processed will be marked as read.
- `Do nothing`: No action will be taken on processed emails.
- `Delete after processing`: Emails that have been processed will be deleted from the folder.
- `Move to another folder after processing`: Processed emails will be moved to another specified folder.
- `Folder`: Indicates the destination folder where emails will be moved after processing. A new folder or folder
hierarchy
can be specified using a dot-separated path (e.g., 'Archive' or 'Projects.2023.January'). Non-existent folders
in the
path will be created automatically.


[prettier] reported by reviewdog 🐶

"messageId":"messageId",
"fromAddresses":["example@camunda.com"],
"subject":"Urgent Test",
"size":65646,
"plainTextBody":"Hey how are you?\r\n",
"htmlBody":"<html>Hello</html>"


[prettier] reported by reviewdog 🐶

|---------------------------------------|----------------------|--------------------------------------------------------------|

mathias-vandaele and others added 2 commits September 17, 2024 14:41
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot temporarily deployed to camunda-docs September 17, 2024 12:57 Destroyed
@christinaausley
Copy link
Contributor

@mathias-vandaele If you run npm run format in your terminal and commit the changes, the Prettier linting will clean up these errors for you 👍


#### Activation condition

The **Activation condition** is an optional field where you can specify a Friendly Enough Expression Language [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[all.hrefProduction] Improper link format: ' FEEL'. Please use relative URLs.

@github-actions github-actions bot temporarily deployed to camunda-docs September 17, 2024 14:23 Destroyed
Copy link
Contributor

The preview environment relating to the commit 18af859 has successfully been deployed. You can access it at https://preview.docs.camunda.cloud/pr-4307/index.html

@mesellings mesellings self-requested a review September 17, 2024 15:55
@mesellings mesellings self-assigned this Sep 17, 2024
@mesellings
Copy link
Contributor

@mathias-vandaele I can do a TW review for you 👍

@mesellings
Copy link
Contributor

@mathias-vandaele Can I commit directly to the branch, or are you still working on it? I can fix those issues for you at the same time as well if you like (the sidebar etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Stand up a temporary docs site with this PR hold This issue is parked, do not merge.
Projects
Status: 👀 In Review
Development

Successfully merging this pull request may close these issues.

4 participants