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 30: Line 30:


This will:
This will:
* Match any incoming email
* Match any incoming email to the mailbox
* Put the subject line in to a variable
* Put the subject line in to a variable
* Reply back to the sender with a modified subject line
* Reply back to the sender with a modified subject line
Line 38: Line 38:
[[File:Html-reply.png|border]]
[[File:Html-reply.png|border]]


===Improvements===
===Improvements / Notes===


More can be done with this script, eg
More can be done with this script, eg
*you can modify it to include a multipart reply (HTML and plain text)
*you can modify it to include a multipart reply (HTML and plain text)
*you can restrict the reply to only once a day per sender, by adding :days 1 under :vacation
*you can restrict the reply to only once a day per sender, by adding :days 1 under :vacation
* You can edit the subject line and the HTML to your liking, if you add any quotes (") in the HTML then you will need to escape it by using: \" - adding images is probably going to be problematic, don't bother trying! Inline css will probably be ok.
*This WON'T include any signature, but you can add what ever HTML you like.


=Editing this in Roundcube=
=Editing this in Roundcube=
Line 52: Line 54:


You can paste in the script above.
You can paste in the script above.

You can edit the subject line and the HTML to your liking, if you add any quotes (") in the HTML then you will need to escape it by using: \" - adding images is probably going to be problematic, don't bother trying! Inline css will probably be ok.


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.

This WON'T include any signature, but you can add what ever HTML you like.


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