-
Notifications
You must be signed in to change notification settings - Fork 24
/
email-filters.html
215 lines (208 loc) · 10.4 KB
/
email-filters.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Email filters</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="img/icon.ico">
<link rel="stylesheet" href="site.css">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="img/logo.svg" width="120" height="60" alt="">
</a>
<button class="navbar-toggler toggler-home" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse " id="navbarSupportedContent">
<ul class="navbar-nav ml-lg-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home <span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="features.html">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="security.html">Security</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="modules.html">Mods</a>
</li>
<li class="nav-item">
<a class="nav-link" href="license.html">License</a>
</li>
<li class="nav-item">
<!--<a class="nav-link" href="tests.html">Test</a>-->
</li>
<li class="nav-item">
<a class="nav-link" href="documentation.html">Documentation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="developers-documentation.html">DEVS-DOC </a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://unencumberedbyfacts.com" target="_blank">Blog</a>
</li>
<li class="nav-item">
<a onclick="document.getElementsByClassName('navbar-collapse')[0].style.display='none';"
class="nav-link" href="contribute.html">Contribute</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://github.com/cypht-org/cypht-website/blob/master/email-filters.html">
<img src="img/edit_icon.png" alt="Edit Icon" width="23" height="23" style="vertical-align:middle;" title="Edit this page">
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<section class="content-section container">
<h2>Email filters</h2>
<p>Cypht now supports Sieve, a powerful email filtering language that gives you complete control over your inbox. With Sieve, you can create complex filters to sort, move, delete, and flag your emails automatically. You can also use Sieve to create custom notifications and alerts.</p>
<p>One key feature of Sieve is that filters run server-side, so they work even when you are not currently logged in. However, it is important to note that your email server must support Sieve for these filters to function properly.</p>
<p>Here are just a few of the things you can do with Sieve:</p>
<hr>
<ul>
<li>
Filter out spam and unwanted emails. Sieve filters can be used to filter out spam and unwanted emails based on their sender, subject, or content.
</li>
<hr>
<li>
Organize your inbox automatically. Sieve filters can be used to automatically move or copy your emails into different folders based on their sender, subject, or content.
</li>
<hr>
<li>
Forward important emails to specific people. Sieve filters can be used to automatically forward important emails to specific people, such as your manager or your assistant.
</li>
<hr>
<li>
Sieve filters can be used to create custom notifications and alerts for important emails, such as those from your boss or clients. Unlike simply forwarding the email, these notifications and alerts can provide immediate and specific information, ensuring you stay updated without needing to sift through your inbox.
</li>
<hr>
</ul>
<br/>
<p> To get started with Sieve in Cypht, simply go to your config file (hm3.ini for Cypht 1.4.x or .env for Cypht 2.0.x) and enable the Sieve filter engine by enabling modules[ ]=sievefilters or by adding sievefilters on CYPHT_MODULES variable like:
<pre>modules[]=sievefilters #For Cypht 1.4.x
CYPHT_MODULES="sievefilters" #For Cypht 2.0.x</pre>
Once you have enabled the Sieve filter engine, you can create and manage your filters in the Filters section of the Cypht interface. You can create new filters, edit existing filters, and delete filters as needed.
</p>
<h3>How to create a Sieve filter in Cypht?</h3>
<p>
To create a Sieve filter in Cypht follow these steps:
</p>
<ul>
<li>
Go to <b>Settings</b> tab in the sidebar.<br/>Then click on <b>Filters</b> tab, select the E-mail account you want for filters and click on the "Add Filter" button.
</li>
<li>
In the "Filter name" field, enter a name for your new filter. Then, provide other details of the filter:<br>
<ul>
<li><b>Priority</b>: It defines an order value (or priority value) for your filter. Note that filters will run from the lowest to the highest priority value.</li>
<li><b>Test</b>: This will help to combine two or more conditions.</li>
</ul>
</li>
<li>
In the "Conditions section", <br>
you can add one or many conditions to your filter. You can add conditions based on the sender, subject, body, etc. Check out the <a href="documentation.html">documentation</a> page for other information.
</li>
</ul>
<br/>
<p>
And there you go: 😄Enjoy filters with Cypht.
</p>
<h3>Creating custom notifications and alerts:
</h3>
<p>You can also use Sieve to create custom notifications and alerts for important emails. For example, you could create a filter that sends you a notification every time you receive an email from your boss.
To create a custom notification or alert in Cypht, simply go to your settings and click on the "Filters" tab. Then, select the E-mail account you want for filters and click on the "Add Script" button.
In the "Filter name" field, enter a name for your new filter. In the "Filter script" field, enter your Sieve code.
In addition to the Sieve code for filtering emails, you will also need to add the following code to your filter script:
<pre>require ["fileinto", "imap4flags", "notify"];
# Set variables
set "boss_email" "[email protected]";
# Rule to match emails from your boss
if address :is "from" "${boss_email}" {
# Notify you of the new email
notify :message "You have a new email from your boss!" :options ["Important"] :method "mailto:[email protected]";
}</pre>
</p>
<h3>Some examples of Sieve filters:
</h3>
<p>
The following are some examples of Sieve filters that you can use in Cypht:
<pre># Filter out spam and unwanted emails
require ["fileinto"];
# Move all emails from the sender "[email protected]" to the "Spam" folder
if address :from "[email protected]" {
fileinto "Spam";
}
</pre>
<pre># Organize your inbox automatically
require ["fileinto"];
# Move all emails from the sender "[email protected]" to the "Work" folder
if address :from "[email protected]" {
fileinto "Work";
}
# Move all emails with the subject "Important" to the "Important" folder
if header :subject "Important" {
fileinto "Important";
}
</pre>
</p>
<h3>Related links:</h3>
<a href="http://sieve.info/">http://sieve.info/</a><br>
<a href="https://p5r.uk/blog/2011/sieve-tutorial.html">https://p5r.uk/blog/2011/sieve-tutorial.html</a><br>
<a href="https://www.fastmail.com/help/technical/sieve.html">https://www.fastmail.com/help/technical/sieve.html</a><br>
<a href="https://docs.gandi.net/en/gandimail/sieve/sieve_tutorial.html">https://docs.gandi.net/en/gandimail/sieve/sieve_tutorial.html</a>
<br/><br/>
</section>
<!--Footer section-->
<section class="footer-section" id="contact">
<div class="container text-center">
<h2>Have a suggestion or a question?</h2>
<h3>Or maybe you want to throw huge wads of cash at us? </h3>
<p>We love feedback so let us know what you think!</p>
</div>
</section>
<section class=" social-section text-center">
<div class="container">
<div class="row">
<div class="col-3 col-md-3 col-sm-12">
<p>
<span>Page on Github</span><br>
<a href="https://github.com/cypht-org/cypht-website/blob/master/email-filters.html">Edit here</a>
</p>
</div>
<div class="col-3 col-md-3 col-sm-12">
<p>
<span>Fill out an issue at Github</span><br>
<a href="https://github.com/cypht-org/cypht/issues">Submit an issue</a>
</p>
</div>
<div class="col-3 col-md-3 col-sm-12">
<p>
<span>Chat with us at Gitter</span><br>
<a href="https://gitter.im/cypht-org/community">Cypht at Gitter</a>
</p>
</div>
<div class="col-3 col-md-3 col-sm-12">
<p>
<span>Want to contribute?</span><br>
<a href="contribute.html">Cypht website contribution</a>
</p>
</div>
</div>
</div>
</section>
<script src="jquery.slim.min.js"></script>
<script src="bootstrap.bundle.min.js"></script>
</body>
</html>