#!/bin/bash offlineimap while true ; do sleep 30 offlineimap -q done