• kSPAM quarantine

    By Christian Brandlehner/Brandlehner 2 decades ago

    I would like to contribute by adding some features to mailspam.nsf.

    I was missing a fully features quarantine feature so I added this to mailspam.nsf by looking up an documents recipient to add this user (or group) to a reader field so every user can see only that SPAM that was addressed to him. Accessing the mailspam.nsf database a user can look for false positives and/or approve SPAM. kSPAM will only use approved documents for training the Bayes filter.



    Here are some screenshots:



    Link in DWA:





    quarantine overview:





    approving as SPAM or marking as false positive.


    • The customized template for mailspam.nsf

      By Christian Brandlehner/Brandlehner 2 decades ago

      [attachmed removed]



      Update: I had to remove the attachment as I had hardcoded emails addresses in there which resulted in SPAMMing a friend who helped me.

      If you already downloaded this template please check the agents first before starting them …

  • Re: Great

    By Tom Lyne 2 decades ago

    Thanks Christian, I'll take a look at it. Although I'm no good at LotusScript etc..



    Best Regards,

    tom

  • Good work :-)

    By Markus Russ 2 decades ago

    Hello,



    I just checked your extentions, good idea!



    Somehow the embedded view (My View) doesn´t work for me and i changed the code,

    i put a new leading categorized sorted field in the My View ( @name([CN];explode($Readers,",") ) ,

    made an own Embedded "My View" with @name([CN];@username) as select statement.

    Where do you calculate the view ?



    i changed the memo mask , put a computed at view field with the $Readers in, to make the users

    sure, that the mail were addressed to them.



    i think your agent drops the BC and CC fields, so when the user is in BC , he would´n see his name

    in the spam.



    tell me christian, haven´t you problems with false positives, like i wrote a few postings before ?

    for that task i wrote an agent for myself, which deletes html codes from the mailspam.nsf.

    it seems to work better now, but we are getting still lots of false positives because of html code in mails.



    my simple agent reads an view with by hand entered extentions like "Margin" , "Cellpadding" , "cid" , "FFFFFF", comparing this stings with the tokens 0.99 and deleting those tokens.



    i guess this solution is bs , but i found till now no other way to get rid of the html code in mails.





    does the mailspam.nsf work with the bload correct ?





    here my agent to delete entered words from the docs in mailspam:







    Sub Initialize

    <br/>
    Dim ses As New NotesSession<br/>
    Dim db As NotesDatabase<br/>
    Dim v,v1 As NotesView<br/>
    Dim lfn As Integer<br/>
    <br/>
    

    'Declare constants

    <br/>
    Const View$=&quot;by Date&quot;<br/>
    Const View1$=&quot;no_tokens&quot;<br/>
    <br/>
    

    'Set the session variables

    Set db = ses.CurrentDatabase<br/>
    <br/>
    Set v1=db.GetView(View1$)<br/>
    Dim vdoc As NotesDocument<br/>
    Set vdoc=v1.GetFirstDocument    <br/>
    While Not vdoc Is Nothing   <br/>
        <br/>
        Set v = db.GetView(View$)<br/>
        <br/>
        Dim doc As NotesDocument<br/>
        Set doc=v.GetFirstDocument  <br/>
        <br/>
        While Not doc Is Nothing        <br/>
            <br/>
            pos=Arraygetindex(doc.KS_BL_TOKENS,vdoc.no_tokens(0))<br/>
            If Isnull(pos) Then<br/>
            'no member<br/>
            Else<br/>
                Dim x As Integer<br/>
                Dim arr() As String<br/>
                x=0<br/>
                For i = 0 To Ubound(doc.KS_BL_TOKENS)<br/>
                    If i &lt;&gt; pos Then<br/>
                        Redim Preserve arr(x) As String<br/>
                        arr(x) = doc.KS_BL_TOKENS(i)<br/>
                        x = x + 1<br/>
                    End If<br/>
                Next<br/>
                doc.KS_BL_TOKENS = arr<br/>
                <br/>
                Call doc.Save(True,True,True)<br/>
            End If<br/>
            <br/>
            Set doc=v.GetNextDocument(doc)  <br/>
        Wend<br/>
        <br/>
        Set vdoc=v1.GetNextDocument(vdoc)   <br/>
    Wend<br/>
    

    End Sub

    • Re: MySPAM

      By Christian Brandlehner 2 decades ago

      The view MySPAM will show you all emails you are allowed to see based on the reader fields. As admin, you will always see all documents! I suggest not to alter the view selection formula.

      • Agent Spam Processing

        By Chris Gruebl 2 decades ago

        Hi



        kSPAM ist very nice :-), but one little problem



        i have also inbox for group (Office), who can i change the Agent 'Spam Processing' that he add the Role [Office] when the $Reader is CN=Office….

        The Group 'Office' have the Rule [Office] to see the SPAM Mails for office



        Or is there a better way for this problem?



        cu

        Chris Grübl

    • Re: false positives

      By Christian Brandlehner 2 decades ago

      I found that false positives are quite low since I ask users to approve SPAM first before recalculating the probabilities. In addition I had a look at reported false positives and added a notes.ini parameter to ignore some common tokens. Although this may be a problem in the future as an notes.ini parameter is limited in length.



      KS_BL_IGNORE=utf-8,10px,13px,arial,background-color,band,bgcolor,bold,boulder,cellpadding,cellspacing,colspan,div,FF0000,ffcc00,FFFFFF,font-family,font-size,Helvetica,icons,meta,nowrap,rowspan,sans-serif,text-decoration,url,verdana,000000,font,class

  • Could I....

    By Tom Lyne 2 decades ago

    … post this as a downlaod here, under the release section?



    -tom

  • Find the reviewed template attached here ...

    By Herwig W Schauer/Bechelaren 2 decades ago

    Hi together …



    Due to the heavy workload in Q4 we forgot to remove some "alpha code" from the template (because everyone thought the other one of having already finished the last code updates) … sorry …

    I reworked the whole template, so anyone who downloaded the old one, replace the design of your mailspam.nsf with this one an schedule the agents.



    (See attached file: mailspam.zip)



    We are running this kind of logic successfully for a couple of weeks, but share your findings with us, if you discovered some issues or you've got additional requests.



    Merry XMas …

  • English Version

    By Andy Page 2 decades ago

    Hi,



    Is there an English version of this excellent template ?