Giter Site home page Giter Site logo

Comments (4)

jeremy-compostella avatar jeremy-compostella commented on May 31, 2024

When I want to forward, I just reply and change the recipient list.
Would that work for your mu4e based use-case ?

from org-msg.

titaniumbones avatar titaniumbones commented on May 31, 2024

Yes, I think that would work, though in the long run it would be nice to have something more robust, I guess.

from org-msg.

guibor avatar guibor commented on May 31, 2024

My solution - rewrite org-msg-post-setup so that it includes the reply-to, and make sure the reply-to appears in the message even when forwarding - by changing mu4e~draft-forward-construct accordingly in mu4e-draft.el (though adding advice would have been a better solution)


(defun org-msg-post-setup (&rest _args)
  "Transform the current `message' buffer into a OrgMsg buffer.
If the current `message' buffer is a reply, the
`org-msg-separator' string is inserted at the end of the editing
area."
  (message-goto-body)
  (let ((new (not (and (message-fetch-field "to")
                       (message-fetch-field "subject"))))
        (with-original (not (= (point) (point-max))))
        (reply-to))
    (when (or new (org-msg-mua-call 'article-htmlp))
      (setq reply-to (org-msg-mua-call 'save-article-for-reply))
      (insert (org-msg-header reply-to))
      (when org-msg-greeting-fmt
        (insert (format org-msg-greeting-fmt
                        (if new
                            ""
                          (org-msg-get-to-first-name)))))
      (save-excursion
        (when with-original
          (save-excursion
            (insert "\n\n" org-msg-separator "\n")
            (delete-region (line-beginning-position)
                           (1+ (line-end-position)))
            (save-excursion
              (while (re-search-forward "^>+ *" nil t)
                (replace-match "")))
            (org-escape-code-in-region (point) (point-max))))
        (when org-msg-signature
          (insert org-msg-signature))
        (org-msg-edit-mode)))
    (if new
        (message-goto-to)
      (org-msg-goto-body))))

from org-msg.

jeremy-compostella avatar jeremy-compostella commented on May 31, 2024

Hi Michael-David,

I tried to take your suggestion of org-msg-post-setup() into account with Add limited support for mail forwarding. Let me know if it helps in your case.

Regards,

-Jeremy
One Emacs to rule them all

from org-msg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.