Doc::getDocAnchor + CORE_MAILACTION (closes #3651)