leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
447 stars 48 forks source link

Reply change the current email ? #214

Closed stacyharper closed 3 years ago

stacyharper commented 3 years ago

Hello there,

I got a new question. As I mless my mails, I sometime reply to them. I'd like to continue my mless browsing where I left it but I'm pushed to the top and have to browse from start again.

I think thats because the cur symlink changed but I'm not sure.

Is it the expected behavior ? Can I change it ?

Thanks a lot !

stacyharper commented 3 years ago

Or maybe mrep will flag the cur mail as replied, wich mean a change in its file path ? Then mrep should also take care to fixup the seq and cur ?

leahneukirchen commented 3 years ago

Exactly, thanks for reporting.

leahneukirchen commented 3 years ago

Does that work for you?

diff --git a/mcom b/mcom
index 4c1027f..f1657ad 100755
--- a/mcom
+++ b/mcom
@@ -478,6 +478,9 @@ while :; do
            *mbnc*) mflag -P -- "$1" ;;
            *mfwd*) mflag -P -- "$@" ;;
        esac
+       case "$0" in
+           *mrep*|*mbnc*|*mfwd*) mseq -f | mseq -S ;;
+       esac

        exit 0
        ;;
stacyharper commented 3 years ago

Yes it does ! Good job ! :D