Closed Bug 10813 Opened 25 years ago Closed 25 years ago

Regression: Copy to Sent does not work

Categories

(MailNews Core :: Backend, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: fenella, Assigned: rhp)

Details

Linux 8.5 build non-Necko (1999-07-28-15 m9)
1. Prefs50.js file contains 1 pop and 1 news server
2. Compose a message and click Send
3. Send message was sent out but...
4. Check the Sent folder, sent message was NOT copied to the Sent folder
5. Exit/restart, the sent message was still NOT copied to the Send folder
This is a Regression to the M8 build
Per Ester, this occurs to the Win32 also.
Sorry, Esther, I mis-spell your name
Copy to Sent does not work on Imap either, but it is not a regression.
Assignee: phil → rhp
reassigning to rhp.  Rich, if this turns out to be a dup of bug 10344, please
mark it as such.
Status: NEW → ASSIGNED
Under investigation...until we can get error prompts hooked up, it would be
useful for bug reports like this to have the contents of the DOS/Linux command
window for review.

- rhp
Target Milestone: M9
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
I tested this on Win32 and Linux with profiles that have 3 or more servers and
they all seemed to work.

Make sure you have setup the fcc pref in your prefs file:

The prefs for various folders are:

// QueueForLater (Outbox)
mail.default_sendlater_uri

// SaveAsDraft (Drafts)
mail.default_drafts_uri

// SaveAsTemplate (Templates)
mail.default_templates_uri

// SaveInSentFolder (Sent) -  nsMsgDeliverNow
mail.default_fcc_uri

// SaveInNewsSentFolder
mail.default_newsfcc_uri

- rhp
FYI: For "Copy to Sent Folder" to work, Rich stated that these are the prefs to
use. The entries that will change are the "account", "server" and "foldername".
They are in the form of "account@server/foldername". I tried these on NT4 and it
works on Win32.

IMAP
user_pref("mail.default_fcc_uri", "imap://qatest33@nsmail-5/Sent");

POP
user_pref("mail.default_fcc_uri", "mailbox://qatest20@nsmail-2/Sent");
I try it
POP:
user_pref("mail.default_fcc_uri", "mailbox://qatest20@nsmail-2/Sent");
on a 1pop and 1 news prefs50.js file on Linux, it does not copy to sent.
Also, it crashes apprunner, please refer to bug 11221
I forgot to mention I used Linux (1999-08-03-08 M9)
Status: RESOLVED → REOPENED
Linux (1999-08-11-01 M9)
This bug still exist on Linux
Resolution: WORKSFORME → ---
I am seeing this on Windows release build also. 1999-08-11-09-M9.
not sure...unless something got fixed after the builds were done this morning,
this is working for me.

- rhp
Could this be a release vs. debug build type of bug?
I guess I should clarify my comments. I don't see this on my win32 build, but I
did see this on the Linux build. The problem seems to be that I am not getting
the completion callback from the SMTP send operation.

- rhp
Status: REOPENED → ASSIGNED
I was seeing this problem on Peter's Linux machine yesterday with yesterday's
build, but with a fresh build on Win32 and Linux, I don't see the problem. Can
you make sure that this still exists when today's build comes out?

Thanks!

- rhp
Ignore Suresh's comments for Win32, he didn't have the fcc pref in.  We put it
in today and a copy went to his Sent folder.  I think this is linux only again.
have you verified on linux today?
Linux (1999-08-12-01 M9)
POP: yes.  I tried it.  It copies to the Sent Folder. But I had to
exit/re-launch in order for it to show up in the Sent folder.  Esther tries it,
the same result.
IMAP: No.  It does not work even when I exit/re-launch.
Rich, I figured it our why it doesn't work for linux. That is because you're
using platform dependent NS_LINEBREAK for your temp rfc822 message file. You
have to use CRLF instead to generate the canonical RFC822 message. Go change all
NS_LINEBREAK into CRLF and NS_LINEBREAK_LEN to 2. And it will just work. I am
betting two dollars for it.
Cool...will try it right now!

- rhp
Linux (1999-08-13-08 M9)
In addition to commented dated 8/12, I found that in today's build, Copy to Sent
does not work when posting to news either.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Thanks to help from jefft, I think we have a fix for this now. I just checked
in a change that should address the problem in the next builds.

- rhp
QA Contact: lchiang → esther
Build 1999081608M9: Linux/Redhat 6.0

Question: When are the prefs necessary and when are they not?

1. Using the pref:
`user_pref("mail.default_fcc_uri", "mailbox://qatest32@tintin/Sent");`

- Mail messages were saved to the Sent folder.
- News messages were saved to the Sent folder.

2. Tried using the news pref, mail.default_newsfcc_uri, and pointed it to a
different folder (i.e. qatest32 folder). I was expecting my news message to be
copied to the qatest32 folder but instead it went to the Sent folder. It doesn't
appear that the news pref made a difference.

3. I can Save As Draft without using a special pref.

4. I can Save As Template without using a special pref.
1. Using the pref:
`user_pref("mail.default_fcc_uri", "mailbox://qatest32@tintin/Sent");`

- Mail messages were saved to the Sent folder.
- News messages were saved to the Sent folder.

   **** True....news pref is not implemented yet.



2. Tried using the news pref, mail.default_newsfcc_uri, and pointed it to a
different folder (i.e. qatest32 folder). I was expecting my news message to be
copied to the qatest32 folder but instead it went to the Sent folder. It
doesn't
appear that the news pref made a difference.

 **** True....news pref is not implemented yet.

3. I can Save As Draft without using a special pref.
4. I can Save As Template without using a special pref.

****  If you don't specify a pref, it will find the first available
Draft/Template folder by scanning through your servers and use that.

- rhp
Status: RESOLVED → VERIFIED
Build 1999081608M9: Win32, Linux/Redhat 6.0

The original problem in this bug is that "Copy to Sent folder for POP is not
working". This issue has been fixed on Win32 and Linux. It remains a problem on
the Mac which is documented in bug# 12000. I spoke with Esther and for these
reasons we are closing this bug.

Also, this bug mentions prefs that have not been implemented yet. Should I write
Feature bugs to keep track of these options when they are enabled?

// QueueForLater (Outbox)
mail.default_sendlater_uri

// SaveAsDraft (Drafts)
mail.default_drafts_uri

// SaveAsTemplate (Templates)
mail.default_templates_uri

// SaveInNewsSentFolder
mail.default_newsfcc_uri
Yes, if [Feature] bugs don't already exist for those features, go ahead and
write them.  All feature bugs have [Feature] in the summary.
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.