pop3mail v0.1.8 Pop3mail.EpopDownloader

Retrieve and parse POP3 mail via the Epop client.

Summary

Functions

Read all emails and save them to disk

Read all emails and save them to disk

Functions

download(options)

Read all emails and save them to disk.

options - EpopDownloader.Options

parse_process_and_store(mail_content, mail_loop_counter, delivered, save_raw, output_dir)

Parse headers, decode body and store everything.

  • mail_content - character list with the complete raw email message.
  • mail_loop_count - number of the email in the current session.
  • delivered - true/false/nil. Presence, absence or don’t care of the ‘Delivered-To’ email header.
  • save_raw - true/false. Save or don’t save the raw email message.
  • output_dir - directory where all emails are stored.
retrieve_and_store(epop_client, mail_loop_counter, options)

Retrieve, parse and store an email.

  • epop_client - client returned by :epop_client.connect function.
  • mail_loop_counter - number of the email in the current session.
  • options - EpopDownloader.Options
retrieve_and_store_all(epop_client, options)

Read all emails and save them to disk.

  • epop_client - client returned by :epop_client.connect function.
  • options - EpopDownloader.Options