<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.mail.procmail">
    <title>gmane.mail.procmail</title>
    <link>http://blog.gmane.org/gmane.mail.procmail</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48117"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48116"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48115"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48114"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48113"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48112"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48111"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48110"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48109"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48108"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48107"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48106"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48105"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48104"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48103"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48102"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48101"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48100"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48099"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.mail.procmail/48098"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48117">
    <title>Re: generate line number in log files</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48117</link>
    <description>&lt;pre&gt;in message &amp;lt;20130505115657.GB1901&amp;lt; at &amp;gt;ratatosk&amp;gt;,
wrote Erik Christiansen thusly...

In which case ...

  # cat -n log

  # less --LINE-NUMBERS log




-- &lt;/pre&gt;</description>
    <dc:creator>parv&lt; at &gt;pair.com</dc:creator>
    <dc:date>2013-05-05T12:26:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48116">
    <title>Re: generate line number in log files</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48116</link>
    <description>&lt;pre&gt;
Line numbers only need to be visible when the file is viewed by a human,
I figure. So, if you're viewing the file in vim:

:set number

That covers the use cases that my imagination offers up.

Erik

&lt;/pre&gt;</description>
    <dc:creator>Erik Christiansen</dc:creator>
    <dc:date>2013-05-05T11:56:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48115">
    <title>Re: generate line number in log files</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48115</link>
    <description>&lt;pre&gt;
On 04 May 2013, at 09:10 , Eric Smith &amp;lt;es&amp;lt; at &amp;gt;fruitcom.com&amp;gt; wrote:


No, not really.


Sure. just log the filename at the beginning of the file.

LOG="Starting .procmailr"
LOG="Starting .proclistprocess"

etc.


&lt;/pre&gt;</description>
    <dc:creator>LuKreme</dc:creator>
    <dc:date>2013-05-04T20:31:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48114">
    <title>generate line number in log files</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48114</link>
    <description>&lt;pre&gt;
Is there any method for having line numbers and script filenames
printed in the procmail log files.

Avoid brute force method of multiple LOG="foo" invocations.

--
Eric Smith
&lt;/pre&gt;</description>
    <dc:creator>Eric Smith</dc:creator>
    <dc:date>2013-05-04T15:10:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48113">
    <title>Dealing with list messages that are Cc to you</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48113</link>
    <description>&lt;pre&gt;I know we covered this several times many years ago, but at the time my solution was "If it's to my list account and it's not from a list, discard it"

Sadly, that is no longer an option, so I need a way to do the following:

If a message is TO me and ONLY to me, file it.
If a message is to me and ALSO to a list, file it somewhere else (possibly /dev/null :)
If a message is NOT to me, treat it as a list message (that is, let it fall through)

I have all the recipes in place to deal with the list messages.

I though that maybe this,a after all list processing might work:

:0
* 9876543210^1 ! X-Original-To:.*kremels&amp;lt; at &amp;gt;kreme.com
* 9876543210^1 ! TO_kremels&amp;lt; at &amp;gt;kreme\.com
{
   TRAP='mv "$LASTFOLDER" "${LASTFOLDER}:2,S"'

   :0
   .not-to-me/
}

Which should let all the mail that is addressed to my list account fall through to $DEFAULT (the InBox) right?

&lt;/pre&gt;</description>
    <dc:creator>LuKreme</dc:creator>
    <dc:date>2013-03-06T18:44:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48112">
    <title>Re: Procmail with faceless account</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48112</link>
    <description>&lt;pre&gt;
You can invoke procmail from an alias (i.e. a non-account mail 
identity).  Mailing lists are/were often configured this way.  I have 
mail on a large site that pumps through procmail in this fashion.


Sounds rather like they're finding more and more things to ask 
someone else to write for them.


See my preceeding comment.  In some circles, this is called "job 
security".  If nobody else wants to learn the environment, and you're 
the one guy who does, seems you're in a good position.


I know there has been interest in having such an interface, but as 
the power of procmail is in being able to run external processes and 
chaining rules, etc, setting up a library and UI with which a 
neophyte could compose worthwhile rules without shooting themselves 
in the foot would be a major undertaking.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: &amp;lt;http://www.professional.org/procmail/disclaimer.html&amp;gt;
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.
&lt;/pre&gt;</description>
    <dc:creator>Professional Software Engineering</dc:creator>
    <dc:date>2013-02-02T14:48:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48111">
    <title>Procmail with faceless account</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48111</link>
    <description>&lt;pre&gt;Hi all,

I've been using Procmail for a bunch of years for various reasons. Currently I'm using it as an enterprise tool using a faceless account instead of a real user's account. We've tightly integrated Procmail with our support desk ticketing system. Messages come from various internal and external distribution lists, automated processes, faceless accounts, web based forms, and various IT devices. Based on our rules, we generate tickets that are auto-routed in the ticketing system pre-defined users/groups. Some messages get tickets, some get deleted etc. With this in mind, I have a couple questions for the group here.


1.       Procmail seems to be typically used or end users to manage their own mail. I haven't really run across any sites discussing it being used in this way. Is this a novel approach or have others gone down this path before? It seems that with the way most folks use email today (not from a shell), using Procmail in this way may give it more value and exposure than it's had in the past. I know that once folks in my organization started realizing what could be done (since email is so heavily used in many ways), they started finding more and more uses for it.

2.       Because we're using it as an enterprise application that's centrally managed AND there's almost nobody here that understands/uses the CLI in a Linux environment, I was thinking about some type of web based frontend for managing all our rules. Though you'd still have to understand regular expressions and the scripts that I've written, it would reduce one barrier. Is there anything like this or has anyone thought about it? I looked at the Procmail Webmin/Usermin interface and it sort of works but since I INCLUDE a bunch of rule files, I didn't see how to manage those, only the INCLUDE rules. Thoughts?

Thanks in advance.
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail&amp;lt; at &amp;gt;lists.RWTH-Aachen.de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
&lt;/pre&gt;</description>
    <dc:creator>Peters, Ron</dc:creator>
    <dc:date>2013-02-01T19:04:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48110">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48110</link>
    <description>&lt;pre&gt;


You misunderstood. The _sequence_of_processing_ is what you have to look in
the source to determine.  WHAT happens is documented -- for _when_ it occurs
one must check the source.


Well, then, obviously, it isn't happening! 
You can disregard everything in this thread,
including the initial report.    &amp;lt;grin&amp;gt; 
&lt;/pre&gt;</description>
    <dc:creator>Robert Bonomi</dc:creator>
    <dc:date>2013-01-15T18:16:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48109">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48109</link>
    <description>&lt;pre&gt;
On 14 Jan 2013, at 23:58 , Robert Bonomi &amp;lt;bonomi&amp;lt; at &amp;gt;mail.r-bonomi.com&amp;gt; wrote:


MH support was added very early, and maildir support was added in 3.14.


So it's *not* documented.

The only part of the source that seems to deal with escaping the From is formail, and there is quite a lot about how to either escape or not escape 'bogus' from lines. But that makes sense as formal is specifically setup to process mbox files by default.
 

&lt;/pre&gt;</description>
    <dc:creator>LuKreme</dc:creator>
    <dc:date>2013-01-15T17:45:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48108">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48108</link>
    <description>&lt;pre&gt;

for the first statement -- firsthand experience.  I used it when it was
'mbox only'.

For the second, "Use the source, Luke."
&lt;/pre&gt;</description>
    <dc:creator>Robert Bonomi</dc:creator>
    <dc:date>2013-01-15T06:58:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48107">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48107</link>
    <description>&lt;pre&gt;

Cite?


Cite? It is certainly not documented n any of the procmail manpages on my system.

For the record, procmail was first released in 1990. Maildir in 1995, and MH folders date from 1979.

&lt;/pre&gt;</description>
    <dc:creator>LuKreme</dc:creator>
    <dc:date>2013-01-15T00:36:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48106">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48106</link>
    <description>&lt;pre&gt;
I disagree.  First, most of the software that can operate on mbox
format works exactly like "grep -i '^From '".  Second, I regularly
work with mboxes where the '^From ' lines aren't preceded by a blank
line.  I use an alias 'fivmail' to do 'formail -bcde -m1'.

To extend your argument, that the extra blank line would rule out the
need for escaping in most cases, the mail program that creates these
pathological files, itself parses '^From ' lines strictly.  It has to
be followed by a 'user&amp;lt; at &amp;gt;host', then something that looks like a date.

And it's case-sensitive.  Just that one requirement could improve the
situation dramatically.  The point is, escaping is all but irrelevant,
to this program, in spite of its output that's so unfriendly to input.

But there are so many programs that "handle" mbox by working exactly
like grep -i '^From ', that this escaping now creeps in at every level
of many mailsystems.  Procmail's fix is stupid, but it is undeniably a
better outcome than the problems it prevents.

Mike
&lt;/pre&gt;</description>
    <dc:creator>Mike Peeler</dc:creator>
    <dc:date>2013-01-14T23:56:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48105">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48105</link>
    <description>&lt;pre&gt;
a) Improper usage.  &amp;lt;grin&amp;gt;

   It's _by_ not "on".

b) it is documented behavior.


Immaterial and irrelevant.  Unfortunate, but accurate.

Procmail originates from the days when 'mbox-format' was the -only- mail
storage format.

Multiple storage format support was added much later.  '^From ' escaping
is done _long_before_ the 'delivery location' storage format is determined.
(More-or-less unavoidable, given the program's internal logic.)

This quirk[1] of procmail is well-known -- people have griped about it for
years (decades) -- and =nobody= has managed to come up with a 'fix' for
it.



[1] It's documented, Thus, per the classic IBM standard "it's a feature, not
    a bug."
&lt;/pre&gt;</description>
    <dc:creator>Robert Bonomi</dc:creator>
    <dc:date>2013-01-14T17:46:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48104">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48104</link>
    <description>&lt;pre&gt;
On 13 Jan 2013, at 15:22 , Robert Bonomi &amp;lt;bonomi&amp;lt; at &amp;gt;mail.r-bonomi.com&amp;gt; wrote:


Hoisted on your own petard.


WHich is why I was sure to point out that messages were bing delivered to maildir. There are no mbox files on the server. At all.

&lt;/pre&gt;</description>
    <dc:creator>LuKreme</dc:creator>
    <dc:date>2013-01-14T16:11:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48103">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48103</link>
    <description>&lt;pre&gt;
On 13 Jan 2013, at 14:55 , Bart Schaefer &amp;lt;barton.schaefer&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:


Not very easily, no. Everything gets handed to procmail.


&lt;/pre&gt;</description>
    <dc:creator>LuKreme</dc:creator>
    <dc:date>2013-01-14T16:09:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48102">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48102</link>
    <description>&lt;pre&gt;

IIRC, this is supposed to apply ONLY to "^From " preceeded by a blank line.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: &amp;lt;http://www.professional.org/procmail/disclaimer.html&amp;gt;
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.
&lt;/pre&gt;</description>
    <dc:creator>Professional Software Engineering</dc:creator>
    <dc:date>2013-01-14T15:13:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48101">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48101</link>
    <description>&lt;pre&gt;

RTFM applies. &amp;lt;grin&amp;gt;

This is _necessary_ for mbox-format messages.

A line starting with "From " (5 chars) is the marker for the beginning of
a new message.  

Therefore, an embedded '^From ' is always escaped by the local delivery agent.
&lt;/pre&gt;</description>
    <dc:creator>Robert Bonomi</dc:creator>
    <dc:date>2013-01-13T22:22:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48100">
    <title>Re: The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48100</link>
    <description>&lt;pre&gt;On Jan 13, 2013, at 12:38 PM, LuKreme &amp;lt;kremels&amp;lt; at &amp;gt;kreme.com&amp;gt; wote:

This might be happening in the MTA before the message even reaches procmail.  Are you able to try a delivery with procmail completely disabled?
&lt;/pre&gt;</description>
    <dc:creator>Bart Schaefer</dc:creator>
    <dc:date>2013-01-13T21:55:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48099">
    <title>The escaped From bugaboo</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48099</link>
    <description>&lt;pre&gt;
I got an email today with this paragraph in it:

***
These new “post-Panamax” ships are the length of aircraft carriers.
of the Lincoln Memorial. The ships can carry as many as 12,000
containers, or about a million flat-screen TVs.
***

As you can see, the "From" is escaped.

I'm not sure why this continues to happen, and it happens on an email that is delivered without a .procmailrc, which makes me think the issue is in the default procmailrc. The only part that modifies the original message is the formail to add the X-Hostname header.

cat /usr/local/etc/procmailrc 
DATE=`date '+%Y%m%d%H%M%S'`
LOGFILE=/var/log/procmail
LOGABSTRACT=NO
HOSTNAME=`hostname`
NL="
"
WS="  "

:0c
{
        :0
        /backup/imap.backup/
}

:0
{
  INCLUDERC=/usr/local/etc/furrin.rc

  LOG="SPAM:${NL} ${SPAMVAL}${NL} ${SPAMMISHNESS}${NL} ${SPAMNOTES}${NL}"
}

:0fw
| formail -I"X-Hostname: $HOSTNAME"

# from Sean B Straw
# provide FROM_USER, FROM_DOMAIN, SUBJECT, TO, FROM, ENVTO, ENVFROM

:0
{
        :0
        * $ ^Subject:$WS*\/[^$WS].*
        { SUBJECT=$MATCH }

        :0
        * $ ^To:[$WS]+\/[^$WS].*
        { TO=$MATCH }

        :0
        * $ ^From:[$WS]+\/[^$WS].*
        { FROM=$MATCH }

        # This is an optional header - your MTA configuration may not insert
        # it (bummer for you).  It is very useful to have
        :0
        * 9876543210^0 ^X-Original-To: *&amp;lt;\/[^&amp;gt;]*
        * 9876543210^0 ^X-Envelope-To: *&amp;lt;\/[^&amp;gt;]*
        { ENVTO=$MATCH }

        # This is also an optional header.  If you don't have this, you can
        # get the same information through the commented out rule which
        # follows.
        :0
        * ^X-Envelope-From: *\/[^$WS].*
        { ENVFROM=$MATCH }

        # alternative to X-Envelope-From:
       :0
       * ^From \/[^ ]*
       { ENVFROM=$MATCH }

        # Here we have to call shell.... -rt will parse return address
        # according to RFC rules.  Note we only process HEADER.
        :0 h
        SENDER=|formail -b -rtzxTo:

        # get the From: address as an address component ONLY (no comments)
        :0 h
        CLEANFROM=|formail -IReply-To: -rtzxTo:

        # username portion
        :0
        * CLEANFROM ?? ^\/[^&amp;lt; at &amp;gt;]+
        { FROM_USER=$MATCH }

        # domain portion
        :0
        * CLEANFROM ?? &amp;lt; at &amp;gt;\/.*
        { FROM_DOMAIN=$MATCH }

:0
* FROM_DOMAIN ?? .*\/([^\.]+)
{ TOPD = $MATCH }
        :0
        * Received:.*from \/.*by mail.covisp.net
        * MATCH ?? ^^\/[^)]+
        { DFROM = $MATCH }


     # Obtain the hostname of the host which relayed the message to us.
     # This is found in the topmost received header.
     
     RELAYHOSTX=`formail -u Received: -czx Received:`
     
     # The hostname provided in the SMTP EHLO exchange will be the first
     # token on this line.
     :0
     * RELAYHOSTX ?? ^from \/[^    ]*
     {
     RELAYHOSTEHLO=$MATCH
     }
     
     # Then isolate the hostname portion (if any) in the parenthetical.
     :0
     * RELAYHOSTX ?? ^from [^   ]* \(\/[^)]*\)\&amp;gt;+by\&amp;gt;
     * MATCH ?? ^\/[^)]+
     {
     RELAYHOSTX=$MATCH
     
     :0
     * RELAYHOSTX ?? ^\/[^[ ]+
     {
     # grab whatever up to the first space or the open
     # brackets for the IP
     RELAYHOST=$MATCH
     }
     
     :0
     * RELAYHOSTX ?? ()\[\/[^] ]+
     {
     # grab the apparent host IP from the brackets
     RELAYHOSTIP=$MATCH
     }
     }
     
     # null out RELAYHOSTX (temp variable used in the extraction process)
     RELAYHOSTX=
     
     # if the relay host has no rDNS, RELAYHOST should be undefined.
}

LOG="RELAYHOSTEHLO=$RELAYHOSTEHLO RELAYHOSTIP=$RELAYHOSTIP $NL"

# the RELAYHOSTELHO should match against all known aliases for your host
# - the IP(s), the hostname(s), and localhost.  RELAYHOSTIP should be the
# IPs and localhost IP (127.0.0.1).
:0
* RELAYHOSTEHLO ?? (75\.148\.117\.93|(mail|akane)\.covisp\.net|localhost)
* ! RELAYHOSTIP ?? (75\.148\.117\.93|127\.0\.0\.1)
{
      :0 fw
      | formail -I"X-Host-RCVD: Foreign sender using our hostname or IP for submission${NL}"
}

LOG=$NL"$DATE: TOPD=\"$TOPD\", 
FromU=\"$FROM_USER\", DFrom=\"$DFROM\", FromD=\"$FROM_DOMAIN\", 
Subject=\"$SUBJECT\", Relayhost=\"$RELAYHOST\",
To=\"$TO\", From=\"$FROM\", EnvTo=\"$ENVTO\", EnvFrom\"$ENVFROM\"$NL"

:0  
* ! ? test -f $HOME/.procmailrc
{
  LOG="User has no procmailrc LOGNAME=$LOGNAME&amp;lt; at &amp;gt;$HOST HOME=$HOME$NL"
  :0 fw
  | /usr/local/bin/spamc -u $LOGNAME

  DROPPRIVS=YES
  DEFAULT=$HOME/Maildir/

   :0 
   * ^X-Spam-Status:(.*\&amp;lt;)?Yes
   {
      :0
      { TRAP='mv "$LASTFOLDER" "${LASTFOLDER}:2,S"' }

      :0
      .SPAM/
   }

   :0
   $DEFAULT
}
LOG="User $LOGNAME&amp;lt; at &amp;gt;$HOST has a .procmailrc, processing...$NL" 

There are no errors thrown by this file,a dn the log looks just as I would expect:

FromU="root", DFrom="", FromD="covisp.net", 
Subject="Test", Relayhost="",
To="faker&amp;lt; at &amp;gt;covisp.net", From="root&amp;lt; at &amp;gt;covisp.net (Charlie Root)", EnvTo="", EnvFrom"root&amp;lt; at &amp;gt;covisp.net"
User has no procmailrc LOGNAME=faker&amp;lt; at &amp;gt;mail.covisp.net HOME=/home/faker

and the email has the from line escaped as above.


&lt;/pre&gt;</description>
    <dc:creator>LuKreme</dc:creator>
    <dc:date>2013-01-13T20:38:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48098">
    <title>Re: save to list dir and conditionally to $DEFAULT -&gt; solved</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48098</link>
    <description>&lt;pre&gt;
Richard Ball wrote on Tue-13-Nov 12 11:44PM

Thanks Richard

That is the way I implemented it in the end and it seems fine.

Eric
&lt;/pre&gt;</description>
    <dc:creator>Eric Smith</dc:creator>
    <dc:date>2012-11-16T14:41:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.mail.procmail/48097">
    <title>Re: save to list dir and conditionally to $DEFAULT</title>
    <link>http://permalink.gmane.org/gmane.mail.procmail/48097</link>
    <description>&lt;pre&gt;
On Nov 12, 2012, at 3:05 AM, Eric Smith wrote:


There isn't one correct way. Can you structure your recipes so you determine the proper folder separately from the delivery recipe? Then you just need one delivering recipe which also has the egrep for subjects which, if met, drops a copy into DEFAULT.

Rich
&lt;/pre&gt;</description>
    <dc:creator>Richard Ball</dc:creator>
    <dc:date>2012-11-13T22:44:02</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.mail.procmail">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.mail.procmail</link>
  </textinput>
</rdf:RDF>
