[Dovecot] How can i get original mail subject in sieve vacation?
Hi, all.
I want to mix some new words and original mail subject as vacation subject, how can i get original mail subject in sieve vacation?
Original subject: Hello. Vacation subject: Auto-Reply msg: Hello. ^^^^^ New ^^^^^ ^Orig^
Thanks very much.
-- Best Regards.
Zhang Huangbin
- iRedMail: Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x: http://iRedMail.googlecode.com/
On Sun, 2008-07-13 at 03:41 +0800, Zhang Huangbin wrote:
Hi, all.
I want to mix some new words and original mail subject as vacation subject, how can i get original mail subject in sieve vacation?
Original subject: Hello. Vacation subject: Auto-Reply msg: Hello. ^^^^^ New ^^^^^ ^Orig^
Yes, this would be a nice feature. But currently it's hard coded, so you can't do it without modifying sources. Hopefully it is/will be implemented in Stephan Bosch's Sieve rewrite: http://hg.rename-it.nl/dovecot-libsieve/
On Sun, 2008-07-13 at 03:41 +0800, Zhang Huangbin wrote:
Hi, all.
I want to mix some new words and original mail subject as vacation subject, how can i get original mail subject in sieve vacation?
Original subject: Hello. Vacation subject: Auto-Reply msg: Hello. ^^^^^ New ^^^^^ ^Orig^
Yes, this would be a nice feature. But currently it's hard coded, so you can't do it without modifying sources. Hopefully it is/will be implemented in Stephan Bosch's Sieve rewrite: http://hg.rename-it.nl/dovecot-libsieve/ . Yes, the new Sieve implementation supports this behavior. This is a typical case of the new variables extension to the rescue. The following
Timo Sirainen wrote: script shows a tested example of how this would be achieved:
require "variables"; require "vacation";
set "subject" ""; if header :matches "subject" "*" { set "subject" "${1}"; }
vacation :subject "Auto-Reply msg: ${subject}" text: Hello,
I am currently on vacation. I'll be gone for six weeks and during that time I am conveniently unreachable.
Cheers,
Stephan Bosch . ;
Regards,
-- Stephan Bosch stephan@rename-it.nl
Stephan Bosch wrote:
Yes, the new Sieve implementation supports this behavior. This is a typical case of the new variables extension to the rescue. The following script shows a tested example of how this would be achieved:
vacation :subject "Auto-Reply msg: ${subject}" text:
This is really what i want, Good Job, Stephan.
Thanks for your great work. :)
-- Best Regards.
Zhang Huangbin
- iRedMail: Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x: http://iRedMail.googlecode.com/
Timo Sirainen wrote:
On Sun, 2008-07-13 at 03:41 +0800, Zhang Huangbin wrote:
Hi, all.
I want to mix some new words and original mail subject as vacation subject, how can i get original mail subject in sieve vacation?
Original subject: Hello. Vacation subject: Auto-Reply msg: Hello. ^^^^^ New ^^^^^ ^Orig^
Yes, this would be a nice feature. But currently it's hard coded, so you can't do it without modifying sources. Hopefully it is/will be implemented in Stephan Bosch's Sieve rewrite: http://hg.rename-it.nl/dovecot-libsieve/
Thanks for your reply. :)
-- Best Regards.
Zhang Huangbin
- iRedMail: Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x: http://iRedMail.googlecode.com/
participants (3)
-
Stephan Bosch
-
Timo Sirainen
-
Zhang Huangbin