pop3mail v0.1.6 Pop3mail.Header

Email header related functions.

Summary

Functions

Lookup value by header name. Returns a string

Store email headers Date,From,To,Cc and Subject in a text file

Functions

lookup(header_list, header_name)

Lookup value by header name. Returns a string.

If the searched header name occurs multiple times in the list, the result will be the concatenated comma separated value.

header_list - list with tuples {:header, header name as character list, value as character list}

store(header_list, filename_prefix, filename_addition, dirname)

Store email headers Date,From,To,Cc and Subject in a text file.

filename is filename_prefix . unsafe_addition . txt

header_list - list with tuples {:header, header name as character list, value as character list} unsafe_addition - append this to the filename if the filesytem allows it.