News::Scan::Article(3pm)

News::Scan::Article3pm

Collect information about news articles

Usage

    use News::Scan::Article;
    my $art = News::Scan::Article->new( ARG, [ OPTIONS, ] SCAN );

Overview

This module provides a derived class of "Mail::Internet" whose objects are suitable for digesting Usenet news articles.

Constructor

new ( ARG, [ OPTIONS, ] SCAN-OBJ )

The "ARG" and "OPTIONS" parameters are identical to those required by "Mail::Internet", except "ARG" is required. See Mail::Internet. The "SCAN" parameter should be a "News::Scan" object. See News::Scan.

If the article falls into the period of interest for "SCAN", the object is returned, else "undef".

Methods

group ( [ SCAN-OBJ ] )

Sets or returns an object's group depending on whether "SCAN-OBJ" is present.

author

Returns the article's author represented as a "Mail::Address" object.

message_id

Returns the article's Message-ID.

subject

Returns the article's subject.

newsgroups

Returns the list of newsgroups this article was posted to.

size

Returns the size of this article in bytes.

header_size

Returns the size of this article's header in bytes.

header_lines

Returns the number of lines consumed in this article by headers.

body_size

Returns the size of this article's body in bytes.

body_lines

Returns the number of lines consumed in this article by the body.

orig_size

Returns the size of this article's original content in bytes. See "QuoteRE" in News::Scan.

orig_lines

Returns the number of lines consumed in this article by original content. Keep in mind that original content is a subset of the body.

sig_size

Returns the size of this article'ss signature in bytes.

sig_lines

Returns the number of lines consumed in this article by the signature.

Releases

12 releases since Debian 3.0 (Woody); the text changed 4 times.

  1. 3.0
  2. 3.1–5.0
  3. 6.0–9
  4. 10
  5. 11–13

Author

Greg Bacon <[email protected]>

From libnews-scan-perl 0.53-4.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.