[sylpheed:34075] Re: Fw: Re: Re: Two functions that does not work as expected

Jan Stępień jan at stepien.cc
Thu Jun 17 17:51:16 JST 2010


On Thu, 17 Jun 2010 10:27:09 +0200
Raphael Frey <freyraphael at lavabit.com> wrote:
> 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:
> > 
> > Hi,
> > 
> > > 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
> [1] the link to the source code file that is responsible for listening
> to the current network connection state. [2] (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
> implemented.
> 
> Best regards
> 
> Raphael
> 
> __________
> 
> 1. http://mail.gnome.org/archives/evolution-list/2010-June/msg00085.html
> 2. http://git.gnome.org/browse/evolution/tree/modules/network-manager/evolution-network-manager.c
> 3. http://mail.gnome.org/archives/evolution-list/2010-June/msg00087.html
> 4. http://mail.gnome.org/archives/evolution-list/2010-June/msg00089.html
> 

Alternatively, it can be an optional feature set using another
Sylpheed's configure flag, say --with-network-manager.

Best regards,
-- 
Jan Stępień <jan at stepien.cc>


More information about the Sylpheed mailing list