File: AddHeader

package info (click to toggle)
ssmtp 2.65-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 640 kB
  • sloc: ansic: 2,035; sh: 683; makefile: 103
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.