Bill Cole wrote in
<[email protected]>:
|On 2022-05-19 at 23:13:26 UTC-0400 (Thu, 19 May 2022 23:13:26 -0400)
|Phil Stracchino <[email protected]>
|is rumored to have said:
|
|> mbox is mbox is mbox. The whole point of standards is that they are
|> standard.
|>
|> (Of course, it's also said that the wonderful thing about standards is
|> that there are so many to choose from.)
|
|That's a fitting response.
|
|In fact, 'mbox' standardization is horrendous. One shouldn't have
That was overcome with RFC 4155 in 2005.
(But it is true you can be neat in reading files, or not; the MUA
i maintain (now 43.5 years old) did that no sooner but December
2018 when i committed a fix saying (Dr. Fink of SuSE)
Werner Fink correctly pointed out that even the laxe POSIX
standard clearly states that after the "From " line there must
follow one or multiple header lines, followed by zero or more body
lines. So we can improve detection very much,
|trouble using different versions of the same software with existing mbox
|files, but you cannot rely on all tools generating or parsing mbox files
|to behave correctly with other programs' mbox files.
|
|--
|Bill Cole
|[email protected] or [email protected]
|(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
|Not Currently Available For Hire
--End of <[email protected]>
Viktor Dukhovni wrote in
<[email protected]>:
|> On 20 May 2022, at 9:09 am, Rob McGee <[email protected]> wrote:
|>
|> It's also perhaps worth mentioning that Postfix has nothing to to with
|> mail once it has been delivered. This question should have been sent
|> to a mailing list for the unstated IMAP server.
|
|This is almost true. The main caveat is that either the old or new Postfix
|is up and running, it is not safe to copy mbox files, as mail may be lost,
|and messages at the tail of the file may be corrupted.
Or you use "any MUA" who can read MBOX files to do the copy, as
i think they all perform file locking, many of them including file
dot-locking. So
echo 'copy * '"$MAIL_NEW" | MAILRC=/dev/null mailx -n -f "$MAIL_OLD"
(or '| mailx -#Rf:/ "$MAIL_OLD"' if it is s-nail) should be safe.
|Transfer of mailboxes must take place between idle systems where Postfix is
|not running on either end.
|
|Otherwise, indeed the mbox file format hasn't changed in decades.
|
|--
| Viktor.
--End of <[email protected]>
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)