File: AddHeader

package info (click to toggle)
ssmtp 2.64-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 948 kB
  • sloc: ansic: 2,044; sh: 497; makefile: 133
file content (10 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
The Addheader patch creates the configuration directive AddHeader.
It adds anything up to newline or '#' to the beginning of mail headers.
You can use a directive in ssmtp.conf like this:

AddHeader=X-security-level: public

I have changed the strtok callss in the read_config to a similarly
looking function, which does not modify the argument string.
I did not, however changed every strtok down the way.