Debian Codegraph @

templates/man5/procmailex.5.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:36+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
21 #: opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "PROCMAILEX"
24 msgstr ""
25
26 #. type: TH
27 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
28 #: opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "\\*(Dt"
31 msgstr ""
32
33 #. type: TH
34 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
35 #: opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "BuGless"
38 msgstr ""
39
40 #. type: SH
41 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
42 #: opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr ""
46
47 #. type: Plain text
48 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
49 #: opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "procmailex - procmail rcfile examples"
51 msgstr ""
52
53 #. type: SH
54 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
55 #: opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "SYNOPSIS"
58 msgstr ""
59
60 #. type: Plain text
61 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "B<$HOME/.procmailrc examples>"
64 msgstr ""
65
66 #. type: SH
67 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
68 #: opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "DESCRIPTION"
71 msgstr ""
72
73 #. type: Plain text
74 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "For a description of the rcfile format see B<procmailrc>(5)."
77 msgstr ""
78
79 #. type: Plain text
80 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
81 #: opensuse-leap-16-1 opensuse-tumbleweed
82 msgid ""
83 "The weighted scoring technique is described in detail in the "
84 "B<procmailsc>(5) man page."
85 msgstr ""
86
87 #. type: Plain text
88 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
89 msgid ""
90 "This man page shows several example recipes. For examples of complete "
91 "rcfiles you can check the NOTES section in B<procmail>(1), or look at the "
92 "example rcfiles in /usr/share/doc/procmail/examples."
93 msgstr ""
94
95 #. type: SH
96 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
97 #: opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid "EXAMPLES"
100 msgstr ""
101
102 #. type: Plain text
103 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
104 #: opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "Sort out all mail coming from the scuba-dive mailing list into the "
107 "mailfolder scubafile (uses the locallockfile scubafile.lock)."
108 msgstr ""
109
110 #. type: Plain text
111 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
112 #: opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ":0: * ^TOscuba scubafile"
114 msgstr ""
115
116 #. type: Plain text
117 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
118 #: opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "Forward all mail from peter about compilers to william (and keep a copy of "
121 "it here in petcompil)."
122 msgstr ""
123
124 #. type: Plain text
125 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
126 #: opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 ":0\n"
130 "* ^From.*peter\n"
131 "* ^Subject:.*compilers\n"
132 "{\n"
133 " :0 c\n"
134 " ! [email protected]\n"
135 msgstr ""
136
137 #. type: Plain text
138 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
139 #: opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid ""
142 " :0\n"
143 " petcompil\n"
144 "}\n"
145 msgstr ""
146
147 #. type: Plain text
148 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
149 #: opensuse-leap-16-1 opensuse-tumbleweed
150 msgid "An equivalent solution that accomplishes the same:"
151 msgstr ""
152
153 #. type: Plain text
154 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
155 #: opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ":0 c * ^From.*peter * ^Subject:.*compilers ! [email protected]"
157 msgstr ""
158
159 #. type: Plain text
160 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
161 #: opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid ""
164 " :0 A\n"
165 " petcompil\n"
166 msgstr ""
167
168 #. type: Plain text
169 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
170 #: opensuse-leap-16-1 opensuse-tumbleweed
171 msgid "An equivalent, but slightly slower solution that accomplishes the same:"
172 msgstr ""
173
174 #. type: Plain text
175 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
176 #: opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ":0 * ^From.*peter * ^Subject:.*compilers petcompil"
178 msgstr ""
179
180 #. type: Plain text
181 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
182 #: opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "If you are fairly new to procmail and plan to experiment a little bit it "
185 "often helps to have a I<safety net> of some sort. Inserting the following "
186 "two recipes above all other recipes will make sure that of all arriving mail "
187 "always the last 32 messages will be preserved. In order for it to work as "
188 "intended, you have to create a directory named `backup' in $MAILDIR prior to "
189 "inserting these two recipes."
190 msgstr ""
191
192 #. type: Plain text
193 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
194 #: opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ":0 c backup"
196 msgstr ""
197
198 #. type: Plain text
199 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
200 #: opensuse-leap-16-1 opensuse-tumbleweed
201 msgid ":0 ic | cd backup && rm -f dummy `ls -t msg.* | sed -e 1,32d`"
202 msgstr ""
203
204 #. type: Plain text
205 #: debian-trixie debian-unstable
206 msgid ""
207 "If your system doesn't generate or generates incorrect leading `From ' lines "
208 "on every mail, you can fix this by calling up procmail with the -f- option. "
209 "To fix the same problem by different means, you could have inserted the "
210 "following two recipes above all other recipes in your rcfile. They will "
211 "filter the header of any mail through formail which will strip any leading "
212 "`From ', and automatically regenerates it subsequently."
213 msgstr ""
214
215 #. type: Plain text
216 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
217 #: opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ":0 fhw | formail -I \"From \" -a \"From \""
219 msgstr ""
220
221 #. type: Plain text
222 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
223 #: opensuse-leap-16-1 opensuse-tumbleweed
224 msgid ""
225 "Add the headers of all messages that didn't come from the postmaster to your "
226 "private header collection (for statistics or mail debugging); and use the "
227 "lockfile `headc.lock'. In order to make sure the lockfile is not removed "
228 "until the pipe has finished, you have to specify option `w'; otherwise the "
229 "lockfile would be removed as soon as the pipe has accepted the mail."
230 msgstr ""
231
232 #. type: Plain text
233 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
234 #: opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 ":0 hwc: * !^FROM_MAILER | uncompress headc.Z; cat E<gt>E<gt>headc; compress "
237 "headc"
238 msgstr ""
239
240 #. type: Plain text
241 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
242 #: opensuse-leap-16-1 opensuse-tumbleweed
243 msgid "Or, if you would use the more efficient gzip instead of compress:"
244 msgstr ""
245
246 #. type: Plain text
247 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
248 #: opensuse-leap-16-1 opensuse-tumbleweed
249 msgid ":0 hwc: * !^FROM_MAILER | gzip E<gt>E<gt>headc.gz"
250 msgstr ""
251
252 #. type: Plain text
253 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
254 #: opensuse-leap-16-1 opensuse-tumbleweed
255 msgid ""
256 "Forward all mails shorter than 1000 bytes to my home address (no lockfile "
257 "needed on this recipe)."
258 msgstr ""
259
260 #. type: Plain text
261 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
262 #: opensuse-leap-16-1 opensuse-tumbleweed
263 msgid ":0 * E<lt> 1000 ! myname@home"
264 msgstr ""
265
266 #. type: Plain text
267 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
268 #: opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "Split up incoming digests from the surfing mailing list into their "
271 "individual messages, and store them into surfing, using surfing.lock as the "
272 "locallockfile."
273 msgstr ""
274
275 #. type: Plain text
276 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
277 #: opensuse-leap-16-1 opensuse-tumbleweed
278 msgid ":0: * ^Subject:.*surfing.*Digest | formail +1 -ds E<gt>E<gt>surfing"
279 msgstr ""
280
281 #. type: Plain text
282 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
283 #: opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "Store everything coming from the postmaster or mailer-daemon (like bounced "
286 "mail) into the file postm, using postm.lock as the locallockfile."
287 msgstr ""
288
289 #. type: Plain text
290 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
291 #: opensuse-leap-16-1 opensuse-tumbleweed
292 msgid ":0: * ^FROM_MAILER postm"
293 msgstr ""
294
295 #. type: Plain text
296 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
297 #: opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "A simple autoreply recipe. It makes sure that neither mail from any daemon "
300 "(like bouncing mail or mail from mailing-lists), nor autoreplies coming from "
301 "yourself will be autoreplied to. If this precaution would not be taken, "
302 "disaster could result (`ringing' mail). In order for this recipe to "
303 "autoreply to all the incoming mail, you should of course insert it before "
304 "all other recipes in your rcfile. However, it is advisable to put it "
305 "I<after> any recipes that process the mails from subscribed mailinglists; it "
306 "generally is not a good idea to generate autoreplies to mailinglists (yes, "
307 "the !^FROM_DAEMON regexp should already catch those, but if the mailinglist "
308 "doesn't follow accepted conventions, this might I<not> be I<enough>)."
309 msgstr ""
310
311 #. type: Plain text
312 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
313 #: opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid ""
316 ":0 h c\n"
317 "* !^FROM_DAEMON\n"
318 "* !^X-Loop: [email protected]\n"
319 "| (formail -r -I\"Precedence: junk\" \\e\n"
320 " -A\"X-Loop: [email protected]\" ; \\e\n"
321 " echo \"Mail received.\") | $SENDMAIL -t\n"
322 msgstr ""
323
324 #. type: Plain text
325 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
326 #: opensuse-leap-16-1 opensuse-tumbleweed
327 msgid ""
328 "A more complicated autoreply recipe that implements the functional "
329 "equivalent of the well known B<vacation>(1) program. This recipe is based "
330 "on the same principles as the last one (prevent `ringing' mail). In "
331 "addition to that however, it maintains a vacation database by extracting the "
332 "name of the sender and inserting it in the vacation.cache file if the name "
333 "was new (the vacation.cache file is maintained by formail which will make "
334 "sure that it always contains the most recent names, the size of the file is "
335 "limited to a maximum of approximately 8192 bytes). If the name was new, an "
336 "autoreply will be sent."
337 msgstr ""
338
339 #. type: Plain text
340 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
341 #: opensuse-leap-16-1 opensuse-tumbleweed
342 msgid ""
343 "As you can see, the following recipe has comments B<between> the "
344 "conditions. This is allowed. Do B<not> put comments on the same line as a "
345 "condition though."
346 msgstr ""
347
348 #. type: Plain text
349 #: debian-trixie debian-unstable
350 msgid "SHELL=/bin/sh # for other shells, this might need adjustment"
351 msgstr ""
352
353 #. type: Plain text
354 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
355 #: opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid ""
358 ":0 Whc: vacation.lock\n"
359 " # Perform a quick check to see if the mail was addressed to us\n"
360 "* $^To:.*\\eE<lt>$\\eLOGNAME\\eE<gt>\n"
361 " # Don't reply to daemons and mailinglists\n"
362 "* !^FROM_DAEMON\n"
363 " # Mail loops are evil\n"
364 "* !^X-Loop: [email protected]\n"
365 "| formail -rD 8192 vacation.cache\n"
366 msgstr ""
367
368 #. type: Plain text
369 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
370 #: opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid ""
373 " :0 ehc # if the name was not in the cache\n"
374 " | (formail -rI\"Precedence: junk\" \\e\n"
375 " -A\"X-Loop: [email protected]\" ; \\e\n"
376 " echo \"I received your mail,\"; \\e\n"
377 " echo \"but I won't be back until Monday.\"; \\e\n"
378 " echo \"-- \"; cat $HOME/.signature \\e\n"
379 " ) | $SENDMAIL -oi -t\n"
380 msgstr ""
381
382 #. type: Plain text
383 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
384 #: opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "Store all messages concerning TeX in separate, unique filenames, in a "
387 "directory named texmail (this directory has to exist); there is no need to "
388 "use lockfiles in this case, so we won't."
389 msgstr ""
390
391 #. type: Plain text
392 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
393 #: opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ":0 * (^TO|^Subject:.*)TeX[^t] texmail"
395 msgstr ""
396
397 #. type: Plain text
398 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
399 #: opensuse-leap-16-1 opensuse-tumbleweed
400 msgid ""
401 "The same as above, except now we store the mails in numbered files (MH mail "
402 "folder)."
403 msgstr ""
404
405 #. type: Plain text
406 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
407 #: opensuse-leap-16-1 opensuse-tumbleweed
408 msgid ":0 * (^TO|^Subject:.*)TeX[^t] texmail/."
409 msgstr ""
410
411 #. type: Plain text
412 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
413 #: opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "Or you could file the mail in several directory folders at the same time. "
416 "The following recipe will deliver the mail to two MH-folders and one "
417 "directory folder. It is actually only one file with two extra hardlinks."
418 msgstr ""
419
420 #. type: Plain text
421 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
422 #: opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ":0 * (^TO|^Subject:.*)TeX[^t] texmail/. wordprocessing dtp/."
424 msgstr ""
425
426 #. type: Plain text
427 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
428 #: opensuse-leap-16-1 opensuse-tumbleweed
429 msgid ""
430 "Store all the messages about meetings in a folder that is in a directory "
431 "that changes every month. E.g. if it were January 1994, the folder would "
432 "have the name `94-01/meeting' and the locallockfile would be `94-01/"
433 "meeting.lock'."
434 msgstr ""
435
436 #. type: Plain text
437 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
438 #: opensuse-leap-16-1 opensuse-tumbleweed
439 msgid ":0: * meeting `date +%y-%m`/meeting"
440 msgstr ""
441
442 #. type: Plain text
443 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
444 #: opensuse-leap-16-1 opensuse-tumbleweed
445 msgid ""
446 "The same as above, but, if the `94-01' directory wouldn't have existed, it "
447 "is created automatically:"
448 msgstr ""
449
450 #. type: Plain text
451 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
452 #: opensuse-leap-16-1 opensuse-tumbleweed
453 msgid "MONTHFOLDER=`date +%y-%m`"
454 msgstr ""
455
456 #. type: Plain text
457 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
458 #: opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ":0 Wic * ? test ! -d $MONTHFOLDER | mkdir $MONTHFOLDER"
460 msgstr ""
461
462 #. type: Plain text
463 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
464 #: opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ":0: * meeting ${MONTHFOLDER}/meeting"
466 msgstr ""
467
468 #. type: Plain text
469 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
470 #: opensuse-leap-16-1 opensuse-tumbleweed
471 msgid "The same as above, but now by slightly different means:"
472 msgstr ""
473
474 #. type: Plain text
475 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
476 #: opensuse-leap-16-1 opensuse-tumbleweed
477 msgid ""
478 "MONTHFOLDER=`date +%y-%m` DUMMY=`test -d $MONTHFOLDER || mkdir $MONTHFOLDER`"
479 msgstr ""
480
481 #. type: Plain text
482 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
483 #: opensuse-leap-16-1 opensuse-tumbleweed
484 msgid ""
485 "If you are subscribed to several mailinglists and people cross-post to some "
486 "of them, you usually receive several duplicate mails (one from every list). "
487 "The following simple recipe eliminates duplicate mails. It tells formail to "
488 "keep an 8KB cache file in which it will store the Message-IDs of the most "
489 "recent mails you received. Since Message-IDs are guaranteed to be unique "
490 "for every new mail, they are ideally suited to weed out duplicate mails. "
491 "Simply put the following recipe at the top of your rcfile, and no duplicate "
492 "mail will get past it."
493 msgstr ""
494
495 #. type: Plain text
496 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
497 #: opensuse-leap-16-1 opensuse-tumbleweed
498 msgid ":0 Wh: msgid.lock | formail -D 8192 msgid.cache"
499 msgstr ""
500
501 #. type: Plain text
502 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
503 #: opensuse-leap-16-1 opensuse-tumbleweed
504 msgid ""
505 "B<Beware> if you have delivery problems in recipes below this one and "
506 "procmail tries to requeue the mail, then on the next queue run, this mail "
507 "will be considered a duplicate and will be thrown away. For those not quite "
508 "so confident in their own scripting capabilities, you can use the following "
509 "recipe instead. It puts duplicates in a separate folder instead of throwing "
510 "them away. It is up to you to periodically empty the folder of course."
511 msgstr ""
512
513 #. type: Plain text
514 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
515 #: opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ":0 Whc: msgid.lock | formail -D 8192 msgid.cache"
517 msgstr ""
518
519 #. type: Plain text
520 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
521 #: opensuse-leap-16-1 opensuse-tumbleweed
522 msgid ":0 a: duplicates"
523 msgstr ""
524
525 #. type: Plain text
526 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
527 #: opensuse-leap-16-1 opensuse-tumbleweed
528 msgid ""
529 "Procmail can deliver to MH folders directly, but, it does not update the "
530 "unseen sequences the real MH manages. If you want procmail to update those "
531 "as well, use a recipe like the following which will file everything that "
532 "contains the word spam in the body of the mail into an MH folder called "
533 "spamfold. Note the local lockfile, which is needed because MH programs do "
534 "not lock the sequences file. Asynchronous invocations of MH programs that "
535 "change the sequences file may therefore corrupt it or silently lose "
536 "changes. Unfortunately, the lockfile doesn't completely solve the problem "
537 "as rcvstore could be invoked while `show' or `mark' or some other MH program "
538 "is running. This problem is expected to be fixed in some future version of "
539 "MH, but until then, you'll have to balance the risk of lost or corrupt "
540 "sequences against the benefits of the unseen sequence."
541 msgstr ""
542
543 #. type: Plain text
544 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
545 #: opensuse-leap-16-1 opensuse-tumbleweed
546 msgid ":0 :spamfold/$LOCKEXT * B ?? spam | rcvstore +spamfold"
547 msgstr ""
548
549 #. type: Plain text
550 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
551 #: opensuse-leap-16-1 opensuse-tumbleweed
552 msgid ""
553 "When delivering to emacs folders (i.e., mailfolders managed by any emacs "
554 "mail package, e.g., RMAIL or VM) directly, you should use emacs-compatible "
555 "lockfiles. The emacs mailers are a bit braindamaged in that respect, they "
556 "get very upset if someone delivers to mailfolders which they already have in "
557 "their internal buffers. The following recipe assumes that $HOME equals /"
558 "home/john."
559 msgstr ""
560
561 #. type: Plain text
562 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
563 #: opensuse-leap-16-1 opensuse-tumbleweed
564 msgid "MAILDIR=Mail"
565 msgstr ""
566
567 #. type: Plain text
568 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
569 #: opensuse-leap-16-1 opensuse-tumbleweed
570 msgid ""
571 ":0:/usr/local/lib/emacs/lock/!home!john!Mail!mailbox * ^Subject:.*whatever "
572 "mailbox"
573 msgstr ""
574
575 #. type: Plain text
576 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
577 #: opensuse-leap-16-1 opensuse-tumbleweed
578 msgid ""
579 "Alternatively, you can have procmail deliver into its own set of mailboxes, "
580 "which you then periodically empty and copy over to your emacs files using "
581 "B<movemail>. Movemail uses mailbox.lock local lockfiles per mailbox. This "
582 "actually is the preferred mode of operation in conjunction with procmail."
583 msgstr ""
584
585 #. type: Plain text
586 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
587 #: opensuse-leap-16-1 opensuse-tumbleweed
588 msgid ""
589 "To extract certain headers from a mail and put them into environment "
590 "variables you can use any of the following constructs:"
591 msgstr ""
592
593 #. type: Plain text
594 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
595 #: opensuse-leap-16-1 opensuse-tumbleweed
596 msgid ""
597 "SUBJECT=`formail -xSubject:` # regular field FROM=`formail -rt -xTo:` # "
598 "special case"
599 msgstr ""
600
601 #. type: Plain text
602 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
603 #: opensuse-leap-16-1 opensuse-tumbleweed
604 msgid ":0 h # alternate method KEYWORDS=| formail -xKeywords:"
605 msgstr ""
606
607 #. type: Plain text
608 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
609 #: opensuse-leap-16-1 opensuse-tumbleweed
610 msgid ""
611 "If you are using temporary files in a procmailrc file, and want to make sure "
612 "that they are removed just before procmail exits, you could use something "
613 "along the lines of:"
614 msgstr ""
615
616 #. type: Plain text
617 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
618 #: opensuse-leap-16-1 opensuse-tumbleweed
619 msgid "TEMPORARY=$HOME/tmp/pmail.$$ TRAP=\"/bin/rm -f $TEMPORARY\""
620 msgstr ""
621
622 #. type: Plain text
623 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
624 #: opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "The TRAP keyword can also be used to change the exitcode of procmail. I.e. "
627 "if you want procmail to return an exitcode of `1' instead of its regular "
628 "exitcodes, you could use:"
629 msgstr ""
630
631 #. type: Plain text
632 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
633 #: opensuse-leap-16-1 opensuse-tumbleweed
634 #, no-wrap
635 msgid ""
636 "EXITCODE=\"\"\n"
637 "TRAP=\"exit 1;\" # The trailing semi-colon is important\n"
638 " # since exit is not a standalone program\n"
639 msgstr ""
640
641 #. type: Plain text
642 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
643 #: opensuse-leap-16-1 opensuse-tumbleweed
644 msgid ""
645 "Or, if the exitcode does not need to depend on the programs run from the "
646 "TRAP, you can use a mere:"
647 msgstr ""
648
649 #. type: Plain text
650 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
651 #: opensuse-leap-16-1 opensuse-tumbleweed
652 msgid "EXITCODE=1"
653 msgstr ""
654
655 #. type: Plain text
656 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
657 #: opensuse-leap-16-1 opensuse-tumbleweed
658 msgid ""
659 "The following recipe prints every incoming mail that looks like a postscript "
660 "file."
661 msgstr ""
662
663 #. type: Plain text
664 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
665 #: opensuse-leap-16-1 opensuse-tumbleweed
666 msgid ":0 Bb * ^^%! | lpr"
667 msgstr ""
668
669 #. type: Plain text
670 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
671 #: opensuse-leap-16-1 opensuse-tumbleweed
672 msgid ""
673 "The following recipe does the same, but is a bit more selective. It only "
674 "prints the postscript file if it comes from the print-server. The first "
675 "condition matches only if it is found in the header. The second condition "
676 "only matches at the start of the body."
677 msgstr ""
678
679 #. type: Plain text
680 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
681 #: opensuse-leap-16-1 opensuse-tumbleweed
682 msgid ":0 b * ^From[ :].*print-server * B ?? ^^%! | lpr"
683 msgstr ""
684
685 #. type: Plain text
686 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
687 #: opensuse-leap-16-1 opensuse-tumbleweed
688 #, no-wrap
689 msgid ""
690 ":0\n"
691 "* ^From[ :].*print-server\n"
692 "{\n"
693 " :0 B b\n"
694 " * ^^%!\n"
695 " | lpr\n"
696 "}\n"
697 msgstr ""
698
699 #. type: Plain text
700 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
701 #: opensuse-leap-16-1 opensuse-tumbleweed
702 msgid "Likewise:"
703 msgstr ""
704
705 #. type: Plain text
706 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
707 #: opensuse-leap-16-1 opensuse-tumbleweed
708 msgid ":0 HB b * ^^(.+$)*From[ :].*print-server * ^^(.+$)*^%! | lpr"
709 msgstr ""
710
711 #. type: Plain text
712 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
713 #: opensuse-leap-16-1 opensuse-tumbleweed
714 msgid ""
715 "Suppose you have two accounts, you use both accounts regularly, but they are "
716 "in very distinct places (i.e., you can only read mail that arrived at either "
717 "one of the accounts). You would like to forward mail arriving at account "
718 "one to account two, and the other way around. The first thing that comes to "
719 "mind is using .forward files at both sites; this won't work of course, since "
720 "you will be creating a mail loop. This mail loop can be avoided by "
721 "inserting the following recipe in front of all other recipes in the "
722 "$HOME/.procmailrc files on both sites. If you make sure that you add the "
723 "same X-Loop: field at both sites, mail can now safely be forwarded to the "
724 "other account from either of them."
725 msgstr ""
726
727 #. type: Plain text
728 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
729 #: opensuse-leap-16-1 opensuse-tumbleweed
730 #, no-wrap
731 msgid ""
732 ":0 c\n"
733 "* !^X-Loop: [email protected]\n"
734 "| formail -A \"X-Loop: [email protected]\" | \\e\n"
735 " $SENDMAIL -oi [email protected]\n"
736 msgstr ""
737
738 #. type: Plain text
739 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
740 #: opensuse-leap-16-1 opensuse-tumbleweed
741 msgid ""
742 "If someone sends you a mail with the word `retrieve' in the subject, the "
743 "following will automatically send back the contents of info_file to the "
744 "sender. Like in all recipes where we send mail, we watch out for mail loops."
745 msgstr ""
746
747 #. type: Plain text
748 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
749 #: opensuse-leap-16-1 opensuse-tumbleweed
750 msgid ""
751 ":0 * !^From +YOUR_USERNAME * !^Subject:.*Re: * !^FROM_DAEMON * "
752 "^Subject:.*retrieve | (formail -r ; cat info_file) | $SENDMAIL -oi -t"
753 msgstr ""
754
755 #. type: Plain text
756 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
757 #: opensuse-leap-16-1 opensuse-tumbleweed
758 msgid ""
759 "Now follows an example for a very simple fileserver accessible by mail. For "
760 "more demanding applications, I suggest you take a look at B<SmartList> "
761 "(available from the same place as the procmail distribution). As listed, "
762 "this fileserver sends back at most one file per request, it ignores the body "
763 "of incoming mails, the Subject: line has to look like \"Subject: send file "
764 "the_file_you_want\" (the blanks are significant), it does not return files "
765 "that have names starting with a dot, nor does it allow files to be retrieved "
766 "that are outside the fileserver directory tree (if you decide to munge this "
767 "example, make sure you do not inadvertently loosen this last restriction)."
768 msgstr ""
769
770 #. type: Plain text
771 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
772 #: opensuse-leap-16-1 opensuse-tumbleweed
773 #, no-wrap
774 msgid ""
775 ":0\n"
776 "* ^Subject: send file [0-9a-z]\n"
777 "* !^X-Loop: [email protected]\n"
778 "* !^Subject:.*Re:\n"
779 "* !^FROM_DAEMON\n"
780 "* !^Subject: send file .*[/.]\\e.\n"
781 "{\n"
782 " MAILDIR=$HOME/fileserver # chdir to the fileserver directory\n"
783 msgstr ""
784
785 #. type: Plain text
786 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
787 #: opensuse-leap-16-1 opensuse-tumbleweed
788 #, no-wrap
789 msgid ""
790 " :0 fhw # reverse mailheader and extract name\n"
791 " * ^Subject: send file \\e/[^ ]*\n"
792 " | formail -rA \"X-Loop: [email protected]\"\n"
793 msgstr ""
794
795 #. type: Plain text
796 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
797 #: opensuse-leap-16-1 opensuse-tumbleweed
798 #, no-wrap
799 msgid " FILE=\"$MATCH\" # the requested filename\n"
800 msgstr ""
801
802 #. type: Plain text
803 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
804 #: opensuse-leap-16-1 opensuse-tumbleweed
805 #, no-wrap
806 msgid ""
807 " :0 ah\n"
808 " | cat - ./$FILE 2E<gt>&1 | $SENDMAIL -oi -t\n"
809 "}\n"
810 msgstr ""
811
812 #. type: Plain text
813 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
814 #: opensuse-leap-16-1 opensuse-tumbleweed
815 msgid ""
816 "The following example preconverts all plain-text mail arriving in certain "
817 "encoded MIME formats into a more compact 8-bit format which can be used and "
818 "displayed more easily by most programs. The B<mimencode>(1) program is "
819 "part of Nathaniel Borenstein's metamail package."
820 msgstr ""
821
822 #. type: Plain text
823 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
824 #: opensuse-leap-16-1 opensuse-tumbleweed
825 #, no-wrap
826 msgid ""
827 ":0\n"
828 "* ^Content-Type: *text/plain\n"
829 "{\n"
830 " :0 fbw\n"
831 " * ^Content-Transfer-Encoding: *quoted-printable\n"
832 " | mimencode -u -q\n"
833 msgstr ""
834
835 #. type: Plain text
836 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
837 #: opensuse-leap-16-1 opensuse-tumbleweed
838 #, no-wrap
839 msgid ""
840 " :0 Afhw\n"
841 " | formail -I \"Content-Transfer-Encoding: 8bit\"\n"
842 msgstr ""
843
844 #. type: Plain text
845 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
846 #: opensuse-leap-16-1 opensuse-tumbleweed
847 #, no-wrap
848 msgid ""
849 " :0 fbw\n"
850 " * ^Content-Transfer-Encoding: *base64\n"
851 " | mimencode -u -b\n"
852 msgstr ""
853
854 #. type: Plain text
855 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
856 #: opensuse-leap-16-1 opensuse-tumbleweed
857 #, no-wrap
858 msgid ""
859 " :0 Afhw\n"
860 " | formail -I \"Content-Transfer-Encoding: 8bit\"\n"
861 "}\n"
862 msgstr ""
863
864 #. type: Plain text
865 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
866 #: opensuse-leap-16-1 opensuse-tumbleweed
867 msgid ""
868 "The following one is rather exotic, but it only serves to demonstrate a "
869 "feature. Suppose you have a file in your HOME directory called \".urgent\", "
870 "and the (one) person named in that file is the sender of an incoming mail, "
871 "you'd like that mail to be stored in $MAILDIR/urgent instead of in any of "
872 "the normal mailfolders it would have been sorted in. Then this is what you "
873 "could do (beware, the filelength of $HOME/.urgent should be well below "
874 "$LINEBUF, increase LINEBUF if necessary):"
875 msgstr ""
876
877 #. type: Plain text
878 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
879 #: opensuse-leap-16-1 opensuse-tumbleweed
880 msgid "URGMATCH=`cat $HOME/.urgent`"
881 msgstr ""
882
883 #. type: Plain text
884 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
885 #: opensuse-leap-16-1 opensuse-tumbleweed
886 msgid ":0: * $^From.*${URGMATCH} urgent"
887 msgstr ""
888
889 #. type: Plain text
890 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
891 #: opensuse-leap-16-1 opensuse-tumbleweed
892 msgid ""
893 "An entirely different application for procmail would be to conditionally "
894 "apply filters to a certain (outgoing) text or mail. A typical example would "
895 "be a filter through which you pipe all outgoing mail, in order to make sure "
896 "that it will be MIME encoded only if it needs to be. I.e. in this case you "
897 "could start procmail in the middle of a pipe like:"
898 msgstr ""
899
900 #. type: Plain text
901 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
902 #: opensuse-leap-16-1 opensuse-tumbleweed
903 msgid "cat newtext | procmail ./mimeconvert | mail [email protected]"
904 msgstr ""
905
906 #. type: Plain text
907 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
908 #: opensuse-leap-16-1 opensuse-tumbleweed
909 msgid ""
910 "The B<mimeconvert> rcfile could contain something like (the =0x80= and "
911 "=0xff= should be substituted with the real 8-bit characters):"
912 msgstr ""
913
914 #. type: Plain text
915 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
916 #: opensuse-leap-16-1 opensuse-tumbleweed
917 #, no-wrap
918 msgid ""
919 "DEFAULT=| # pipe to stdout instead of\n"
920 " # delivering mail as usual\n"
921 ":0 Bfbw\n"
922 "* [=0x80=-=0xff=]\n"
923 "| mimencode -q\n"
924 msgstr ""
925
926 #. type: Plain text
927 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
928 #: opensuse-leap-16-1 opensuse-tumbleweed
929 #, no-wrap
930 msgid ""
931 " :0 Afhw\n"
932 " | formail -I 'MIME-Version: 1.0' \\e\n"
933 " -I 'Content-Type: text/plain; charset=ISO-8859-1' \\e\n"
934 " -I 'Content-Transfer-Encoding: quoted-printable'\n"
935 msgstr ""
936
937 #. type: SH
938 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
939 #: opensuse-leap-16-1 opensuse-tumbleweed
940 #, no-wrap
941 msgid "SEE ALSO"
942 msgstr ""
943
944 #. type: Plain text
945 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
946 #: opensuse-leap-16-1 opensuse-tumbleweed
947 msgid ""
948 "B<procmail>(1), B<procmailrc>(5), B<procmailsc>(5), B<sh>(1), B<csh>(1), "
949 "B<mail>(1), B<mailx>(1), B<uucp>(1), B<aliases>(5), B<sendmail>(8), "
950 "B<egrep>(1), B<grep>(1), B<biff>(1), B<comsat>(8), B<mimencode>(1), "
951 "B<lockfile>(1), B<formail>(1)"
952 msgstr ""
953
954 #. type: SH
955 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
956 #: opensuse-leap-16-1 opensuse-tumbleweed
957 #, no-wrap
958 msgid "AUTHORS"
959 msgstr ""
960
961 #. type: Plain text
962 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
963 #: opensuse-leap-16-1 opensuse-tumbleweed
964 msgid "Stephen R. van den Berg"
965 msgstr ""
966
967 #. type: Plain text
968 #: debian-trixie debian-unstable fedora-44 fedora-rawhide mageia-cauldron
969 #: opensuse-leap-16-1 opensuse-tumbleweed
970 msgid "E<lt>[email protected]<gt>"
971 msgstr ""
972
973 #. type: Plain text
974 #: debian-trixie debian-unstable
975 msgid "Philip A. Guenther"
976 msgstr ""
977
978 #. type: Plain text
979 #: debian-trixie debian-unstable
980 msgid "E<lt>[email protected]<gt>"
981 msgstr ""
982
983 #. type: Plain text
984 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
985 #: opensuse-tumbleweed
986 msgid ""
987 "If your system doesn't generate or generates incorrect leading `From ' lines "
988 "on every mail, you can fix this by calling up procmail with the -f- option. "
989 "To fix the same problem by different means, you could have inserted the "
990 "following recipe above all other recipes in your rcfile. They will filter "
991 "the header of any mail through formail which will strip any leading `From ', "
992 "and automatically regenerates it subsequently."
993 msgstr ""
994
995 #. type: Plain text
996 #: fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
997 #: opensuse-tumbleweed
998 msgid "SHELL=/bin/sh # only needed for older versions of procmail"
999 msgstr ""
1000
1001 #. type: Plain text
1002 #: opensuse-leap-16-1 opensuse-tumbleweed
1003 msgid ""
1004 "This man page shows several example recipes. For examples of complete "
1005 "rcfiles you can check the NOTES section in B<procmail>(1), or look at the "
1006 "example rcfiles in /usr/share/doc/packages/procmail/examples."
1007 msgstr ""