asavonic / outlook.el Goto Github PK
View Code? Open in Web Editor NEWEmacs package to send HTML emails in MS Outlook style
License: GNU General Public License v3.0
Emacs package to send HTML emails in MS Outlook style
License: GNU General Public License v3.0
If you're wanting to do calendar integration, you might find this useful. I made it to work with notmuch but some of it might be reusable; it lets you accept / reject / send calendar invitations and joins them up with org mode.
https://github.com/larkery/emacs-bankruptcy/blob/master/site-lisp/notmuch-calendar-x.el
Trying to use this with the emacs version distributed with Fedora 23 (yes I know it is getting old at this point) is a no go, due to the lack of libxml2 support. I am going to compile emacs on my machine to see if that fixes it.
C-h v system-configuration-options RET
gives:
system-configuration-options is a variable defined in `C source code'. Its value is "--build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=i686-redhat-linux-gnu host_alias=i686-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' LDFLAGS=-Wl,-z,relro"
Hi,
Cool project! At the moment am I right in assuming it allows you to reply to Outlook e-mails and retain the style/format of the Outlook email? Is it currently doing anything else?
I'm looking at something very similar - I work with people who use Outlook, and I want my mu4e generated emails to look more or less the same. Here's a few things I've found - some of this you may already know or have worked out!
I've found I can send HTML emails by following the advice here:
https://matt.hackinghistory.ca/2016/11/18/sending-html-mail-with-mu4e/
http://kitchingroup.cheme.cmu.edu/blog/2016/10/29/Sending-html-emails-from-org-mode-with-org-mime/
Specifically due to concerns over stability of using the org compose mode in mu4e, I merged Matt's changes into the latest mu4e in my fork here - this works well:
https://github.com/falloutphil/mu
Armed with this I can write my e-mail in org, and have them translate to HTML on the fly using htmlize-and-send:
(add-hook 'org-ctrl-c-ctrl-c-hook 'htmlize-and-send t)
Crucially when I want to include (static) HTML as generated by Outlook, I simply include an Org file containing the HTML using mu4e's signature functions. The HTML can be taken by inspecting the contents of any e-mail sent from Outlook and pulling out the HTML components.
(setq mu4e-compose-signature-auto-include t
mu4e-compose-signature "#+INCLUDE: \"/path/to/message-settings.org\"")
My message-settings are a set of Org drawers. Where Outlook HTML is included directly I just wrap it in
@html:
<html>
HTML FROM OUTLOOK EMAIL
</html>
@@
You can even include images in the signature using this method, which I needed to confirm to a company Outlook template. My emails are indistinguishable from those sent from Outlook - unless you look at headers, etc.
I also use the message-settings.org to include things like the below in the text body of the email:
https://github.com/fniessen/org-macros
This means you can add more colour, etc to your outgoing e-mails and the htmlize will pick-up the macros from the include and use them to generate the html e-mail.
Lastly for calendar integration, have a look at:
https://elpa.gnu.org/packages/excorporate.html
I hope to put my whole "MS Office <-> Emacs" setup on Github soon-ish (it does Outlook, Skype for Business and OneNote).
Phil
In my use case, I am working with message chains in the dozens of replies, and I am wondering if you intend to quote the entirety of the previous messages by default, forcing the user to remove 90% of the old replies on every new reply. I looked in the mu4e source and found that it isn't configurable behavior.
In mu4e-draft.el, function mu4e~draft-reply-construct
calls (mu4e~draft-cite-original origmsg)
unconditionally.
99% of the time, I don't want to have 15 replies embedded in my response so I can narrow it to just what I am trying to reference. I'm fine with just the previous message, and hunting down the other content if I need it.
We can't push this up to be handled by mu4e, since it doesn't know what part of the HTML message is 'just the last message'. Is this a feature you also want? If not, I'll fork this repository and add it there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.