pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin private pastebin - collaborative debugging tool What's a private pastebin?

Posted by Frymaster on Wed 5th Nov 14:34
View followups from Frymaster | download | new post

  1. #!/bin/bash
  3. #Redirect stderr to append to a log file of our choosing
  4. exec 2>>/var/log/maildrop/checkmailbox-error.log
  6. if [ ! -d $HOME/$LH_DOMAIN ]; then
  7.   mkdir $HOME/$LH_DOMAIN
  8.   echo "Domain folder $LH_DOMAIN does not exist - creating" >&2
  9. fi
  11. if [ ! -d $HOME/$LH_DOMAIN/$LH_USER ]; then
  12.   /usr/bin/maildirmake.courier $HOME/$LH_DOMAIN/$LH_USER
  13.   /usr/bin/maildirmake.courier -f Junk $HOME/$LH_DOMAIN/$LH_USER
  14.   echo "Username maildir $LH_USER in $LH_DOMAIN does not exist - creating" >&2
  15. fi
  17. if [ ! -e $HOME/$LH_DOMAIN/$LH_USER/mailfilter ]; then
  18.   touch $HOME/$LH_DOMAIN/$LH_USER/mailfilter
  19.   chmod 600 $HOME/$LH_DOMAIN/$LH_USER/mailfilter
  20.   echo "Filter for maildir $LH_USER@$LH_DOMAIN does not exist - creating" >&2
  22. fi
  24. exit 0

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@

Remember my settings