If an attempt is made to view a headers-only message that does not exist on the IMAP server, the following exception is thrown, instead of a graceful error message.
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-to-number(nil)
vm-imap-get-uid-message-size(#<process IMAP> "32723")
byte-code()
vm-fetch-imap-message([[#<marker at 18943891 in INBOX> #<marker at 18943924 in INBOX> #<marker at 18948229 in INBOX> #<marker at 18948446 in INBOX> #<marker at 18948446 in INBOX> #<marker at 18948447 in INBOX>] ["4814" "4814" nil #<marker at 434924 in INBOX Summary> #<marker at 435045 in INBOX Summary> <<>> <-- From_ "19693" #<buffer INBOX> 0 (<20101010155335\.8142\.58870\.malonedeb@soybean\.canonical\.com>) nil nil nil nil [... ... "quoted-printable" nil nil nil nil #<marker at 18944684 in INBOX> #<marker at 18948445 in INBOX> #<marker at 18948446 in INBOX> #<marker at 18948446 in INBOX> nil <<c>> <<m>> nil nil nil] none #<overlay from 434924 to 435045 in INBOX Summary> imap ([[#<marker at 18968235 in INBOX> #<marker at 18968268 in INBOX> nil #<marker at 18972784 in INBOX> #<marker at 18972784 in INBOX> #<marker at 18972785 in INBOX>] ["4815" "4815" nil #<marker at 435045 in INBOX Summary> #<marker at 435166 in INBOX Summary> <<>> <-- From_ "19695" #<buffer INBOX> 1 ... nil nil nil nil nil nil #<overlay from 435045 to 435166 in INBOX Summary> imap ...] [t t t nil nil nil nil nil nil] ["4533" "Sunday" "10" "October" "2010" "19:10:24" "-0000" "Uday Reddy" "<email address hidden>" "<email address hidden>" nil "[Bug 657750] Re: saving and deleting collapsed thread shows wrong move" nil "<email address hidden>" "<email address hidden>" "10" "2010101020:10:24" "[Bug 657750] Re: saving and deleting collapsed thread shows wrong move" ... "<email address hidden>" ... nil t "32725" "1217243146" nil] [nil <v> t nil nil t]] #0)] [nil nil t nil nil nil nil nil nil] ["1088" "Sunday" "10" "October" "2010" "15:53:35" "-0000" "Uday Reddy" "<email address hidden>" "<email address hidden>" nil "[Bug 657750] [NEW] saving and deleting collapsed thread shows wrong move" "^From:" "<email address hidden>" "<email address hidden>" "10" "2010101016:53:35" "[Bug 657750] [NEW] saving and deleting collapsed thread shows wrong move" (number mark "D 10/10 To: u.s.reddy@cs. 1088 " thread-indent "[Bug 657750] [NEW] saving and deleting collapsed thread shows wrong move\n") "<email address hidden>" ("<email address hidden>") nil t "32723" "1217243146" nil] [nil <v> t nil nil t]])
byte-code()
vm-retrieve-real-message-body([[#<marker at 18943891 in INBOX> #<marker at 18943924 in INBOX> #<marker at 18948229 in INBOX> #<marker at 18948446 in INBOX> #<marker at 18948446 in INBOX> #<marker at 18948447 in INBOX>] ["4814" "4814" nil #<marker at 434924 in INBOX Summary> #<marker at 435045 in INBOX Summary> <<>> <-- From_ "19693" #<buffer INBOX> 0 (<20101010155335\.8142\.58870\.malonedeb@soybean\.canonical\.com>) nil nil nil nil [... ... "quoted-printable" nil nil nil nil #<marker at 18944684 in INBOX> #<marker at 18948445 in INBOX> #<marker at 18948446 in INBOX> #<marker at 18948446 in INBOX> nil <<c>> <<m>> nil nil nil] none #<overlay from 434924 to 435045 in INBOX Summary> imap ([[#<marker at 18968235 in INBOX> #<marker at 18968268 in INBOX> nil #<marker at 18972784 in INBOX> #<marker at 18972784 in INBOX> #<marker at 18972785 in INBOX>] ["4815" "4815" nil #<marker at 435045 in INBOX Summary> #<marker at 435166 in INBOX Summary> <<>> <-- From_ "19695" #<buffer INBOX> 1 ... nil nil nil nil nil nil #<overlay from 435045 to 435166 in INBOX Summary> imap ...] [t t t nil nil nil nil nil nil] ["4533" "Sunday" "10" "October" "2010" "19:10:24" "-0000" "Uday Reddy" "<email address hidden>" "<email address hidden>" nil "[Bug 657750] Re: saving and deleting collapsed thread shows wrong move" nil "<email address hidden>" "<email address hidden>" "10" "2010101020:10:24" "[Bug 657750] Re: saving and deleting collapsed thread shows wrong move" ... "<email address hidden>" ... nil t "32725" "1217243146" nil] [nil <v> t nil nil t]] #0)] [nil nil t nil nil nil nil nil nil] ["1088" "Sunday" "10" "October" "2010" "15:53:35" "-0000" "Uday Reddy" "<email address hidden>" "<email address hidden>" nil "[Bug 657750] [NEW] saving and deleting collapsed thread shows wrong move" "^From:" "<email address hidden>" "<email address hidden>" "10" "2010101016:53:35" "[Bug 657750] [NEW] saving and deleting collapsed thread shows wrong move" (number mark "D 10/10 To: u.s.reddy@cs. 1088 " thread-indent "[Bug 657750] [NEW] saving and deleting collapsed thread shows wrong move\n") "<email address hidden>" ("<email address hidden>") nil t "32723" "1217243146" nil] [nil <v> t nil nil t]] t)
vm-preview-current-message()
vm-scroll-forward(nil)
call-interactively(vm-scroll-forward)
The IMAP trace shows:
VM UID FETCH 32723:32723 (RFC822.SIZE)
VM OK Fetch completed.