add support to appendMessage with custom properties and flags (x-gm-* related)