]> woffs.de Git - fd/haskell-amqp-utils.git/blob - doc/agitprop.head
release 0.6.6.0
[fd/haskell-amqp-utils.git] / doc / agitprop.head
1 <!--
2 SPDX-FileCopyrightText: 2022 Frank Doepper
3
4 SPDX-License-Identifier: FSFAP
5 -->
6
7 ---
8 title: agitprop
9 section: 1
10 header: haskell-amqp-utils
11 footer: haskell-amqp-utils 0.6.6.0
12 date: 2022-11-11
13 ---
14
15 # NAME
16 agitprop - an AMQP publisher
17
18 # SYNOPSIS
19 **agitprop** [*options*]
20
21 # DESCRIPTION
22
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
29 contents.
30
31 Line-by-line mode sends one message per INPUTFILE line.
32
33 In "hotfolder mode" multiple directories can be watched and sent with distinct routingkeys.
34
35 # OPTIONS
36