external script/program

2002-10-07 Thread Benjamin Schulz

hi all,

i need a solution for changing mails before sending using an external
script, because i think theres no better solution (outgoing filter
just copies the mail, instead re-getting after running the programm)
i need a daemon for windows which just gets the mail from the bat runs
the program and sends the changed mail - anyone knows a tool like
that?



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: external script/program

2002-10-07 Thread Marck D Pearlstone

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Benjamin,

@7-Oct-2002, 12:27 +0200 (11:27 UK time) Benjamin Schulz [BS] in
[EMAIL PROTECTED]">mid:[EMAIL PROTECTED] said:

BS i need a daemon for windows which just gets the mail from the
BS bat runs the program and sends the changed mail

X-Ray will do that for you - see: http://www.xrayapp.com

- --
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v1.62/Beta5 on Windows 2000 5.0.2195 Service Pack 2
'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0-nr2 (Windows 2000)

iD8DBQE9oWaGOeQkq5KdzaARAmT9AJ46pQ5Oa1EnX/ION/IDnxvrMTr2OACg0neh
RRXhkUqTdeb12gZVn/uK8tA=
=ozkH
-END PGP SIGNATURE-




Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: external script/program

2002-10-07 Thread Peter Palmreuther

On Mon, 7 Oct 2002 12:27:29 +0200
Benjamin Schulz [EMAIL PROTECTED] wrote:

 i need a solution for changing mails before sending using an external
 script, 

What part of e-mail you want to 'change'???

 because i think theres no better solution (outgoing filter
 just copies the mail, instead re-getting after running the programm)

'Outgoing' filters are actually triggered _after_ the mail is sent.

 i need a daemon for windows which just gets the mail from the bat runs
 the program and sends the changed mail - anyone knows a tool like
 that?

You might want to have a look at XRay:

http://www.xrayapp.com/
-- 
Pit


Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re[2]: external script/program

2002-10-07 Thread Benjamin Schulz

Hi Peter,

 On Mon, 7 Oct 2002 12:27:29 +0200
 Benjamin Schulz [EMAIL PROTECTED] wrote:

 i need a solution for changing mails before sending using an external
 script, 

 What part of e-mail you want to 'change'???

at the one hand i want to change some header, right, therefore xray
would be a good solution, but i want to do some textchanges, too - where
thebat's regexp and template features doesn't suffice :/



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: external script/program

2002-10-07 Thread Brano

Benjamin Schulz [BS], on Monday, October 7, 2002 at 13:09 (+0200)
contributed this to our collective wisdom in
[EMAIL PROTECTED]">mid:[EMAIL PROTECTED] :

BS at the one hand i want to change some header, right, therefore xray
BS would be a good solution, but i want to do some textchanges, too - where
BS thebat's regexp and template features doesn't suffice :/

you can use every text processor, like perl or other script language.
You will do filter for outgoing (incoming) messages, run script and
import those changed mails back. It should work :) And also with
xrayapp it is nice solution.

-- 

 ...m8s, cu l8r, Brano.

[If at first you succeed, you have no idea what you're doing.]



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re[2]: external script/program

2002-10-07 Thread Benjamin Schulz

Hi Brano,

Monday, October 7, 2002, 1:25:59 PM, you wrote:

BS at the one hand i want to change some header, right, therefore xray
BS would be a good solution, but i want to do some textchanges, too - where
BS thebat's regexp and template features doesn't suffice :/

 you can use every text processor, like perl or other script language.
 You will do filter for outgoing (incoming) messages, run script and
 import those changed mails back. It should work :) And also with
 xrayapp it is nice solution.

but that would only work if i could create a filter which runs the
programm and does not send the mail - but i found no option for that
:(
because then i had no more problems, i would create two filters:
preprocess: matches only if a special kludge or something doesn't
exists and calls my script which does it's job and adds the header
normal: matches only if the kludge exists and sends the mail



Mit freundlichen Gruessen
Best regards

-- 
Benjamin Schulz
 |- mail: [EMAIL PROTECTED]
 `- web : www.hnc.cc


There are 10 types of people: those who understand binary and
those who don't.



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: external script/program

2002-10-07 Thread Brano

Benjamin Schulz [BS], on Monday, October 7, 2002 at 13:37 (+0200)
wrote these comments in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED] :

BS but that would only work if i could create a filter which runs the
BS programm and does not send the mail - but i found no option for that

filter settings - actions - run external program
of course, you can set, when filter will be executed, just like normal
filtering (regexp and so on...)

that's it :) You will change the body, etc...and import that mail back
to THE BAT.



-- 

 ...m8s, cu l8r, Brano.

[I am Perot of Borg: Here's a chart on your assimilation.]



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re[2]: external script/program

2002-10-07 Thread Benjamin Schulz

Hi Brano,

Monday, October 7, 2002, 1:42:22 PM, you wrote:

 Benjamin Schulz [BS], on Monday, October 7, 2002 at 13:37 (+0200)
 wrote these comments in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED] :

BS but that would only work if i could create a filter which runs the
BS programm and does not send the mail - but i found no option for that

 filter settings - actions - run external program
 of course, you can set, when filter will be executed, just like normal
 filtering (regexp and so on...)

 that's it :) You will change the body, etc...and import that mail back
 to THE BAT.

and than? send it the second time? when my external program is called
the mail is already send, so, my question is: how can i set an
outgoing filter which does everything but sending the mail?

Mit freundlichen Gruessen
Best regards

-- 
Benjamin Schulz
 |- mail: [EMAIL PROTECTED]
 `- web : www.hnc.cc


There are 10 types of people: those who understand binary and
those who don't.



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re[3]: external script/program

2002-10-07 Thread Benjamin Schulz

ok, nevermind -
# Outgoing mail - These filters are invoked after messages have been
sent to the SMTP server.

:(



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html



Re: external script/program

2002-10-07 Thread Thomas F.

Hello Benjamin,

On Mon, 7 Oct 2002 13:37:36 +0200 GMT (07/10/02, 18:37 +0700 GMT),
Benjamin Schulz wrote:

BS but that would only work if i could create a filter which runs the
BS programm and does not send the mail - but i found no option for that
BS :(

Create a manual filter to which you assign a hotkey. Save the message
as draft (so it will be in the Outbox but will  not be sent
accidentally), hit the hotkey.

The filter should export the message, run the external program, and
then re-import the message. I am not sure that this can be done in ne
filter, maybe you will have to use two.

-- 

Cheers,
Thomas.

Moderator der deutschen The Bat! Beginner Liste.

The passive voice is to be avoided.

Message reply created with The Bat! 1.62/Beta1
under Chinese Windows 98 4.10 Build  A 
using an AMD Athlon K7 1.2GHz, 128MB RAM



Current version is 1.61 | Using TBUDL information:
http://www.silverstones.com/thebat/TBUDLInfo.html