Re: mark as read and save macro don't work correctly, why?
- To: mutt-users@xxxxxxxx
- Subject: Re: mark as read and save macro don't work correctly, why?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Tue, 2 Oct 2007 14:56:31 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date:from:to:subject:message-id:references:mime-version:content-type:in-reply-to; q=dns/txt; s=default; bh=l2rJ+gVlqgBg2fuXmcta1MwwcbQ=; b=AIN/0DwwE4/320vRrgI+bed1nz8oMifvT6TXfs3+0tW3+NMnIhC++/Af8+kJ2NU+eEL+WgySiM74mGJ8IzkIPHL14lNoRvUsT2PmLSG6qKkknwG+mdJe/0soze6dInOnUhMKrho5hd2euNNsB4DYr8UFi1aX4r3o9Zvp87ygU6I=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=WeXFwYP7PR9Sj+xnohbJQIQdjumO17OjhCqygwl+T3H8Mv/01Aqh46ovDwfzJ8JHcAo0w5pYzX7/oYIIZZueaGVYbLKEOrPvJhddG4/LSea6mptZRA/FEkNLW8hBsXC7Gdxme/bjDWGZ7I4v/VG/fngTH/6tMWdBi6d0V9z4Y6c=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <20071002193515.GB31512@neptun>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <20071002193515.GB31512@neptun>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-09-10)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, October 2 at 09:35 PM, quoth Raphael Brunner:
>folder-hook . 'set sort=reverse-date-received; \
> macro index d
> "<clear-flag>N<save-message>=999-Trash^M<sync-mailbox>"; \
> macro pager d
> "<clear-flag>N<save-message>=999-Trash^M<sync-mailbox>"
>
>now, if I press 'd' on a message, the N-flag is cleared, but the next
>message is deleted, not the marked. is there some easy way to make this
>macro correct?
The solution to your problem is to unset $resolve at the beginning of
the macro, and reset it at the end. That will prevent it from moving
the cursor to the next message after <clear-flag> executes. For more
information, check out the man page and search for "resolve".
~Kyle
- --
If you cannot change your mind, how can you be certain that you have
one?
-- Unknown
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFHAqJvBkIOoMqOI14RAhOJAJ48AEGrgWWwxjsw6tpW7LKpoXH/igCgwpTl
Gfg3g5/UbYB6maaSGPsgH2Q=
=uAdq
-----END PGP SIGNATURE-----