For maildir format, pick a more stable name for mail files
Categories
(MailNews Core :: Database, defect)
Tracking
(Not tracked)
People
(Reporter: infinity0, Assigned: benc)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [maildir])
Attachments
(2 files, 7 obsolete files)
14.46 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
1.26 KB,
patch
|
benc
:
review+
jorgk-bmo
:
feedback+
|
Details | Diff | Splinter Review |
Comment 1•7 years ago
|
||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Assignee | ||
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
Assignee | ||
Comment 12•6 years ago
|
||
Assignee | ||
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
Assignee | ||
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
Comment 17•6 years ago
|
||
Assignee | ||
Comment 18•6 years ago
|
||
Assignee | ||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Assignee | ||
Comment 21•6 years ago
|
||
Assignee | ||
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
Comment 24•6 years ago
|
||
Comment 25•6 years ago
|
||
Assignee | ||
Comment 26•6 years ago
|
||
Assignee | ||
Comment 27•6 years ago
|
||
Assignee | ||
Comment 28•6 years ago
|
||
Comment 29•6 years ago
|
||
Comment 30•6 years ago
|
||
Assignee | ||
Comment 31•6 years ago
|
||
Assignee | ||
Comment 32•6 years ago
|
||
Assignee | ||
Comment 33•6 years ago
|
||
Comment 34•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 35•6 years ago
|
||
No changes, just rebased as it's been a while.
Try build:
Comment 36•6 years ago
|
||
Assignee | ||
Comment 37•6 years ago
|
||
Thanks, Jorg!
Minor tweakage as per your comments.
(I'm assuming new patch => new review?)
Comment 38•6 years ago
|
||
Comment 39•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/277f7d1fd552
use Message-ID as basis for maildir file names, and add ".eml" extension. r=jorgk DONTBUILD
Comment 40•6 years ago
|
||
OK, I've landed this now since the merge conflict went away after backing out bug 1491228. You'll have to do the rebasing there now, but that patch needs more work anyhow.
![]() |
||
Comment 41•6 years ago
|
||
Comment 42•6 years ago
|
||
Comment on attachment 9035808 [details] [diff] [review]
use_msgid_for_maildir_files_7.patch
Hmm, is f? a new way to attract attention? Sorry, those typos slipped the review, I'll fix it.
Comment 43•6 years ago
|
||
![]() |
||
Comment 44•6 years ago
|
||
(In reply to Jorg K (GMT+1) from comment #42)
Hmm, is f? a new way to attract attention? Sorry, those typos slipped the review, I'll fix it.
And what would be better?
Thanks for the fix, also the compiler warnings are gone (as now the intention is clearer), except this one:
comm/mailnews/local/src/nsMsgMaildirStore.cpp:66:55: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
out.AppendPrintf("%%%02x", (const unsigned char)c);
^
Either the 'const' or 'unsigned' is superfluous, c already is 'const char'.
Comment 45•6 years ago
|
||
NI would be better. Can you please attach a patch, on Windows there are no warnings. Why not make it const unsigned char c = ...
? Also, can we fix the loop to for (cur = in.BeginReading(); cur < end; ++cur) {
.
![]() |
||
Comment 46•6 years ago
|
||
(In reply to Jorg K (GMT+1) from comment #45)
NI would be better. Can you please attach a patch, on Windows there are no warnings. Why not make it
const unsigned char c = ...
?
There are just single uses of 'const unsigned char' in c-c, but thousands of 'const char'. Just removing the cast in the AppendPrintf() seems to work for me.
Also, can we fix the loop to
for (cur = in.BeginReading(); cur < end; ++cur) {
.
OK
![]() |
||
Comment 47•6 years ago
|
||
Comment 48•6 years ago
|
||
Assignee | ||
Comment 49•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 50•6 years ago
|
||
How can it squeeze ffffff80 into two a %02x format? Surely the result would be "80", no?
Assignee | ||
Comment 51•6 years ago
|
||
The width specifier in printf
format strings is a minimum width.
(And I have an idea that varargs promotes chars
to int
, so printf is seeing a unsigned int
, hence all the extra digits).
![]() |
||
Comment 52•6 years ago
|
||
This works for me (no warning) and it seem to match what you want.
Comment 53•6 years ago
|
||
Comment on attachment 9036749 [details] [diff] [review]
1259040.patch maildir gcc warning v2
I'm keeping out of this ;-)
Assignee | ||
Comment 54•6 years ago
|
||
Comment on attachment 9036749 [details] [diff] [review]
1259040.patch maildir gcc warning v2
Always a little unsettling seeing const
being cast away, but it's not a pointer or anything, so if the compiler's happy, so am I :-)
Comment 55•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/a77b11bc0dfc
fix compiler warning at nsMsgMaildirStore.cpp:66 related to const unsigned cast. r=BenC
Comment 56•6 years ago
|
||
Is there a concept on and/or plan how to migrate existing Maildir accounts from the prior non-*.eml-files to the new *.eml-files? If not we could have a lot support requests because of not working system integration (eg. not working Windows search) in future.
Comment 57•6 years ago
|
||
I don't think we have one yet. Filing it nwo
Comment 58•6 years ago
|
||
Good decision - thanks!
Description
•