Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'two suggestions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
two suggestions
Authored by: mzs on Dec 02, '04 12:41:26PM
Great script thanks, but here are two little suggestions. In this part:

# Copy the file to our new spot so mutt can't delete it
# before the app has a chance to view it.
cp $1 $newfile
Maybe the cp would be better as a ln. This would create a hard link (as long as the files were on the same file system) instead of copying the file.

The second thing, wouldn't be better if you had at least a $USER in the tmpdir used? But probably you are the only one using this script.

[ Reply to This | # ]