IMAP problem sending mail
Hi,
This is a peculiar problem I have been experiencing using IMAP support
with mutt. To reproduce the problem, do this:
1) Open inbox
2) Start composing mail
3) Send an email to your account (from which you are composing) using
any other email (e.g. Gmail)
4) Complete composing mail
5) Press 'y' to send out the mail
6) You will see an error like "Connection to remote server closed",
followed by "Create Mail/Sent?" [apparently mutt attempts to create a
local sent folder, whereas my sent folder is on the imap host].
Additionally, on trying to postpone the message (i.e. attempting to
save what you have typed) sometimes leads to segfault.
I reproduced this behavior with the current CVS version. I built it
with debug, and ran `mutt -d2'. The following is the snippet from
.muttdebug0, with my comments in /* */
< a0004 OK FETCH completed
imap_open_mailbox: msgcount is 79 /* Inbox is open */
send.c:1134: mutt_mktemp returns "/tmp/mutt-q1-25712-4018-1".
headers.c:47: mutt_mktemp returns "/tmp/mutt-q1-25712-4018-2".
> a0005 STATUS "Mail/Sent" (UIDVALIDITY)^M
< * 81 EXISTS
Handling EXISTS
cmd_handle_untagged: New mail in INBOX - 81 messages total.
< * 2 RECENT
< * BYE [ALERT] IMAP4rev1 server crashing: Unknown event from execution process
Handling BYE /* this seems to be the real problem */
[ALERT] IMAP4rev1 server crashing: Unknown event from execution process
> a0006 CLOSE^M
Connection to mail.cse.ohio-state.edu closed
imap_cmd_step: Error reading server response.
imap_exec: command failed:
CLOSE failed
mutt_socket_close: Attempt to close closed connection.
mutt_write_fcc(): unable to open mailbox
imaps://mail.cse.ohio-state.edu/Mail/Sent in append-mode, aborting.
sendlib.c:2367: mutt_mktemp returns "/tmp/mutt-q1-25712-4018-3".
mutt_free_body: Unlinking /tmp/mutt-q1-25712-4018-1.
mx_check_mailbox: null or invalid context.
parse_parameters: `charset=us-ascii'
parse_parameter: `charset' = `us-ascii'
read_rfc822_header(): no date found, using received time from msg separator
Thanks,
Sayantan.
--
http://www.cse.ohio-state.edu/~surs