fixes 6704 account for different ways logging value was set in _domain
refs #6609 shift mass email menu to hooks
refs #6704 fix missing quote
Merge branch 'dev' into test