A developer created a shell wrapper to fix UTF-8 encoding in emails sent by DragonFly Mail Agent (dma) on OpenBSD. OpenBSD's cron passes output to dma via the sendmail symlink, but dma does not encode non-ASCII header values, causing garbled subject lines and body text. The wrapper intercepts the email, detects UTF-8 content, and adds proper MIME headers before forwarding to dma. The solution handles accented characters, special symbols, and other non-ASCII output from cron jobs. The wrapper is written as a small sh script that sits between cron and dma. This fix ensures emails display correctly without requiring changes to dma itself.
Tap to vote and see what everyone thinks.
Hackers Hijack Instagram Using Meta AI Text Prompts
Summary by ByteBrief