Question: I have a quartz `cron` job that polls email messages from a server during a specific interval. It goes recursively, and extracts all the attached files and saves them. 

It works well with 95% of them, but sometimes, I get emails, whose attachments' names come encoded in a different format, for example:

```
=?windows-1252?Q?This_is_nice?windows-1252?Q?=2Em4v?=

```

And i am pretty sure that they look Ok, when they are being sent

How can those garbled file names be converted to readable text again, so I can set the file names properly?

I am using basic JavaMail functionality (Part.getFileName())

Answer: 
There is no direct equivalent to `Program Files` on Unix-like systems. Program files are typically installed in `/usr` (managed by the OS/package manager) or `/usr/local`, with data files in `/var` and configuration in `/etc`. Below `/usr` and `/usr/local` are directories `bin` containing executables, `share` containing resources, `lib` containing DLLs, etc.

See the (slightly outdated) [Filesystem Hierarchy Standard](http://www.pathname.com/fhs/) for more information.
Applications should be installed under your `$PATH` variable. Do an `echo $PATH` to see its content. Note that this variable can have a different content for different users/scenarios, but if you want to be able to execute an application without typing its path, then it has to be in there.