Browse Source

Added c standard and building instructions

Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
master
Tyrolyean 2 years ago
parent
commit
e1d637de6a
No known key found for this signature in database GPG Key ID: 81EC9BAC5E9667C6
  1. 2
      Makefile
  2. 12
      README

2
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

12
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.

Loading…
Cancel
Save