-#include <lib-crypt/crypt.h>
-
-
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/wait.h>
-#include <sys/stat.h>
-#include <string.h>
-#include <errno.h>
-
-static const char *Mailbox_is_read_only = N_("Mailbox is read-only.");
-static char LastSaveFolder[_POSIX_PATH_MAX] = "";
-
-#define CHECK_READONLY if (Context->readonly) \
-{\
- mutt_flushinp (); \
- mutt_error _(Mailbox_is_read_only); \
- break; \
-}
-
-#define SW (option(OPTMBOXPANE)?SidebarWidth:0)
-
-static struct mapping_t AttachHelp[] = {
- {N_("Exit"), OP_EXIT},
- {N_("Save"), OP_SAVE},
- {N_("Pipe"), OP_PIPE},
- {N_("Print"), OP_PRINT},
- {N_("Help"), OP_HELP},
- {NULL, OP_NULL}
-};
-
-static int mutt_extract_path (char *filename, char *path)
-{
- char *tmp = p_new(char, _POSIX_PATH_MAX);
- char *help_ptr;
-
- help_ptr = tmp;
-
- while (*filename != '\0') {
- if (*filename == '/') {
- *help_ptr++ = *filename++;
- *help_ptr++ = '\0';
- strcat (path, tmp);
- help_ptr = tmp;
- }
- *help_ptr++ = *filename++;
- }
- p_delete(&tmp);
- return 0;
-}