Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Other than the sorting, wouldn't this be pretty much trivial with a bit of grep? Something like:

            grep '^Subject: ' $(find Maildir -type f) | grep -v '^Subject: re:'

    Yeah, continuation lines would take a bit more, but mail's easy as long as you don't touch MIME.
    • My example was *radically* simplified for the point of demonstrating the headache, it was not the entire program I wanted to produce.
      --
      rjbs
      • Sorry, I was just guessing from what you posted and your description of a "better 'frm'." But still, so long as you only care about headers, it seems like Email::Foo would be more trouble than it's worth.
        • You are wrong.

          I don't want to match header-like content in bodies, or in the headers of subparts. I need to match wrapped headers. I will need to decode MIME-encoded headers. I will need to parse RFC822 date fields.

          Email isn't simple.
          --
          rjbs
          • by dug (2501) on 2007.11.27 23:29 (#59207) Journal

            Email isn't simple.

            That said, I just today had to install some code that used your helpful modules in order to make it more simple. Thanks a whole bunch. You make email easier.

            -- Douglas
            • Thanks! While I am more a maintainer than an author on many or most of the email modules under my name on the CPAN, knowing that they save people work is a nice motivator to keep doing my own work on them.
              --
              rjbs