From e1d637de6a29ad424e573f908d26840d5176335a Mon Sep 17 00:00:00 2001 From: Tyrolyean Date: Fri, 1 May 2020 16:11:21 +0200 Subject: [PATCH] Added c standard and building instructions Signed-off-by: Tyrolyean --- Makefile | 2 +- README | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 885b48d..653ef2e 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ SRCDIR := $(CWD)/src INCLUDEDIR := $(CWD)/include # flas -CFLAGS := -O2 -I$(INCLUDEDIR) -Wall -Wextra -Wpedantic +CFLAGS := -O2 -I$(INCLUDEDIR) -Wall -Wextra -Wpedantic -std=gnu11 LDFLAGS := -pthread # target files diff --git a/README b/README index 439e9cb..425910f 100644 --- a/README +++ b/README @@ -53,7 +53,7 @@ You can specify the following command line options: 500Kb. If 0 is specified, all files will be attached. A negative value effectively disables us. -HOWTO +##### HOWTO We essentially are MITM sniffing your email traffic and playing proxy from your postfix to your postfix. That's how this is intended to work according to the @@ -73,7 +73,7 @@ the link above. For example, a setup with the default values looks like this: |Attachments| |-----------| -POSTFIX CONFIGURATION +#### POSTFIX CONFIGURATION The following is an example postfix configuration which I deploy with opendkim and spamassassin as well as mailattach itself: @@ -128,7 +128,7 @@ postfix manual and are explained in more depth there: http://www.postfix.org/FILTER_README.html -DIRECTORY CLEANING +#### DIRECTORY CLEANING If you want to regularly purge old files from the directory, you can start the shell script clean.sh in this repository via a chron job. It will by default @@ -140,3 +140,9 @@ are structured like this: The random number at the end consists of several signed integers, therefore it sometimes has one or more - in it. + +#### Building + +To build the plugin simply run make. The resulting binary will spawn in +bin/mailattach. Copy it to the desired location. It doesn't link against any +external librarys. Well maybe that isn't true, it requires the glibc.