Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Sieve-Example:HTML Autoresponder: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
(3 intermediate revisions by the same user not shown)
Sometimes you may want to sent an autoresponder, eg an out of office, or an automatic reply forwith somefurther otherinformation, reasonbut asyou awant HTMLto messagespecifically send html for some reason.
 
You can use the following sieve code as an example, to format the response:
 
<syntaxhighlight>
require ["vacation","variables"];
require ["vacation","variables"];
# rule:[html auto responder reply]
set "subject" "${1}";
}
vacation
:subject "Automatic reply with HTML information. Re ${subject}"
:mime text"MIME-Version: 1.0
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
</body>
</html>
";
}
</syntaxhighlight>
 
'''See below how to add this via Roundcube.'''
 
This will:
* Include HTML in the email
 
=== exampleExample reply:===
[[File:Html-reply.png|border]]
 
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.
# You may already have a 'Filter set' called roundcube, that's fine.
 
You# canAt createthe abottom filterof ifthe you'vefilter not gotset' onecollumn, but then you need to edit it manually - you click the cog at the bottomicon, and clickthen 'editEdit filter set'
# You can paste in the script above.
 
# 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.
You can paste in the script above.
 
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.
 
If you later edit the filter with Roundcube be sure to use the 'edit filter set' link as otherwise the code will get altered and not work.
autoreview, Bureaucrats, editor, Interface administrators, reviewer, Administrators
12,270

edits