Mutt Gurus, I'm trying to construct a macro which copies the currently selected message to a folder, then flags it and saves it to a second folder. Right now, I'm using:
macro index E "<copy-message>=misslist\n<flag-message><save-message>=spam_archive\n" The problem I'm having is that <flag-message> advances the cursor to the next message in the index, so the <save-message> command operates on it instead of the one I started with. The obvious fix - putting <previous-entry> after <flag-message> - works unless I'm operating on the last message displayed in the index; in that case the <previous-entry> isn't needed, and <save-message> operates on the previous message. Is there a a way to the set a flag on a message without advancing the pointer to the next message? If not, can anyone suggest another way to achieve what I'm trying to do? Mutt 1.4i (2002-05-29) Copyright (C) 1996-2001 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: HP-UX B.10.20 (9000/780) [using slang 10405] Compile options: -DOMAIN -DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP -USE_GSS -USE_SSL -USE_SASL +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR -HAVE_START_COLOR -HAVE_TYPEAHEAD -HAVE_BKGDSET -HAVE_CURS_SET -HAVE_META -HAVE_RESIZETERM +HAVE_PGP -BUFFY_SIZE -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK -HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET ++HAVE_LANGINFO_YESEXPR +HAVE_ICONV +ICONV_NONTRANS +HAVE_GETSID -HAVE_GETADDRINFO -ISPELL SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/mail" PKGDATADIR="/opt/mutt/share/mutt" SYSCONFDIR="/opt/mutt/etc" EXECSHELL="/bin/sh" -MIXMASTER -- Wesley Hart