Forum Discussion
Richard__Harlan
Nov 18, 2005Historic F5 Account
detach command
I the docs there is a reference to the detach command but when I try to use it I get the following error.
line 20: [undefined procedure: detach] [detach]
All I am doing is typ...
Richard__Harlan
Nov 21, 2005Historic F5 Account
Ok so I added event CLIENT_ACCEPTED disable one I found a pice of data. But each time I find the data and the if statement is triggered it does a TCP::release and event CLIENT_ACCEPTED disable. But then I see the client_accepted is again run. Any help would be great. Thanks
when CLIENT_ACCEPTED {
set tcpdata ""
TCP::respond "220\r\n"
TCP::collect
log "CLIENT_ACCEPTED"
}
when CLIENT_DATA {
append tcpdata [TCP::payload]
log "$tcpdata"
switch -glob $tcpdata {
"*DATA*" {
if {$tcpdata contains "Sensitivity: Company-Confidential\r\n" } {
event CLIENT_ACCEPTED disable
TCP::release
TCP::close
pool mailhost1v
log "encript"
}
else {
TCP::respond "354 Start mail input; end with .\r\n"
log "ready for DATA"
}
}
default {
TCP::respond "250 OK\r\n"
}
}
} Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
