On Jun 24, Rocco Rutte [[EMAIL PROTECTED]] wrote:
> Hi,
> 
> * Sascha Huedepohl [02-06-24 12:12:38 +0200] wrote:
> 
>  > I think it should be possible to write a little shell script
>  > which takes the mail per STDIN, then saves it to a .tmp file
>  > and scp that file to the other machine.
> 
>  ~/bin/dieter.sh:
>  
>  #!/bin/sh
>  tee > /tmp/to-be-scped && scp /tmp/to-be-scped ...
>  rm -f /tmp/to-be-scped
> 
>  ~/.muttrc:
>  
>  macro pager ,s '|~/bin/dieter.sh'
> 
> (just as a starting point)

You can also just cat the message directly through ssh:

macro pager ,s '|ssh remote_host "cat > remote_file"'

Attachment: msg29189/pgp00000.pgp
Description: PGP signature

Reply via email to