Skip to main content

Getting Urlview to work on Snow Leopard

I've been using Mutt lately.  (I'll post more later on how I overcame my objections to it.... and how to make it work with multiple Gmail accounts forwarded to each other -- which was my major headache actually).  Unfortunately, urlview crashes if you download the source (ftp://ftp.guug.de/pub/mutt/contrib/) and compile it natively on Snow Leopard.

Well, after a ton of searching, posting to the Mutt Mailing list and what not, Brenden Cully (The maintainer of the fink package for OSX) posted this patch to urlview.c.  The code will make urlview compile correctly and run on Snow Leopard (10.6).  I still haven't figured out the bugs with lbdb and ABQuery on Snow Leopard yet, but once I get that patched up, we'll be good to go.  Then I'll post why I've finally reverted back to using Mutt (instead of Gmail) for my desktop email.

@@ -506,10 +506,11 @@                                                                                                                    

          free (url[current]);                                                                                                           

          url[current] = strdup (buf);                                                                                                   

          endwin ();                                                                                                                     

+         quote (scratch, sizeof (scratch), url[current]);                                                                               

          if (strstr (command, "%s"))                                                                                                    

-           snprintf (buf, sizeof (buf), command, quote (scratch, sizeof (scratch), url[current                                          

]));                                                                                                                                     

+           snprintf (buf, sizeof (buf), command, scratch);                                                                              

          else                                                                                                                           

-           snprintf (buf, sizeof (buf), "%s %s", command, quote (scratch, sizeof (scratch), ur                                          

l[current]));                                                                                                                            

+           snprintf (buf, sizeof (buf), "%s %s", command, scratch);                                                                     

          printf ("Executing: %s...\n", buf);                                                                                            

          fflush (stdout);                                                                                                               

          system (buf);

 

Comments

[...] This post was mentioned on Twitter by JoelEsler, Avnet SolutionsPath™. Avnet SolutionsPath™ said: Security Blogger Getting Urlview to work on Snow Leopard: I’ve been using Mutt lately.  (I’ll post more later ... http://bit.ly/81AoBP [...]
[...] rest is here: Getting Urlview to work on Snow Leopard | Finshake By admin | category: snow leopard | tags: accounts-forwarded, been-using, dvd, [...]
jstorimer said…
Thanks, just what I needed.
Benigno Calvo said…
Hello, I am getting an error when trying to apply patch, do you have the file anywhere for download? What version of urlview does this one apply to?.

I am trying to setup mutt for the first time, to be used with my gmail accounts, and want to give it a good try, any extra info will be more than welcome.

Thanks for the post.
Joel Esler said…
Well, it was to the current version as of the writing of this post, I haven't checked to see if it's been implemented into the main code.
Benigno Calvo said…
It has compiled alright, and appears to be working until you try to access a link, when you do that, it doesnt open anything. Even though I have it with command COMMAND open %s
If I try open whatever from the shell it works alright opening a new tab in firefox.

Any Ideas what might be wrong ?

Popular posts from this blog

Offset, Depth, Distance, and Within

Without going off the deep-end here and discussing every single Snort rule keyword, I just wanted to touch on a few modifiers that people sometimes misunderstand.  They aren't difficult, and hopefully after this explanation and a few examples, I can clear some of the air around these five modifiers.

The five modifiers that I am talking about are
OffsetDepthDistanceWithinnocaseThese five modifiers are not keywords of themselves, but rather they apply as modifiers to another keyword.  That keyword is "content". The content keyword is one of the easiest pieces of the Snort rules language as all it does is look for a particular string.  So for instance if I wanted to look for the word "joel" within a packet.  A simple:
content:"joel";Would allow me to do that.  The interesting part comes into play when you want to specify where inside of a particular packet you want the string "joel" to be looked for.  If you are running just a plain content ma…

Writing Snort Rules Correctly

Let me start off by saying I'm not bashing the writer of this article, and I'm trying not to be super critical.  I don't want to discourage this person from writing articles about Snort rules.  It's great when people in the Snort community step up and explain some simple things out there.  There are mistakes, it comes with the territory.  If you choose to be one of the people that tries to write Snort rules, you also choose to be someone who wants to learn how to do it better.  That's why I write this blog post, not to bash the writer, but to teach.

I noticed this post today over at the "Tao of Signature Writing" blog, and to be honest I glanced over most of it figuring it was a rehash of things I've already read or things that have already been written from countless people about "Here's how you write Snort rules!".  I scrolled down quickly skimming, not reading at all really, and noticed this part:
Now, let us look at the second questio…

Safari 5.1.4 now available

Safari 5.1.4 now available, fixes issues and improves performance | TUAW - The Unofficial Apple Weblog:


Improve JavaScript performanceImprove responsiveness when typing into the search field after changing network configurations or with an intermittent network connectionAddress an issue that could cause webpages to flash white when switching between Safari windowsAddress issues that prevented printing U.S. Postal Service shipping labels and embedded PDFsPreserve links in PDFs saved from webpagesFix an issue that could make Flash content appear incomplete after using gesture zoomingFix an issue that could cause the screen to dim while watching HTML5 videoImprove stability, compatibility and startup time when using extensionsAllow cookies set during regular browsing to be available after using Private BrowsingFix an issue that could cause some data to be left behind after pressing the "Remove All Website Data" button