Skip to content

Commit 262b085

Browse files
authored
Merge pull request #9 from joplin/readme
Add Readme
2 parents d048fd1 + bedf23c commit 262b085

File tree

1 file changed

+89
-2
lines changed

1 file changed

+89
-2
lines changed

README.md

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,89 @@
1-
# Email Plugin
1+
<h1 align = "center" > Email Plugin </h1>
22

3-
Many of the Joplin users are researchers or workers in different fields. Usually, the university or company deals with them via email, whether it is assignments, articles, reports, etc. So the plugin fetches and parses emails, including attachments, from different email providers by using the IMAP protocol and converts them to Joplin Notes.
3+
This plugin adds the ability to fetch email messages (including attachments) and converts them to Joplin notes in various formats, either by monitoring any `new` or `unread` messages from a specific email address or a specific mailbox, or by uploading downloaded email messages to the plugin without having to be logged in.
4+
5+
***
6+
7+
## Installing Plugin
8+
9+
- Open Joplin
10+
- Go to Tools > Options > Plugins
11+
- Search for `Email Plugin`
12+
- Click Install plugin
13+
- Restart Joplin to enable the plugin
14+
15+
***
16+
17+
## Features
18+
19+
- Monitoring and fetching any `new` or `unread` messages from a specific email address.
20+
21+
- Monitoring and fetching any `new` or `unread` messages from a specific mailbox.
22+
23+
- Send the converted message to specific notebooks and add tags to the note by using `@` or `#` in the email subject or first line of email content and then forward the email to yourself.
24+
25+
- Convert emails (including attachments) to notes without having to be logged into the plugin.
26+
27+
- Convert email messages to notes in different formats (`HTML`, `Markdown`, `Text`).
28+
29+
- Show attachments in different styles, whether they are in the form of a `Table` or `Links`.
30+
31+
***
32+
33+
## How to use
34+
35+
- ### Monitoring and fetching from a specific email address
36+
37+
- Open Email Plugin.
38+
39+
- Login to the plugin with your email address and password.
40+
41+
- Enter the email account you want to start fetching and monitoring `new` or `unread` messages from and click on the `Fetching & Monitoring` toggle.
42+
43+
- If you enter your email address in the `from` field, simply forward the email message to yourself after adding some easy syntax to the end of the email subject, or add this syntax in a new line at the beginning of the message content, and the plugin will handle the rest.
44+
45+
- **Set a note title** : Change note title by changing the subject of the email.
46+
- **Add to a notebook** : Add `@notebook` to send it to a specific notebook.
47+
- **Add tags** : Add `#tag` to organize the note with a tag.
48+
49+
> **For example**: Say you want this email located in the **joplin** and **gmail** folders and also want to add **gmail** and **email** as tags to the note. Just edit the email subject or add a new line at the beginning of the message content like this:
50+
>>Email subject: My message @**joplin** @**email** #**gmail** #**email**
51+
52+
https://user-images.githubusercontent.com/58605547/188909511-479bff3b-bb9c-42da-9d48-a29d8b22fd4b.mp4
53+
54+
- Otherwise the email messages will be in the `email messages` folder.
55+
56+
***
57+
58+
- ### Monitoring and fetching from a specific mailbox
59+
60+
- Open Email Plugin.
61+
62+
- Login to the plugin with your email address and password.
63+
64+
- Select a specific mailbox and notebook in which you want the email messages to be located and click on the `Fetching & Monitoring Mailbox` toggle.
65+
66+
***
67+
68+
- ### Upload downloaded email messages
69+
70+
- Open Email Plugin.
71+
72+
- Click on the `convert saved messages` button.
73+
74+
- Upload `.eml` format files of email messages that you want to convert to notes.
75+
76+
- Select a notebook, enter the tags, select the export options, and click on the `convert` button.
77+
78+
## Important Notes
79+
80+
- ⚠️ Make sure the email provider allows login using the original password; otherwise, use the [app password](https://support.google.com/accounts/answer/185833?hl=en#:~:text=Create%20%26%20use%20App%20Passwords).
81+
82+
- If you want to change the note format, remove attachments from the note, or change the attachments style while monitoring, go to `Tools` > `Email Plugin`.
83+
84+
- If you mention folders or tags that don't exist in Joplin, they will be created automatically.
85+
86+
- If you open the email message, the message is no longer `new` or `unread`, but you can easily mark it as unread again.
487

588
## Building the plugin
689

@@ -9,3 +92,7 @@ The plugin is built using Webpack, which creates the compiled code in `/dist`. A
992
To build the plugin, simply run `npm run dist`.
1093

1194
The project is setup to use TypeScript, although you can change the configuration to use plain JavaScript.
95+
96+
## Testing
97+
98+
To test the plugin, simply run `npm test`. The testing library used is [Jest](https://jestjs.io/).

0 commit comments

Comments
 (0)