<<< Date Index >>>     <<< Thread Index >>>

mutt/2226: POP sometimes tries to DELE -1



>Number:         2226
>Notify-List:    
>Category:       mutt
>Synopsis:       POP sometimes tries to DELE -1
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mutt-dev
>State:          open
>Keywords:       
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 10 11:19:11 +0200 2006
>Originator:     TAKAHASHI Tamotsu
>Release:        1.5.11 and CVS
>Organization:
http://www.momonga-linux.org/
>Environment:
OpenBSD.
POP server: InterMail (on plala.or.jp)

>Description:
Sometimes mutt mistakingly deletes POP messages
even though I haven't used "d" (delete) or "s" (save).
Sometimes it even tries to delete number "-1".
This bug appears when the POP box has around 1000 messages or more.

muttdebug snippet:
===============================================
> RETR 1076
< +OK 2613 octets
parse_parameters: `charset=iso-2022-jp'
parse_parameter: `charset' = `iso-2022-jp'
pattern.c:215: mutt_mktemp returns "/home/tamo/tmp/mutt-mutt-1001-27263-1921".
WEED is Not
Reorder: x = 0; hdr_count = 1
...
Reorder: x = 0; hdr_count = 1
pattern.c:215: mutt_mktemp returns "/home/tamo/tmp/mutt-mutt-1001-27263-1922".
WEED is Not
Reorder: x = 0; hdr_count = 1
...
Reorder: x = 0; hdr_count = 1
commands.c:114: mutt_mktemp returns "/home/tamo/tmp/mutt-mutt-1001-27263-1923".
WEED is Set
Reorder: x = 0; hdr_count = 1
...
Reorder: x = 0; hdr_count = 1
> DELE -1
< -ERR no such message.
DELE: no such message.
> QUIT
===============================================

>How-To-Repeat:

0. Press 'c'.
1. Input a POP box name.
2. Stay there to wait til the box has more than 900 messages.
3. (Timeout occurs)
4. Some messages can be lost, or mutt just tries to delete "-1".

>Fix:
Unknown - I'm trying to find, though.

At least, I suggest you use unsigned type for (*HEADER)->refno.

>Add-To-Audit-Trail:

>Unformatted: