Truncate newline from the copied string
Handle a, mx and ptr SPF mechanisms
Merge branch 'jasan'