Bug 2284 - Claws doesn't check local mboxs if the network is down
Summary: Claws doesn't check local mboxs if the network is down
Status: NEW
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.7.6
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2010-10-18 14:59 CEST by Carsten Senger
Modified: 2014-09-03 09:09 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Senger 2010-10-18 14:59:24 CEST
I use claws with only for one local mbox (/var/mail/<username>). If eth0 is down (`ifconfig eth0 down`) If I check the mailbox I don't get incoming mail. There is no error message. The network protocol and claws.log list:

[14:34:14] * message: NetworkManager: Netzwerk ist offline.

which is correct of cause, but network is not required to check the mailbox.

(For me it's unfortune cause I turn of eth0 during development quite often and use a local mail server to catch all outgoing mails and deliver them to the local mbox).
Comment 1 Ricardo Mones 2014-09-02 17:36:58 CEST
Somehow related: it also happens if you're working off-line and try to get mail from a local account only. Claws Mail asks for going on-line, though is really not necessary.

The check for network should probably be buried more deeper where the protocol is already known to need network or not, not at the higher level (inc.c:inc_acount()).
Comment 2 Abhay S. Kushwaha 2014-09-03 07:03:13 CEST
I would disagree somewhat please.

"Online" and "Offline" should be application properties and would indicate whether Claws-Mail will retrieve mail or not -- whether locally or over network.

Network Manager should ideally disallow over-network mail retrieval if network is down but in online mode, should still allow local mailbox updates/checking.

Offline should prohibit mail retrieval completely.

I understand it's convenient to link network with online/offline since that's the 99 percentile use case, however, since many people check mail without going over network and because Claws-Mail allows that paradigm, there should be a separation of online/offline and auto network disablement through Network Manager.

Thus, asking if Claws-Mail should go "Online" to retrieve local mail when Claws-Mail is "Offline" is perfectly fine in my book since that effectively takes care of those instances where people have not configured Network Manager to tell Claws-Mail when to go "Offline" as well.

My 2p. :D
Comment 3 Ricardo Mones 2014-09-03 09:09:58 CEST
(In reply to comment #2)
> I would disagree somewhat please.
> 
> "Online" and "Offline" should be application properties and would indicate
> whether Claws-Mail will retrieve mail or not -- whether locally or over
> network.

Online and Offline are network related, as the dialog clearly states:

“Claws Mail needs network access in order to get mails”

That's simply not true for local mailboxes.

> Network Manager should ideally disallow over-network mail retrieval if
> network is down but in online mode, should still allow local mailbox
> updates/checking.

That's unrelated and NM is not a required piece of software to run Claws Mail.

> Offline should prohibit mail retrieval completely.

Should be named differently for doing that.

> I understand it's convenient to link network with online/offline since
> that's the 99 percentile use case, however, since many people check mail
> without going over network and because Claws-Mail allows that paradigm,
> there should be a separation of online/offline and auto network disablement
> through Network Manager.

You want an option to allow that, and that's fine, but don't try to change
the meaning of Online/Offline to match your option. As said before they're network related not retrieval related, and saying network access is needed to retrieve mail from a local mailbox is false. That's a bug to be fixed.

> Thus, asking if Claws-Mail should go "Online" to retrieve local mail when
> Claws-Mail is "Offline" is perfectly fine in my book since that effectively
> takes care of those instances where people have not configured Network
> Manager to tell Claws-Mail when to go "Offline" as well.

That current bug is convenient to you doesn't make a feature of it ;)