diff options
author | Bruce Guenter <bruce@untroubled.org> | 2007-10-09 14:36:12 -0600 |
---|---|---|
committer | Bruce Guenter <bruce@untroubled.org> | 2007-10-09 14:36:12 -0600 |
commit | bd8c99e3898710b542fd5a6f08f98ffdf3e933f8 (patch) | |
tree | 3cfb529cf5f4fe25dbc6990d4e79c0fd4f6b674f /lib | |
parent | c04e92eb8bcd99f16a908e48e8bee1673488ccf8 (diff) |
Added a header for lib/makefield.cc
Diffstat (limited to 'lib')
-rw-r--r-- | lib/makefield.cc | 4 | ||||
-rw-r--r-- | lib/makefield.h | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/makefield.cc b/lib/makefield.cc index d45bab1..1a2c4f2 100644 --- a/lib/makefield.cc +++ b/lib/makefield.cc @@ -58,10 +58,8 @@ mystring make_date() return mystringjoin(buf) + tz; } -extern mystring idhost; - // Message ID strings have the form SECONDS.USEC.PID.nullmailer@HOST -mystring make_messageid() +mystring make_messageid(const mystring& idhost) { struct timeval tv; gettimeofday(&tv, 0); diff --git a/lib/makefield.h b/lib/makefield.h new file mode 100644 index 0000000..1ac1169 --- /dev/null +++ b/lib/makefield.h @@ -0,0 +1,7 @@ +#ifndef NULLMAILER__MAKEFIELD__H__ +#define NULLMAILER__MAKEFIELD__H__ + +extern mystring make_date(); +extern mystring make_messageid(const mystring& idhost); + +#endif // NULLMAILER__MAKEFIELD__H__ |