def diskfull():
 if cfg.email_full():
  return send((T('To: %s\nFrom: %s\nDate: %s\nSubject: SABnzbd reports Disk Full\n\nHi,\n\nSABnzbd has stopped downloading, because the disk is almost full.\nPlease make room and resume SABnzbd manually.\n\n') % (cfg.email_to.get_string(), cfg.email_from(), get_email_date())), cfg.email_to())
 else:
  return ''

def diskfull ( ) : if cfg . email_full ( ) : return send ( ( T ( 'To: %s\nFrom: %s\nDate: %s\nSubject: SABnzbd reports Disk Full\n\nHi,\n\nSABnzbd has stopped downloading, because the disk is almost full.\nPlease make room and resume SABnzbd manually.\n\n' ) % ( cfg . email_to . get_string ( ) , cfg . email_from ( ) , get_email_date ( ) ) ) , cfg . email_to ( ) ) else : return ''
send email about disk full .