VM

progress % indicator when downloading mail from imap server

Bug #726949 reported by mere user
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Invalid
Low
Uday Reddy

Bug Description

again something very minor which I've been planning to report for a while. when I download a somewhat larger message from the imap server the percent indicator typically goes over 100%. please see below. cheers, E

Retrieving message 1 (of 1) from seas:inbox, 67%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 68%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 69%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 70%...
Retrieving message 1 (of 1) from seas:inbox, 71%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 72%...
Retrieving message 1 (of 1) from seas:inbox, 73%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 75%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 76%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 77%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 78%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 79%... [7 times]
Retrieving message 1 (of 1) from seas:inbox, 80%...
Retrieving message 1 (of 1) from seas:inbox, 81%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 82%...
Retrieving message 1 (of 1) from seas:inbox, 83%...
Retrieving message 1 (of 1) from seas:inbox, 84%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 85%...
Retrieving message 1 (of 1) from seas:inbox, 86%... [4 times]
Retrieving message 1 (of 1) from seas:inbox, 87%... [5 times]
Retrieving message 1 (of 1) from seas:inbox, 88%...
Retrieving message 1 (of 1) from seas:inbox, 89%... [4 times]
Retrieving message 1 (of 1) from seas:inbox, 90%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 91%... [5 times]
Retrieving message 1 (of 1) from seas:inbox, 92%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 93%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 94%... [4 times]
Retrieving message 1 (of 1) from seas:inbox, 95%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 96%... [4 times]
Retrieving message 1 (of 1) from seas:inbox, 97%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 98%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 99%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 100%...
Retrieving message 1 (of 1) from seas:inbox, 101%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 102%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 104%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 105%...
Retrieving message 1 (of 1) from seas:inbox, 106%...
Retrieving message 1 (of 1) from seas:inbox, 107%... [4 times]
Retrieving message 1 (of 1) from seas:inbox, 108%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 109%... [6 times]
Retrieving message 1 (of 1) from seas:inbox, 110%... [5 times]
Retrieving message 1 (of 1) from seas:inbox, 111%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 113%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 114%... [5 times]
Retrieving message 1 (of 1) from seas:inbox, 115%...
Retrieving message 1 (of 1) from seas:inbox, 116%...
Retrieving message 1 (of 1) from seas:inbox, 117%... [5 times]
Retrieving message 1 (of 1) from seas:inbox, 118%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 119%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 120%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 121%... [4 times]
Retrieving message 1 (of 1) from seas:inbox, 122%...
Retrieving message 1 (of 1) from seas:inbox, 123%... [4 times]
Retrieving message 1 (of 1) from seas:inbox, 124%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 125%...
Retrieving message 1 (of 1) from seas:inbox, 126%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 127%...
Retrieving message 1 (of 1) from seas:inbox, 128%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 129%... [6 times]
Retrieving message 1 (of 1) from seas:inbox, 131%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 132%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 133%... [4 times]
Retrieving message 1 (of 1) from seas:inbox, 134%... [3 times]
Retrieving message 1 (of 1) from seas:inbox, 135%... [2 times]
Retrieving message 1 (of 1) from seas:inbox, 136%... [3 times]
Retrieving message 1 (of 1) from seas:inbox...done

Tags: imap
Revision history for this message
Uday Reddy (reddyuday) wrote : Re: [Bug 726949] [NEW] progress % indicator when downloading mail from imap server

mere user writes:

> Public bug reported:
>
> again something very minor which I've been planning to report for a
> while. when I download a somewhat larger message from the imap server
> the percent indicator typically goes over 100%. please see below.

I think I saw behavior like this when I first tried IMAP using Kyle
Jones's code. But I don't see it now.

One possibility is that the IMAP server is reporting wrong size for
the message. To check this, please do the following:

- put (setq vm-imap-size-debug t) in your .vm.preferences file

- put (setq vm-imap-keep-trace-buffer t) in your .vm.preferences file

- after you see some funny percentages, go to the buffer menu and find
the most recent IMAP trace buffer. The name will be something like:

  trace of IMAP ...(server) ...(time)

In the trace buffer you should see queries for SIZE as well as
information about how many bytes were received. If there is a serious
mismatch, then you know where the funny percentages come from.

I will also add some debug messages to the code to help us track this
down.

Cheers,
Uday

Uday Reddy (reddyuday)
Changed in vm:
status: New → Incomplete
importance: Undecided → Low
assignee: nobody → Uday Reddy (reddyuday)
milestone: none → 8.2.1
tags: added: imap
Revision history for this message
mere user (emacs-user) wrote : Re: [Bug 726949] [NEW] progress % indicator when downloading mail from imap server

On Tue, Mar 1, 2011 at 10:43 AM, Uday Reddy <email address hidden> wrote:
>
> - put (setq vm-imap-size-debug t) in your .vm.preferences file
> - put (setq vm-imap-keep-trace-buffer t) in your .vm.preferences file
done.

are we looking for this sort of thing?

VM OK [READ-WRITE] SELECT completed.
VM FETCH 1:1 (UID)
* 1 FETCH (UID 1058)
VM OK FETCH completed.
VM FETCH 1:1 (RFC822.SIZE)
* 1 FETCH (RFC822.SIZE 10824893)
VM OK FETCH completed.
VM FETCH 1:1 (BODY.PEEK[])
* 1 FETCH (BODY[] {14813531}
)
VM OK FETCH completed.
VM STORE 1:1 +FLAGS.SILENT (\Deleted)
VM OK STORE completed.
VM CLOSE
VM OK CLOSE completed.
VM LOGOUT
* BYE Microsoft Exchange Server 2010 IMAP4 server signing off.
VM OK LOGOUT completed.

Revision history for this message
mere user (emacs-user) wrote :

On Tue, Mar 1, 2011 at 10:43 AM, Uday Reddy <email address hidden> wrote:

> One possibility is that the IMAP server is reporting wrong size for
> the message.

http://support.microsoft.com/kb/191504

Revision history for this message
Uday Reddy (reddyuday) wrote : Re: [Bug 726949] [NEW] progress % indicator when downloading mail from imap server

mere user writes:

> VM FETCH 1:1 (RFC822.SIZE)
> * 1 FETCH (RFC822.SIZE 10824893)
> VM OK FETCH completed.
> VM FETCH 1:1 (BODY.PEEK[])
> * 1 FETCH (BODY[] {14813531}

As you can see, this is the server's fault. It initially reported
10.8 MB as the RFC822.SIZE, but then sent 14.8 MB when asked for the
BODY. Microsoft Exchange severs have tons of problems...

Anyway, I have now changed the VM code so that it doesn't show
percentages higher than 100% because they look silly.

Cheers,
Uday

Revision history for this message
Uday Reddy (reddyuday) wrote :

mere user writes:

>
> http://support.microsoft.com/kb/191504

There you have it! You should complain to your server
administrators.

Cheers,
Uday

Changed in vm:
status: Incomplete → Invalid
milestone: 8.2.1 → 8.2.0b
Revision history for this message
mere user (emacs-user) wrote : Re: [Bug 726949] [NEW] progress % indicator when downloading mail from imap server
Download full text (5.1 KiB)

see, university's fault for the second time in a row, I think we see a
pattern here... :)

On Wed, Mar 2, 2011 at 4:18 AM, Uday Reddy <email address hidden> wrote:
> mere user writes:
>
>>
>> http://support.microsoft.com/kb/191504
>
>
> There you have it!  You should complain to your server
> administrators.
>
> Cheers,
> Uday
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/726949
>
> Title:
>  progress % indicator when downloading mail from imap server
>
> Status in VM (View Mail) for Emacs:
>  Invalid
>
> Bug description:
>  again something very minor which I've been planning to report for a
>  while.  when I download a somewhat larger message from the imap server
>  the percent indicator typically goes over 100%.  please see below.
>  cheers, E
>
>
>  Retrieving message 1 (of 1) from seas:inbox, 67%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 68%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 69%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 70%...
>  Retrieving message 1 (of 1) from seas:inbox, 71%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 72%...
>  Retrieving message 1 (of 1) from seas:inbox, 73%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 75%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 76%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 77%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 78%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 79%... [7 times]
>  Retrieving message 1 (of 1) from seas:inbox, 80%...
>  Retrieving message 1 (of 1) from seas:inbox, 81%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 82%...
>  Retrieving message 1 (of 1) from seas:inbox, 83%...
>  Retrieving message 1 (of 1) from seas:inbox, 84%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 85%...
>  Retrieving message 1 (of 1) from seas:inbox, 86%... [4 times]
>  Retrieving message 1 (of 1) from seas:inbox, 87%... [5 times]
>  Retrieving message 1 (of 1) from seas:inbox, 88%...
>  Retrieving message 1 (of 1) from seas:inbox, 89%... [4 times]
>  Retrieving message 1 (of 1) from seas:inbox, 90%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 91%... [5 times]
>  Retrieving message 1 (of 1) from seas:inbox, 92%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 93%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 94%... [4 times]
>  Retrieving message 1 (of 1) from seas:inbox, 95%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 96%... [4 times]
>  Retrieving message 1 (of 1) from seas:inbox, 97%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 98%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 99%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 100%...
>  Retrieving message 1 (of 1) from seas:inbox, 101%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 102%... [2 times]
>  Retrieving message 1 (of 1) from seas:inbox, 104%... [3 times]
>  Retrieving message 1 (of 1) from seas:inbox, 105%...
>  Retrieving message 1 (of 1) fro...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.