Nick Leverton pointed out that I did not account for
rfc-acceptable weird ascii in the local part of
addresses. Not srs-compatible either. I fixed that
unless some other part of the code munges those
before packing the local part into hex, an alphabet of
16 letters and digits, all safe for file path names.

I may be missing a trick as far as getting the hex
encoding to work in one "pack", without an "unpack"--

$s = $s . pack 'a2' , $_ for unpack '(H2)*' , $_[0] ;

or the reverse--

$s = $s . pack 'H2' , $_ for unpack '(a2)*' , $_[0] ;

http://perlq.org/user_maildir.html
http://perlq.org/user_maildir.bz2

Again, the idea of user_maildir is to write mail to
a spool path named like

var/spool/d/domain.tld/u/user/[maildir-style filenames]

This could serve to route dspam retrain aliases, list
mail, backup or eavesdrop all mail, write all mail to
disk temporarily instead of denysoft while ldap or lmtp
p.o. node(s) or relay(s) is(are) down, or write all mail to
disk and serve the spool out to cluster nodes by network
file system(nfs, afs, etc, wildcard polling of file system, or
use famd or a smart fifo protocol sitting on the spool--we
heard about one here but I forget the details).

-Bob Dodds

Reply via email to