Posts Tagged ‘bug’

Lock up Leopard Mail in three easy steps

Monday, June 16th, 2008

ThomastrainwreckOn Apple Discussions Martin Marconcini has discovered a way to bring Mail.app to a screaming halt in three easy steps.

Frustrated by Mail’s tendency to freeze when he dragged anything onto Mail’s Dock icon, he went back and painstakingly restored his Mail installation step-by-step until the glitch re-emerged.

Here’s what he discovered (you can test it for yourself):

One: Set Mail’s New message default in the Composing preference pane to plain text.

Two: Add a signature to your email account in the Signatures Preference pane. Make sure that you select it at the bottom of the signature pane to be added to every new message by default:

Maildefaultsig

Three: Drag an image or anything else onto Mail’s Dock icon.

That’s a big, 100%-repeatable train wreck for me.

It seems like a common configuration; it’s not restricted to dragging ClarisWorks documents onto the Dock icon when the signature contains a particular accented Laotian character. How does such a thing not emerge in internal testing? Perhaps I am too romantic about internal testing.

Anyway, happily, I am in the clear. All my signatures are just a few keystrokes away in TextExpander.

But Martin suggests some workarounds for those plagued by these freezes:

a) Use Rich Text (not an option if you use Blackberry or need plain text)
b) Use Plain Text but remove the signatures (can be a Pain In the A** if you use different business accounts like me with odd disclaimers that are a “must”).
c) Roll back to Safari 3.0.* and either use it or use Camino/Opera/Firefox/Etc. Could be a problem if you rely on Safari stuff like Inquisitor, 1Password, etc.
d) Don’t drag attachments to the dock icon…

On 8 April Apple acknowledged this as “a known issue, which is currently being investigated by engineering”.

  • Digg
  • Facebook
  • Delicious
  • StumbleUpon
  • Evernote
  • Share/Bookmark
Tags: , , , , , , , ,

Security Bug back for Leopard Mail

Wednesday, November 21st, 2007

Hopper 100pxThe shell script security exploit exposed and then fixed in Tiger Mail has been reintroduced into Leopard Mail.

The loophole allows a sender to disguise an executable file (say, a shell script) as an image or some other harmless file. When clicked on, the executable file runs. Don’t remember? See the Hawk Wings post at the time (Feb, 2006).

Now, it’s back. You can test for yourself. The Heise Security web site offers to send you a test email. Give them an email address and after a confirmation, the email arrives:

Heissesecurityemail

CLick on the “jpg” to open it, and it runs a shell script, listing your current directory and exiting harmelessly:

Shellscript

Last time, the news prompted a range of responses, some of them rather hysterical. One writer even claimed that it made Mail.app too dangerous to use.

I am happy to follow John Gruber’s lead (again). As he said last time:

“It boils down to this: you can’t safely double-click files from untrusted sources, and you never could. This is no different today on Mac OS X 10.4 than it was a decade ago on Mac OS 8 and 9.”

Puzzling that it’s back, yes. But dangerous? No more than usual.

UPDATE: “FatYank” provides a quick fix in the comments for those who are really worried about this:

The workaround for this is to rename Terminal. When you rename Terminal and double click on the JPG, you get a message stating that Preview cannot open the file.

Or, as Rob points out, you could use Quickview to view attachments first, in which these “fake” file show up as empty.

Thanks!

[Via The Register ]

  • Digg
  • Facebook
  • Delicious
  • StumbleUpon
  • Evernote
  • Share/Bookmark
Tags: , , , , , , , ,

Odd Corruption in IMAP attachments

Thursday, October 12th, 2006

ApplelogogreyA poster on the Apple Discussion Boards is having a very weird experience with attachments in his IMAP account.

Dylan Muir finds that when he views large attachments stored on his IMAP server in Mail.app, they are corrupted. If he views them in a webmail client, they aren’t. If he views them in Thunderbird, they aren’t. It’s only Mail.app.

Unusually, the Apple Mail gods on the Discussion Boards seem to be out of ideas.

I wonder if anyone here has experienced this too (I never have), and knows what’s going on.

  • Digg
  • Facebook
  • Delicious
  • StumbleUpon
  • Evernote
  • Share/Bookmark
Tags: , , , , ,

The Table View Selection bug: What it is and how to fix it

Thursday, July 27th, 2006

selectionSome people (notably John Gruber ) find one behaviour in Mail.app “both wrong and endlessly frustrating”.

The problem is this: If you use Shift-Arrow keys to select multiple messages in the Mail’s Message Viewer, hitting Shift-Up to deselect a message highlighted by mistake doesn’t deselect it. It selects the message immediately above the top selected email instead.

Try it. I had never even attempted this before, so it was news to me.

The fault is caused (I learn from John’s post) by the default list controls in Data Browser (Carbon apps like Finder and iTunes) and in NSTableView (Cocoa apps).

Jim Speth has written a plugin for Mail.app that makes the Shift-Arrow key combination behave as many believe it should.

If ⌘-Clicking the offending item selected by mistake doesn’t satisfy, this may be solution for you.

LiveJournal blogger Nevyn has taken the fix a step further by turning the plugin into an Input Manager that will correct the behaviour in all Cocoa apps. One small hitch; it crashes the Adium 1.0 beta.

[Via Daring Fireball ]

  • Digg
  • Facebook
  • Delicious
  • StumbleUpon
  • Evernote
  • Share/Bookmark
Tags: , , ,

Apple Mail phones home too

Tuesday, July 18th, 2006

phonehomefirewallNot long ago Daniel Jalkut discovered that Dashboard calls home to Apple to check for widget updates. Today I discovered that Mail.app does the same thing.

Recently at my real work but not at home, Mail has been hanging for 30 seconds to a minute each time I tried to reply to an email. I would hit the Reply button and have time to make a cup of coffee in the kitchenette before the reply window appeared.

Luckily, the network administrator at the College, Tim Bell, has god-like tcpdump powers. He uncovered what was happening.

Each time I reply to a message, Mail attempts to contact an Apple server through port 80. That’s not a problem at home, but it is at work, where port 80 is blocked and a proxy redirects all HTTP traffic through another port. Mail didn’t respect my proxy settings. It carried on regardless with a process that eventually failed after lengthy delay.

Tim opened the port so that we could see what Mail was trying to do.

Mail was sending the following request based on my .Mac username to certinfo.mac.com (17.250.248.148):

GET /lookup?timgaden HTTP/1.1

In response, it was getting:

timgaden
================
R5IGFzc3VtZXMg
YWNjZXB0YW5jZSB

The third line in base64 decodes to G\x92\x06\x1777V\xd6W2 (where \x?? means the non-ascii character 92 (in hex), etc.) – so Tim tells me – and the fourth line to acceptance (with a trailing space).

Once we understood the problem, we could google for an answer. It turns out that Jonathan Wight experienced the same thing a year ago. He also provides a fix: delete the ~/Library/Preferences/com.apple.security.plist preferences file.

I’m not suggesting that anything nefarious or underhand is happening here, but it still puzzles me on three fronts.

First, what exactly is it checking and what is the undecipherable response? Is it checking my iChat certificate?

Secondly, why should Mail try to do this when I am replying to a message in my work account on my work server?

Thirdly, why is Mail so stupid? What design oversight makes it overlook my system-wide proxy settings and carry on banging away at port 80, giving me endless delays? Normally, Mail.app helps me to get things done, but not here.

UPDATE: MacGeekery has posted an interesting take on this, which is worth a read.

I hope I made it clear in my post above – although perhaps I didn’t – that I do not think Apple is stealing my credit card information or looking for cracked software or turning my computer into a drone for Apple press releases or doing anything else untoward.

I do think it is puzzling that my proxy settings were ignored and that Mail.app was thus unusable for up to a minute everytime I tried to reply to a message. I do think it is puzzling that the fix was so hard to find. I do think it is fair to expect better of Apple than this.

[Thanks for your help this afternoon, Tim. All my tcpdump are belong to you.]

  • Digg
  • Facebook
  • Delicious
  • StumbleUpon
  • Evernote
  • Share/Bookmark
Tags: , , , , , , , , ,

iPhoto 6 bug with emailed pictures

Sunday, January 29th, 2006

iphoto_iconPierre Igot at Betalogue has noticed an odd bug in the way iPhoto 6 sends some photos to Mail.app for emailing.

If you change the orientation of a photo in iPhoto and then try to email it by sending the image to Mail.app, the orientation change gets lost.

It only happens the first time you try it though. If you kill the email and try again from iPhoto everything is fine. Odd.

  • Digg
  • Facebook
  • Delicious
  • StumbleUpon
  • Evernote
  • Share/Bookmark
Tags: , , , , , ,

The true history of the word, “bug”

Wednesday, January 11th, 2006

bug2On 9 September 1947, a US Navy technician fixed a fault in a Harvard Mark II computer by extracting a moth that was caught between the contacts of a relay in the system.

This well-documented event (you can see the log report complete with moth sticky-taped to it here) is often thought to be the origin of the terms, “bug” and “debug“, in reference to computer problems, something even Mail.app suffers from time to time.

But it’s not true.

According to Michael Quinion’s Port Out, Starboard Home and Other Language Myths (Penguin, 2005), this use of bug is much older.

He cites a report in the Pall Mall Gazette from 1889 about the inventor Thomas Edison:

Mr Edison, I was informed, had been up the two previous nights discovering a ‘bug’ in his phonograph — an expression for solving a difficulty, and implying that some imaginary insect has secreted itself inside and is causing all the trouble.

And he suggests that it might be even older. An electrical handbook published in 1896 mentions that the term was first used jokingly by telegraph operators to explain that noisy lines were caused by insects invading the telegraph wires.

The legacy of nineteenth century proto-phone-phreakers?

(Holiday reading).

  • Digg
  • Facebook
  • Delicious
  • StumbleUpon
  • Evernote
  • Share/Bookmark
Tags: , , , , , , , , , ,