char *sendmail = SENDMAILPATH;
/*
+ * The prefix that is prepended to the name of message files when they
+ * are "removed" by rmm. This should typically be `,' or `#'.
+ */
+
+char *backup_prefix = ",";
+
+/*
* This is the editor invoked by the various message
* composition programs. It SHOULD be a full screen
* editor, such as vi or emacs, but any editor will work.
editorpath="$with_editor"
fi
-dnl Set the backup prefix
-AC_ARG_WITH([hash-backup],
- AS_HELP_STRING([--with-hash-backup],[use # as the backup prefix (default: ,)]))
-if test x"$with_hash_backup" != x -a x"$with_hash_backup" != x"no"; then
- backup_prefix="#"
-else
- backup_prefix=","
-fi
-AC_DEFINE_UNQUOTED(BACKUP_PREFIX, "$backup_prefix",
- [The prefix that is prepended to the name of message files when they are "removed" by rmm. This should typically be `,' or `#'.])dnl
-
dnl What method of locking to use?
AC_ARG_WITH(locking,
AS_HELP_STRING([--with-locking=@<:@dot|fcntl|flock|lockf@:>@],
default pager : ${pagerpath}
sendmail : ${sendmailpath}
-backup prefix : ${backup_prefix}
file locking type : ${LOCKTYPE}
email address masq. : ${masquerade}
"
* on any system.
*/
extern char *buildmimeproc;
+extern char *backup_prefix;
extern char *catproc;
extern char *components;
extern char *context;
(profile, default: %default_editor%)
.RE
.PP
+.BR Backup-Prefix :
+,
+.RS 5
+The prefix that is prepended to the name of message files when they
+are "removed" by rmm. This should typically be `,' or `#'.
+(profile, default: `,')
+.RE
+.PP
.BR automimeproc :
.RS 5
If defined and set to 1, then the
* 2) Else if unlink_msgs is non-zero, then unlink the
* SELECTED messages.
* 3) Else rename SELECTED messages by prefixing name
- * with a standard prefix.
+ * with backup_prefix.
*
* If there is an error, return -1, else return 0.
*/
if (access (name, W_OK) == -1)
set_readonly (mp);
- prefix_len = strlen(BACKUP_PREFIX);
+ prefix_len = strlen(backup_prefix);
/*
* Allocate a temporary place to record the
default:
/* skip any files beginning with backup prefix */
- if (!strncmp (dp->d_name, BACKUP_PREFIX, prefix_len))
+ if (!strncmp (dp->d_name, backup_prefix, prefix_len))
continue;
/* skip the LINK file */
if ((cp = r1bindex(file, '/')) == file)
snprintf(buffer, sizeof(buffer), "%s%s",
- BACKUP_PREFIX, cp);
+ backup_prefix, cp);
else
snprintf(buffer, sizeof(buffer), "%.*s%s%s", (int)(cp - file), file,
- BACKUP_PREFIX, cp);
+ backup_prefix, cp);
unlink(buffer);
return buffer;
static struct procstr procs[] = {
{ "context", &context },
{ "mh-sequences", &mh_seq },
+ { "backup-prefix", &backup_prefix },
{ "buildmimeproc", &buildmimeproc },
{ "faceproc", &faceproc },
{ "fileproc", &fileproc },
extern char *mhlibdir;
extern char *mhetcdir;
-char *sbackup = BACKUP_PREFIX;
char *slink = LINK;
static struct swit switches[] = {
{ "whomproc", &whomproc },
{ "etcdir", &mhetcdir },
{ "libdir", &mhlibdir },
- { "sbackup", &sbackup },
+ { "backup-prefix", &backup_prefix },
{ "link", &slink },
{ NULL, NULL },
};
(void)ext_hook("del-hook", maildir, (char *)0);
- j = strlen(BACKUP_PREFIX);
+ j = strlen(backup_prefix);
while ((dp = readdir (dd))) {
switch (dp->d_name[0]) {
case '.':
if (m_atoi (dp->d_name))
break;
if (strcmp (dp->d_name, LINK) == 0
- || strncmp (dp->d_name, BACKUP_PREFIX, j) == 0)
+ || strncmp (dp->d_name, backup_prefix, j) == 0)
break;
admonish (NULL, "file \"%s/%s\" not deleted",