[Top][All Lists]

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

Re: [Nmh-workers] refile and moving sequences with messages

From: David Levine
Subject: Re: [Nmh-workers] refile and moving sequences with messages
Date: Thu, 14 Mar 2013 22:12:53 -0400

Kevin wrote:

> What do you think about this functionality being added natively to
> refile?  Possibly via a command line switch?  -retain-sequences or
> something.

Done, here's the interesting part:

 * Copy sequence information for a refiled message to its
 * new folder(s).  Skip the cur sequence.
static void
copy_seqs (struct msgs *oldmp, int oldmsgnum, struct msgs *newmp,
           int newmsgnum)
    char **seq;
    int seqnum;

    for (seq = oldmp->msgattrs, seqnum = 0; *seq; ++seq, ++seqnum) {
        if (strcmp (current, *seq)) {
            assert (seqnum == seq_getnum (oldmp, *seq));
            if (in_sequence (oldmp, seqnum, oldmsgnum)) {
                seq_addmsg (newmp, *seq, newmsgnum,
                            is_seq_private (oldmp, seqnum) ? 0 : 1, 0);


reply via email to

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