nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] A permute command for nmh 1.7 ?


From: Jerrad Pierce
Subject: Re: [Nmh-workers] A permute command for nmh 1.7 ?
Date: Tue, 17 Jun 2014 12:47:07 -0400

Norm, could you clarify the expected behavior?

Putting the specified messages into the specified order is trivial,
but where do they go in the overall order of the folder? If it is
the beginning or ending of the list, this sounds like a smple shell
script to me. If they are to be inserted into one another's slots,
I see no sane way to define how that would work.

Sample code for a script to move messages to the end of your folder:

#!sh
while [ $# -gt 0 ]; do
    case "$1" in
        address@hidden) FOLDER=$1;;
            *) MSGS="$MSGS $1";;
    esac
    shift
done

if [ -z "$FOLDER" ]; then
   FOLDER=`folder -fast`
fi

for MSG in $MSGS do
  refile $MSG +$FOLDER
done

folder -pack +$FOLDER



reply via email to

[Prev in Thread] Current Thread [Next in Thread]