On 17Oct2020 20:48, Ranjan Maitra <maitra(a)email.com> wrote:
On Sun, 18 Oct 2020 11:41:05 +1030 Tim via users
<users(a)lists.fedoraproject.org> wrote:
> On Fri, 2020-10-16 at 08:35 -0500, Ranjan Maitra wrote:
> > According to this post here:
https://www.systoolsgroup.com/maildir/ t
> > he filename has this "gator3018.hostgator.com" which I presume comes
> > from the hostname. How do I get this changed to something else
> > (unique, but not to the hostname)? Is this where mutt or procmail is
> > to be told to do this, how?
>
> I want to ask: Why do you care what the filenames are (that they have
> hostnames in them)?
I was wondering this myself. I was imagining some aesthetic issue.
> The mail client and server certainly doesn't care, it just
needs unique
> names. So if you can get mail files from machine A onto machine B,
> it'll just use them however they're named. They don't need to have the
> same filename as its hostname.
Thanks, would it not matter if there is a combination of files in the two folders? I
don't know, that is why I am asking.
Doesn't matter. They just have to be unique and have a legal ,flags
suffix. I've got a mix myself (historical change of the things writing
messages).
I'm having trouble getting at the
qmail.org site, but on Wikipedia this
section:
https://en.wikipedia.org/wiki/Maildir#Technical_operation
describes the filename components which may be used to assemble a unique
name.
> Trying to change maildir filenames requires care, so you
don't break
> the mail system. And you use a mail client to read your messages, it
> gives you an interface where you don't need to know the filenames that
> it's making use of.
There is one approach and that is set LD_PRELOAD to set the hostname as
localhost.localdomain from this example in:
https://catonmat.net/simple-ld-preload-tutorial
But if it does not matter, then I do not need to worry at all.
I wouldn't worry, myself.
The hostname component is useful for when mulitple hosts might be
writing into the Maildir (eg over NFS to a shared spool). For a
single host Maildir it isn't necessary.
Cheers,
Cameron Simpson <cs(a)cskk.id.au>