On 2009-12-08, Peter Wiersig <pe...@friesenpeter.de> wrote: > On Sun, Dec 06, 2009 at 03:19:56PM +0100, Ionel Mugurel Ciobica wrote: >> >> I would like to make that automatic. Before I go and write procedures >> for this I am asking if someone already did this, so I don't need to >> reinvent the wheel. The shell from witch mutt runs knows about >> $REMOTEHOST. I also use ssh-agent, so no need to worry about passwords >> and stuff. > > Only shortcut I can come up with is that you can pipe the attachment > to "ssh u...@localmachine cat > file-in-homedir.ext" when your agent > knows a key that can open the connection to the localmachine.
You could write a shell script that uses sshfs to mount the remote directory and then "view" the file with whatever. http://en.wikipedia.org/wiki/SSHFS http://fuse.sourceforge.net/sshfs.html -- Grant Edwards grante Yow! The FALAFEL SANDWICH at lands on my HEAD and I visi.com become a VEGETARIAN ...