Article delegate-en/3916 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Conditional FSV filter
20 Dec 2007 05:11:08 GMT Tony Gaspar <phqhqbdyi-a3dey5jxvelr.ml@ml.delegate.org>


  Hello,
   
  I have written a bi-directional filter using some of the code in the bdtee program distributed with Delegate.
   
  My command is : ./delegated P8881 v r SERVER=http FSV=program
   
  It works for text/html but pictures do not get handled correctly. 
  The pictures do not appear in the client. I dont want the program to handle
  content types other than html so I tried using CFI script but CFI script appears
  only to work with FxxSV or FxxCL filters, not FSV or FCL. Is this true or 
  would my simple script be wrong?
   
  #!cfi
  Content-Type: text/html
  Header-Filter: bdtee_orig
  Body-Filter: bdtee_orig
   
   
  Can anyone offer any help please as I have searched for ideas for the last 
  couple of days without success.
   
  Kind Regards,
   
  Tony
   
   
   
   
  This is my output and it seems that the filter program is not getting executed
  but the script is found.
   
  [tony@pacific src]$ ./delegated -P8881 -v -r SERVER=http FSV=test.cfi CACHE=do
  12/20 16:27:54.02 [25915] 0+0: -- setCredhyCache /tmp/credhy_cache128 >> /home/tony/delegate/act/credhy_cache128
  12/20 16:27:54.02 [25915] 0+0: command PATH: /usr/local/delegate/delegate_tony/src/./delegated -> /usr/local/delegate/delegate_tony/src/./delegated
  12/20 16:27:54.02 [25915] 0+0: PORT> -P8881
  12/20 16:27:54.02 [25915] 0+0: ... testing resolver[SYS] with 'WWW.DeleGate.ORG'
  12/20 16:27:54.02 [25915] 0+0: ... you can suppress this test by RES_WAIT=0
  12/20 16:27:54.03 [25915] 0+0: ... gethostname(pacific)
  12/20 16:27:54.03 [25915] 0+0: configuring default RESOLV ...
  12/20 16:27:54.03 [25915] 0+0: ... gethostname()='pacific'
  12/20 16:27:54.03 [25915] 0+0: ... SYS: pacific -> 192.168.1.85
  12/20 16:27:54.03 [25915] 0+0: {R} SOA got [168.192.in-addr.arpa][prisoner.iana.org][hostmaster.root-servers.org] 1 1800 900 604800 604800
  12/20 16:27:54.03 [25915] 0+0: ... NIS not available (no default domain)
  12/20 16:27:54.03 [25915] 0+0: ... export RES_ORDER=CFDS
  12/20 16:27:54.03 [25915] 0+0: export RESOLV=cache,file,dns,sys (set by default)
  SRCSIGN=9.8.1:20071116133944+0900:15d6dc1a45e4b7fa:Author@DeleGate.ORG:VX7LJNDQUJxF68X6SEQQLEj+Ref6c0vaq4/9ckXm0V/++UQJ3VbTlAXCc3LASPa5hSM3WOv9K485dZ4n8tl3ohwESSm2J0D4tAYrbozVj91u+vUIsASn34oQ+won7Sdq4DQuFUCx75Wn3NmGVlpbq2haENIGOHEO91iEuXeI0ow=
  BLDSIGN=9.8.1:20071214154434+1000:15d6dc1a45e4b7fa:tony@pacific:-
  12/20 16:27:54.03 [25915] 0+0: --INITIALIZATION START-07122016+1000: 9.8.1 on Linux/2.6.17-1.2142_FC4--
  12/20 16:27:54.03 [25915] 0+0: EXECDIR=/usr/local/delegate/delegate_tony/src/.
  12/20 16:27:54.03 [25915] 0+0: BINSHELL=/bin/sh
  12/20 16:27:54.03 [25915] 0+0: MAXIMA=delegated:64 for small mem=725M
  12/20 16:27:54.04 [25915] 0+0: server_open(delegate,:8881,listen=20)
  12/20 16:27:54.04 [25915] 0+0: server_open(delegate,:8881) BOUND
  12/20 16:27:54.04 [25915] 0+0: DGROOT=/home/tony/delegate^M
  12/20 16:27:54.04 [25915] 0+0: <DeleGate/9.8.1> [25915] -P8881 READY^M
  <DeleGate/9.8.1> [25915] -P8881 READY
  Config: Linux/2.6.17-1.2142_FC4; FileSize-Bits=32/64,32/32,32; sockbuf=87380/16384; sockpair=107520/107520,1002++; thread=PThread; stty=tcsetattr; fmem=725/725/1454M
  DGROOT=/home/tony/delegate
  ADMIN=tony@pacific
  AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
  Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
  Copyright (c) 2001-2006 National Institute of Advanced Industrial Science and Technology (AIST)
  BLDSIGN=9.8.1:20071214154434+1000:15d6dc1a45e4b7fa:tony@pacific:-
  12/20 16:27:54.04 [25915] 0+0: PORT= 8881/8 (34,177)
  12/20 16:27:54.04 [25915] 0+0: OWNER=nobody => OWNER=tony/tony(tony/tony)
  12/20 16:27:54.04 [25915] 0+0: REMITTABLE = http,https/{80,443},gopher,ftp,wais
  12/20 16:27:54.04 [25915] 0+0: LIBPATH: test.cfi -> /usr/local/delegate/delegate_tony/src/test.cfi
  12/20 16:27:54.04 [25915] 0+0: --- [z] 0 dglibz.so
  12/20 16:27:54.04 [25915] 0+0: --- [z] 0 libz.so.0.9.8
  12/20 16:27:54.04 [25915] 0+0: --- [/usr/lib/libz.so]
  12/20 16:27:54.04 [25915] 0+0: --- [z] 943D5A8 /usr/lib/libz.so
  12/20 16:27:54.04 [25915] 0+0: ---- [z] loaded 15 syms, unknown=0+0, already=0
  12/20 16:27:54.04 [25915] 0+0: +++ loaded Zlib 1.2.2.2
  12/20 16:27:54.04 [25915] 0+0: #### gzip/gunzip = dynamically linked
  12/20 16:27:54.04 [25915] 0+0: ADMIN=tony@pacific protocol=http(specialist)
  12/20 16:27:54.04 [25915] 0+0: MOUNT[0]X[2] /-/builtin/icons/* = default
  12/20 16:27:54.04 [25915] 0+0: MOUNT[1]X[3] /-/* = forbidden,from=!.RELIABLE,default
  12/20 16:27:54.04 [25915] 0+0: MOUNT[2]X[0] /-* = default
  12/20 16:27:54.04 [25915] 0+0: MOUNT[3]X[1] /=* = default
  12/20 16:27:54.04 [25915] 0+0: MOUNT[4]=[4] /favicon.ico builtin:icons/ysato/default.ico default,direction=fo,onerror=404,expires=15m
  12/20 16:27:54.04 [25915] 0+0: #### stack size limit = A00000 (0000000X)
  12/20 16:27:54.04 [25915] 0+0: Stay open PIDFILE for accept() lock[fd=10]
  12/20 16:27:54.04 [25915] 0+0: StickyReport[11,12]127.0.0.127:65535><127.0.0.127:65535 107520/107520 107520/107520
  12/20 16:27:54.04 [25915] 0+0: env[22] LIBPATH=.;/usr/local/delegate/delegate_tony/src;/home/tony/delegate/lib;/usr/local/delegate/delegate_tony/src/.;/home/tony/delegate/etc
  12/20 16:27:54.04 [25915] 0+0: env[24] RESOLV=cache,file,dns,sys
  12/20 16:27:54.04 [25915] 0+0: arg[4] SERVER=http
  12/20 16:27:54.04 [25915] 0+0: arg[5] FSV=test.cfi
  12/20 16:27:54.04 [25915] 0+0: arg[6] CACHE=do
  12/20 16:27:54.04 [25915] 0+0: DELEGATE_Modified[0]: 4769fcda 1198128346
  12/20 16:27:54.04 [25915] 0+0: --INITIALIZATION DONE-07122016+1000: 9.8.1 on Linux/2.6.17-1.2142_FC4--
  12/20 16:27:58.35 [25916] 1+0: -- Fork(SequentialServer): 25915 -> 25916
  12/20 16:27:58.36 [25916] 1+1: (0) accepted [19] -@[192.168.1.82]192.168.1.82:2724 (0.002s)(1)
  12/20 16:27:58.39 [25916] 1+1: IGNORE request: Keep-Alive: 300^M
  12/20 16:27:58.39 [25916] 1+1: Proxy: host=192.168.1.82; User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11; DIRECT
  12/20 16:27:58.39 [25916] 1+1: HCKA:[0] keep-alive; host=192.168.1.82; (User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11)
  12/20 16:27:58.39 [25916] 1+1: REQUEST - GET http://192.168.1.82/testfilter.htm HTTP/1.1^M
  12/20 16:27:58.39 [25916] 1+1: PATH> http://192.168.1.82:80!pacific.insfin:8881!192.168.1.82:2724!anonymous@192.168.1.82;1198128478
  12/20 16:27:58.39 [25916] 1+1: REQUEST = (no-cache)[http://192.168.1.82:80/] GET /testfilter.htm HTTP/1.1^M
  12/20 16:27:58.39 [25916] 1+1: ConnectToServer connected [18] {192.168.1.82:80 <- 192.168.1.85:41805} [0.000s]
  12/20 16:27:58.39 [25916] 1+1: willSTLS_SV: ServerFlags=10
  12/20 16:27:58.39 [25917] 1+1: -- Fork(FSV): 25916 -> 25917
  12/20 16:27:58.39 [25917] 1+1: #### execFilter[FSV] CFI
  12/20 16:27:58.39 [25917] 1+1: ## CFI/http ##
  12/20 16:27:58.39 [25916] 1+1: HTTP => (192.168.1.82:80) GET /testfilter.htm HTTP/1.1^M
  12/20 16:27:58.39 [25917] 1+1: simple_relayf [20 -> 18] = 438
   


       
---------------------------------
Make the switch to the world's best email. Get the new Yahoo!7 Mail now.

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V