<div dir="ltr">Hi, <div><br></div><div>I wrote the rule below. </div><div><br></div><div>uri SPAM_1Jul2022_uri_1 /https?\:\/\/<a href="http://t.ly">t.ly</a>\/8R_H/i<br>describe SPAM_1Jul2022_uri_1 Email containing above words<br>score SPAM_1Jul2022_uri_1 11.0<br></div><div><br></div><div>It can NOT detect this url inside the PDF file.</div><div><br></div><div>But, if I just write it to the mail body, It can detect it. </div><div><br></div><div>I need a rule that can detect urls inside a PDF file. Can you guide me?</div><div><br></div><div>Hope to hear from you.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 1, 2022 at 6:17 PM Indunil Jayasooriya <<a href="mailto:indunil75@gmail.com">indunil75@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear List, <div><br></div><div>We get some PDF files. When we open them there is a link inside the PDF file. We don't need these since these urls may be harmful. </div><div><br></div><div>Here's one Url that the PDF file contained. </div><div><br></div><div><a href="https://t.ly/8R_H" target="_blank">https://t.ly/8R_H</a><br></div><div><br></div><div><div>Can we block these with Spam Assassin? </div></div><div><br></div><div>If so, how to write a custom rule for it?</div><div><br></div><div>Below Url has some instructions. </div><div><br></div><div><a href="https://cwiki.apache.org/confluence/display/SPAMASSASSIN/writingrules" target="_blank">https://cwiki.apache.org/confluence/display/SPAMASSASSIN/writingrules</a><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr">cat /etc/motd<br><br>Thank you<br>Indunil Jayasooriya <br><a href="http://www.theravadanet.net/" target="_blank">http://www.theravadanet.net/</a><br><br></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">cat /etc/motd<br><br>Thank you<br>Indunil Jayasooriya <br><a href="http://www.theravadanet.net/" target="_blank">http://www.theravadanet.net/</a><br><br></div></div></div></div>