#447 Scan lines and threading

mh-e-8.0
open
nobody
None
5
2014-07-30
2006-05-11
No

There are some problems in the mh-thread.el
functions which will make life difficult for
general regular expressions.

These functions:
mh-thread-current-indentation-level
mh-thread-find-children ()

Use this idiom:

(let ((address-start-offset
(+ mh-cmd-note mh-scan-date-flag-width
mh-scan-date-width 1))

This function:
mh-thread-parse-scan-line

uses this idiom:

(let* ((string
(or string
(buffer-substring-no-properties
(mh-line-beginning-position)
(mh-line-end-position))))
(address-start
(+ mh-cmd-note
mh-scan-field-from-start-offset))
(body-start
(+ mh-cmd-note
mh-scan-field-from-end-offset))
(first-string
(substring string 0 address-start)))

Those idioms are making a fairly poor assumptions
about what might be on the line before or after
the address and before or after the message body.

It may be desirable to have a hook which is used
to calculate those values based on a matching
regular expression for a given line or possibly a
hook to allow the values to be adjusted as needed
for a different set of format and regular
expressions.

Discussion

  • Bill Wohler

    Bill Wohler - 2006-06-22
    • labels: --> General
    • milestone: --> mh-e-8.0
    • status: open --> open-accepted
     
  • Bill Wohler

    Bill Wohler - 2013-02-23
    • labels: General -->
     
  • Bill Wohler

    Bill Wohler - 2013-02-23

    Ticket moved from /p/mh-e/feature-requests/125/

     
  • Bill Wohler

    Bill Wohler - 2013-02-23
    • Status: open-accepted --> open
     
  • Bill Wohler

    Bill Wohler - 2014-07-30
    • summary: scanlines and threading --> Scan lines and threading
     

Log in to post a comment.