<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Procmail Shell Script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/procmail-shell-script/m-p/2799452#M2396</link>
    <description>Dear Sir or Madam:&lt;BR /&gt;&lt;BR /&gt;Would you mind explaining me each line of this script? I do not well understand with this script. What is :O means, !^, *, \ ...etc...? The script is like the following:&lt;BR /&gt;#Trap unapproved attachments&lt;BR /&gt;SHELL=/bin/sh&lt;BR /&gt;LOGFILE=/var/log/procmail.log&lt;BR /&gt;:0&lt;BR /&gt;* !^FROM_DAEMON&lt;BR /&gt;* ^Content???Type: (Multipart|Application)&lt;BR /&gt;* B ?? Name=(\/".+\.(EXE|COM|BAT|WAV|PIF|SCR)"|\/.+\.(EXE|COM|BAT|WAV|PIF|SCR))&lt;BR /&gt;{&lt;BR /&gt;LOGFILE=/var/log/delmail.log&lt;BR /&gt;   :0 h i c&lt;BR /&gt;    | ( formail ???r ???A 'From: MAILER???DAEMON@domain_name'; echo; echo " ***********SECURITY WARNING***********"; echo; echo "Your computer seems to be infected by a virus ??? I received mail from you"; echo; echo "with an attachment[$MATCH] which you probably did not send intentionally."; echo; echo "This message will be deleted automatically."; echo; echo "Please do not send any e???mail out before you have cleaned out the virus,"; echo "otherwise, it will again send itself by picking up random file from your"; echo "computer and a virus file to others."; echo; echo; echo; echo; echo " ";) | $SENDMAIL ???U ???oi ???t&lt;BR /&gt;&lt;BR /&gt;    LOG="Del: "&lt;BR /&gt;&lt;BR /&gt;    :0&lt;BR /&gt;    /dev/null&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;Thank you so much for your explanation. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Choth&lt;BR /&gt;</description>
    <pubDate>Wed, 04 Sep 2002 08:35:32 GMT</pubDate>
    <dc:creator>Chan Choth PUTH</dc:creator>
    <dc:date>2002-09-04T08:35:32Z</dc:date>
    <item>
      <title>Procmail Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/procmail-shell-script/m-p/2799452#M2396</link>
      <description>Dear Sir or Madam:&lt;BR /&gt;&lt;BR /&gt;Would you mind explaining me each line of this script? I do not well understand with this script. What is :O means, !^, *, \ ...etc...? The script is like the following:&lt;BR /&gt;#Trap unapproved attachments&lt;BR /&gt;SHELL=/bin/sh&lt;BR /&gt;LOGFILE=/var/log/procmail.log&lt;BR /&gt;:0&lt;BR /&gt;* !^FROM_DAEMON&lt;BR /&gt;* ^Content???Type: (Multipart|Application)&lt;BR /&gt;* B ?? Name=(\/".+\.(EXE|COM|BAT|WAV|PIF|SCR)"|\/.+\.(EXE|COM|BAT|WAV|PIF|SCR))&lt;BR /&gt;{&lt;BR /&gt;LOGFILE=/var/log/delmail.log&lt;BR /&gt;   :0 h i c&lt;BR /&gt;    | ( formail ???r ???A 'From: MAILER???DAEMON@domain_name'; echo; echo " ***********SECURITY WARNING***********"; echo; echo "Your computer seems to be infected by a virus ??? I received mail from you"; echo; echo "with an attachment[$MATCH] which you probably did not send intentionally."; echo; echo "This message will be deleted automatically."; echo; echo "Please do not send any e???mail out before you have cleaned out the virus,"; echo "otherwise, it will again send itself by picking up random file from your"; echo "computer and a virus file to others."; echo; echo; echo; echo; echo " ";) | $SENDMAIL ???U ???oi ???t&lt;BR /&gt;&lt;BR /&gt;    LOG="Del: "&lt;BR /&gt;&lt;BR /&gt;    :0&lt;BR /&gt;    /dev/null&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;Thank you so much for your explanation. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Choth&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Sep 2002 08:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/procmail-shell-script/m-p/2799452#M2396</guid>
      <dc:creator>Chan Choth PUTH</dc:creator>
      <dc:date>2002-09-04T08:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Procmail Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/procmail-shell-script/m-p/2799453#M2397</link>
      <description>#Trap unapproved attachments&lt;BR /&gt;#Comment :)&lt;BR /&gt;&lt;BR /&gt;SHELL=/bin/sh&lt;BR /&gt;#set environment variable(shell path for run scripts)&lt;BR /&gt;&lt;BR /&gt;LOGFILE=/var/log/procmail.log&lt;BR /&gt;&lt;BR /&gt;:0&lt;BR /&gt;# apply lines bellow for all message&lt;BR /&gt;&lt;BR /&gt;* !^FROM_DAEMON&lt;BR /&gt;#not apply for mails from FROM_DAEMON&lt;BR /&gt;&lt;BR /&gt;* ^Content???Type: (Multipart|Application)&lt;BR /&gt;#all mail where Content-Type=... in headers &lt;BR /&gt;&lt;BR /&gt;* B ?? Name=(\/".+\.(EXE|COM|BAT|WAV|PIF|SCR)"|\/.+\.(EXE|COM|BAT|WAV|PIF|SCR))&lt;BR /&gt;#regexp for matching with name  of attach files&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#and bellow script for create reply mail(used utils formail and drop incoming mail)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;LOGFILE=/var/log/delmail.log&lt;BR /&gt;:0 h i c&lt;BR /&gt;| ( formail ???r ???A 'From: MAILER???DAEMON@domain_name'; echo; echo " ***********SECURITY WARNING***********"; echo; echo "Your computer seems to be infected by a virus ??? I received mail from you"; echo; echo "with an attachment[$MATCH] which you probably did not send intentionally."; echo; echo "This message will be deleted automatically."; echo; echo "Please do not send any e???mail out before you have cleaned out the virus,"; echo "otherwise, it will again send itself by picking up random file from your"; echo "computer and a virus file to others."; echo; echo; echo; echo; echo " ";) | $SENDMAIL ???U ???oi ???t&lt;BR /&gt;&lt;BR /&gt;LOG="Del: "&lt;BR /&gt;&lt;BR /&gt;:0&lt;BR /&gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--------------&lt;BR /&gt;programmer of AlarIT&lt;BR /&gt;&lt;BR /&gt;*&lt;BR /&gt;&lt;A href="http://www.alarit.com" target="_blank"&gt;http://www.alarit.com&lt;/A&gt;&lt;BR /&gt;*&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Sep 2002 15:16:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/procmail-shell-script/m-p/2799453#M2397</guid>
      <dc:creator>Def_1</dc:creator>
      <dc:date>2002-09-05T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Procmail Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/procmail-shell-script/m-p/2799454#M2398</link>
      <description>Dear Def,&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your reply. I would like to ask you some remaining explanations:&lt;BR /&gt;:0 Is it capital o or zero? You say that "# apply lines bellow for all message". What is its long form means, I mean that URL is stand for Uniform Resource Locator and what is capital o or zero means? What is *, !, ^, \/, \, |?&lt;BR /&gt;&lt;BR /&gt;* ^Content-Type: (Multipart|Application)&lt;BR /&gt;#all mail where Content-Type=... in headers &lt;BR /&gt;Would you mind telling me "all mail where Content-Type=... in headers", what this line means sir, I do not understand. &lt;BR /&gt;&lt;BR /&gt;* B ?? Name=(\/".+\.(EXE|COM|BAT|WAV|PIF|SCR)"|\/.+\ (EXE|COM|BAT|WAV|PIF|SCR))&lt;BR /&gt;#regexp for matching with name of attach files &lt;BR /&gt;What is B means? What this line means sir :0 h i c? h i c? What these following lines mean?&lt;BR /&gt;echo " ";)|$SENDMAIL -U -oi -t&lt;BR /&gt;    LOG="Del: "&lt;BR /&gt;    :0&lt;BR /&gt;    /dev/null&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your explanation and thank you for giving me a very good idea on writing the script.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Chot</description>
      <pubDate>Tue, 10 Sep 2002 02:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/procmail-shell-script/m-p/2799454#M2398</guid>
      <dc:creator>Chan Choth PUTH</dc:creator>
      <dc:date>2002-09-10T02:01:50Z</dc:date>
    </item>
  </channel>
</rss>

