Mercurial > noffle
comparison src/protocol.c @ 111:6f681d41734c noffle
[svn] path-header added.
author | bears |
---|---|
date | Sat, 24 Jun 2000 21:28:01 +0100 |
parents | e612b263934f |
children | d45b0abe7c79 |
comparison
equal
deleted
inserted
replaced
110:d23f038454d4 | 111:6f681d41734c |
---|---|
1 /* | 1 /* |
2 protocol.c | 2 protocol.c |
3 | 3 |
4 $Id: protocol.c 65 2000-05-12 16:52:41Z enz $ | 4 $Id: protocol.c 155 2000-06-24 20:28:01Z bears $ |
5 */ | 5 */ |
6 | 6 |
7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
8 #include <config.h> | 8 #include <config.h> |
9 #endif | 9 #endif |
282 strftime( date, MAXCHAR, "%Y%m%d%H%M%S", gmtime( &t ) ); | 282 strftime( date, MAXCHAR, "%Y%m%d%H%M%S", gmtime( &t ) ); |
283 srand( (unsigned int)time( NULL ) ); | 283 srand( (unsigned int)time( NULL ) ); |
284 snprintf( msgId, MAXCHAR, "<%s.%X.%s@%s>", date, rand(), suffix, domain ); | 284 snprintf( msgId, MAXCHAR, "<%s.%X.%s@%s>", date, rand(), suffix, domain ); |
285 ASSERT( Prt_isValidMsgId( msgId ) ); | 285 ASSERT( Prt_isValidMsgId( msgId ) ); |
286 } | 286 } |
287 | |
288 void | |
289 Prt_genPathHdr( Str pathHdr, const char *from ) | |
290 { | |
291 getDomain( pathHdr, from ); | |
292 Utl_catStr( pathHdr, "!not-for-mail" ); | |
293 } | |
294 | |
295 | |
296 | |
297 |