spamc

A solid client in Java to communicate with SpamAssassin

Лицензия

Лицензия

Группа

Группа

hu.alphabox
Идентификатор

Идентификатор

spamc
Последняя версия

Последняя версия

0.1.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

spamc
A solid client in Java to communicate with SpamAssassin
Ссылка на сайт

Ссылка на сайт

https://github.com/alphabox/spamc
Система контроля версий

Система контроля версий

https://github.com/alphabox/spamc

Скачать spamc

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/hu.alphabox/spamc/ -->
<dependency>
    <groupId>hu.alphabox</groupId>
    <artifactId>spamc</artifactId>
    <version>0.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/hu.alphabox/spamc/
implementation 'hu.alphabox:spamc:0.1.2'
// https://jarcasting.com/artifacts/hu.alphabox/spamc/
implementation ("hu.alphabox:spamc:0.1.2")
'hu.alphabox:spamc:jar:0.1.2'
<dependency org="hu.alphabox" name="spamc" rev="0.1.2">
  <artifact name="spamc" type="jar" />
</dependency>
@Grapes(
@Grab(group='hu.alphabox', module='spamc', version='0.1.2')
)
libraryDependencies += "hu.alphabox" % "spamc" % "0.1.2"
[hu.alphabox/spamc "0.1.2"]

Зависимости

test (2)

Идентификатор библиотеки Тип Версия
ch.qos.logback : logback-classic jar 1.2.3
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

spamc

Introduction

spamc is a simple, solid library in Java to communicate with Apache SpamAssassin. You can send different messages (tipically email) for SpamAssassin to check it is a spam or not.

Maven dependency

<dependency>
    <groupId>hu.alphabox</groupId>
    <artifactId>spamc</artifactId>
    <version>0.1.2</version>
</dependency>

Building

To make the latest SNAPSHOT jar file, you will need the Apache Maven installed. Run the following command:

mvn clean package

Usage

A simple usage example to send GTUBE message with all available command.

public static void main(String[] args) {
    SARequest request = new SARequest();
    //GTUBE message string
    request.setMessage("XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X");
    request.useCompression(false);
    SAClient client = new SAClient(InetAddress.getByName("localhost"), 783);
    for (SACommand command : SACommand.values()) {
        LOGGER.info("Send command: " + command.name());
        if (command == SACommand.TELL) {
            request.addHeader("Message-class", "spam");
            request.addHeader("Set", "local,remote");
        }
        request.setCommand(command);
        client.sendRequest(request);
    }
}

License

This project licensed under Apache 2.0 License - see the LICENSE file for details

Версии библиотеки

Версия
0.1.2
0.1.1
0.1