Closed Bug 83831 Opened 23 years ago Closed 23 years ago

Can't copy some messages from local mail to imap folder

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Bienvenu, Assigned: naving)

References

Details

Attachments

(1 file)

I tried to copy a local message to an imap folder and it failed, with the imap
server complaining about the format of the message. I'll investigate this.
nominating
Status: NEW → ASSIGNED
Keywords: nsbeta1
The problem is occuring in a folder which doesn't have X-Mozilla-Status lines in
the messages (not sure how this folder was generated). For some reason, this
causes us to try to send the envelope header when we append the local message to
the imap folder, which the imap server doesn't like, obviously.
I have also seen this sometimes but it is not reproducible always. The missing
mozilla status header may well be the reason. 
changing summary - this only happens on some messages.
Summary: Can't copy from local mail to imap folder → Can't copy some messages from local mail to imap folder
dup of bug 83396?

*** This bug has been marked as a duplicate of 83396 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified as dup.
Status: RESOLVED → VERIFIED
Oops! I thought that they are the same bug.
Reopening this bug based on David comments from bug 83396....
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
how likely do you think this is to happen?  Your comments make it sound like
it's rare.  
I have seen this off and on and may have the culprit message in one of my local
folders. 
reassigning to self.
Assignee: bienvenu → naving
Status: REOPENED → NEW
I have seen couple of error msg from the imap server:
i) message contains invalid header
ii) message has no header/body separator. 

but upon rebuilding the msf file if we copy the same header we don't get error
message. The important thing here is if we are copying a header that does 
i or ii we should make sure the copystate is cleared, this does not happen 
when we are copying multiple messages because we abort the copy. 

patch coming up to continue copying next message even if any one of them fails 
inbetween.
Attached patch proposed fixSplinter Review
requesting review from david. 
please explain the fix - are the changes in both files required?
Yes, the changes are required. In protocol code we need to relax the condition 
so that the next message can be copied. Also we don't need to update the count
in the destination folder if the copy did not succeed. 
Blocks: 83396
Navin, so these messages that are failing are valid messages that work correctly
when the local (or is it IMAP) .msf file is recreated?
when local.msf is recreated. 
david need review here also.
r=bienvenu
sr=mscott
fix checked in so that bad things (like not clearing copystate) do not happen.

Status: NEW → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
was this trunk only?  I am going through verifying bugs fixed on the trunk 
(with the possibility of going in on the branch later), do I need to verify 
this now, or can it wait?
yes, this was trunk only. It is not a contender for branch. 
sure thing. copying a msg without X-Mozilla-Status line in it works.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: