<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.yobi.be/index.php?action=history&amp;feed=atom&amp;title=Procmail</id>
	<title>Procmail - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yobi.be/index.php?action=history&amp;feed=atom&amp;title=Procmail"/>
	<link rel="alternate" type="text/html" href="https://wiki.yobi.be/index.php?title=Procmail&amp;action=history"/>
	<updated>2026-05-23T03:34:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.yobi.be/index.php?title=Procmail&amp;diff=6863&amp;oldid=prev</id>
		<title>PhilippeTeuwen: Reverted edits by Etegohy (Talk) to last revision by PhilippeTeuwen</title>
		<link rel="alternate" type="text/html" href="https://wiki.yobi.be/index.php?title=Procmail&amp;diff=6863&amp;oldid=prev"/>
		<updated>2010-11-24T20:36:06Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/index.php?title=Special:Contributions/Etegohy&quot; title=&quot;Special:Contributions/Etegohy&quot;&gt;Etegohy&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Etegohy&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Etegohy (page does not exist)&quot;&gt;Talk&lt;/a&gt;) to last revision by &lt;a href=&quot;/index.php?title=User:PhilippeTeuwen&quot; title=&quot;User:PhilippeTeuwen&quot;&gt;PhilippeTeuwen&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can&#039;t load revision 6863&lt;/p&gt;</summary>
		<author><name>PhilippeTeuwen</name></author>
	</entry>
	<entry>
		<id>https://wiki.yobi.be/index.php?title=Procmail&amp;diff=6705&amp;oldid=prev</id>
		<title> at 00:32, 24 November 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.yobi.be/index.php?title=Procmail&amp;diff=6705&amp;oldid=prev"/>
		<updated>2010-11-24T00:32:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can&#039;t load revision 6705&lt;/p&gt;</summary>
		<author><name></name></author>
	</entry>
	<entry>
		<id>https://wiki.yobi.be/index.php?title=Procmail&amp;diff=4982&amp;oldid=prev</id>
		<title>PhilippeTeuwen: /* Calling mairix by writing emails */</title>
		<link rel="alternate" type="text/html" href="https://wiki.yobi.be/index.php?title=Procmail&amp;diff=4982&amp;oldid=prev"/>
		<updated>2008-09-20T22:53:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Calling mairix by writing emails&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:53, 20 September 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==[[Mail_Tips#mairix|Calling mairix by writing emails]]==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==[[Mail_Tips#mairix|Calling mairix by writing emails]]==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==[[Alert_notifications#Jabber.2FSMS_alerts|Sending Jabber notifications]]==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Sort and copy==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Sort and copy==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-mw_:diff:1.41:old-4964:rev-4982:wikidiff2=table:1.14.1:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>PhilippeTeuwen</name></author>
	</entry>
	<entry>
		<id>https://wiki.yobi.be/index.php?title=Procmail&amp;diff=4964&amp;oldid=prev</id>
		<title>PhilippeTeuwen: /* winmail.dat */</title>
		<link rel="alternate" type="text/html" href="https://wiki.yobi.be/index.php?title=Procmail&amp;diff=4964&amp;oldid=prev"/>
		<updated>2008-09-18T16:32:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;winmail.dat&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:32, 18 September 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; * &amp;gt; 0&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; * &amp;gt; 0&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; | /usr/bin/ytnef-filter&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; | /usr/bin/ytnef-filter&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==[[Mail_Tips#mairix|Calling mairix by writing emails]]==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Sort and copy==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Sort and copy==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-mw_:diff:1.41:old-1478:rev-4964:wikidiff2=table:1.14.1:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>PhilippeTeuwen</name></author>
	</entry>
	<entry>
		<id>https://wiki.yobi.be/index.php?title=Procmail&amp;diff=1478&amp;oldid=prev</id>
		<title>PhilippeTeuwen at 22:41, 24 November 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.yobi.be/index.php?title=Procmail&amp;diff=1478&amp;oldid=prev"/>
		<updated>2006-11-24T22:41:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Installation==&lt;br /&gt;
 apt-get install procmail&lt;br /&gt;
installer les ~/.procmailrc tels que celui-ci:&lt;br /&gt;
&lt;br /&gt;
Exemple de ~/.procmailrc:&lt;br /&gt;
&lt;br /&gt;
 #Preliminaries&lt;br /&gt;
 SHELL=/bin/bash               #Use the Bourne shell (check your path!)&lt;br /&gt;
 MAILDIR=${HOME}/Maildir/      #First check what your mail directory is!&lt;br /&gt;
 LOGFILE=${MAILDIR}procmail.log&lt;br /&gt;
 DEFAULT=${MAILDIR}&lt;br /&gt;
 ORGMAIL=${MAILDIR}&lt;br /&gt;
 #LOG=&amp;quot;--- Logging ${LOGFILE} for ${LOGNAME}, &amp;quot;&lt;br /&gt;
 UMASK=007&lt;br /&gt;
 COMSAT=no                     # If you don&amp;#039;t use biff/comsat notifier&lt;br /&gt;
 &lt;br /&gt;
 #Troubleshooting:&lt;br /&gt;
 VERBOSE=no&lt;br /&gt;
 #LOGABSTRACT=all&lt;br /&gt;
 LOGABSTRACT=no&lt;br /&gt;
 &lt;br /&gt;
 #Whatever recipes you&amp;#039;ll use&lt;br /&gt;
 #The order of the recipes is significant&lt;br /&gt;
 &lt;br /&gt;
 ## Pour utiliser une install locale de spamassassin:&lt;br /&gt;
 ## On trie ce qui a déjà été scanné et taggué comme spam:&lt;br /&gt;
 :0&lt;br /&gt;
 * ^X-Spam-Status: Yes|\&lt;br /&gt;
   ^X-Spam-Flag: YES|\&lt;br /&gt;
   ^Subject: \*\*\*\*\*SPAM\*\*\*\*\*&lt;br /&gt;
 .SPAM/&lt;br /&gt;
 ## On appelle spamassassin puis on continue les règles de tri&lt;br /&gt;
 :0fw: spamassassin.lock&lt;br /&gt;
 * &amp;lt;&lt;br /&gt;
 | /usr/local/bin/spamassassin -a&lt;br /&gt;
 ## On écarte les mails taggués comme spam&lt;br /&gt;
 :0&lt;br /&gt;
 * ^X-Spam-Flag: YES&lt;br /&gt;
 .Internet.SPAM/&lt;br /&gt;
 &lt;br /&gt;
 ## Exemple complexe pour envoyer un SMS via un mail avec pour sujet: &amp;quot;[SMS:021234567] corps du SMS&amp;quot;&lt;br /&gt;
 ## [SMS:]&lt;br /&gt;
 #:0 c&lt;br /&gt;
 #* ^Subject: \[SMS:[0-9]+\]&lt;br /&gt;
 #|gawk &amp;#039;/^Subject: \[SMS/{sub(/^Subject: \[SMS:[0-9]+\]/,&amp;quot;&amp;quot;);print}&amp;#039;|linuxsms -server:gomobile2 -prefix:32 -number:$MATCH&lt;br /&gt;
 &lt;br /&gt;
 :0&lt;br /&gt;
 * ^From: root@teuwen\.org&lt;br /&gt;
 .Logs/&lt;br /&gt;
 &lt;br /&gt;
 # Pour trier toutes les mailing-lists de Debian dans des folders séparés:&lt;br /&gt;
 :0&lt;br /&gt;
 * ^X-Mailing-List: &amp;lt;debian-.+@lists\.debian\.org&amp;gt;&lt;br /&gt;
 * ^X-Mailing-List: &amp;lt;debian-\/[-a-zA-Z0-9]+&lt;br /&gt;
 .Debian.$MATCH/&lt;br /&gt;
&lt;br /&gt;
Voir MailServer, section Procmail pour plus d&amp;#039;infos&lt;br /&gt;
&amp;lt;br&amp;gt;ainsi que:&lt;br /&gt;
 apt-get install procmail-lib&lt;br /&gt;
Pour vérifier la syntaxe du fichier:&lt;br /&gt;
 proclint ~/.procmailrc&lt;br /&gt;
Nombreuses recettes dans /usr/share/procmail-lib qu&amp;#039;on peut inclure via INCLUDERC,&lt;br /&gt;
&amp;lt;br&amp;gt; cf /usr/share/doc/procmail-lib/examples&lt;br /&gt;
&lt;br /&gt;
==winmail.dat==&lt;br /&gt;
&lt;br /&gt;
Pour décoder les attachements d&amp;#039;Outlook, utiliser ytnef et éventuellement l&amp;#039;intégrer à procmail:&lt;br /&gt;
 apt-get install ytnef libmime-perl libmailtools-perl&lt;br /&gt;
(en tant q&amp;#039;utilisateur:)&lt;br /&gt;
 mkdir -p ~~/.ytnef/output&lt;br /&gt;
dans ~/.procmailrc, ajouter qqch comme:&lt;br /&gt;
 PATH=/bin:/usr/bin&lt;br /&gt;
 HOME=/home/&amp;lt;user&amp;gt;&lt;br /&gt;
 :0fw&lt;br /&gt;
 * &amp;gt; 0&lt;br /&gt;
 | /usr/bin/ytnef-filter&lt;br /&gt;
&lt;br /&gt;
==Sort and copy==&lt;br /&gt;
&lt;br /&gt;
Le but de ce setup est de trier les mails, les marquer comme lus, et placer une copie non-lue dans un répertoire commun .&amp;lt;br&amp;gt;Ainsi pour consulter les nouveaux mails, un seul répertoire à regarder où l&amp;#039;on efface au fur et à mesure les mails qu&amp;#039;on a lu.&amp;lt;br&amp;gt;Les mails triés habituellement servent alors uniquement d&amp;#039;archives.&lt;br /&gt;
&lt;br /&gt;
.procmail-file.rc&lt;br /&gt;
 #.procmail-file.rc&lt;br /&gt;
 #&lt;br /&gt;
 # Author: Philippe Teuwen &amp;lt;phil@teuwen.org&amp;gt;&lt;br /&gt;
 #&lt;br /&gt;
 # Set these variables before invoking:&lt;br /&gt;
 #&lt;br /&gt;
 # As global:&lt;br /&gt;
 # COPYDEST      Destination to drop a copy of the filed mail, this copy will be left unread&lt;br /&gt;
 # Per rule:&lt;br /&gt;
 # REGEXn        With n=1..3, allows to have up to three regexps on the headers (^ is already prepend)&lt;br /&gt;
 # DEST          Destination into which addressed mail will be dropped, this copy will be marked as read&lt;br /&gt;
 # NOCOPY=1      (opt) Set the variable to avoid leaving the copy, only filing and marking as read&lt;br /&gt;
 # INCLUDERC=.procmail-file.rc&lt;br /&gt;
 &lt;br /&gt;
 :0&lt;br /&gt;
 * $REGEX3 ?? .&lt;br /&gt;
 * $REGEX2 ?? .&lt;br /&gt;
 * $REGEX1 ?? .&lt;br /&gt;
 * $ ^$REGEX1&lt;br /&gt;
 * $ ^$REGEX2&lt;br /&gt;
 * $ ^$REGEX3&lt;br /&gt;
 {&lt;br /&gt;
   :0 c&lt;br /&gt;
   * ! $NOCOPY ?? .&lt;br /&gt;
   $COPYDEST&lt;br /&gt;
 &lt;br /&gt;
   # To file the mail as usual (c is just to continue rules processing, the copy won&amp;#039;t be used)&lt;br /&gt;
   :0 c&lt;br /&gt;
   $DEST&lt;br /&gt;
 &lt;br /&gt;
   # To mark the last mail as read by renaming the file&lt;br /&gt;
   :0 ai&lt;br /&gt;
   * LASTFOLDER ?? ()\/[^/]+^^&lt;br /&gt;
   |mv &amp;quot;$LASTFOLDER&amp;quot; &amp;quot;$DEST/cur/$MATCH:2,S&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 :0&lt;br /&gt;
 * ! $REGEX3 ?? .&lt;br /&gt;
 * $REGEX2 ?? .&lt;br /&gt;
 * $REGEX1 ?? .&lt;br /&gt;
 * $ ^$REGEX1&lt;br /&gt;
 * $ ^$REGEX2&lt;br /&gt;
 {&lt;br /&gt;
   :0 c&lt;br /&gt;
   * ! $NOCOPY ?? .&lt;br /&gt;
   $COPYDEST&lt;br /&gt;
 &lt;br /&gt;
   # To file the mail as usual (c is just to continue rules processing, the copy won&amp;#039;t be used)&lt;br /&gt;
   :0 c&lt;br /&gt;
   $DEST&lt;br /&gt;
 &lt;br /&gt;
   # To mark the last mail as read by renaming the file&lt;br /&gt;
   :0 ai&lt;br /&gt;
   * LASTFOLDER ?? ()\/[^/]+^^&lt;br /&gt;
   |mv &amp;quot;$LASTFOLDER&amp;quot; &amp;quot;$DEST/cur/$MATCH:2,S&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 :0&lt;br /&gt;
 * ! $REGEX3 ?? .&lt;br /&gt;
 * ! $REGEX2 ?? .&lt;br /&gt;
 * $REGEX1 ?? .&lt;br /&gt;
 * $ ^$REGEX1&lt;br /&gt;
 {&lt;br /&gt;
   :0 c&lt;br /&gt;
   * ! $NOCOPY ?? .&lt;br /&gt;
   $COPYDEST&lt;br /&gt;
 &lt;br /&gt;
   # To file the mail as usual (c is just to continue rules processing, the copy won&amp;#039;t be used)&lt;br /&gt;
   :0 c&lt;br /&gt;
   $DEST&lt;br /&gt;
 &lt;br /&gt;
   # To mark the last mail as read by renaming the file&lt;br /&gt;
   :0 ai&lt;br /&gt;
   * LASTFOLDER ?? ()\/[^/]+^^&lt;br /&gt;
   |mv &amp;quot;$LASTFOLDER&amp;quot; &amp;quot;$DEST/cur/$MATCH:2,S&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 REGEX1=&lt;br /&gt;
 REGEX2=&lt;br /&gt;
 REGEX3=&lt;br /&gt;
 NOCOPY=&lt;br /&gt;
&lt;br /&gt;
.procmailrc&lt;br /&gt;
 COPYDEST=.Already_filed/&lt;br /&gt;
 FILER=&amp;quot;${HOME}/.procmail-file.rc&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # Example: 2 regex to select mail s from root and with subject Cron&lt;br /&gt;
 REGEX1=&amp;quot;From:.*root&amp;quot;&lt;br /&gt;
 REGEX2=&amp;quot;Subject: Cron&amp;quot;&lt;br /&gt;
 DEST=.Logs.Cron/                        INCLUDERC=$FILER&lt;br /&gt;
 &lt;br /&gt;
 # Another example: reminders are folded and marked as read but&lt;br /&gt;
 # we don&amp;#039;t even want to see them in our COPYDEST&lt;br /&gt;
 REGEX1=&amp;quot;Subject:.*mailing list memberships reminder&amp;quot;&lt;br /&gt;
 NOCOPY=1&lt;br /&gt;
 DEST=.Mailing-lists.reminders/          INCLUDERC=$FILER&lt;/div&gt;</summary>
		<author><name>PhilippeTeuwen</name></author>
	</entry>
</feed>