Bug 1077 - sylpheed-claws does not start when IMAP server is unavailable
Summary: sylpheed-claws does not start when IMAP server is unavailable
Status: RESOLVED WONTFIX
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI (show other bugs)
Version: 2.6.0
Hardware: PC Linux
: P3 normal
Assignee: users
URL: https://bugzilla.redhat.com/bugzilla/...
Depends on:
Blocks:
 
Reported: 2006-12-09 18:26 UTC by Andreas Bierfert
Modified: 2006-12-12 21:52 UTC (History)
1 user (show)

See Also:


Attachments

Description Andreas Bierfert 2006-12-09 18:26:55 UTC
I got this report over at the fedora bugzilla but I think it better fits here:

Description of problem:
When I first start sylpheed-claws it shows a wizard to configure it. The wizzard
does not allow to use a non default port for IMAP, but my IMAP server listens on
port 10143. When I finish the wizard sylpheed-claws displays it cannot connect
to my IMAP server, which is true and then suggests that it might be some
out-of-date plugins and quits.

Error Message:
Sylpheed-Claws has detected a configured mailbox, but could not load it. It is
probably provided by an out-of-date external plugin. Please reinstall the plugin
and try again.

Since it won't start I cannot change the port of the IMAP server and therefore
it won't start.

Version-Release number of selected component (if applicable):
2.6.0-1

How reproducible:
always

Steps to Reproduce:
1. mv ~/.sylpheed-claws/  .sylpheed-claws-bak
2. run sylpheed-claws and configure it with an imap server it cannot connect
because of a wrong port
  
Actual results:
sylpheed-claws quits

Expected results:
sylpheed-claws provides a way to configure it properly / change the server
configuration when the servers cannot be reached
Comment 1 users 2006-12-11 19:06:15 UTC
Changes related to this bug have been commited.
Please check latest CVS and update the bug accordingly.
You can also get the patch from:
http://www.colino.net/claws-mail/

2006-12-11 [colin]	2.6.1cvs16

	* src/prefs_account.c
		Check for existence of inbox for local
		accounts too
	* src/wizard.c
		Allow setting the port to use for servers
		by using the usual "server.example.com:port"
		syntax. Fixes bug 1077, 'sylpheed-claws does 
		not start when IMAP server is unavailable'
Comment 2 Till Maas 2006-12-12 12:39:17 UTC
(In reply to comment #1)

>         * src/wizard.c
>                 Allow setting the port to use for servers
>                 by using the usual "server.example.com:port"
>                 syntax. Fixes bug 1077, 'sylpheed-claws does 
>                 not start when IMAP server is unavailable'

I just tested a claws-mail version with this patch applied built from Andreas. First, I am pretty impressed how fast you responded, but the bug is not fixed completely. The server:port syntax works but claws-mail still exits when the option is wrong. As I just tested, claws-mail does still start (after the wizard successfully exited once), when an account is configured but the server is not reachable, so it seems to be only a wizard problem. Additionally the configuration is not saved when the claws-mail exits because it cannot reach the server, which I can report as a extra bug, if it is not directly related to this.


Comment 3 Colin Leroy 2006-12-12 21:52:07 UTC
Yes, Claws Mail doesn't like to have no working mailbox; this is why it fails when the IMAP server is unreachable before it had a chance to get the folder tree. As it is a conceptual limitation, I don't think this corner case is worth fixing.
Comment 4 users 2006-12-12 22:54:31 UTC
Changes related to this bug have been committed.
Please check latest CVS and update the bug accordingly.
You can also get the patch from:
http://www.colino.net/claws-mail/

2006-12-12 [colin]	2.6.1cvs23

	* src/main.c
		Don't exit when there's an incomplete
		mailbox configured - leaves a chance 
		to fix a failing IMAP account. Exit
		if no mailbox at all is loaded (case
		of missing plugin).
		Completes bug 1077's fix (I was wrong
		in this bug's comment #3).

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