added some functions in settings to help with relative paths. added local logs directory. added support for ham and logging of ham mails.