[ingo] Fwd: Re: Ingo and notifications.

Josef Karliak karliak at ajetaci.cz
Wed May 12 20:03:02 UTC 2010


   Hi,
   btw "sivtest -v localhost -u cyrus -a cyrus" command has this output :

S: "IMPLEMENTATION" "Cyrus timsieved v2.3.14"
S: "SASL" "LOGIN PLAIN"
S: "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation  
imapflags notify envelope relational regex subaddress copy"
S: "STARTTLS"
S: OK
C: AUTHENTICATE "LOGIN"
S: {12}
S: VXNlcm5hbWU6
Please enter your password:
C: {8+}
C: Y3lydXM=
S: {12}
S: UGFzc3dvcmQ6
C: {8+}
C: emltYTA0
S: OK
Authenticated.
Security strength factor: 0

   Script:

  1: # Sieve Filter
   2: # Generated by Ingo (http://www.horde.org/ingo/) (12.5.2010, 22:02)
   3:
   4: require ["fileinto", "imapflags", "notify"];
   5:
   6: # Spam Filter
   7: if header :comparator "i;ascii-casemap" :contains "X-Spam-Level"  
"********"  {
   8:     fileinto "INBOX.spam";
   9:     stop;
  10: }
  11:
  12: # vbms
  13: if header :comparator "i;ascii-casemap" :contains "Subject"  
"This mail is generated by VBMS"  {
  14:     addflag "\\Seen";
  15:     fileinto "INBOX.vbms";
  16:     removeflag "\\Seen";
  17:     stop;
  18: }
  19:
  20: # horde
  21: if anyof ( address :all :comparator "i;ascii-casemap" :contains  
"From" "@lists.horde.org", address :all :comparator "i;ascii-casemap"  
:contains "To" "@lists.horde.org" ) {
  22:     fileinto "INBOX.horde";
  23:     stop;
  24: }
  25:
  26: # squid
  27: if header :comparator "i;ascii-casemap" :contains "Subject"  
"[squid-users] "  {
  28:     fileinto "INBOX.squid";
  29:     stop;
  30: }
  31:
  32: # test fn
  33: if address :all :comparator "i;ascii-casemap" :contains "From"  
"@fnhk.cz"  {
  34:     notify :method "mailto" :options  
"josef.karliak at vodafonemail.cz" :message "You have received a new  
message
  35: From: $from$
  36: Subject: $subject$
  37: Rule: test fn";
  38:     stop;
  39: }
  40:
  41: # apcupsd
  42: if address :all :comparator "i;ascii-casemap" :contains "To"  
"apcupsd-users at lists.sourceforge.net"  {
  43:     fileinto "INBOX.konference_apcupsd";
  44:     stop;
  45: }
  46:


   So where is the damn bug ??? :-/

   thx.

Cituji ANANT S ATHAVALE <asa at isac.gov.in>:

> I have RHEL 5 distribution and it works fine on my system
>
> -anant.
>
> ----- Message from karliak at ajetaci.cz ---------
>     Date: Tue, 11 May 2010 11:48:06 +0200
>     From: Josef Karliak <karliak at ajetaci.cz>
>  Subject: Re: [ingo] Fwd: Re:  Ingo and notifications.
>       To: ANANT S ATHAVALE <asa at isac.gov.in>
>       Cc: ingo at lists.horde.org
>
>
>>  Hi,
>>  I use cyrus from Opensuse 11.1 x64 distribution:
>> cyrus-sasl-crammd5-2.1.22-182.2.1
>> cyrus-sasl-saslauthd-2.1.22-182.1
>> cyrus-sasl-gssapi-2.1.22-182.2.1
>> cyrus-sasl-plain-2.1.22-182.2.1
>> cyrus-imapd-2.3.14-8.1
>> cyrus-sasl-digestmd5-2.1.22-182.2.1
>> cyrus-sasl-32bit-2.1.22-182.2.1
>> cyrus-sasl-2.1.22-182.2.1
>>
>>  /etc/cyrus.conf:
>>  # this is only necessary if using notifications
>>  notify        cmd="notifyd" listen="/var/lib/imap/socket/notify"  
>> proto="udp" prefork=1
>>
>>  I think that if notifyd isn't supported in cyrus, it wil complain  
>> while starting cyrus and socket doesn't exists... Didn't it ?
>>  thanks
>>  J.K.
>>
>> Cituji ANANT S ATHAVALE <asa at isac.gov.in>:
>>
>>>
>>>
>>> ----- Forwarded message from budic at onholyground.com -----
>>>   Date: Sun, 9 May 2010 13:23:26 -0500
>>>   From: Darrell Budic <budic at onholyground.com>
>>> Subject: Re: [ingo] Ingo and notifications.
>>>     To: ANANT S ATHAVALE <asa at isac.gov.in>
>>>
>>> JK,
>>>
>>> What version of cyrus-imap are you running, and did you confirm  
>>> that it was built with notify enabled? (apparently it's not by  
>>> default, according to the docs, although it does seem to build  
>>> it), maybe your problem is there?
>>>
>>> Just FYI, I'm running the latest ingo against cyrus-imap 2.3.16 w/  
>>> notify enabled, and I have "Notify another email" as the list item  
>>> in my filter action list when defining a new rule.
>>>
>>> -Darrell
>>>
>>> On May 9, 2010, at 3:54 AM, ANANT S ATHAVALE wrote:
>>>
>>>> Dear JK,
>>>>
>>>> scriptname most probably refers to the sieve script which gets  
>>>> created in /var/lib/imap/sieve directory and hence that may not  
>>>> be a issue.
>>>>
>>>> Regards,
>>>> ANANT.
>>>>
>>>>
>>>> ----- Message from asa at isac.gov.in ---------
>>>> Date: Sun, 09 May 2010 13:53:55 +0530
>>>> From: ANANT S ATHAVALE <asa at isac.gov.in>
>>>> Subject: Re: [ingo] Ingo and notifications.
>>>>   To: Josef Karliak <karliak at ajetaci.cz>
>>>>   Cc: ingo at lists.horde.org
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> scriptname=>'ingo' is the default and I continue to use the  
>>>>> same.  We have never used squirrelmail and I do not have any  
>>>>> idea about 'phpscript'.  You may atleast check, by changing  
>>>>> phpscript to ingo, whether the options show up?
>>>>>
>>>>> -ANANT.
>>>>>
>>>>>
>>>>> ----- Message from karliak at ajetaci.cz ---------
>>>>> Date: Sun, 09 May 2010 10:18:39 +0200
>>>>> From: Josef Karliak <karliak at ajetaci.cz>
>>>>> Subject: Re: [ingo] Ingo and notifications.
>>>>>   To: ANANT S ATHAVALE <asa at isac.gov.in>
>>>>>   Cc: ingo at lists.horde.org
>>>>>
>>>>>
>>>>>> Hi,
>>>>>> OK, phpscript is from historical times (swuirrelmail). But  
>>>>>> other scripts works fine (forward email, move email do "horde  
>>>>>> folder, etc works) ...
>>>>>> Some lines from "active script"
>>>>>> 1: # Sieve Filter
>>>>>> 2: # Generated by Ingo (http://www.horde.org/ingo/) (9.5.2010, 10:16)
>>>>>> 3:
>>>>>> 4: require "fileinto";
>>>>>> 5:
>>>>>> 6: # Spam Filter
>>>>>> 7: if header :comparator "i;ascii-casemap" :contains  
>>>>>> "X-Spam-Level" "********"  {
>>>>>> 8:     fileinto "INBOX.spam";
>>>>>> 9:     stop;
>>>>>> 10: }
>>>>>> 11:
>>>>>> 12: # squid
>>>>>> 13: if header :comparator "i;ascii-casemap" :contains "Subject"  
>>>>>> "squid-users"  {
>>>>>> 14:     fileinto "INBOX.squid";
>>>>>> 15:     stop;
>>>>>>
>>>>>>
>>>>>> So do you think that it is necessary to name script? phpscript->ingo ...
>>>>>> A lot of squirrelmail users has phpscript named filters  
>>>>>> (squirrelmail), that will stop work (about 3500 emails) ...
>>>>>> Thanks.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Cituji ANANT S ATHAVALE <asa at isac.gov.in>:
>>>>>>
>>>>>>> Dear JK,
>>>>>>>
>>>>>>> I think, the value for scriptname should be 'ingo' only and  
>>>>>>> not phpscript.
>>>>>>>
>>>>>>> Regards,
>>>>>>> ANANT.
>>>>>>>
>>>>>>> ----- Message from karliak at ajetaci.cz ---------
>>>>>>> Date: Sun, 09 May 2010 10:00:20 +0200
>>>>>>> From: Josef Karliak <karliak at ajetaci.cz>
>>>>>>> Subject: Re: [ingo] Ingo and notifications.
>>>>>>> To: ANANT S ATHAVALE <asa at isac.gov.in>
>>>>>>> Cc: ingo at lists.horde.org
>>>>>>>
>>>>>>>
>>>>>>>> Hi,
>>>>>>>> I wrote my options in the creating few mails ago...
>>>>>>>> So my backends.php file contains(I don't use procmail, only  
>>>>>>>> cyrus sieve):
>>>>>>>> /* Sieve Example */
>>>>>>>> $backends['sieve'] = array(
>>>>>>>> 'driver' => 'timsieved',
>>>>>>>> 'preferred' => 'ajetaci.cz',
>>>>>>>> 'hordeauth' => full,
>>>>>>>> 'params' => array(
>>>>>>>>  // Hostname of the timsieved server
>>>>>>>>  'hostspec' => '127.0.0.1',
>>>>>>>>  // Login type of the server
>>>>>>>>  'logintype' => 'PLAIN',
>>>>>>>>  // Enable/disable TLS encryption
>>>>>>>>  'usetls' => false,
>>>>>>>>  // Port number of the timsieved server
>>>>>>>>  'port' => 2000,
>>>>>>>>  // Name of the sieve script
>>>>>>>>  'scriptname' => 'phpscript',
>>>>>>>>  //'scriptname' => 'ingo',
>>>>>>>>  // The following settings can be used to specify an administration
>>>>>>>>  // user to update all users' scripts. If you want to use an admin
>>>>>>>>  // user, you also need to disable 'hordeauth' above. You have to use
>>>>>>>>  // an admin user if you want to use shared rules.
>>>>>>>>  // 'username' => 'cyrus',
>>>>>>>>  // 'password' => '*****',
>>>>>>>> ),
>>>>>>>> 'script' => 'sieve',
>>>>>>>> 'scriptparams' => array(),
>>>>>>>> 'shares' => false
>>>>>>>> );
>>>>>>>> /* sivtest Example */
>>>>>>>> $backends['sivtest'] = array(
>>>>>>>> 'driver' => 'sivtest',
>>>>>>>> 'preferred' => 'ajetaci.cz',
>>>>>>>> 'hordeauth' => true,
>>>>>>>> 'params' => array(
>>>>>>>>  // Hostname of the timsieved server
>>>>>>>>  'hostspec' => '127.0.0.1',
>>>>>>>>  // Login type of the server
>>>>>>>>  'logintype' => 'plain',
>>>>>>>>  // Enable/disable TLS encryption
>>>>>>>>  'usetls' => false,
>>>>>>>>  // Port number of the timsieved server
>>>>>>>>  'port' => 2000,
>>>>>>>>  // Name of the sieve script
>>>>>>>>  'scriptname' => 'phpscript',
>>>>>>>>  // Location of sivtest
>>>>>>>>  'command' => '/usr/bin/sivtest',
>>>>>>>>  // name of the socket we're using
>>>>>>>>  'socket' => Horde::getTempDir() . '/sivtest.'
>>>>>>>>      . md5(uniqid(rand())) . '.sock',
>>>>>>>> ),
>>>>>>>> 'script' => 'sieve',
>>>>>>>> 'scriptparams' => array(),
>>>>>>>> 'shares' => false,
>>>>>>>> )
>>>>>>>>
>>>>>>>> All others are disabled.
>>>>>>>> Filters like moving email to another folder works, when I  
>>>>>>>> click on "Script->Show active script" I see scripts. Sieve  
>>>>>>>> script on cyrus server contains the same...
>>>>>>>> Thanks
>>>>>>>> J.K.
>>>>>>>>
>>>>>>>> Cituji ANANT S ATHAVALE <asa at isac.gov.in>:
>>>>>>>>
>>>>>>>>> Dear JK,
>>>>>>>>>
>>>>>>>>> Please re-write your question.  I did not understand.
>>>>>>>>>
>>>>>>>>> I get notification as one of the options while creating a  
>>>>>>>>> new filter.  Please show me your backends.php for Ingo.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> ANANT.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ----- Message from karliak at ajetaci.cz ---------
>>>>>>>>> Date: Fri, 07 May 2010 20:01:24 +0200
>>>>>>>>> From: Josef Karliak <karliak at ajetaci.cz>
>>>>>>>>> Subject: Re: [ingo] Ingo and notifications.
>>>>>>>>> To: ingo at lists.horde.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> In another way - where I could find notifications in the  
>>>>>>>>>> filters ? :)
>>>>>>>>>> J.K.
>>>>>>>>>>
>>>>>>>>>> Cituji ANANT S ATHAVALE <asa at isac.gov.in>:
>>>>>>>>>>
>>>>>>>>>>> I use Ingo version 1.2.3 and the option comes for me.   
>>>>>>>>>>> What version of Ingo you use?
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>> ANANT.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ----- Message from karliak at ajetaci.cz ---------
>>>>>>>>>>> Date: Thu, 06 May 2010 11:56:20 +0200
>>>>>>>>>>> From: Josef Karliak <karliak at ajetaci.cz>
>>>>>>>>>>> Subject: Re: [ingo] Ingo and notifications.
>>>>>>>>>>> To: ingo at lists.horde.org
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>> I think so. In the creating new filter rule I've in select box:
>>>>>>>>>>>> -deliver into my inbox
>>>>>>>>>>>> -deliver to folder
>>>>>>>>>>>> -delete message
>>>>>>>>>>>> -redirect to ...
>>>>>>>>>>>> -deliver into and redirect
>>>>>>>>>>>> -reject with reason
>>>>>>>>>>>>
>>>>>>>>>>>> Where is notify ? :)
>>>>>>>>>>>> Thanks.
>>>>>>>>>>>> J.K.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Cituji lst_hoe02 at kwsoft.de:
>>>>>>>>>>>>
>>>>>>>>>>>>> Zitat von Josef Karliak <karliak at ajetaci.cz>:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>> I'm maybe blind - I need to send email notification  
>>>>>>>>>>>>>> when email  arrive into my mailbox - does ingo support  
>>>>>>>>>>>>>> this sieve extension ? I  don't want to forvard whole  
>>>>>>>>>>>>>> email, I want only send notification  (with Subject or  
>>>>>>>>>>>>>> sender, etc..). I couldn't find it. Backend  timsieve  
>>>>>>>>>>>>>> is defined, other filters for manipulation with arrived  
>>>>>>>>>>>>>>  emails works good.
>>>>>>>>>>>>>> Thanks and regards :)
>>>>>>>>>>>>>> J.K.
>>>>>>>>>>>>>
>>>>>>>>>>>>> At least with recent Ingo you can create new rule with  
>>>>>>>>>>>>> action send  notify mail. Not sure if this is what you  
>>>>>>>>>>>>> looking for.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Regards
>>>>>>>>>>>>>
>>>>>>>>>>>>> Andreas
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ----------------------------------------------------------------
>>>>>>>>>>>> This message was sent using IMP, the Internet Messaging Program.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
>>>>>>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>>>>>>> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ----- End message from karliak at ajetaci.cz -----
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Regards,
>>>>>>>>>>>
>>>>>>>>>>> Anant Athavale.
>>>>>>>>>>> --
>>>>>>>>>>> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
>>>>>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>>>>>> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ----------------------------------------------------------------
>>>>>>>>>> This message was sent using IMP, the Internet Messaging Program.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
>>>>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>>>>> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ----- End message from karliak at ajetaci.cz -----
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>>
>>>>>>>>> Anant Athavale.
>>>>>>>>> --
>>>>>>>>> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
>>>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>>>> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ----------------------------------------------------------------
>>>>>>>> This message was sent using IMP, the Internet Messaging Program.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ----- End message from karliak at ajetaci.cz -----
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Anant Athavale.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ----------------------------------------------------------------
>>>>>> This message was sent using IMP, the Internet Messaging Program.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ----- End message from karliak at ajetaci.cz -----
>>>>>
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> Anant Athavale.
>>>>> --
>>>>> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>>>>>
>>>>
>>>>
>>>> ----- End message from asa at isac.gov.in -----
>>>>
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Anant Athavale.
>>>> --
>>>> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
>>>> Frequently Asked Questions: http://horde.org/faq/
>>>> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>>>
>>>
>>>
>>> ----- End forwarded message -----
>>>
>>>
>>> Regards,
>>>
>>> Anant Athavale.
>>> -- 
>>> Ingo mailing list - Join the hunt: http://horde.org/bounties/#ingo
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: ingo-unsubscribe at lists.horde.org
>>>
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>>
>>
>
>
> ----- End message from karliak at ajetaci.cz -----
>
>
>
> Regards,
>
> Anant Athavale.
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1336 bytes
Desc: Ve?ejn? PGP kl??
URL: <http://lists.horde.org/archives/ingo/attachments/20100512/92b07459/attachment.bin>


More information about the ingo mailing list