Public Attributes | List of all members
core_article_header Struct Reference

Article header fields supported by core. More...

Collaboration diagram for core_article_header:
Collaboration graph

Public Attributes

const char * msgid
 
const char ** groups
 
const char * from
 
const char * subject
 
core_time_t date
 
const char * supers
 
const char * fup2
 
const char * reply2
 
const char * uagent
 
const char * org
 
const char ** refs
 
const char * dist
 
const char * mime_v
 
const char * mime_ct
 
const char * mime_cte
 
const char * mime_cd
 
const char * x_newsr
 
const char * x_mailer
 
const char * x_pagent
 
unsigned long int lines
 

Detailed Description

Article header fields supported by core.

All fields marked with [M] are mandatory for Usenet article headers. All fields marked with [U] are MIME decoded to UTF-8 and normalized to NFC.

All fields are initialized by the header object constructor. All mandatory fields are always initialized with content (even if the article header is invalid), all optional fields with NULL (if there is no such field in the article header).

The field date is a numerical value, not a string. The fields groups and refs point to NULL terminated arrays of strings.

Definition at line 107 of file core.h.

Member Data Documentation

◆ date

core_time_t core_article_header::date

[M] POSIX timestamp (seconds since epoch)

Definition at line 113 of file core.h.

◆ dist

const char* core_article_header::dist

Distribution

Definition at line 120 of file core.h.

◆ from

const char* core_article_header::from

[M][U] Sender of the article

Definition at line 111 of file core.h.

Referenced by filter_match_own().

◆ fup2

const char* core_article_header::fup2

Follow up to this group

Definition at line 115 of file core.h.

◆ groups

const char** core_article_header::groups

[M] Groups the article is posted to

Definition at line 110 of file core.h.

◆ lines

unsigned long int core_article_header::lines

Number of lines in body

Definition at line 129 of file core.h.

◆ mime_cd

const char* core_article_header::mime_cd

MIME content disposition

Definition at line 124 of file core.h.

◆ mime_ct

const char* core_article_header::mime_ct

MIME content type

Definition at line 122 of file core.h.

◆ mime_cte

const char* core_article_header::mime_cte

MIME content transfer encoding

Definition at line 123 of file core.h.

◆ mime_v

const char* core_article_header::mime_v

MIME version

Definition at line 121 of file core.h.

◆ msgid

const char* core_article_header::msgid

[M] Message ID of the article

Definition at line 109 of file core.h.

Referenced by filter_match_reply_to_own().

◆ org

const char* core_article_header::org

[U] Organization of sender

Definition at line 118 of file core.h.

◆ refs

const char** core_article_header::refs

List with references

Definition at line 119 of file core.h.

Referenced by filter_match_reply_to_own().

◆ reply2

const char* core_article_header::reply2

[U] Recipient of replies instead of sender

Definition at line 116 of file core.h.

◆ subject

const char* core_article_header::subject

[M][U] Subject of the article

Definition at line 112 of file core.h.

◆ supers

const char* core_article_header::supers

Supersedes article with this Message ID

Definition at line 114 of file core.h.

◆ uagent

const char* core_article_header::uagent

[U] Client program which created article

Definition at line 117 of file core.h.

◆ x_mailer

const char* core_article_header::x_mailer

[U] Nonstandard equivalent to 'uagent'

Definition at line 126 of file core.h.

◆ x_newsr

const char* core_article_header::x_newsr

[U] Nonstandard equivalent to 'uagent'

Definition at line 125 of file core.h.

◆ x_pagent

const char* core_article_header::x_pagent

[U] Nonstandard equivalent to 'uagent'

Definition at line 127 of file core.h.


The documentation for this struct was generated from the following file:

Generated at 2024-04-27 using  doxygen