Bug 516210 - mutt no longer works when connecting to a IMAP server
Summary: mutt no longer works when connecting to a IMAP server
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mutt
Version: 11
Hardware: All
OS: Linux
low
urgent
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-07 12:57 UTC by Eric Goirand
Modified: 2010-06-28 14:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-06-28 14:01:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
To extract, tar xvjf mutt.debug.tjz (84.41 KB, application/octet-stream)
2009-08-15 09:22 UTC, Eric Goirand
no flags Details
gdb backtrace of mutt when mutt is blocked at 99% of mail headers (10.66 KB, text/plain)
2009-08-17 21:32 UTC, Eric Goirand
no flags Details

Description Eric Goirand 2009-08-07 12:57:16 UTC
Description of problem:

I've just reinstalled my machine from Fedora 10 x86_64 to Fedora 11 x86_64, reusing my home directory. When I use mutt to connect to my IMAP server, mutt gets blocked at 99% of the mail retrieval and stops working.

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

I'm using mutt-1.5.19-5.fc11.x86_64.rpm

How reproducible:

Always

Steps to Reproduce:
1. I set up .muttrc to connect to my IMAP server using SSL

set editor="/usr/bin/vim"
set folder="imaps://my.imap.server"
set spoolfile="imaps://my.imap.server/INBOX"
set ssl_starttls="yes"
set ssl_use_sslv3="no"
set ssl_use_tlsv1="yes"
set imap_user="eric"
set imap_authenticators="login"
set use_domain="yes"
set smtp_url="smtps://eric.server"
set from="eric"
set move=no
set ssl_ca_certificates_file="/etc/myauth/my.imap.server.pem"


2. launch mutt

it asks for the password to connect to the IMAP server, everything works fine, it connects to it.

3. mutt loads mail headers and stops at 99% of the total mails
  
Actual results:

Mutt stops loading the mail headers at 99% and is no longer answering requests

Expected results:

Mutt works as fine as it was before.

Additional info:

It's my preferred email client and always worked fine on any Fedora until this one :-((.

Comment 1 Miroslav Lichvar 2009-08-10 14:22:16 UTC
It seems to work fine here.

Can you make a backtrace in gdb? Which mail server implementation is running on the server?

Also mutt recompiled with debug might be useful. It is enabled by -d and the output is stored in ~/.muttdebug* (remove private information before attaching here).

Comment 2 Miroslav Lichvar 2009-08-14 12:50:06 UTC
Can you please try package from this scratch build?

http://koji.fedoraproject.org/koji/taskinfo?taskID=1605039

Comment 3 Eric Goirand 2009-08-15 09:19:47 UTC
Miroslav,

The IMAP server I'm using is cyrus-imapd-2.3.14-1.fc10.x86_64 .

I installed mutt-1.5.20-1.20090814hg.fc11.x86_64 from the link you gave to me.

I put in attachment file mutt.debug.tjz which contains .muttdebug0 (mutt -d 1) and .muttdebug1 (mutt -d 2). 

Each time mutt server stops at 99% and I need to kill it to stop it.

Comment 4 Eric Goirand 2009-08-15 09:22:05 UTC
Created attachment 357531 [details]
To extract, tar xvjf mutt.debug.tjz

Contains .muttdebug0, output of mutt -d 1, and .muttdebug1, output of mutt -d 2

Comment 5 Miroslav Lichvar 2009-08-17 12:37:42 UTC
It looks like it's caused by four messages for which the server returns "no longer exists". Unfortunately I couldn't reproduce it with cyrus-imapd here.

Can you please attach gdb backtrace when it's hung?

- install debuginfo package (http://koji.fedoraproject.org/koji/getfile?taskID=1605041&name=mutt-debuginfo-1.5.20-1.20090814hg.fc11.x86_64.rpm)
- gdb /usr/bin/mutt pid
- bt

Comment 6 Eric Goirand 2009-08-17 21:32:23 UTC
Created attachment 357714 [details]
gdb backtrace of mutt when mutt is blocked at 99% of mail headers

I installed mutt-debuginfo and performed the gdb backtrace when mutt is blocked at 99% of mail headers loading, file gdb-bt.txt is the output of it.

Comment 7 Miroslav Lichvar 2009-08-18 13:03:55 UTC
Ok, I think I have a fix for this, please try this build:

http://koji.fedoraproject.org/koji/taskinfo?taskID=1611923

Comment 8 Eric Goirand 2009-08-18 13:26:14 UTC
I installed mutt-1.5.20-1.20090814hg.fc11.1.x86_64 and mutt-debuginfo-1.5.20-1.20090814hg.fc11.1.x86_64 .

I started mutt again and is killed by a segmentation fault :
Fetching message headers... 3370/3378 (99%)Segmentation fault

Comment 9 Miroslav Lichvar 2009-08-18 15:03:08 UTC
Upstream bug filed at http://dev.mutt.org/trac/ticket/3316

Comment 10 Eric Goirand 2009-11-26 15:06:28 UTC
Hi Miroslav,

Any news from the mutt upstream project ?

I tried it with Fedora 12 and it has the same behavior, nothing changed :-(, I can no longer read my emails and still need to connect to a F10 machine to do that.

Do you think I should change my IMAP server ? 

I don't understand what happens in it that creates the problem in Mutt. Would you have any insight of what could be wrong in it ? Maybe I can correct the problem in cyrus-imapd to solve the Mutt problem.

Cheers,
Eric.

Comment 11 Miroslav Lichvar 2009-11-27 09:01:04 UTC
There were no updates yet.

The problem is the "message * no longer exists" response. I think if the cyrus cache where the headers are stored was recreated, it would work again.

Comment 12 Eric Goirand 2009-12-01 15:45:12 UTC
Thanks to what you explained, I reconstructed the cyrus indexes of the user mailboxes with the following command for each ${user} :
   # /usr/lib/cyrus-imapd/reconstruct -r user.${user}

Then I tried again mutt and it worked fine again :-).

Many thanks Miroslav, I think there is now a correct way to solve the problem every time.

Comment 13 Bug Zapper 2010-04-28 09:36:25 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 14 Bug Zapper 2010-06-28 14:01:40 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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