File: writeheaders.cc

package info (click to toggle)
gpg-remailer 3.04.07-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 728 kB
  • sloc: cpp: 1,522; sh: 179; makefile: 115; ansic: 23; fortran: 20
file content (12 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#include "mail.ih"

void Mail::writeHeaders(std::string const &hdrsName)
{
    ofstream out;                       // write the mail headers to file
    LogException::open(out, hdrsName);

    for (auto &hdr: d_headers)
        out << hdr << '\n';

    d_log << level(LOGDEBUG) << "Headers written to " << hdrsName << '\n';
}