From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Sat, 02 Feb 2008 18:56:40 -0800 Subject: [sup-talk] [PATCH] first pass at a simple interface to extract URIs from a message In-Reply-To: <21aa9f0801291923w2df946dbga7832a7345c09a95@mail.gmail.com> References: <21aa9f0801291923w2df946dbga7832a7345c09a95@mail.gmail.com> Message-ID: <1202007092-sup-19@south> Reformatted excerpts from brabuhr's message of 2008-01-29: > This adds a new key binding to the thread-view mode (L) to assist with > loading URIs from the body of the message. This first pass will pull > the URIs from the message text and loop through them while asking if > that URI should be loaded. Currently, there is no code to actually > perform the load. Looks good. I have a slight preference for a "if uris.size == 0" block that flashes a message and returns, so that the meat of the method doesn't have to be too indented. My limited research indicates that there isn't a standard way (like mailcap) of viewing a URL. So probably a "view-url" hook is the best way to approach the actual viewing code. -- William