* lisp/org-footnote.el (org-footnote-in-valid-context-p): avoid cited lines and headers in message-mode. (org-footnote-at-reference-p): remove check for cited lines, this is now handled by the previous function. Refactor.