Current section

Files

Jump to
mailman docs Mailman.Attachment.html
Raw

docs/Mailman.Attachment.html

<!DOCTYPE html>
<html>
<head>
<title>Mailman.Attachment</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
relpath = '';
if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
if (window.top.frames.main) document.body.className = 'frames';
</script>
<div id="content">
<div class="breadcrumbs">Mailman v0.0.3 &rarr; <a href="overview.html">Overview</a> &rarr; <a href="Mailman.html">Mailman</a> &rarr; <a href="Mailman.Attachment.html">Attachment</a></div>
<h1>
Mailman.Attachment
</h1>
<ul class="summary_links">
<li><a href="#summary">Summary</a></li>
<li><a href="#functions_details">Functions</a></li>
</ul>
<div id="moduledoc" class="docstring">
<p>A struct defining an attachable file. It automatically detect the mime type based on file extension.</p>
</div>
<a href="https://github.com/kamilc/mailman/blob/master/lib/mailman/attachment.ex#L1" class="view_source">Source</a>
<h2 id="summary">Summary<div class="detail_header_links"><a class="to_top_link" href="#content" title="To the top of the page">&uarr;</a></div></h2>
<table class="summary">
<tr>
<td class="summary_signature"><a href="#inline!/1">inline!(file_path)</a></td>
<td class="summary_synopsis"><p>Get the attachment struct for given by path file from the file system and throw an error if anything goes wrong</p>
</td>
</tr>
<tr>
<td class="summary_signature"><a href="#inline/1">inline(file_path)</a></td>
<td class="summary_synopsis"><p>Get the attachment struct for given by path file from the file system</p>
</td>
</tr>
<tr>
<td class="summary_signature"><a href="#mime_full_for_path/1">mime_full_for_path(path)</a></td>
</tr>
<tr>
<td class="summary_signature"><a href="#mime_sub_type_for_path/1">mime_sub_type_for_path(path)</a></td>
</tr>
<tr>
<td class="summary_signature"><a href="#mime_type_for_path/1">mime_type_for_path(path)</a></td>
</tr>
<tr>
<td class="summary_signature"><a href="#mime_types/0">mime_types()</a></td>
</tr>
</table>
<div id="functions_details" class="details_list">
<h2>Functions</h2>
<div class="detail">
<div class="detail_header" id="inline/1">
<span class="signature"><strong>inline(file_path)</strong></span>
<div class="detail_header_links">
<span class="detail_type">(function)</span>
<a href="#inline/1" class="detail_link" title="Link to this function">#</a>
<a class="to_top_link" href="#content" title="To the top of the page">&uarr;</a>
</div>
</div>
<div class="docstring"><p>Get the attachment struct for given by path file from the file system</p>
</div>
<a href="https://github.com/kamilc/mailman/blob/master/lib/mailman/attachment.ex#L661" class="view_source">Source</a>
</div>
<div class="detail">
<div class="detail_header" id="inline!/1">
<span class="signature"><strong>inline!(file_path)</strong></span>
<div class="detail_header_links">
<span class="detail_type">(function)</span>
<a href="#inline!/1" class="detail_link" title="Link to this function">#</a>
<a class="to_top_link" href="#content" title="To the top of the page">&uarr;</a>
</div>
</div>
<div class="docstring"><p>Get the attachment struct for given by path file from the file system and throw an error if anything goes wrong.</p>
</div>
<a href="https://github.com/kamilc/mailman/blob/master/lib/mailman/attachment.ex#L678" class="view_source">Source</a>
</div>
<div class="detail">
<div class="detail_header" id="mime_full_for_path/1">
<span class="signature"><strong>mime_full_for_path(path)</strong></span>
<div class="detail_header_links">
<span class="detail_type">(function)</span>
<a href="#mime_full_for_path/1" class="detail_link" title="Link to this function">#</a>
<a class="to_top_link" href="#content" title="To the top of the page">&uarr;</a>
</div>
</div>
<div class="docstring"></div>
<a href="https://github.com/kamilc/mailman/blob/master/lib/mailman/attachment.ex#L685" class="view_source">Source</a>
</div>
<div class="detail">
<div class="detail_header" id="mime_sub_type_for_path/1">
<span class="signature"><strong>mime_sub_type_for_path(path)</strong></span>
<div class="detail_header_links">
<span class="detail_type">(function)</span>
<a href="#mime_sub_type_for_path/1" class="detail_link" title="Link to this function">#</a>
<a class="to_top_link" href="#content" title="To the top of the page">&uarr;</a>
</div>
</div>
<div class="docstring"></div>
<a href="https://github.com/kamilc/mailman/blob/master/lib/mailman/attachment.ex#L702" class="view_source">Source</a>
</div>
<div class="detail">
<div class="detail_header" id="mime_type_for_path/1">
<span class="signature"><strong>mime_type_for_path(path)</strong></span>
<div class="detail_header_links">
<span class="detail_type">(function)</span>
<a href="#mime_type_for_path/1" class="detail_link" title="Link to this function">#</a>
<a class="to_top_link" href="#content" title="To the top of the page">&uarr;</a>
</div>
</div>
<div class="docstring"></div>
<a href="https://github.com/kamilc/mailman/blob/master/lib/mailman/attachment.ex#L696" class="view_source">Source</a>
</div>
<div class="detail">
<div class="detail_header" id="mime_types/0">
<span class="signature"><strong>mime_types()</strong></span>
<div class="detail_header_links">
<span class="detail_type">(function)</span>
<a href="#mime_types/0" class="detail_link" title="Link to this function">#</a>
<a class="to_top_link" href="#content" title="To the top of the page">&uarr;</a>
</div>
</div>
<div class="docstring"></div>
<a href="https://github.com/kamilc/mailman/blob/master/lib/mailman/attachment.ex#L708" class="view_source">Source</a>
</div>
</div>
</div>
</body>
</html>