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:35 (modification of post by Frymaster view diff)
diff | download | new post

  1. #!/bin/bash
  2. #This should be in /usr/local/bin/checkmailbox
  3. #Or if not, edit the maildroprc file to point to the right location
  5. #Redirect stderr to append to a log file of our choosing
  6. exec 2>>/var/log/maildrop/checkmailbox-error.log
  8. if [ ! -d $HOME/$LH_DOMAIN ]; then
  9.   mkdir $HOME/$LH_DOMAIN
  10.   echo "Domain folder $LH_DOMAIN does not exist - creating" >&2
  11. fi
  13. if [ ! -d $HOME/$LH_DOMAIN/$LH_USER ]; then
  14.   /usr/bin/maildirmake.courier $HOME/$LH_DOMAIN/$LH_USER
  15.   /usr/bin/maildirmake.courier -f Junk $HOME/$LH_DOMAIN/$LH_USER
  16.   echo "Username maildir $LH_USER in $LH_DOMAIN does not exist - creating" >&2
  17. fi
  19. if [ ! -e $HOME/$LH_DOMAIN/$LH_USER/mailfilter ]; then
  20.   touch $HOME/$LH_DOMAIN/$LH_USER/mailfilter
  21.   chmod 600 $HOME/$LH_DOMAIN/$LH_USER/mailfilter
  22.   echo "Filter for maildir $LH_USER@$LH_DOMAIN does not exist - creating" >&2
  24. fi
  26. 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