[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Switching between on-site and on-the-road "mail" server settings
From: |
A. Filip |
Subject: |
Re: Switching between on-site and on-the-road "mail" server settings |
Date: |
Wed, 28 Mar 2012 19:15:47 -0000 |
Christian Kellermann <ckeen@pestilenz.org> wrote:
> Hi Lars,
>
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>> What's the best way to switch between the road-warrior and on-site
>>> setting?
>>
>> I don't think Gnus has anything built-in for tunnelling nnimap over ssh,
>> and smtpmail doesn't have, either. But setting up tunnelling for those
>> two from the command line is probably easy enough, I'd have thought?
>
> Setting up these tunnels is not the problem, I'd like to know how to
> easily switch the settings for these tunnels in gnus? In other words,
> how to switch between "on-site" server settings and the "tunnel
> settings".
I would suggest using shell/perl script choose between the two tunnels.
[ It should be easy for nnimap ]
If you use network-manager then you can try to switch based on text
output of "nmcli con" command.