Opened 15 years ago
Closed 15 years ago
#4495 closed bug (fixed)
MDR Silently Fails if default folders do not exist
Reported by: | Jason | Owned by: | nobody |
---|---|---|---|
Priority: | low | Milestone: | R1/alpha2 |
Component: | Servers/mail_daemon | Version: | R1/alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
Reproduction:
- Installed Haiku Alpha 1.
- Setup MDR
- Symptoms:
- Default Mail folders (inbox and out) did not exist under ~/mail
- MDR would not send email without said folders
- MDR displayed error message for ~/mail/inbox not existing
- MDR did not display error message for ~/mail/out existing
- Mail would not send without ~/mail/out folder
- Outbox mail would be created in ~/
Workaround:
- Create 'inbox' and 'out' in ~/mail if they are not created upon Alpha 1 install.
Expected MDR behavior:
- create any missing folders that exist in its configuration if the folders do not in fact exist.
- give an error message if the OUTBOX folder doesn't exist.
- NEVER put mail files in OTHER folders if the folders in the configuration do not exist.
Change History (6)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Description: | modified (diff) |
---|---|
Milestone: | R1 → R1/alpha2 |
comment:3 by , 15 years ago
Description: | modified (diff) |
---|
comment:4 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → in-progress |
comment:5 by , 15 years ago
Owner: | changed from | to
---|---|
Priority: | normal → low |
Status: | in-progress → assigned |
I can't confirm the behavior described in the original report. Draft mails seem to be stored always, there is code which checks specifically for the return code for a missing draft directory and creates the directory if missing. Perhaps this has been added after the ticket was created.
Creating the mail/out folder, or whatever other folder is configured for outgoing mail, was implemented as well. However, another bug apparently causes the configuration of the out folder not arriving at the place where sending the mail happens. I've added a fallback for this situation in hrev36490. Outgoing mails will now always be stored in ~/mail/out as a last resort.
Another curious thing is that stock Haiku images seem to already contain mail/in, mail/out and mail/drafts. I haven't found the place where these folders are created. On top of that, Mail calls it "draft", note the missing s. So after saving the first draft mail, the user will be left with mail/draft and an empty mail/drafts.
I may or may not find the time to look deeper into this, however, the problem is now much less severe.
comment:6 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The folders are created in HaikuImage, no clue why I didn't find the spot before. I've already renamed drafts to draft. Beam also calls it draft. Considering this ticket fixed.
CORRECTION: ~/Mail should read ~/mail