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

Content deleted Content added
AA-Andrew (talk | contribs)
mNo edit summary
AA-Andrew (talk | contribs)
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 text:
: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.

You can create a filter if you've not got one, but then you need to edit it manually - you click the cog at the bottom, and click 'edit filter set'
# At the bottom of the 'filter set' collumn, click the cog icon, and then 'Edit filter set'
# You can paste in the script above.

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.
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.