We better don't carry dead code with us, it might start smelling.
twscopy(struct tws *tb, struct tws *tw)
{
*tb = *tw; /* struct copy */
-
-#if 0
- tb->tw_sec = tw->tw_sec;
- tb->tw_min = tw->tw_min;
- tb->tw_hour = tw->tw_hour;
- tb->tw_mday = tw->tw_mday;
- tb->tw_mon = tw->tw_mon;
- tb->tw_year = tw->tw_year;
- tb->tw_wday = tw->tw_wday;
- tb->tw_yday = tw->tw_yday;
- tb->tw_zone = tw->tw_zone;
- tb->tw_clock = tw->tw_clock;
- tb->tw_flags = tw->tw_flags;
-#endif
}
int bplen, tmplen;
char *bp, *cp;
-#if 0
- struct stat st;
-#endif
-
if ((cp = strrchr(file, '/')) == NULL || *++cp == 0)
cp = file;
}
#endif
-#if 0
- /*
- ** mmdf style dot locking. Currently not supported.
- ** If we start supporting mmdf style dot locking,
- ** we will need to change the return value of lockname
- */
- if (stat(file, &st) == -1)
- return -1;
-
- snprintf(bp, sizeof(li->curlock) - bplen, "LCK%05d.%05d",
- st.st_dev, st.st_ino);
-#endif
-
snprintf(bp, sizeof(li->curlock) - bplen, "%s.lock", cp);
#if !defined(HAVE_LIBLOCKFILE)
*/
return 1;
-#if 0
- fseek(iob, pos, SEEK_SET);
-#endif
-
fseek(iob, (long)(pos-1), SEEK_SET);
getc(iob); /* should be OK */
return 0;
}
mnfree(mp);
-#if 0
- printf("%s: ", s);
- print_aka(vp ? vp : s, list, pos += strlen(s) + 1);
-#else
print_aka(vp ? vp : s, list, 0);
-#endif
if (vp)
free(vp);
smsgs[msgp++].s_stop = (c == '\n' && wasdlm) ?
pos - 1 : pos;
if (feof(in)) {
-#if 0
- if (wasdlm) {
- smsgs[msgp - 1].s_stop -=
- ((long) strlen(buffer) + 1);
- msgp++; /* fake "End of XXX Digest" */
- }
-#endif
break;
}
pos += (long) strlen(buffer);
switch (ct->c_encoding) {
case CE_7BIT:
/* Nothing to output */
-#if 0
- np = getcpy(ENCODING_FIELD);
- vp = concat(" ", "7bit", "\n", NULL);
- add_header(ct, np, vp);
-#endif
break;
case CE_8BIT:
msgnum += (revflag ? -1 : 1)) {
if (is_selected(mp, msgnum)) {
if ((in = fopen(cp = m_name(msgnum), "r")) == NULL) {
-#if 0
- if (errno != EACCES)
-#endif
- admonish(cp, "unable to open message");
-#if 0
- else
- printf("%*d unreadable\n",
- DMAXFOLDER, msgnum);
-#endif
+ admonish(cp, "unable to open message");
continue;
}
adios(NULL, "scan() botch(%d)", state);
case SCNEOF:
-#if 0
- printf("%*d empty\n", DMAXFOLDER, msgnum);
-#else
advise(NULL, "message %d: empty", msgnum);
-#endif
break;
}
hdrflag = 0;
fmt_scan(fmt, scanl, slwidth, dat);
-#if 0
- fmt = fmt_scan(fmt, scanl, slwidth, dat);
- if (!fmt)
- fmt = fmt_top; /* reset for old format files */
-#endif
-
if (bodycomp)
bodycomp->c_text = saved_c_text;
#ifdef HAVE_LSTAT
int slinked = 0;
-#if 0
- int oumask; /* PJS: for setting permissions on symlinks. */
-#endif
#endif /* HAVE_LSTAT */
/* Was there a previous edit session? */
unlink(linkpath);
#ifdef HAVE_LSTAT
if (link(altpath, linkpath) == NOTOK) {
-#if 0
- /* I don't think permission on symlinks matters /JLR */
- /* PJS: else symlinks are world 'r' */
- oumask = umask(0044);
-#endif
symlink(altpath, linkpath);
-#if 0
- umask(oumask); /* PJS: else symlinks are world 'r' */
-#endif
slinked = 1;
} else {
slinked = 0;