[prev in list] [next in list] [prev in thread] [next in thread]
List: swatch-users
Subject: Swatch-users digest, Vol 1 #103 - 1 msg
From: swatch-users-request () ucsb ! edu
Date: 2001-10-12 19:01:08
[Download RAW message or body]
Send Swatch-users mailing list submissions to
swatch-users@ucsb.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://ucsb.edu/mailman/listinfo/swatch-users
or, via email, send a message with subject or body 'help' to
swatch-users-request@ucsb.edu
You can reach the person managing the list at
swatch-users-admin@ucsb.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Swatch-users digest..."
Today's Topics:
1. Re: Swatch bug-report (E. Todd Atkins)
--__--__--
Message: 1
Date: Thu, 11 Oct 2001 16:58:00 -0700
From: "E. Todd Atkins" <todd.atkins@ucsb.edu>
To: Olivier Poitrey <rs-web@rhapsodyk.net>
CC: swatch-users@ucsb.edu
Subject: Re: [Swatch-users] Swatch bug-report
The project is still active though I don't get around to updating the
program as often as I would like. I hope to have version 3.0.3 out soon.
Olivier Poitrey wrote:
> Hello,
>
> I've tried to contact the swatch author for a bug report, but haven't got
> any reply. So I forward it to this list.
>
> I think that throttle option is buggy too. Had somebody success to use it ?
>
> Is this project still alive ?
>
> thx
>
> ----- Forwarded message from Olivier Poitrey <Olivier@Pas-tres.net> -----
>
> Date: Wed, 10 Oct 2001 13:52:37 +0200
> From: Olivier Poitrey <Olivier@Pas-tres.net>
> To: todd.atkins@ucsb.edu
> Subject: Swatch bug-report
>
> Hello,
>
> I've try you script and I love it. But a bug in the 3.0.2 and last snapshot
> (20010522) prevent me to use it with the "mail" action.
>
> My configuration file was :
>
> watchfor /patern/
> mail address=user1@domain:user2@domain,subject=my subject
>
> and --dump-script got this :
>
> if (/patern/) {
> send_email(' ADDRESSES' => "user1@domain:user2@domain", 'MESSAGE' => "$_", \
> 'SUBJECT' => "my subject", ); next;
> }
>
> Be aware of the space between ' and A of ADDRESS. This made swath to ignore
> my parameters and to send mail to default adresse who is the user that lauch
> the script.
>
> After a little investigation in the source, I found the bug, its in the
> "read_config" function. At line 532 (from swatch snapshot 20010522), you
> can see this line :
>
> ($val = substr($_, length($key))) =~ s/^\s*=\s*//;
>
> You have to replace by this one :
>
> ($val = substr($_, length($key))) =~ s/^\s*=\s*|^\s+//;
>
>
> The problem come from your following test :
>
> if (/\s*=\s*/) {
>
> that search for action constructed like
>
> echo=random
>
> but it also match
>
> mail addresses=email...
>
>
> hope that help, and thanx for this great script :)
>
> best regards
>
> PS: sorry for my poor english
>
>
--
Todd Atkins
Network Security Coordinator
UCSB/Office of Information Technology
Voice: (805) 893-5077 Fax: (805) 893-5051
http://www.oit.ucsb.edu/~eta
--__--__--
_______________________________________________
Swatch-users mailing list
Swatch-users@ucsb.edu
http://ucsb.edu/mailman/listinfo/swatch-users
End of Swatch-users Digest
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic