procmail
[Top] [All Lists]

Behaviour of "procmail -m rcfile" when rcfile is missing.

2003-06-07 11:05:21

I have been playing about with this to move everything out of the greymail
box to the whitemailbox if the sender has just been put in the white list.
However, on my last install to my test system, I forgot to install the
$MOVEGREYTOWHITE script.  Duh!!!

:0 WicE: "${MARP_GREY_MAILBOX}.lock"
* ? test -f "${MARP_GREY_MAILBOX}"
| cat ${MARP_GREY_MAILBOX} | formail -s procmail -m "${MOVEGREYTOWHITE}" \
"${MARP_GREY_MAILBOX_TMP}" "${MARP_WHITE_MAILBOX}" "${MARP_WHITELIST}" \
"${MARP_GREY_LOG}"; \
rm -f "${MARP_GREY_MAILBOX}"; \
cp -f "${MARP_GREY_MAILBOX_TMP}" "${MARP_GREY_MAILBOX}"; \
rm -f "${MARP_GREY_MAILBOX_TMP}"; \
touch "${MARP_GREY_MAILBOX}"; \
chmod 0600 "${MARP_GREY_MAILBOX}"

Have discovered this omission from the log, I expected the procmail -m to
have failed and the greymailbox and its contents to be lost forever.  But
no, the mails were moved to the test user's mailbox.

I am guessing that procmail -m didn't fail but ran wih no rc file at all
and just delivered all the emails thrown at it by cat ... formail ... to
its notion of $DEFAULT.  Is this right?  Here's the log of the first
procmail:


procmail: Executing " cat ${MARP_GREY_MAILBOX} | formail -s procmail -m
"${MOVEGREYTOWHITE}" \
  "${MARP_GREY_MAILBOX_TMP}" "${MARP_WHITE_MAILBOX}" "${MARP_WHITELIST}" \
  "${MARP_GREY_LOG}"; \
  rm -f "${MARP_GREY_MAILBOX}"; \
  cp -f "${MARP_GREY_MAILBOX_TMP}" "${MARP_GREY_MAILBOX}"; \
  rm -f "${MARP_GREY_MAILBOX_TMP}"; \
  touch "${MARP_GREY_MAILBOX}"; \
  chmod 0600 "${MARP_GREY_MAILBOX}""
procmail: Couldn't read "/home/test/.procmail/marp/moveGreyToWhite.rc"
cp: /home/test/mail/marp.greymail.19469: No such file or directory
procmail: Assigning "LASTFOLDER= cat ${MARP_GREY_MAILBOX} | formail -s
procmail -m "${MOV


Alan


( Please do not email me AS WELL as replying to the list.  Please
  address personal email to alan+1@ as lists@ is not read. A
  password autoresponder may be invoked if this email is very old. )


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • Behaviour of "procmail -m rcfile" when rcfile is missing., Alan Clifford <=