[SimpleMail-usr] spam-filtering and missing ARexx commands (was: Re: ARexx and first impressions)

  • From: "AmigaPhil" <AmigaPhil@xxxxxxx>
  • To: AmigaPhil <simplemail-usr@xxxxxxxxxxxxx>
  • Date: 31 Aug 2009 3:37:29 +0100

I wrote :

> (Next script planned: Filtering Incoming mails using SpamFryer.)

Without such ARexx commands as MARKASSPAM and MOVEASSPAM (or anything
else allowing to change the status of a mail), the workaround I
found is to change the extension of the filename of a mail to '.8'.

However, after doing this, even a MAILLISTTHAW does not refresh the
current mail list (the spam icon does not show until you select from
the menu: Folder > Rescan).
If you move a (renamed to '.8' filename) mail to the spam folder
using the MAILADD command, then the filename extension loose its
status flag (thus shown as new unread message in the spam folder).

Deseperatly missing is a way to re-build the index from ARexx.

(Example of the ARexx code I'm testing right now:
  spamFile = mailFile  /* mailFile is the full filename of the mail */
  statpos = LASTPOS('.',mailFile)
  IF statpos = (LENGTH(mailFile)-1) THEN spamFile =
                        LEFT(mailFile,statpos-1) || '.8'
  ELSE spamFile = mailFile || '.8'
  ADDRESS COMMAND 'RENAME "'mailFile'" TO "'spamFile'"'
  IF moveit THEN DO
    'MAILADD FOLDER"'spamFolder'" FILENAME "' || spamFile || '"'
    ADDRESS COMMAND 'DELETE >NIL: "'mailFile'"'
  END
                                                                  


AmigaPhil

__________________________________________________________________________
SimpleMail mailing list   -   //www.freelists.org/list/simplemail-usr
Listserver help.: mailto:simplemail-usr-request@xxxxxxxxxxxxx?Subject=HELP
Unsub....: mailto:simplemail-usr-request@xxxxxxxxxxxxx?Subject=UNSUBSCRIBE

Other related posts:

  • » [SimpleMail-usr] spam-filtering and missing ARexx commands (was: Re: ARexx and first impressions) - AmigaPhil