diff --git a/email-filters.html b/email-filters.html new file mode 100644 index 0000000..5a90eec --- /dev/null +++ b/email-filters.html @@ -0,0 +1,166 @@ + + +
+ + +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.
+Here are just a few of the things you can do with Sieve:
+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: + +
modules[]=sievefilters #For cypht 1.4.x +CYPHT_MODULES="sievefilters" #For cypht 2.0.x+ 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. + +
+ To create a Sieve filter in Cypht follow these steps: +
+ ++ And there you go: 😄Enjoy filters with Cypht. +
+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: +
require ["fileinto", "imap4flags", "notify"]; + +# Set variables +set "boss_email" "boss@example.com"; + +# 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:your-email@example.com"; +}+ +
+ The following are some examples of Sieve filters that you can use in Cypht: +
# Filter out spam and unwanted emails +require ["fileinto"]; +# Move all emails from the sender "spam@example.com" to the "Spam" folder +if address :from "spam@example.com" { + fileinto "Spam"; +} ++
# Organize your inbox automatically +require ["fileinto"]; +# Move all emails from the sender "john.doe@example.com" to the "Work" folder +if address :from "john.doe@example.com" { + fileinto "Work"; +} +# Move all emails with the subject "Important" to the "Important" folder +if header :subject "Important" { + fileinto "Important"; +} ++ +