<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi ,<br>
<br>
I think "each" keyword is wrong hence it has to be <br>
<br>
<div>for message in $MESSAGES</div>
<div>do</div>
<div> sendmail -toi <
/var/spool/MailScanner/quarantine/20121127/${message}/message</div>
<div>done</div>
<div>exit 0</div>
<br>
Thanks,<br>
Supun <br>
<br>
<br>
On 11/30/2012 03:59 AM, Michael Sauvola wrote:<br>
</div>
<blockquote cite="mid:6D676837677C4FAB8130C0F15300E5E7@lib.wan"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
<div dir="ltr">
<div style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE:
12pt">
<div>OK, so using your suggestions, I have a script like this:</div>
<div> </div>
<div> </div>
<div>MESSAGES= “ qARJ0a8W011130 qARJ0j88K673043 etc... “</div>
<div> </div>
<div>for each message in $MESSAGES</div>
<div>do</div>
<div> sendmail -toi <
/var/spool/MailScanner/quarantine/20121127/${message}/message</div>
<div>done</div>
<div>exit 0</div>
<div> </div>
<div>When I run it, I get errors:</div>
<div> </div>
<div>line 182: syntax error near unexpected token `message’</div>
<div>line 182: `for each message in $MESSAGES’</div>
<div> </div>
<div>Mike</div>
<div> </div>
<div> </div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY:
'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT:
normal; TEXT-DECORATION: none">
<div style="FONT: 10pt tahoma">
<div> </div>
<div style="BACKGROUND: #f5f5f5">
<div style="font-color: black"><b>From:</b> <a
moz-do-not-send="true"
title="Kevin_Miller@ci.juneau.ak.us"
href="mailto:Kevin_Miller@ci.juneau.ak.us">Kevin
Miller</a> </div>
<div><b>Sent:</b> Thursday, November 29, 2012 3:28 PM</div>
<div><b>To:</b> <a moz-do-not-send="true"
title="mailscanner@lists.mailscanner.info"
href="mailto:mailscanner@lists.mailscanner.info">'MailScanner
discussion'</a> </div>
<div><b>Subject:</b> RE: Reprocessing quarantined
messages</div>
</div>
</div>
<div> </div>
</div>
<div style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY:
'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT:
normal; TEXT-DECORATION: none">
<div class="WordSection1">
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
11pt">Just “ls” the directory, and output it to a text
file. I forget the syntax but you can specify the
characters to keep, tossing the rest (date,
permissions, etc.) and keeping the filename. You
could then paste that into the script or redirect it
in from the cli…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE:
11pt"><o:p></o:p></span> </p>
<p class="MsoNormal"><span style="COLOR: #1f497d;
FONT-SIZE: 10pt">...Kevin<br>
--<br>
Kevin Miller<br>
Network/email Administrator, CBJ MIS Dept.<br>
155 South Seward Street<br>
Juneau, Alaska 99801<br>
Phone: (907) 586-0242, Fax: (907) 586-4500<br>
Registered Linux User No: 307357</span><span
style="COLOR: #1f497d"> </span><span
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR:
#1f497d; FONT-SIZE: 11pt"><o:p></o:p></span></p>
<div>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT:
medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in;
PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><b><span style="FONT-FAMILY:
'Tahoma','sans-serif'; COLOR: windowtext;
FONT-SIZE: 10pt">From:</span></b><span
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR:
windowtext; FONT-SIZE: 10pt">
<a class="moz-txt-link-abbreviated" href="mailto:mailscanner-bounces@lists.mailscanner.info">mailscanner-bounces@lists.mailscanner.info</a>
[<a class="moz-txt-link-freetext" href="mailto:mailscanner-bounces@lists.mailscanner.info">mailto:mailscanner-bounces@lists.mailscanner.info</a>]
<b>On Behalf Of </b>Michael Sauvola<br>
<b>Sent:</b> Thursday, November 29, 2012 12:16 PM<br>
<b>To:</b> MailScanner discussion<br>
<b>Subject:</b> Re: Reprocessing quarantined
messages<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p></o:p> </p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'">Stephan,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'">You mean I would have to
type in all 4046 directories named
qARJ0a8W011130, qARJ0j88K673043, etc... for this
to work? Yikes!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'">Mike<o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p style="BACKGROUND: whitesmoke"
class="MsoNormal"><b><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt">From:</span></b><span
style="FONT-FAMILY: 'Tahoma','sans-serif';
FONT-SIZE: 10pt"> <a
moz-do-not-send="true"
title="steve@fsl.com"
href="mailto:steve@fsl.com">Stephen
Swaney</a> <o:p></o:p></span></p>
</div>
<div>
<p style="BACKGROUND: whitesmoke"
class="MsoNormal"><b><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt">Sent:</span></b><span
style="FONT-FAMILY: 'Tahoma','sans-serif';
FONT-SIZE: 10pt"> Thursday, November 29,
2012 2:05 PM<o:p></o:p></span></p>
</div>
<div>
<p style="BACKGROUND: whitesmoke"
class="MsoNormal"><b><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt">To:</span></b><span
style="FONT-FAMILY: 'Tahoma','sans-serif';
FONT-SIZE: 10pt"> <a
moz-do-not-send="true"
title="mailscanner@lists.mailscanner.info"
href="mailto:mailscanner@lists.mailscanner.info">MailScanner discussion</a>
<o:p></o:p></span></p>
</div>
<div>
<p style="BACKGROUND: whitesmoke"
class="MsoNormal"><b><span
style="FONT-FAMILY:
'Tahoma','sans-serif'; FONT-SIZE: 10pt">Subject:</span></b><span
style="FONT-FAMILY: 'Tahoma','sans-serif';
FONT-SIZE: 10pt"> Re: Reprocessing
quarantined messages<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'">Michael,<br>
<br>
If you are using sendmail, you could create a
script something like:<br>
<br>
---------------------cut start
-------------------------<br>
!# /bin/bash<br>
<br>
MESSAGES="/qARJ0a8W011130<br>
qARJ0j88K673043<br>
qARJ0j88K673043"<br>
<br>
for each message in $MESSAGES<br>
do<br>
sendmail -toi <
/var/spool/MailScanner/quarantine/20121127/${message}/message<br>
done<br>
<br>
exit 0<br>
--------------------cut
end----------------------<br>
<br>
<br>
Best regards,<br>
<br>
Steve<br>
-- <br>
Steve Swaney<br>
<a moz-do-not-send="true"
href="mailto:steve@fsl.com">steve@fsl.com</a><br>
202 595-7760 ext: 601<br>
<a moz-do-not-send="true"
href="http://www.fsl.com">www.fsl.com</a><br>
The most accurate and cost effective anti-spam
solutions available<br>
<br>
<br>
<br>
On 11/29/12 1:33 PM, Michael Sauvola wrote:<o:p></o:p></span></p>
</div>
<blockquote style="MARGIN-TOP: 5pt; MARGIN-BOTTOM:
5pt">
<div>
<div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'">Hi all,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'">Due to my own
fault, MailScanner put about 16 hours
worth of messages (4026) into the
quarantine.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'">message<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'">
/qARJ0Cr8W02980/message<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'">
/qARJ0j88K673043/message and so on...<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'">I fixed my
goof-up, and mail is now flowing through
normally.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'">How can I
re-send/reprocess the 4026 messages
through MailScanner?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'">Mike<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="FONT-FAMILY:
'Calibri','sans-serif'"> <o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'"><br>
-- <br>
This message has been scanned for viruses and
<br>
dangerous content by <a
moz-do-not-send="true"
href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
and is <br>
believed to be clean. <br>
<br>
<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'"><br>
<br>
-- <br>
This message has been scanned for viruses and <br>
dangerous content by <a moz-do-not-send="true"
href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
and is <br>
believed to be clean. <o:p></o:p></span></p>
<div style="TEXT-ALIGN: center" class="MsoNormal"
align="center"><span style="FONT-FAMILY:
'Calibri','sans-serif'">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="FONT-FAMILY:
'Calibri','sans-serif'">-- <br>
MailScanner mailing list<br>
<a moz-do-not-send="true"
href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a moz-do-not-send="true"
href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a moz-do-not-send="true"
href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book
off the website! <o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
-- <br>
This message has been scanned for viruses and <br>
dangerous content by <a moz-do-not-send="true"
href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
and is <br>
believed to be clean. <o:p></o:p></p>
</div>
<br>
-- <br>
This message has been scanned for viruses and <br>
dangerous content by <a moz-do-not-send="true"
href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
and is <br>
believed to be clean.
<p>
</p>
<hr>
-- <br>
MailScanner mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a class="moz-txt-link-freetext" href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a class="moz-txt-link-freetext" href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the
website! <br>
</div>
</div>
</div>
<br>
-- <br>
This message has been scanned for viruses and
<br>
dangerous content by
<a moz-do-not-send="true" href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
and is
<br>
believed to be clean.
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>