Bug 2883 - IMAP server accessed while sending news
Summary: IMAP server accessed while sending news
Status: RESOLVED WONTFIX
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: NNTP (show other bugs)
Version: 3.9.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2013-02-27 13:12 UTC by Nick Booker
Modified: 2013-02-28 13:42 UTC (History)
2 users (show)

See Also:


Attachments
Screenshot of account preferences (56.79 KB, image/png)
2013-02-28 11:37 UTC, Nick Booker
no flags Details
Output of claws-mail --debug (anonymised) (15.60 KB, text/x-log)
2013-02-28 11:39 UTC, Nick Booker
no flags Details

Description Nick Booker 2013-02-27 13:12:20 UTC
When I post news from an NNTP account on claws, it also tries to access my IMAP server, and fails to send the news posting if it can't contact the IMAP server.

Example scenario

What I do
=========

IMAP server: mail.example.org
Private news server: news.example.org

The servers are independent so we can post information about either of them being down, and use the other for other communication, if one of them is down.

mail.example.org is offline for whatever reason - perhaps it's being rebooted to apply kernel updates.

Try to post a news posting to mycompany.infrastructure.announce specifying that the mail server is being rebooted to apply updates.

What I expect to happen
=======================

News posting gets posted to the mycompany.infrastructure.announce newsgroup without errors, as it's an independent server to the IMAP server.

What really happens
===================
Dialogue box saying the IMAP server couldn't be contacted.

click 'View Log':
'connection refused' message in the network log regarding connection to the IMAP server.

Sorry can't post exact messages as my mail server has since come back up and the log messages have scrolled off the top of the network log.



Any thoughts?
Comment 1 Daniel Mota Leite 2013-02-27 22:17:11 UTC
Are you using sent/draft/outbox folders in the nntp configuration?

if not, can you run claws with --debug to see what it is doing
Comment 2 Nick Booker 2013-02-28 11:35:44 UTC
No nothing is ticked in the Account Preferences dialogue box under Advanced->Folders.

I'll attach relevant logs next.
Comment 3 Nick Booker 2013-02-28 11:37:11 UTC
Created attachment 1239 [details]
Screenshot of account preferences
Comment 4 Nick Booker 2013-02-28 11:39:53 UTC
Created attachment 1240 [details]
Output of claws-mail --debug   (anonymised)

I added a load of extra blank lines just before clicking the Send button.  Note this is of a successful news posting, not a run that fails because it can't see the IMAP server.
Comment 5 Paul 2013-02-28 11:57:00 UTC
It seems that you are queuing your message before sending.

In this case, when you click 'Send queued messages', Claws will scan all queues for messages, including an imap queue, so that it will send all queued messages.

If you only want to send from a particular queue, right click the queue folder and choose 'Send queue'.
Comment 6 Nick Booker 2013-02-28 12:26:02 UTC
There isn't a queue folder visible under the news account though.  Just the newsgroups.

Is there a way to get the NNTP account to skip the queue and send straight away?
Comment 7 Paul 2013-02-28 12:30:30 UTC
Are you confirming that you are not using 'Send later' from the compose window?
Comment 8 Nick Booker 2013-02-28 13:13:50 UTC
Yes I most definitely click the 'Send' button.
Comment 9 Paul 2013-02-28 13:32:42 UTC
When you send a message in Claws it is temporarily put in the Queue folder during the sedning procedure. It sounds liek you have an NNTP account and an IMAP account and no MH mailboxes, so therefore it uses your IMAP account's Queue folder.

This is done as a precaution against losing messages during sending in the event of an error during sending. As you can imagine, it would be much worse for someone to lose their message completely, say, due to a disconnected network, than this current issue.

To avoid using your IMAP Queue folder you could, for example, add an MH mailbox and use its Queue folder for your NNTP account.
Comment 10 Nick Booker 2013-02-28 13:37:53 UTC
Created MH mailbox.  Nothing in logs about accessing IMAP when posting on NNTP now.  Much better, thanks for all your help.

Note You need to log in before you can comment on or make changes to this bug.