[sylpheed:34074] Re: Fw: Re: Re: Two functions that does not work as expected
freyraphael at lavabit.com
Thu Jun 17 17:27:09 JST 2010
On Wed, 2 Jun 2010 14:18:34 +0200
Colin Leroy <colin at colino.net> wrote:
> On Wed, 2 Jun 2010 18:37:35 +0900, Hiroyuki Yamamoto wrote:
> > I want to know how does a program get current network connection state
> > (both Linux and Windows). If it's easy to implement, I want to solve
> > the problem.
> On Linux, most people rely on NetworkManager + DBUS.
You are right. I just asked Evolution developers and they kindly sent me
 the link to the source code file that is responsible for listening
to the current network connection state.  (See also further replies.
[3,4]) Of course this method does only work with Network Manager (and
D-Bus) so this method cannot be used if you do not use Network Manager
(although I suppose that most people use Network Manager) or for the
other operation system. So probably it is better to implement the method
I suggested: Instead of doing nothing (freezing) Sylpheed could stop
looking for new mails (and sending mails) if there is no response from
the mail server for more than about ten seconds. (Additionally an option
could get implemented that lets users change this time interval.) Do you
think that it would be possible to implement such a function?
Unfortunately I do have only very basic programming skills so I am sorry
that I cannot help you by sending you concrete source code that could be
More information about the Sylpheed