]> diplodocus.org Git - nmh/blob - man/mhical.man
Reorder configure options to be before variables
[nmh] / man / mhical.man
1 .TH MHICAL %manext1% 2015-01-04 "%nmhversion%"
2 .
3 .\" %nmhwarning%
4 .
5 .SH NAME
6 mhical \- nmh's manipulator of iCalendar event requests
7 .SH SYNOPSIS
8 .HP 5
9 .na
10 .B mhical
11 .RB [ \-help ]
12 .RB [ \-version ]
13 .RB [ \-form
14 .IR formatfile ]
15 .RB [ \-format
16 .IR formatstring ]
17 .RB [[ \-reply
18 .IR "accept" " | " "decline" " | " "tentative" "] |"
19 .BR \-cancel ]
20 .RB [ \-attendee
21 .IR address ]
22 .RB [ \-contenttype ]
23 .RB [ \-infile
24 .IR infile ]
25 .RB [ \-outfile
26 .IR outfile ]
27 .RB [ \-unfold ]
28 .RB [ \-debug ]
29 .ad
30 .SH DESCRIPTION
31 .B mhical
32 manipulates an iCalendar (.ics) event request, to display it, generate
33 a reply to it, or cancel it. iCalendar event requests and replies are
34 defined by RFC 5545.
35 .PP
36 The default operation is to display the iCalendar event request in a
37 human-readable format.
38 .PP
39 For the display operation, the
40 .B \-format
41 .I string
42 and
43 .B \-form
44 .I formatfile
45 switches may be used to specify a format string or a format file to read.
46 If given a format string, it must be specified as a single argument to
47 the
48 .B \-format
49 switch. If given a format file name with
50 .BR \-form ,
51 the file is searched for using the normal
52 .B nmh
53 rules: absolute pathnames are accessed directly, tilde expansion is
54 done on usernames, and files are searched for in the user's
55 .I Mail
56 directory as specified in their profile. If not found there, the directory
57 .RI \*(lq %nmhetcdir% \*(rq
58 is checked.
59 .B mhical
60 defaults to using a format file named
61 .BR mhical.24hour ,
62 and will use the one installed in the
63 .RI \*(lq %nmhetcdir% \*(rq
64 directory if not found elsewhere.
65 .PP
66 The following format components are supported:
67 .PP
68 .RS 5
69 .fc ^ ~
70 .nf
71 .ta \w'description 'u
72 .B ^method~^
73 .B ^organizer~^
74 .B ^summary~^
75 .B ^description~^
76 .B ^location~^
77 .B ^dtstart~^
78 .B ^dtend~^
79 .B ^attendees~^
80 .fi
81 .RE
82 .PP
83 Those format names are case-sensitive. Each corresponds to the
84 iCalendar property of the same name as defined in RFC 5545, with the
85 exception of
86 .BR attendees .
87 That is a comma-delimited list of the common name (CN), if available,
88 or email address of Attendee properties. A maximum of 20 will be
89 displayed.
90 .SS Timezone
91 .B mhical
92 will display the event with times converted to the timezone specified
93 by the
94 .B TZ
95 environment variable, if it is set, see tzset(3). If not set, its
96 behavior is implementation defined, but may use the user's local
97 timezone.
98 .SS Reply
99 The
100 .B \-reply
101 switch generates a reply from the event request. The required
102 action parameter must be one of
103 .IR "accept" ,
104 .IR "decline" ", or"
105 .IR "tentative" .
106 Delegation is not supported.
107 .PP
108 If one of your mailboxes matches more than one attendee in the request, the
109 .B \-attendee
110 switch must be used to select the one to use in the reply. The
111 .B \-attendee
112 switch can also be used to specify the attendee address if no attendees match
113 any of your mailboxes.
114 .SS Cancel
115 The
116 .B \-cancel
117 switch generates an iCalendar event that can be used to cancel
118 the event request.
119 .SS "Input/Output"
120 By default,
121 .B mhical
122 reads from standard input and writes to standard output. The
123 .B \-infile
124 and
125 .BR \-outfile ,
126 respectively, switches can be used to override these defaults.
127 .SS "Miscellaneous Switches"
128 The
129 .B \-contenttype
130 switch instructs
131 .B mhical
132 to insert a Content-Type header at the beginning of its output,
133 for use by
134 .BR mhbuild .
135 It can only be used with
136 .B \-reply
137 and
138 .BR \-cancel .
139 .PP
140 The
141 .B \-unfold
142 switch echoes the event request, but with all lines unfolded.
143 .PP
144 The
145 .B \-debug
146 switch reveals minute details of the parse process.
147 .SH FILES
148 .B mhical
149 looks for format files in multiple locations: absolute pathnames are
150 accessed directly, tilde expansion is done on usernames, and files are
151 searched for in the user's
152 .I Mail
153 directory as specified in their profile. If not found there, the directory
154 .RI \*(lq %nmhetcdir% \*(rq
155 is checked.
156 .PP
157 .fc ^ ~
158 .nf
159 .ta \w'%nmhetcdir%/mhical.24hour 'u
160 ^%nmhetcdir%/mhical.24hour~^The default display template
161 ^%nmhetcdir%/mhical.12hour~^Display template that uses 12-hour clock
162 .fi
163 .SH "SEE ALSO"
164 .IR mhbuild (1),
165 .IR mh\-format (5),
166 .IR mh\-profile (5),
167 .IR tzset (3),
168 .IR repl (1)
169 .SH DEFAULTS
170 .nf
171 .RB ` \-form "' defaults to mhical.24hour"
172 .RB ` \-infile "' defaults to standard input"
173 .RB ` \-outfile "' defaults to standard output"
174 .fi
175 .SH BUGS
176 .B mhical
177 supports only a very limited subset of RRULE formats. Specifically,
178 only a frequency of YEARLY and an interval of 1 are supported.
179 .PP
180 .B mhical
181 produces output with just newlines instead of carriage return-newline
182 combinations. This is intentional, to fit with typical
183 .B nmh
184 convention.