[rt-users] Giving a mail source as parameter to rt-mailgate through command line

Phil Homewood pdh at snapgear.com
Mon Feb 23 19:02:43 EST 2004


Ritu Khetan wrote:
>    Is it possible to run rt-mailgate through the command line wherein
> the mail message source is passed as a parameter instead of running it
> through a MTA?

Sure. (Well, message passed on stdin, not as a parameter...)

> "/opt/rt3/bin/rt-mailgate --queue 'Myqueue' --action correspond --url
> 'http://192.168.2.3:4000/' < $string
>
> $string being the complete message source

You either want to "echo $string | rt-mailgate", or run
"rt-mailgate < messagefile". Or similar.
-- 
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh at snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - A CyberGuard Company




More information about the rt-users mailing list