Sieve-Example:HTML Autoresponder: Difference between revisions
Appearance
Content deleted Content added
mNo edit summary |
mNo edit summary |
||
| Line 4: | Line 4: | ||
<syntaxhighlight> |
<syntaxhighlight> |
||
require ["vacation","variables"]; |
|||
require ["vacation","variables"]; |
require ["vacation","variables"]; |
||
# rule:[html auto responder reply] |
# rule:[html auto responder reply] |
||
| Line 11: | Line 12: | ||
set "subject" "${1}"; |
set "subject" "${1}"; |
||
} |
} |
||
vacation |
vacation |
||
:subject "Automatic reply with HTML information. Re ${subject}" |
:subject "Automatic reply with HTML information. Re ${subject}" |
||
:mime |
:mime "MIME-Version: 1.0 |
||
MIME-Version: 1.0 |
|||
Content-Type: text/html; charset=UTF-8 |
Content-Type: text/html; charset=UTF-8 |
||
Content-Transfer-Encoding: 7bit |
Content-Transfer-Encoding: 7bit |
||
| Line 24: | Line 24: | ||
</body> |
</body> |
||
</html> |
</html> |
||
; |
"; |
||
} |
} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
'''See below how to add this via Roundcube.''' |
|||
This will: |
This will: |
||
| Line 49: | Line 50: | ||
Roundcube has a 'wizard' or semi-WYSIWYG editor, that allows you to create filters using a form. However, for this example it won't understand all the syntax so you can't use this editor, you have to edit the sieve script by hand, Roundcube lets you do this though. |
Roundcube has a 'wizard' or semi-WYSIWYG editor, that allows you to create filters using a form. However, for this example it won't understand all the syntax so you can't use this editor, you have to edit the sieve script by hand, Roundcube lets you do this though. |
||
In Roundcube, go to Settings, Filters. |
# In Roundcube, go to Settings, Filters. |
||
# You may already have a 'Filter set' called roundcube, that's fine. |
|||
# At the bottom of the 'filter set' collumn, click the cog icon, and then 'Edit filter set' |
|||
| ⚫ | |||
| ⚫ | |||
Clicking save should say that it's updated, if you get errors, then the syntax you have won't be correct, but the example above works. |
Clicking save should say that it's updated, if you get errors, then the syntax you have won't be correct, but the example above works. |
||