class Store

Overview

Message storage This is basically a wrapper around Array to support the API used by POP and SMTP.

Defined in:

devmail/store.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add(_mail_from, _rcpt_to, message_data) #

Save message in storage


[View source]
def count #

[View source]
def each_index(&) #

[View source]
def get(index) #

[View source]
def messages : Array(String?) #

[View source]
def remove(index) #

Remove message from storage


[View source]
def size(index) #

message size


[View source]
def total_size #

total size of all messages


[View source]
def truncate #

Remove empty messages


[View source]