Results 1 to 3 of 3

Thread: Classify email using the command line

  1. #1

    Default Classify email using the command line

    Hello,

    I would like to use SpamSieve with exotic mail readers (gnus in emacs, to be precise), and I am wondering if it is possible to call SpamSieve from the command line, or if the feature is planned.

    More precisely, what I would like is to be able to call SpamSieve with the path to a message (or give it directly the contents of the message), and it would return with a spam level that I could use to move the message myself. In addition, it would be great if I could also train SpamSieve from the command line using a similar approach.

    Thanks,

    Alan

  2. #2

    Default

    Quote Originally Posted by brab View Post
    I would like to use SpamSieve with exotic mail readers (gnus in emacs, to be precise), and I am wondering if it is possible to call SpamSieve from the command line, or if the feature is planned.
    There’s no command-line interface, but you could certainly use the osascript command to talk to SpamSieve via AppleScript. For example, your script could take a path to a message (in argv), read it in, send it to SpamSieve for analysis, and print the score.

  3. #3

    Default

    Ah, thank you for the suggestion. I have indeed not looked at the AppleScript dictionary for SpamSieve.

Similar Threads

  1. Command-W
    By Bruce Lewis in forum EagleFiler
    Replies: 1
    Last Post: 02-12-2015, 10:34 AM
  2. dropdmg command-line tool
    By Atomjack in forum DropDMG
    Replies: 2
    Last Post: 10-05-2010, 11:31 AM
  3. [SPAM] gets added to Subject line
    By User Name in forum SpamSieve
    Replies: 5
    Last Post: 10-21-2009, 06:08 AM
  4. Default to train on subject line?
    By shassler in forum SpamSieve
    Replies: 5
    Last Post: 09-14-2008, 04:04 PM
  5. filter subject line?
    By trb in forum SpamSieve
    Replies: 3
    Last Post: 07-27-2007, 10:33 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •