--- title: agitprop section: 1 header: haskell-amqp-utils footer: haskell-amqp-utils 0.6.6.0 date: 2022-11-11 --- # NAME agitprop - an AMQP publisher # SYNOPSIS **agitprop** [*options*] # DESCRIPTION If INPUTFILE is a file, the file is sent as a message and the program exits. If INPUTFILE is a directory, the directory is watched via inotify ("hotfolder mode") and every file, which is written and closed or moved in gets sent, optionally only files which match one or several SUFFIXes. Optionally the file name is written into a message header named HEADERNAME. Optionally Content-Type and Content-Encoding headers are set via magic retrieved from file contents. Line-by-line mode sends one message per INPUTFILE line. In "hotfolder mode" multiple directories can be watched and sent with distinct routingkeys. # OPTIONS