"Christopher P. Lindsey" wrote:

> >    ----- Transcript of session follows -----
> > sh: cannot use | in command
> > 554 "|/home/mailman/mail/demime.pl - |/home/mailman/mail/wrapper post
> > shaka"... Service unavailable

> Yes, that's a smrsh limitation.
> 
> The only real solution is to create a script that takes input and
> pipes it to wrapper, then make that script runable by smrsh.

True.

That's the script I wrote and use (it's Perl, probably overkill)

[alessio@obi-wan bin]$ cat /usr/local/bin/demime-wrapper
#!/usr/bin/perl
 
my $cmd = join (' ','| /usr/local/bin/demime - |
/home/mailman/mail/wrapper',@ARGV);
undef @ARGV;
open WRAPPER, $cmd or die "Cannot pipe to wrapper: $!\n";
while (<>) {
  print WRAPPER;
}
---------- cut --------

and its use:
foo: "|/usr/local/bin/demime-wrapper post foo"

You have then to put a symlink to /user/local/bin/demime-wrapper in the
smrsh directory.

-- 
Alessio F. Bragadini            [EMAIL PROTECTED]
APL Financial Services          http://village.albourne.com
Nicosia, Cyprus                 phone: +357-2-755750

"It is more complicated than you think"
                -- The Eighth Networking Truth from RFC 1925

------------------------------------------------------
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

Reply via email to