[sup-talk] Tilde in maildir/mbox paths

Magnus Therning magnus at therning.org
Sat Sep 15 06:19:16 EDT 2007


On Fri, Sep 14, 2007 at 20:41:28 -0700, William Morgan wrote:
>Excerpts from Magnus Therning's message of Fri Sep 14 15:44:26 -0700 2007:
>> This time with the attachment...
>
>Time to turn on :confirm_no_attachments!
>
>I've applied your patch, with a couple changes. Thanks!

I really should have found String::gsub myself.  I was just so confused
by the existence of String::replace and what it does...

One thing though.  You've moved the expansion of tilde so that the
expanded URI is passed to Source and it ends up in .sup/sources.yaml.
My intention was to have the tilde unexpanded in .sup/sources.yaml.
This would allow sharing of sup configuration between different
accounts, as long as the locations of mail boxes are the same relative
to the home directory.

The reason is again my own mail set-up.  Mutt takes paths to mail boxes
and expands tilde.  This allows me to have identical Mutt configurations
on machines where I have different login names (at some places I don't
have the luxury of getting to choose my own login, e.g. at work).

I've attached a patch that moves the expansion back to the sub-classes
again.

/M

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus@therning.org             Jabber: magnus.therning@gmail.com
http://therning.org/magnus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup_537-1.patch
Type: text/x-diff
Size: 1595 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20070915/ea163096/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/20070915/ea163096/attachment-0001.bin 


More information about the sup-talk mailing list