Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use old style NeXTSTEP icons in Mail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use old style NeXTSTEP icons in Mail
Authored by: the_webmaestro on Nov 16, '11 09:16:44AM

How about this (NOTE: Untested and I don't know if it'll work! I'm hoping from a little 'free' guru help here! ;-):

function mailfav()
{
        EMAIL=$1;
        DOMAIN=${EMAIL#*@}

        curl http://www.$DOMAIN/favicon.ico --output ~/Library/Images/People/$EMAIL.tiff --create-dirs
}

It's inelegant, and if the site re-directs to a domain *without* www. we have the same problem.
This should allow re-directs:

function mailfav()
{
        EMAIL=$1;
        DOMAIN=${EMAIL#*@}

        curl -L http://$DOMAIN/favicon.ico --output ~/Library/Images/People/$EMAIL.tiff --create-dirs
}

By default the limit is set to 50 re-directions, but you can improve on that by adding the --max-redirs flag.

---
Happy Dad


[ Reply to This | # ]
Use old style NeXTSTEP icons in Mail
Authored by: j-beda on Nov 16, '11 11:17:49AM

That last one seems to work, at least with google.com



[ Reply to This | # ]