Closed Bug 267522 Opened 20 years ago Closed 19 years ago

IMAP Sent folder fails

Categories

(Thunderbird :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: busby, Assigned: mscott)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Thunderbird version 0.8 (20040913)

I have three IMAP accounts added to Thunderbird, the default being
busby@edoceo.com.  When I send a mail the configuration says to copy it to the
Sent folder on my IMAP server (I _need_ this feature).  However when it tries to
copy to Sent on the server it will fail with this message: "There was an error
copying the message to the Sent folder. Retry?".  Then TB tells me the message
was  sent (indeed it was) but not copied to my Sent folder.

Reproducible: Always
Steps to Reproduce:
1.  Create IMAP account
2.  Configure to use Sent and Trash on the IMAP server
3.  Sent mail, ti will fail

Actual Results:  
It fails!  I get the error and no message are in my Sent folder.

Expected Results:  
Should have copied the mail into my IMAP Sent folder.

The IMAP server is my own, I can look in the logs and don't see an issue on that
end.
I am having this same problem, with Courier-IMAP as the server.

This is from an Ethereal dump:

Request: 2 append "INBOX.INBOX^Sent Items" {369}
Response: 2 NO [TRYCREATE] Must create mailbox before append

this is from the prefs.js file:

user_pref("mail.identity.id1.fcc_folder", "imap://my_username@my_smtpserver/Sent
Items");

Thunderbird is appending an extra INBOX to the name of the folder.

Just more information if this helps anyone, Courier-IMAP stores everything under
INBOX, there are no other root-level folders allowed. So, I in the server
properties I have "IMAP server directory" set to "INBOX/". That way all the
folders don't look like subfolders of Inbox. This has worked off-and-on in past
builds all the way back to 0.4 or so when I started using Thunderbird.
I also have this problem (with Thunderbird 1.0 and I had it as well with Mozilla
1.7.x): There is an extra "INBOX." leading to "Must create mailbox before append". 

See log below:

0[274a50]: considering playing queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/ensureExists>.INBOX.sent-mail
0[274a50]: creating protocol instance to play queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/ensureExists>.INBOX.sent-mail
0[274a50]: playing queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/ensureExists>.INBOX.sent-mail
2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:ProcessCurrentURL: entering
2052[24c1428]:
24b3240:imap.domains.lycos.com:S-INBOX:ProcessCurrentURL:imap://kai%40bolay%2Ede@imap.domains.lycos.com:993/ensureExists%3E.INBOX.sent-mail:
 = currentUrl
2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:SendData: 350 list ""
"INBOX.sent-mail"

2052[24c1428]: ReadNextLine [stream=2514e78 nb=47 needmore=0]
2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:CreateNewLineFromSocket: *
LIST (\HasNoChildren) "." "INBOX.sent-mail"

2052[24c1428]: ReadNextLine [stream=2514e78 nb=24 needmore=0]
2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:CreateNewLineFromSocket:
350 OK LIST completed.

2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:SendData: 351 subscribe
"INBOX.sent-mail"

2052[24c1428]: ReadNextLine [stream=2514e78 nb=27 needmore=0]
2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:CreateNewLineFromSocket:
351 OK Folder subscribed.

0[274a50]: queuing
url:imap://kai@bolay.de@imap.domains.lycos.com:993/appendmsgfromfile>^INBOX^^sent-mail
0[274a50]: considering playing queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/appendmsgfromfile>^INBOX^^sent-mail
0[274a50]: creating protocol instance to play queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/appendmsgfromfile>^INBOX^^sent-mail
0[274a50]: failed creating protocol instance to play queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/appendmsgfromfile>^INBOX^^sent-mail
0[274a50]: considering playing queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/appendmsgfromfile>^INBOX^^sent-mail
0[274a50]: creating protocol instance to play queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/appendmsgfromfile>^INBOX^^sent-mail
0[274a50]: playing queued
url:imap://kai@bolay.de@imap.domains.lycos.com:993/appendmsgfromfile>^INBOX^^sent-mail
2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:ProcessCurrentURL: entering
2052[24c1428]:
24b3240:imap.domains.lycos.com:S-INBOX:ProcessCurrentURL:imap://kai%40bolay%2Ede@imap.domains.lycos.com:993/appendmsgfromfile%3E%5EINBOX%5E%5Esent-mail:
 = currentUrl
2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:SendData: 352 append
"INBOX.INBOX^^sent-mail" (\Seen) {1652}

2052[24c1428]: ReadNextLine [stream=2514e78 nb=54 needmore=0]
2052[24c1428]: 24b3240:imap.domains.lycos.com:S-INBOX:CreateNewLineFromSocket:
352 NO [TRYCREATE] Must create mailbox before append
Karl and/or Kai, could you attach your prefs.js? What do you have your online
server sub-directory set to, and what's the personal namespace set to?
Attached file My prefs.js
(In reply to comment #3)

> Karl and/or Kai, could you attach your prefs.js? 

Certainly!

 > What do you have your online server sub-directory set to, and what's the  
 > personal namespace set to?

Courier puts all folders under "INBOX", so the "IMAP Server Directory is set to
"INBOX." (without the quotes) and "personal namespace" is set to "INBOX." (this
time with the quotes!). "Allow server to override these namespaces" is set.

Hope this helps.

BTW: I have access to the server side as well, so if there's anything else I
can do to help squash this bug please let me know.
Kai, I think your problem is in your specification of your sent mail folder.  If
you go into the account settings, copies and folders, for that account, where
does it say to put the sent folder? It should say Sent mail on ...

In particular, this pref value:

user_pref("mail.identity.id1.fcc_folder",
"imap://kai%40bolay.de@imap.domains.lycos.com/INBOX/sent-mail");

should be "imap://kai%40bolay.de@imap.domains.lycos.com/sent-mail"

I thought we had this all taken care of - did you set up your fcc pref specially
to point to INBOX/sent-mail?


(In reply to comment #5)

 > Kai, I think your problem is in your specification of your sent mail folder.  

It turns out it was...

 > If you go into the account settings, copies and folders, for that account, 
 > where does it say to put the sent folder?

"Other" was checked and the drop-down showed "kai@bolay.de". That was obviously
incorrect. I used the drop down and selected "sent-mail on kai@bolay.de" and now
it works fine.

 > I thought we had this all taken care of - did you set up your fcc pref  
 > specially to point to INBOX/sent-mail?

No, I didn't. Maybe the setting was migrated incorrectly from Mozilla 1.7.x? I
don't know why I didn't try to re-set the Account settings earlier. I lived with
that bug for several weeks now and finally decided to debug it. 

I hoe I won't get stung by https://bugzilla.mozilla.org/show_bug.cgi?id=206408
again... Saving sent mail after it was sent with SMTP never worked well for me...
It turns out that in my namespace I had "INBOX/" and not "INBOX." so when I
changed it, it worked fine.
Reporter: According to your previous comments, I'm marking this bug as Invalid
(The problem described is not a bug).
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: