jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
276 stars 57 forks source link

notmuch: Error when trying to send an email #108

Closed arkhan closed 3 years ago

arkhan commented 3 years ago

Greetings When trying to send an email you get the following error

  org-macro-initialize-templates(nil)
  org-export-as(ascii nil nil nil nil)
  org-export-to-buffer(ascii "*Org ASCII Export*" nil nil nil nil nil #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_44>)
  org-ascii-export-as-ascii()
  org-msg-export-as-text(ascii #("#+OPTIONS: html-postamble:nil H:5 num:nil ^:{} toc..." 0 86 (face org-meta-line read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 86 87 (read-only nil wrap-prefix "" line-prefix "" fontified t) 87 127 (face org-meta-line read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 127 128 (read-only nil wrap-prefix "" line-prefix "" fontified t) 128 140 (face org-drawer read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 140 141 (read-only nil wrap-prefix "" line-prefix "" fontified t) 141 151 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 151 152 (read-only nil wrap-prefix "" line-prefix "" fontified t) 152 155 (face org-property-value read-only nil wrap-prefix "" line-prefix "" fontified t) 155 156 (read-only nil wrap-prefix "" line-prefix "" fontified t) 156 168 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 168 169 (read-only nil wrap-prefix "" line-prefix "" fontified t) 169 172 (face org-property-value read-only nil wrap-prefix "" line-prefix "" fontified t) 172 173 (read-only nil wrap-prefix "" line-prefix "" fontified t) 173 187 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 187 188 (read-only nil wrap-prefix "" line-prefix "" fontified t) ...))
  apply(org-msg-export-as-text (ascii #("#+OPTIONS: html-postamble:nil H:5 num:nil ^:{} toc..." 0 86 (face org-meta-line read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 86 87 (read-only nil wrap-prefix "" line-prefix "" fontified t) 87 127 (face org-meta-line read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 127 128 (read-only nil wrap-prefix "" line-prefix "" fontified t) 128 140 (face org-drawer read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 140 141 (read-only nil wrap-prefix "" line-prefix "" fontified t) 141 151 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 151 152 (read-only nil wrap-prefix "" line-prefix "" fontified t) 152 155 (face org-property-value read-only nil wrap-prefix "" line-prefix "" fontified t) 155 156 (read-only nil wrap-prefix "" line-prefix "" fontified t) 156 168 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 168 169 (read-only nil wrap-prefix "" line-prefix "" fontified t) 169 172 (face org-property-value read-only nil wrap-prefix "" line-prefix "" fontified t) 172 173 (read-only nil wrap-prefix "" line-prefix "" fontified t) 173 187 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 187 188 (read-only nil wrap-prefix "" line-prefix "" fontified t) ...)))
  #f(compiled-function (&rest args2) #<bytecode -0xae27fd7fc112f7f>)(#("#+OPTIONS: html-postamble:nil H:5 num:nil ^:{} toc..." 0 86 (face org-meta-line read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 86 87 (read-only nil wrap-prefix "" line-prefix "" fontified t) 87 127 (face org-meta-line read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 127 128 (read-only nil wrap-prefix "" line-prefix "" fontified t) 128 140 (face org-drawer read-only nil wrap-prefix "" line-prefix "" font-lock-fontified t fontified t) 140 141 (read-only nil wrap-prefix "" line-prefix "" fontified t) 141 151 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 151 152 (read-only nil wrap-prefix "" line-prefix "" fontified t) 152 155 (face org-property-value read-only nil wrap-prefix "" line-prefix "" fontified t) 155 156 (read-only nil wrap-prefix "" line-prefix "" fontified t) 156 168 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 168 169 (read-only nil wrap-prefix "" line-prefix "" fontified t) 169 172 (face org-property-value read-only nil wrap-prefix "" line-prefix "" fontified t) 172 173 (read-only nil wrap-prefix "" line-prefix "" fontified t) 173 187 (face org-special-keyword read-only nil wrap-prefix "" line-prefix "" fontified t) 187 188 (read-only nil wrap-prefix "" line-prefix "" fontified t) ...))
  #f(compiled-function (alt) #<bytecode -0x43c23343283fce6>)(text)
  org-msg-build-alternatives((text html))
  org-msg-prepare-to-send()
  run-hooks(message-send-hook)
  message-send(nil)
  message-send-and-exit(nil)
  notmuch-mua-send-common(nil t)
  org-msg-send-and-exit-notmuch()
  org-msg-mua-call(send-and-exit message-send-and-exit)
  org-msg-ctrl-c-ctrl-c()
  run-hook-with-args-until-success(org-msg-ctrl-c-ctrl-c)
  org-ctrl-c-ctrl-c(nil)
  funcall-interactively(org-ctrl-c-ctrl-c nil)
  command-execute(org-ctrl-c-ctrl-c)

this started to happen with the latest version of org-mode Thanks

jeremy-compostella commented 3 years ago

@arkhan I started a fresh Emacs with no configuration, then I added a freshly clone of https://code.orgmode.org/bzg/org-mode to the load-path, then loaded org-msg, wrote an email, exported to text and I did not observe any issue. I even sent it successfully with both text and html alternatives.

arkhan commented 3 years ago

Indeed, the problem was that org-mode was not loading correctly, which is why it gave that error.

Thank you