[Exim] appendfile, maildir and create_file

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Arne Georg Gleditsch
Date:  
À: exim-users
Sujet: [Exim] appendfile, maildir and create_file
Hi.

I'm in a maildir-spool-scenario where I'd like to be paranoid about
where users deliver their mail from exim filters. I tried to use the
create_file functionality of appendfile in the appropriate transport,
which would be spot on for this, but found it wasn't implemented for
maildirs. I then spent some time fiddling with the directory option
in the transport, expressing it in terms of $address_file, $home and
some regular expressions. I had to abandon this as well, though, as
it turns out the directory-option is only used if address_file is a
relative pathname.

As I exhausted the configuration options I could think of, I caved and
simply patched appendfile.c to do as I wanted. Personally, I consider
both issues above, uhm, "undeveloped features", but fixed only the
first one. Patch appended in case anyone else finds it useful. (I
only extended create_file to cover maildir, it would probably make
sense for mailstore as well.)


                            Arne.