#!/bin/sh case `date +"%a"` in Sat|Sun) offlineimap -a private ;; *) offlineimap ;; esac