From: magnus@therning.org (Magnus Therning)
Subject: [sup-talk] Tilde in maildir/mbox paths
Date: Fri, 7 Sep 2007 08:37:21 +0100 [thread overview]
Message-ID: <20070907073721.GA10465@die.therning.org> (raw)
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.
Two comments:
1. I didn't really know where to stick expand_uri so it's duplicated in
Maildir and Mbox. This is far from ideal. Please tell me where it
belongs.
2. Parsing URIs of the form maildir://~/mail/in seems to be
problematic:
irb(main):001:0> require 'uri'
=> true
irb(main):002:0> URI('maildir://~/mail/in')
URI::InvalidURIError: the scheme maildir does not accept registry part: ~ (or bad hostname?)
from /usr/lib/ruby/1.8/uri/generic.rb:195:in `initialize'
from /usr/lib/ruby/1.8/uri/common.rb:492:in `new'
from /usr/lib/ruby/1.8/uri/common.rb:492:in `parse'
from /usr/lib/ruby/1.8/uri/common.rb:608:in `URI'
from (irb):2
from :0
I don't know how to get around this so I changed the help text for
sup-add.
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus?therning?org Jabber: magnus?therning?gmail?com
http://therning.org/magnus
As we enjoy great advantages from the inventions of others we should
be glad of an opportunity to serve others by any invention of
ours, and this we should do freely and generously.
-- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup_514-1.diff
Type: text/x-diff
Size: 2454 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070907/6f68e559/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070907/6f68e559/attachment-0001.bin
next reply other threads:[~2007-09-07 7:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 7:37 Magnus Therning [this message]
[not found] ` <20070907092109.GB23285@die.therning.org>
2007-09-07 18:47 ` Magnus Therning
2007-09-14 2:45 ` William Morgan
2007-09-14 21:38 ` Magnus Therning
2007-09-14 22:44 ` Magnus Therning
2007-09-15 3:41 ` William Morgan
2007-09-15 10:19 ` Magnus Therning
2007-09-17 17:30 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070907073721.GA10465@die.therning.org \
--to=magnus@therning.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox