On 01.07.15 22:44, Gene Heskett wrote:
> On Wednesday 01 July 2015 22:40:44 George Ramsower wrote:
> > And I did it again, left something undone. I forgot to del the
> > Re:{Emc-users} in the Subject line. This furthers the confusion
> > Dammit !!!
>
> Yep, guilty here too, because I filter to the emc folder based on that
> subject line. I have not figured a more dependable way to do it.
I see you're using Kmail, Gene. Can't advise on how to do anything with
that, and don't use my MUA (mutt) to do that job either. Here, it's
procmail which sorts incoming mail into mailboxes, and this is the rule
I use for this list:
OR=2147483647^0 # Max score => immediate success. i.e. OR
:0:
* ^From [email protected]
* $ $OR ^[email protected]
{
SUBJECT=`formail -czX "Subject:" | sed -re "s/Subject:// ; s/
\[Emc-users\]//g"`
:0fhw
| formail -i "Subject: $SUBJECT"
:0:
cnc_linux_u
}
(My unread LinuxCNC mailbox is cnc_linux_u.) The rule is more complex
than for most lists, because it strips any annoying "[Emc-users]" crap
from the subject, if it's there. Here's one I use on clean lists:
:0:
* ^List-Post: <mailto:[email protected]>
| mutt_u
Even these two examples make evident that "From", "To:", or even a
"List-Post:" header can be used for sorting. The top rule is
fault-tolerant, sorting on presence of either of two header matches.
There's a pile of info in "man procmailrc", and nifty explanatory
examples in "man procmailex".
Some initial guff I have is:
# Avoid logging clashes. Separate log records.
MAILDIR=/home/erik/mail # Thanks to Bart Schaefer & Ruud H.G. van Tol:
LOGFILE=$MAILDIR/tmp_log.$$ # <- Each process uses a temporary log.
FINAL_LOG=$MAILDIR/log # <- Append here, via TRAP, at process exit:
TRAP='procmail -p DEFAULT=$FINAL_LOG /dev/null < $LOGFILE && rm -f $LOGFILE'
DEFAULT=/var/mail/erik
COMSAT=off
OR=2147483647^0 # Max score => immediate success. i.e. OR
VERBOSE=on
It's handy to have logging on, in case something goes wrong.
Erik
--
A completely planned economy ensures that when no bacon is delivered,
no eggs are delivered at the same time. - Leo Frain
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users