[maildropl] how to test if a maildir exists
Brought to you by:
mrsam
From: Jukka S. <sal...@gm...> - 2003-01-29 15:54:07
|
hi, what is the best way to test if a maildir exists? i'd like to add such tests to my /etc/maildroprc where i defined some rules which move messages e.g. to a trash folder. but sometimes users delete their trash folders... so far my tests look like: if (`test -d $DIR && echo y`) { to $DIR } it works, but i could imagine there to be a better way. any suggestions? tia, jukka -- legally execute a president: exec $(echo 'george w. bush' | sed 's/^.* \(.\)u/\/\1in\//') |