only launch and check mail when there is network connection

Bug #373277 reported by David Nielsen
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
GMail Notifier
Confirmed
Wishlist
Unassigned

Bug Description

gm-notify is only useful when there is a working network connection. Network Manager will tell you that status, it would thus make a good addition to add conditions for this in the code along with an suitable failure message.

Revision history for this message
Alexander Hungenberg (alexander-hungenberg-gmail) wrote :

well, currently gm-notify fails silently (only log to stdout) if it can't connect to the server. This is intended, because normally a user doesn't want to get interrupted every 5 minutes by a mail notifier, telling him that he can't fetch the mails... Moreover if it tries to connect but there is no network it doesn't generate any traffic.
I think it's a really minor issue that should be done when almost everything else is working ;)

Changed in gm-notify:
importance: Undecided → Wishlist
Changed in gm-notify:
status: New → Confirmed
Revision history for this message
David Nielsen (davidnielsen-deactivatedaccount) wrote :

I didn't mean disturb the user every 5 mins, Network Manager will inform the user when there is network. We do however need to warn the user when running configuration verification without network.

When there is no network you can launch and wait for NM to signal you over DBUS i believe and then start checking.

Revision history for this message
hackel (hackel) wrote :

If you really intend this to be a "highly Ubuntu integrated" mail notifier, then it needs to support this. I would imagine it's rather trivial as well, since Network Manager sends the signals via dbus. gm-notify should not try to connect over and over again (currently based on what, a timer?), even if it is silent to the user. It should only do it once, when a network connection is actually available. Then, if it tries to connect and is unable, it *should* notify the user somehow just in case there was a typo or something.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.