2014-07-14 Today, I've received a `winmain.dat' attachment. Unbelievable: There exist proprietary mail attachment formats, like this one, called Transport Neutral Encapsulation Format (TNEF). One should ignore such stuff! Unfortunately, I have to deal with the reality sometimes. This time, I needed to extract the stuff; couldn't re- quest it another way. To my luck, Debian includes a package `tnef', which can decode such files. The man page was perfect. At least one can deal with the problem in a sane way. And then ... the TNEF-wrapped file was ... DOCX. -- Sad, sad computing world! :-( Wrote a script to download whole directories from a password pro- tected Apache directory listing. It's more of a hack, but I used it often enough to put it into a script: #!/bin/sh # # Give arguments to download these subfolders # To download everything, use: `dlscripte /' auth="--user=foo --password=bar" url=http://transfer.example.org/dir/ for i do name=`perl -e 'use URI::Escape;print(uri_escape($ARGV[0]));' "$i"` wget -r -np -l 8 -nH --cut-dirs=1 -R index.html\* \ -R \*.gif $auth "$url/$name/" done I escape the arguments to ease specifying names with German Um- lauts, which people keep on using. `-r -np' retrieves everything *below* some directory (limited with `-l 8'). `-nH --cut-dirs=1' specifies how the retrieved files should be stored on disk. index.html* and GIF files are rejected because they are the directory listing meta layer. http://marmaro.de/lue/ markus schnalke