HNHacker News
TopNewBestAskShowJobs

gloghmalogh

11 karma · joined April 12, 2023

submissionscomments
gloghmalogh··on Putting email in its place with Emacs and Mu4e
Oh goodness, truthfully I'm not sure how well I understand it. I initially set it up a few years ago, and recently futzed with it after my organization changed something about their auth. My configs aren't really in a shareable state so I hope this ramble is at least somewhat helpful.

Basically DavMail connects to outlook at creates a local smtp and imap server which I connect to with mbsyc and msmtp. Mu indexes these emails from the local server created by DavMail, and Mu4e displays them and sends them with that local server as well. Once you have DavMail setup you can basically follow any standard mu/mutt/msmtp/mbsync tutorial, just use localhost and the ports exposed by DavMail.

Getting DavMail setup can be the tricky part, I remember having a lot of trouble, but I think it was related to the fact that the config I was editing wasn't being picked up systemd service that was controlling DavMail. The best advice I can give you is experiment with different authentication modes (davmail.mode in the config) and try sending mail to the DavMail server in an attempt to trigger it to do the authentication workflow.

In the end, set davmail.mode=O365Manual and davmail.url=https://outlook.office365.com/EWS/Exchange.asmx Upon attempting to send an email from mu4e it opened up a browser to do a microsoft authentication, and then I believe it saved a token in my config file (variable davmail.oauth.<your email>.refreshToken) which has been handling authentication without issue for the past few months.

Some miscellaneous notes. First, this may have been harder for me as it was not possible for me to use the DavMail GUI which might make the authentication workflow easier. I also have two email username@organization and first.last@organization. I have all of my davmail,msmtp, and mbsync configurations using username@organization, My mu4e config references the username@organization maildir folders, but my user-mail-address variable is first.last@organization and that is what recipients see (although mu complains about not knowing about the first.last account). Lastly, this DavMail setup isn't mu4e specific, I initially used it with mutt, and it worked for that as well.

I hope this is helpful, if there's interest I can try to go through the setup from the beginning and create a more in depth tutorial. I wish Microsoft did not make this such a pain, and I wonder if DavMail's days of effectiveness will soon be over...

gloghmalogh··on Putting email in its place with Emacs and Mu4e
I have been able to use mu4e with my o365 account using davmail (https://davmail.sourceforge.net/). I will say it was a bit of a pain to get authentication right, and involved a lot of trial and error.
gloghmalogh··on NaN, the not-a-number number that isn't NaN
This reminds me of an interesting approach a student had to detecting NaNs for an assignment. The task was to count no-data values (-999) in a file. Pandas (Python library) has its own NaN type, and when used in a boolean expression, will return NaN instead of true or false. So the student changed -999 to NaN on import with Pandas and had a loop, checking each value against itself with an if statement. If the value was NaN the if statement would throw an exception (what could poor if do with NaN?) which the student caught, and in the catch incremented the NaN count.
gloghmalogh··on What happens to Google Maps when tectonic plates move? (2020)
50 ft seems a little large for plate tectonics , plates move on the order of a centimeter per year [1]. (similar to fingernail growth!) [1] https://oceanservice.noaa.gov/facts/tectonics.html
gloghmalogh··on Going NoPhone
some of the nokia feature phones have whatsapp, if that interests you.
gloghmalogh··on F-Droid interview featuring Sylvia von OS and Hans-Christoph Steiner [audio]
For what its worth, my banking app has worked without a problem on GrapheneOS with the sandboxed play store. Truly loving it. (I also went in with a backup and would suggest it just in case).
gloghmalogh··on NPR quits Twitter after being labeled as 'state-affiliated media'
maybe it was added in the 12 minutes since you wrote your comment but there is a disclaimer at the end stating the writer is an NPR correspondent.