NONE TITLE 7.html
Keywords: NONE TITLE,fml, flexible mailing list manager, not listserv style but fmlserv emulates listserv or majordomo style

[PREVIOUS CHAPTER] [NEXT CHAPTER]

7 hack Subject:

    7.1	add each number for each thread

       1 Subject: [ML:1] aaa
       2 Subject: Re: [ML:1] aaa
       3 Subject: Re: [ML:1] aaa
       4 Subject: [ML:4] bbb
       5 Subject: Re: [ML:4] bbb

    This is very difficult. If you add each number for each thread, this
    hook works. But the number is non continuous since the number is the
    number of article.

       $SMTP_OPEN_HOOK = q#
           if ($Envelope{'h:subject:'}  =~ /^\s*Re:/i) {
               $Envelope{'h:Subject:'} = $Envelope{'h:subject:'};
       	undef $SUBJECT_FREE_FORM;
           }
       #;

    If you add [ML:2] for article 4, this hook may be useful.
    Pay attention this hook has not enough error check codes.

       $SMTP_OPEN_HOOK = q`
           undef $SUBJECT_FREE_FORM;
           if ($Envelope{'h:subject:'}  =~ /^\s*Re:/i) {
               $Envelope{'h:Subject:'} = $Envelope{'h:subject:'};
           } else {
               $SEQ_SUBJ_FILE = "$DIR/seqsubj";
               &Touch($SEQ_SUBJ_FILE) unless -f $SEQ_SUBJ_FILE;
               $IDSUBJ = &GetFirstLineFromFile($SEQ_SUBJ_FILE);
               $IDSUBJ++;
               &Write2($IDSUBJ, $SEQ_SUBJ_FILE);
               #&Log("IDSUBJ=[$IDSUBJ]");
               $Envelope{'h:Subject:'} =~ s/^\s+//;
               $Envelope{'h:Subject:'} = "[$BRACKET:$IDSUBJ] $Envelope{'h:Subject:'}";
           }
       `;

II rentalled servers (e.g. ISP ...)

III examples

[PREVIOUS CHAPTER] [NEXT CHAPTER]