Bug 174715

Summary: [patch] calendar(1): define Content-Type / charset when sending periodic mails
Product: Base System Reporter: Thierry Thomas <thierry>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: 9.1-PRERELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
io.c.diff none

Description Thierry Thomas freebsd_committer freebsd_triage 2012-12-26 14:40:00 UTC
	When daily_calendar_enable is set (periodic.conf), `calenidar -a'
	is run, and sends mails with the content of calendar files.
	These calendar files may be encoded with non-ASCII character
	sets, defined by the variable LANG.
	Unfortunately, calendar always sends mails without defining any
	charset.

	If your MUA is set for the same default charset that the one
	used by your calendar files, it may seem working, and you won't
	notice anything strange. Else, the non-ASCII strings won't be
	displayed correctly.

Fix: Please check the hereunder patch. I'm not sure that this is the
	best way to do it, but you got the idea - and it works for me!
How-To-Repeat: 	- include some non-ASCII calendar files in your ~/calendar
	  (e.g. #include <calendar.french>)
	- set your MUA to a different default charset
	  (e.g. for mutt: set charset="utf-8")
	- run `calendar -a' or wait for periodic.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:54 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:39:14 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2023-05-30 07:49:20 UTC
calendar switched to ports.