I have similar macros defined (with the 'y' removed as suggested in a
followup).

--- In [EMAIL PROTECTED], "Stephen E. Hargrove" <[EMAIL PROTECTED]> wrote:
> i've defined the following macro sequences:
>
> folder-hook .       macro index d "<save-message>~/mail/trash<enter>y"
> folder-hook .       macro pager d "<save-message>~/mail/trash<enter>y"
> folder-hook trash   macro index d "<delete-message>"
> folder-hook trash   macro pager d "<delete-message>"

The macros work great except for when I view an individual attacment
('v' to get to view-attachments menu, '<Return>' to display message
attachment). In this case, the macro is still active since the
attachment is viewed with the pager. When I hit 'd' to delete the
message, I'm asked if I want to overwrite, append or cancel, but it does
not indicate the filename. It turns out it is my trash file. When I
overwrite or append, the trash file is no longer a mailbox since it has
a message body with no header.

Is it possible to avoid this?

Details of mutt version follow...

Thanks,
Benjamin

Mutt 1.2.5i (2000-07-28)
...
System: Linux 2.4.14 [using slang 10404]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  -USE_DOTLOCK  +USE_FCNTL  -USE_FLOCK
+USE_IMAP  +USE_GSS  +USE_SSL  +USE_POP  +HAVE_REGCOMP  -USE_GNU_REGEX
+HAVE_COLOR  +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  +ENABLE_NLS
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
SHAREDIR="/etc"
SYSCONFDIR="/etc"
ISPELL="/usr/bin/ispell"

Reply via email to