[Users] Creating threads manually

H.Merijn Brand h.m.brand at xs4all.nl
Tue Jul 17 17:03:49 CEST 2018


On Tue, 17 Jul 2018 17:43:44 +0300, Removed GDPR <removed-gdpr at example.com>
wrote:

> Thanks!
> 
> On Tue, 17 Jul 2018 12:01:10 +0200 H.Merijn Brand
> wrote:
> 
> > Then select the messages to combine in a thread and
> > Choose
> > 
> >   Tools ▶ Actions ▶ Reparent (fix threading)  
> 
> This still creates the structure:
> 
>      A
>      +- B
>      +- C
>      +- D
> 
> Can you share a version which creates this structure?
> 
>      A
>      +- B
>         +- C
>            +- D
> 
> I understand that if D is a reply to B it will be
> wrong. But if the script does the second thing perhaps
> selecting only B and D and running again the action
> could fix that too.

It is in the docs (in the script itself)
If you want a descending tree, feel free to modify the script (I won't)
or reparent in pairs (just select two files at the time)

=head1 DESCRIPTION

This script should be called from within Claws-Mail as an action

Define an action as

  Menu name:  Reparent (fix threading)
  Command:    cm-reparent.pl %F

Then select from the message list all files that should be re-parented

Then invoke the action

All but the oldest of those mails will be modified (if needed) to
reflect that the oldest mail is the parent of all other mails by
adding or altering the header lines C<In-Reply-To:> and C<References:>

Given 4 files A, B, C, and D like

 File         Message-Id    Date
 A            123AC_12      2016-06-01 12:13:14
 B            aFFde2993     2016-06-01 13:14:15
 C            0000_1234     2016-06-02 10:18:04
 D            foo_bar_12    2016-06-03 04:00:00

The new tree will be like

 A            123AC_12      2016-06-01 12:13:14
 +- B         aFFde2993     2016-06-01 13:14:15
 +- C         0000_1234     2016-06-02 10:18:04
 +- D         foo_bar_12    2016-06-03 04:00:00

and not like

 A            123AC_12      2016-06-01 12:13:14
 +- B         aFFde2993     2016-06-01 13:14:15
    +- C      0000_1234     2016-06-02 10:18:04
       +- D   foo_bar_12    2016-06-03 04:00:00

Existing entries of C<References:> and C<In-Reply-To:> in the header
of any of B, C, or D will be preserved as C<X-References:> or
C<X-In-Reply-To:> respectively.


-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.27   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20180717/65e2295c/attachment.sig>


More information about the Users mailing list