Bug 1070429 - [email/IMAP] premature saving leads to missing bodies

Looks like the `var i = 0`needs to be restored to this function, otherwise the outer i is used, and it will not be set to 0 to start, so that when `var header = headers[i++]` is used, things might get wonky.