2 SPDX-FileCopyrightText: 2022 Frank Doepper
4 SPDX-License-Identifier: FSFAP
10 header: haskell-amqp-utils
11 footer: haskell-amqp-utils 0.6.6.0
16 agitprop - an AMQP publisher
19 **agitprop** [*options*]
23 If INPUTFILE is a file, the file is sent as a message and the program exits. If
24 INPUTFILE is a directory, the directory is watched via inotify ("hotfolder
25 mode") and every file, which is written and closed or moved in gets sent,
26 optionally only files which match one or several SUFFIXes. Optionally the file
27 name is written into a message header named HEADERNAME. Optionally
28 Content-Type and Content-Encoding headers are set via magic retrieved from file
31 Line-by-line mode sends one message per INPUTFILE line.
33 In "hotfolder mode" multiple directories can be watched and sent with distinct routingkeys.