Re: Sieve - Cyrus

2005-01-07 Thread sc2
hello
i did take a look in the sieve and websiev ..but where is ther ethe 
"generall" setting for siev like in procmail /etc/procmailrc (for all users)
thx 

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


SEARCH with UW-IMAP and Cyrus-IMAP

2005-01-07 Thread Kevin Maguire
Hi
I have copied a folder full of messages from a UW-IMAP server to a
Cyrus IMAP server.  If I use search from my client (Thunderbird on
Linux), I get different results for the same search against the folder
on the 2 servers.  I show the log of both sessiosn, (I checked by
telnet  143 to verify it wasn't a client issue)
What I am misunderstanding about the IMAP protocol here, or the Cyrus
implementation, if anything?  RFC 2060 + 3501 say:
6.4.4.  SEARCH Command
  In all search keys that use strings, a message matches the key if
  the string is a substring of the field.  The matching is case-
  insensitive.
Note that my search string was "oneforall" and, as I see it, should
only match one message (#215, returned by both servers).  However the
closely related string "one for all" appears in the other messages
returned from cyrus-imap but not from uw-imap.  Is it helpfully doing
a "fuzzy" search for me?  Is it allowed to do that without me asking?
Cheers,
Kevin
telnet uw-imaphost 143
Trying 134.171.7.20...
Connected to xxx.xxx.xxx.xxx (x.x.x.x).
Escape character is '^]'
001 LOGIN me "password"
001 OK [CAPABILITY IMAP4REV1 LITERAL+ IDLE NAMESPACE MAILBOX-REFERRALS BINARY 
UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User me 
authenticated
002 SELECT some_folder
* 1153 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1059734472] UID validity status
* OK [UIDNEXT 1589] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent 
flags
002 OK [READ-WRITE] SELECT completed
003 SEARCH 1:* TEXT "oneforall"
* SEARCH 215
003 OK SEARCH completed
004 LOGOUT
* BYE xxx.xxx.xxx.xxx IMAP4rev1 server terminating connection
004 OK LOGOUT completed
Connection closed by foreign host.
telnet cyrus-imaphost 143
Trying x.x.x.x...
Connected to xxx.xxx.xxx.xxx (x.x.x.x).
Escape character is '^]'.
* OK xxx.xxx.xxx Cyrus IMAP4 v2.2.10-Invoca-RPM-2.2.10-3.fc3 server ready
001 LOGIN me "password"
001 OK User logged in
002 SELECT some_folder
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* 1153 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1104914260]
* OK [UIDNEXT 1154]
003 SEARCH 1:* TEXT "oneforall"
* SEARCH 61 62 189 215
003 OK Completed (4 msgs in 0.110 secs)
004 LOGOUT
* BYE LOGOUT received
004 OK Completed
Connection closed by foreign host.
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: SEARCH with UW-IMAP and Cyrus-IMAP

2005-01-07 Thread Ken Murchison
Kevin Maguire wrote:
Hi
I have copied a folder full of messages from a UW-IMAP server to a
Cyrus IMAP server.  If I use search from my client (Thunderbird on
Linux), I get different results for the same search against the folder
on the 2 servers.  I show the log of both sessiosn, (I checked by
telnet  143 to verify it wasn't a client issue)
What I am misunderstanding about the IMAP protocol here, or the Cyrus
implementation, if anything?  RFC 2060 + 3501 say:
6.4.4.  SEARCH Command
  In all search keys that use strings, a message matches the key if
  the string is a substring of the field.  The matching is case-
  insensitive.
Note that my search string was "oneforall" and, as I see it, should
only match one message (#215, returned by both servers).  However the
closely related string "one for all" appears in the other messages
returned from cyrus-imap but not from uw-imap.  Is it helpfully doing
a "fuzzy" search for me?  Is it allowed to do that without me asking?
The Cyrus SEARCH engine ignores whitespace as part of its charset 
translation (it is my understanding that whitespace has no meaning in 
some/all of the far east languages) and therefore will give you some 
false positives.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Sieve notify implementation

2005-01-07 Thread Paul Wolstenholme
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm interested in finding more information regarding sieve notify. I 
have found an example usage:

require "notify";
if header :contains "from" "[EMAIL PROTECTED]" {
notify :message "Important message";
}
The question I have is how does the implementation work. In the notifyd 
man page, there appears to be two: mailto and zephyr.

For mailto is it as straight forward as:
notify :options "[EMAIL PROTECTED]" :message "Important"
I am also curious as to whether it is  possible to insert portions of 
the original message:

notify :options mailto:[EMAIL PROTECTED] :message "New message in your
shared folder.\r\nFROM: $from$ \r\nSubject: $subject$ \r\n"
Regarding zephyr, I'm even more clueless. If someone has an example 
sieve script using it that would be great.

It seems to be an older protocol not used much anymore. Ideally, I 
would like to be able to send notifications via other IMs (eg. IRC, 
ICQ, AIM, etc.). Would this require a new implementation or are there 
zephyr gateways/bridges which could be used.

Cheers,
Paul
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFB3xyb4vygjarL2QkRAuVBAJ9Ze3zmtnANdA8AQi4XKPQ2lKHVWwCfcKxU
adBbJU2WAV71HjXECzzGV3Y=
=paz3
-END PGP SIGNATURE-
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve - Cyrus

2005-01-07 Thread Jim Levie
On Fri, 2005-01-07 at 09:10, [EMAIL PROTECTED] wrote:
> hello
> i did take a look in the sieve and websiev ..but where is ther ethe 
> "generall" setting for siev like in procmail /etc/procmailrc (for all users)
> thx 
> 
There isn't the concept of a "site-wide" filter in Sieve. Each user
needs their own Sieve rules. It isn't difficult to install a standard
Sieve script for each user and that can be done after the fact or as a
part of the process of creating an email account.
-- 
The instructions said to use Windows 98 or better, so I installed
RedHat.


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Sieve - Cyrus

2005-01-07 Thread Paul Wolstenholme
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Jan 7, 2005, at 5:20 PM, Jim Levie wrote:
On Fri, 2005-01-07 at 09:10, [EMAIL PROTECTED] wrote:
hello
i did take a look in the sieve and websiev ..but where is ther ethe
"generall" setting for siev like in procmail /etc/procmailrc (for all 
users)
thx

There isn't the concept of a "site-wide" filter in Sieve. Each user
needs their own Sieve rules. It isn't difficult to install a standard
Sieve script for each user and that can be done after the fact or as a
part of the process of creating an email account.
I believe the University of Athens has released a patch that can do 
this sort of thing.


--
The instructions said to use Windows 98 or better, so I installed
RedHat.
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFB3ztB4vygjarL2QkRAjw4AJ41aLzKEUTWx0xcVeE+muEf1v796wCdETb9
lnMl+2i7G6crcc9iRSBEim4=
=d9Rj
-END PGP SIGNATURE-
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Imap+Procmail

2005-01-07 Thread Henk . Roose
[EMAIL PROTECTED] wrote:

> Hello Baltasar
> Thx 4 Answer
> Hmm now im little bit confused i did make a look into sendmail.cf and just 
> see a entry like
> (it is standart install no custom local mailer m4 entrys)
> this means procmail or?

Yes this means you are using procmail as a local mailer.

> so in fact its not possible procmail (nice filtering) + imap correct?

But it *is* possible to use procmail to deliver to the imapserver.
What you need to do is put all the filtering and spamassassin stuff
before a final catch-all that does the delivery.

Here's one way to do it:

##
## GLOBAL procmail recipes
VERBOSE=on
LOGFILE=/var/tmp/procmail.global.log

###
## Which rc files should we include
#INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER-lists.rc"
#INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER.rc"
#INCLUDERC="/usr/local/etc/cyrus/rc/$CYRUSUSER-default.rc"

###
## Set Cyrus IMAP Variables
DELIVER=/usr/local/cyrus/bin/deliver
SPAMASS=/usr/local/spamfilter/bin/spamc

:0fw
|${SPAMASS} -u cyrus
:0
|${DELIVER} -e -a $CYRUSUSER -m user.$CYRUSUSER


> i know there spamassassin etc too...and i use them but combined its a good 
> way to filter messages with are "wantet"
> 
>   $Id: local_procmail.m4,v 8.22 2002/11/17 04:24:19 ca Exp $  #
> Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, 
> S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
>A=procmail -Y -a $h -d $u

IMO it's better to kick out deliver altogether, configure sendmail to
use cyrus as your local mailer, deliver through lmtp and talk to
SA through a milter, but that's a different chapter.

HTH
-- 
Henk Roose - [EMAIL PROTECTED]
CWI - Centrum voor Wiskunde en Informatica
Centre for Mathematics and Computer Science
Amsterdam (NL)
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html