Jakob Grießmann schreef:
Hello,
the vacation module of Sieve works fine for me, but the sender name (From Header) is always the e-mail address. I'm unable to add a name here. I'd love to have my realname in the From: field.
Did I miss something? :-) No, you tripped a bug.
The following script should have yielded the desired result: -- require "vacation"; vacation :from "Stephan Bosch <stephan@rename-it.nl>" "I am off to Hawaii"; -- However, the header constructed by Dovecot looks as follows: From: <Stephan Bosch <stephan@rename-it.nl>> Most mail servers will reject this, drop it, or dump it in a frozen queue somewhere. This bug is/was present in both the CMU Sieve and new Sieve plug-in. In case you are using the CMU Sieve plug-in, a patch against the v1.1 version is attached. The change is very trivial and should be easy to backport to the v1.0 version. For the new Sieve plug-in, the bug is fixed in the Mercurial repository and it will therefore be fixed in the upcoming release. Timo, could you apply this fix to the dovecot-sieve-1.0/1.1 repositories? Regards, -- Stephan Bosch stephan@rename-it.nl diff -r cac988cd3e7d src/sieve-cmu.c --- a/src/sieve-cmu.c Fri Oct 03 19:52:34 2008 +0300 +++ b/src/sieve-cmu.c Sun Dec 21 17:38:26 2008 +0100 @@ -749,7 +749,7 @@ fprintf(f, "Date: %s\r\n", message_date_create(ioloop_time)); fprintf(f, "X-Sieve: %s\r\n", SIEVE_VERSION); - fprintf(f, "From: <%s>\r\n", src->fromaddr); + fprintf(f, "From: %s\r\n", src->fromaddr); fprintf(f, "To: <%s>\r\n", src->addr); fprintf(f, "Subject: %s\r\n", str_sanitize(src->subj, 80)); if (md->id) fprintf(f, "In-Reply-To: %s\r\n", md->id);