Hi Suzana,
On Thu, 25 Oct 2001, suzana wrote:
hi all....
i've downloaded the pm-doc from jari and unzip in my linux redhat 7.1
(i'm going to test it here before using it in sunOS)...i've set up my
/etc/procmailrc like so (thanks Martin!):
DROPPRIVS=YES
VERBOSE=on
LOGABSTRACT=all
LOGFILE=/var/log/procmail/$LOGNAME.log
What does the logfile say?
:0
*$ $myCustomMimeType
{
JA_MIME_TYPE = $myCustomMimeType
}
myCustomMimeType1 = "application/octet-stream" # must be all
lowercase
:0
*$ $myCustomMimeType1
{
JA_MIME_TYPE = $myCustomMimeType1
}
INCLUDERC = $PMSRC/pm-jamime-kill.rc
Shouldn't that be:
:0
* $ $myCustomMimeType
{
JA_MIME_TYPE = $myCustomMimeType
myCustomMimeType1 = "application/octet-stream" # must be all lowercase
}
:0
* $ $myCustomMimeType1
{
JA_MIME_TYPE = $myCustomMimeType1
INCLUDERC = $PMSRC/pm-jamime-kill.rc
}
What is in the $myCustomMimeType variable?
Also,
quick look at the pm-jamime-kill.rc code gives me:
# First of all, this is primarily a framework recipe to kill any kind
# of attachement. If you do not set JA_MIME_TYPE before calling
# this recipe, recipe will try to determine the right value by itself.
# See if the automatic detection works for you or preset the
# JA_MIME_TYPE beforehand if it fails (I'd like to hear about the
# failure and add the conditions as default)
#
# o JA_MIME_TYPE is an case sensitive AWK *REGEXP*. Always use
# *lowercase* letters in this regexp because the line is lowercased
# before match is made. This regexp determines if the kill
# recipe is applied to the message or not. Value is set for
# MS explorer, MS express, Netscape and Lotus Notes etc.
# messages by default.
# o JA_MIME_KILL_RE, additional *REGEXP* to kill lines from the
# message. Value is case sensitive awk regexp and by default matches
# Lotus notes tag: name="XXX.PCX".
#
# It may be possible that some messages are malformed and that they
# do not contain preper "boundary" definition string in the header. I
# have seen messages that have text/html attachements, but no proper
# Mime headers. For those cases there is additional variable that
# will kill all text up till matching line regardless of message
# content.
#
# o JA_MIME_KILL2_RE = "text/html|application/ms-tnef" Update this to
# match attchements you receive. Set variable to "" if you don't
# want to change the body of non-compliant MIME message.
#
# That is your last resort if the standard MIME detection failed.
# (there must have been some problem in the sender's MUA that composed
# message)
So, don't you want to use JA_MIME_KILL_RE instead of JA_MIME_TYPE.
then i tried sending an .exe file to myself...i found out that i still
got the .exe attachment! I checked procmail log file but no errors there
i think...just that it said no match on "application/octet-stream",even
though when i checked my mail using pine, i can see the test mail with
the attachment "Application/OCTET-STREAM" in there. And I didnt change
anything in pm-jamime-kill.rc.So what could be wrong? I thought the
recipe was supposed to filter this email. Do i have to change the recipe
Look into the logfile and if you ask on the list, people usually respond
if they get the logfile output and your scripts, so that they know what
should happen (of course try to post only relevant pieces of your code and
logfile, if possible).
--
Martin Mokrejs - PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail