}
#endif
+#ifndef IMAP_STORAGE
static int copy(char *infile, char *outfile)
{
int ifd;
}
#endif
}
+#endif
+#ifndef IMAP_STORAGE
static void copy_plain_file(char *frompath, char *topath)
{
char frompath2[PATH_MAX], topath2[PATH_MAX];
snprintf(topath2, sizeof(topath2), "%s.txt", topath);
copy(frompath2, topath2);
}
+#endif
+#ifndef IMAP_STORAGE
static int vm_delete(char *file)
{
char *txt;
unlink(txt);
return ast_filedelete(file, NULL);
}
+#endif
static int inbuf(struct baseio *bio, FILE *fi)
{
} else {
/* Forward VoiceMail */
long duration = 0;
- char msgfile[PATH_MAX];
struct vm_state vmstmp;
+#ifndef IMAP_STORAGE
+ char msgfile[PATH_MAX];
+#endif
memcpy(&vmstmp, vms, sizeof(vmstmp));