Mercurial > hg > Applications > mh
comparison uip/slocal.c @ 13:3c5835cca094
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Apr 2012 15:40:28 +0900 |
parents | 441a2190cfae |
children | 07f8972434be |
comparison
equal
deleted
inserted
replaced
12:441a2190cfae | 13:3c5835cca094 |
---|---|
20 This program should be used ONLY if you have "mts sendmail" or "mts mh" | 20 This program should be used ONLY if you have "mts sendmail" or "mts mh" |
21 or "mts mmdf1" set in your MH configuration. | 21 or "mts mmdf1" set in your MH configuration. |
22 */ | 22 */ |
23 | 23 |
24 /* */ | 24 /* */ |
25 | 25 #include <unistd.h> |
26 #include "../h/mh.h" | 26 #include "../h/mh.h" |
27 #include "../h/dropsbr.h" | 27 #include "../h/dropsbr.h" |
28 #include "../h/rcvmail.h" | 28 #include "../h/rcvmail.h" |
29 #include "../zotnet/tws.h" | 29 #include "../zotnet/tws.h" |
30 #include "../zotnet/mts.h" | 30 #include "../zotnet/mts.h" |
1170 (void) ioctl (fd, TIOCNOTTY, NULLCP); | 1170 (void) ioctl (fd, TIOCNOTTY, NULLCP); |
1171 (void) close (fd); | 1171 (void) close (fd); |
1172 } | 1172 } |
1173 #endif /* TIOCNOTTY */ | 1173 #endif /* TIOCNOTTY */ |
1174 #ifdef BSD42 | 1174 #ifdef BSD42 |
1175 (void) setpgrp (0, getpid ()); | 1175 (void) setpgrp (); // (void) setpgrp (0, getpid ()); |
1176 #endif /* BSD42 */ | 1176 #endif /* BSD42 */ |
1177 | 1177 |
1178 *environ = NULL; | 1178 *environ = NULL; |
1179 (void) m_putenv ("USER", pw -> pw_name); | 1179 (void) m_putenv ("USER", pw -> pw_name); |
1180 (void) m_putenv ("HOME", pw -> pw_dir); | 1180 (void) m_putenv ("HOME", pw -> pw_dir); |
1353 break; | 1353 break; |
1354 } | 1354 } |
1355 if (hp) { | 1355 if (hp) { |
1356 ep = rindex (++hp, '\n'); | 1356 ep = rindex (++hp, '\n'); |
1357 sprintf (buffer, "Return-Path: %.*s!%.*s\n", | 1357 sprintf (buffer, "Return-Path: %.*s!%.*s\n", |
1358 ep - hp, hp, | 1358 (int)(ep - hp), hp, |
1359 cp - fp, fp); | 1359 (int)(cp - fp), fp); |
1360 } | 1360 } |
1361 else | 1361 else |
1362 sprintf (buffer, "Return-Path: %.*s\n", | 1362 sprintf (buffer, "Return-Path: %.*s\n", |
1363 cp - fp, fp); | 1363 (int)(cp - fp), fp); |
1364 #endif | 1364 #endif |
1365 } | 1365 } |
1366 #ifdef notdef /* mbx_copy does this */ | 1366 #ifdef notdef /* mbx_copy does this */ |
1367 else | 1367 else |
1368 putc ('>', ffp); | 1368 putc ('>', ffp); |