info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh and prescript


From: Edi Weitz
Subject: Re: ssh and prescript
Date: Tue, 26 Oct 2004 08:21:40 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt)

On Tue, 26 Oct 2004 05:29:39 GMT, Jim Dishaw <jim@dishaw.org> wrote:

> Here is the scenario (and it must be a common one).  I need to
> retrieve email from a host via a SSH tunnel.  Currently I use the
> prescript keyword in my mail-sources, for example
>
>    (pop :server "localhost" :port 4747 :user "me"
>       :prescript "ssh -N -n -l %u -p 443 -L %P:mailhost:110 gateway &")
>
> Everything works--the only problem is that the SSH tunnel is not
> killed and everytime GNUS retrieves mail is starts up another SSH
> tunnel.
>
> Three questions:
>
> 1) Can the value for prescript be a lisp expression?  A cursory
> glance of mail-source.el, specifically mail-source-run-script, looks
> like it can be lisp expression.
>
> 2) Has anyone written such a beast?  I tried looking around, but I
> cannot find anything obvious.
>
> 3) Am I going the wrong way about this?

I didn't know about :PRESCRIPT but here's how I do it:

  <http://weitz.de/win/#read>

Maybe that helps,
Edi.

-- 

Lisp is not dead, it just smells funny.

Real email: (replace (subseq "spamtrap@agharta.de" 5) "edi")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]