[sup-talk] Tilde in maildir/mbox paths
William Morgan
wmorgan-sup at masanjin.net
Thu Sep 13 22:45:56 EDT 2007
Hi Magnus,
Excerpts from Magnus Therning's message of Fri Sep 07 00:37:21 -0700 2007:
> I find it useful to be able to stick '~' in paths so here's an attempt
> at a patch that allows a source with the URI maildir:~/mail/in.
Thanks for the patch! What about modifying this slightly so that the
~-expansion is done at the string level instead of the URI level, in a
method called Source#expand_filesystem_uri or something. Then Maildir
and MBox::Loader sticks the output of that method into URI.
I think that change will solve two problems: it will make clear that the
expansion method is filesystem-specific (i.e. even though the method is
in Source, only filesystem sources want to call it), and it will allow
us to support URIs the "right way", without the weird #opaque stuff and
without dropping all mbox:// and maildir:// URLs. What do you think?
--
William <wmorgan-sup at masanjin.net>
More information about the sup-talk
mailing list