On Thursday, August 07, 2003 Roelof Otten stated:

DK>> The external program launches an SSH tunnelling session.  See the
DK>> thread "Using SSH with TB!" for details.  I started this new
DK>> thread to focus on how the external program stuff works.

RO> Well, in that thread you mention you don't want to keep your
RO> SSH-tunnel open only when you've got an e-mail to send. I suppose you
RO> could create a batch-file that opens your SSH-tunnel, tells TB to send
RO> it's mail and close the tunnel.
RO> Only thing to remember would be that you don't send mail with TB's
RO> 'send mail' button, but by clicking the shortcut on your desktop
RO> belonging to the batch-file.

Or you could write a small script (perl?) that listens on a specific
port. When a message (email) is received on that port, it is stored,
the script forks a new process to open a SSH tunnel, the message gets
piped through, the tunnel is closed and the forked process dies. You
just need to set the SMTP (send) port of TheBat! to the port you are
listening on. You could then set the script to run as a service.

Cheers Yall
\\'
-- 
Never a lip is curved with pain that can't be kissed into smiles again.


________________________________________________
Current version is 1.62r | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to