Re: IMAP and Sieve

2005-11-17 Thread loos
Em Qua, 2005-11-16 às 09:05 +, Caleb Walker escreveu:
> As far as what I have seen thus far is that using cyrdeliver out of
> procmail does not matter and sieve should still work.  Is that right? 
> If that is so, what is the "-l" for when using cyrdeliver?  If I use
> that my mail stops getting delivered.  I see in my procmail log that
> cyrdeliver -l -a  -m user. is being executed but mail is not
> put in the proper mailbox and seems to just disappear.  What am I
> missing here?

man cyrdeliver

Michel



Re: IMAP and Sieve

2005-11-16 Thread Caleb Walker
Maurits van Rees wrote:

>On Tue, Nov 15, 2005 at 07:38:26PM +, Caleb Walker wrote:
>  
>
>>I have this script:
>>
>>header :contains "List-Id" "debian-user.lists.debian.org"
>>{
>>fileinto "INBOX.Storage.Debian-User";
>>stop;
>>}
>>
>>which does not work.
>>
>>
>
>Maybe you just pasted it incorrectly, but you would need to put 'if '
>in front of the first line.  Otherwise it looks correct, but I am no
>expert.
>
>And you may need to have the following line at the start of your file.
>At least it doesn't hurt to have it:
>
>require "fileinto";
>
>  
>
As far as what I have seen thus far is that using cyrdeliver out of
procmail does not matter and sieve should still work.  Is that right? 
If that is so, what is the "-l" for when using cyrdeliver?  If I use
that my mail stops getting delivered.  I see in my procmail log that
cyrdeliver -l -a  -m user. is being executed but mail is not
put in the proper mailbox and seems to just disappear.  What am I
missing here?

BTW this is my sieve recipe:
# This script has been automatically generated by avelsieve
# (Sieve Mail Filters Plugin for Squirrelmail)
#AVELSIEVE_VERSIONYTo0OntzOjU6Im1ham9yIjtpOjE7czo1OiJtaW5vciI7aTo5O3M6NzoicmVsZWFzZSI7aTozO3M6Njoic3RyaW5nIjtzOjU6IjEuOS4zIjt9
#AVELSIEVE_CREATED1132077764
#AVELSIEVE_MODIFIED1132134157
require
["fileinto","reject","vacation","imapflags","relational","comparator-i;ascii-numeric","regex","notify"];
if
#START_SIEVE_RULEYTo3OntzOjY6ImhlYWRlciI7YToxOntpOjA7czo2OiJ0b29yY2MiO31zOjk6Im1hdGNodHlwZSI7YToxOntpOjA7czo4OiJjb250YWlucyI7fXM6MTE6ImhlYWRlcm1hdGNoIjthOjE6e2k6MDtzOjEwOiJkZWJpYW4ub3JnIjt9czo0OiJ0eXBlIjtzOjE6IjIiO3M6NjoiYWN0aW9uIjtzOjE6IjUiO3M6NjoiZm9sZGVyIjtzOjI1OiJJTkJPWC5TdG9yYWdlLkRlYmlhbi1Vc2VyIjtzOjQ6InN0b3AiO3M6Mjoib24iO30%3DEND_SIEVE_RULE
header :contains ["to", "cc"] "debian.org"
{
fileinto "INBOX.Storage.Debian-User";
stop;
}
if
#START_SIEVE_RULEYTo3OntzOjY6ImhlYWRlciI7YToxOntpOjA7czo2OiJ0b29yY2MiO31zOjk6Im1hdGNodHlwZSI7YToxOntpOjA7czo4OiJjb250YWlucyI7fXM6MTE6ImhlYWRlcm1hdGNoIjthOjE6e2k6MDtzOjIwOiJsaXN0cy5hbmRyZXcuY211LmVkdSI7fXM6NDoidHlwZSI7czoxOiIyIjtzOjY6ImFjdGlvbiI7czoxOiI1IjtzOjY6ImZvbGRlciI7czoxOToiSU5CT1guU3RvcmFnZS5DeXJ1cyI7czo0OiJzdG9wIjtzOjI6Im9uIjt9END_SIEVE_RULE
header :contains ["to", "cc"] "lists.andrew.cmu.edu"
{
fileinto "INBOX.Storage.Cyrus";
stop;
}
if
#START_SIEVE_RULEYToyOntzOjQ6InR5cGUiO3M6MToiNCI7czo2OiJhY3Rpb24iO3M6MToiMSI7fQ%3D%3DEND_SIEVE_RULE
true {
keep;
}


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IMAP and Sieve

2005-11-15 Thread Maurits van Rees
On Tue, Nov 15, 2005 at 07:38:26PM +, Caleb Walker wrote:
> I have this script:
> 
> header :contains "List-Id" "debian-user.lists.debian.org"
> {
> fileinto "INBOX.Storage.Debian-User";
> stop;
> }
> 
> which does not work.

Maybe you just pasted it incorrectly, but you would need to put 'if '
in front of the first line.  Otherwise it looks correct, but I am no
expert.

And you may need to have the following line at the start of your file.
At least it doesn't hurt to have it:

require "fileinto";

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] 
Public GnuPG key:  http://maurits.vanrees.org/var/gpgkey.asc
"Make no little plans; they have no magic to stir men's blood and
probably in themselves will not be realized. Make big plans."
---Daniel Hudson Burnham.


signature.asc
Description: Digital signature


Re: IMAP and Sieve

2005-11-15 Thread Thomas Weinbrenner
Caleb Walker wrote:
> I am not finding much info out there on Sieve but I am wondering if anyone 
> knows where my breakdown is occurring.  I am using Cyrus imap with 
> spamassassin, procmail, squirrelmail, and postfix.  I use cyrdeliver to 
> deliver mail out of procmail.  I am wondering if using cyrdeliver prevents 
> Sieve from working.  I have this script:

> header :contains "List-Id" "debian-user.lists.debian.org"
> {
> fileinto "INBOX.Storage.Debian-User";
> stop;


> which does not work.  I am not finding any errors either except those that 
> state that my user account was authenticated.  Any ideas out there?

| require "fileinto";
| 
| if header :contains "List-Id" "debian-user.lists.debian.org" {
| fileinto "INBOX.Storage.Debian-User";}

What should happen to the other Emails?

| else {
|keep ; # If you want them in your INBOX.
or
|discard ; # Drops your message silently.
| }

-- 
Thomas Weinbrenner


pgpzQ3r2jgfC6.pgp
Description: PGP signature