By the way is there a possible debugging mode or a logging facility for sieve?<br>I found a method "notify", which seems to do the things I want in theory, but if I install it as a sieve script, nothing happens for this method?
<br><br>My script:<br><br>if allof (address :contains ["From","FROM"] "<a href="http://extspec.com">extspec.com</a>") { <br> fileinto "Other Users.SharedFolder";
<br> notify :method "mailto:<a href="mailto:developers@ourdomain.de">developers@ourdomain.de</a>" <br> :message "$from$ / $subject$ / $text$"; <br> keep;
<br>} <br><br>the fileinto is working, but notify does nothing!<br><br>Regards Walter<br><br><br><br><br><div><span class="gmail_quote">On 6/22/06, <b class="gmail_sendername">
Walter Willmertinger</b> <<a href="mailto:willmis@gmail.com">willmis@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Thank you for the fast answer, this redirection is working.<br><br>But as I think it over, I had another idea which I realized with procmail before changing to cyrus.<br>The idea was to put a copy of the mail to a shared folder, and notify the users of this copy.
<br>(This was because the sent mails have most time quite large attachments!)<br><br>So we with procmail I generated a small mail to a group of users: "Hello there is new mail from <a href="http://extspec.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
extspec.de
</a> accessible in the shared folder concerning ... <subject of real mail>...!"<br>Then I redirected the mail to the user imapshared which kept the mail in a shared folder!<br>The problem was when I tried it with sieve that I did not find the way to generate a small mail with a subject
<br><br>Sounds complicated but with procmail its just this little script:<br>-------------- BEGIN ---------------------- <br>:0 c
<br>* ^From:.*<a href="http://extspec.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">extspec.de</a> <br>* ^Subject:[ ]*\/..*
<br>| ( \
<br>echo "Subject: New mail from EXTSPEC:$MATCH"; \ <br>echo "To: <a href="mailto:developers@ourdomain.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
developers@ourdomain.de</a>"; \
<br>echo "Attention"; \ <br>echo "New mail arrived from EXTSPEC"; \ <br>echo "mail was stored in #Shared Folder Extspec-Mails"; \
<br>echo "-- " \ <br>) | $SENDMAIL -oi <a href="mailto:developers@ourdomain.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
developers@ourdomain.de</a> <br>-------------- END ----------------------
<br>
<br>So the question is can I redirect also to a shared folder --> I have found this. It is working with<br>---------- BEGIN ------------------------
<br>require "fileinto"; </div><div><span class="q"><br> <br>if allof (address :contains ["From","FROM"] "
<a href="http://extspec.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
extspec.de</a>") { <br></span></div><div> fileinto "Other Users.ExtspecMail"; <br> redirect "<a href="mailto:developers@ourdomain.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
developers@ourdomain.de</a>"; <br>
keep; <br>} <br>----------- END -----------------------------------<br><br>But in this sieve script the mail is filed in a shared folder, but still the whole mail is redirected to the other users.
<br>Still missing is the topic about the new mail to be sent!<br>Some Idea???<br><br>Regards Walter</div><div><span class="e" id="q_10bfb3e162f2c608_3"><br><br><br><br><br><div><span class="gmail_quote">On 6/22/06, <b class="gmail_sendername">
Sylvain MEDEOT</b> <<a href="mailto:symedeot@yahoo.fr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">symedeot@yahoo.fr</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Walter Willmertinger a écrit :<br>> I am new to Cyrus and used until now UW4-Imap with postfix and procmail.<br>> I need to redirect mails from a special external domain (say all mail
<br>> from "<a href="http://extspec.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">extspec.de</a> <<a href="http://extspec.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://extspec.de</a>>") to a group of users in our domain.<br>> Before using cyrus, I did this wirh procmail and procmailrc. Now I use
<br>> cyrus with postfix.<br>> /etc/postfix/main.cf: mailbox_transport = cyrus<br>><br>> Now I read some documents about sieve, but I found no recipe how to<br>> redirect mails from a special receiver (domain) to a group of users in
<br>> our local domain.<br>> Can somebody give me a hint?<br>><br>> Regards<br>><br>> Walter<br>><br>Hi,<br><br>Here is what I am using...<br><br>if allof (address :contains ["From","FROM"] "
<a href="http://extspec.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">extspec.de</a>") {<br> redirect "<a href="mailto:myuserlist@mylocaldmain.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
myuserlist@mylocaldmain.de</a>";<br>}<br><br>Hope it helps...<br><br>Sylvain<br>-----BEGIN PGP SIGNATURE-----
<br>Version: GnuPG v1.4.3 (GNU/Linux)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://enigmail.mozdev.org</a><br><br>
iD4DBQFEmlwNG2qHcr4CDdkRAqP9AJdNp8KgU3txAItC1YMJHx0339u1AJ0R0pc3<br>A6YFjIBquFlWASsocy/kBw==
<br>=O7uk<br>-----END PGP SIGNATURE-----<br><br><br><br><br>___________________________________________________________________________<br>Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
<br><a href="http://fr.mail.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://fr.mail.yahoo.com</a><br><br></blockquote></div><br><br clear="all"><br></span></div><div><span class="sg">
-- <br>MfG<br><br>Walter Willmertinger
<br>Auenstr. 22<br>82194 Groebenzell<br>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>MfG<br><br>Walter Willmertinger<br>Auenstr. 22<br>82194 Groebenzell<br>