\ No newline at end of file
diff --git a/web/partials/email-table.html.php b/web/templates/email-table.html.php
similarity index 94%
rename from web/partials/email-table.html.php
rename to web/templates/email-table.html.php
index 5d95b0a..b57a4ce 100644
--- a/web/partials/email-table.html.php
+++ b/web/templates/email-table.html.php
@@ -38,4 +38,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/web/templates/email.html.php b/web/templates/email.html.php
new file mode 100644
index 0000000..877eef4
--- /dev/null
+++ b/web/templates/email.html.php
@@ -0,0 +1,36 @@
+
+ Subject: = escape($emaildata['parsed']['subject']) ?>
+
+ Reciepients:
+
+
+ = escape($to) ?>
+
+
+
+ = nl2br(escape($emaildata['parsed']['body'])) ?>
+
+
+
+
+ Raw email
+ Open in new Window
+
+
+
+
+
\ No newline at end of file
diff --git a/web/index.html b/web/templates/index.html
similarity index 100%
rename from web/index.html
rename to web/templates/index.html
diff --git a/web/partials/rss.xml.php b/web/templates/rss.xml.php
similarity index 80%
rename from web/partials/rss.xml.php
rename to web/templates/rss.xml.php
index 72bfe96..68d7357 100644
--- a/web/partials/rss.xml.php
+++ b/web/templates/rss.xml.php
@@ -20,9 +20,8 @@
$parts = explode('-', $filename);
$fid = $parts[0];
$fn = $parts[1];
- $url = 'https://' . $url . '/api.php?a=attachment&email=' . $email . '&id=' . $fid . '&filename=' . $fn;
- //$encl[] = '';
- $att_text[] = "$fn";
+ $att_url = $url . '/api/attachment/' . $email . '/' . $filename;
+ $att_text[] = "$fn";
}
?>
@@ -34,7 +33,7 @@
Email from: = escape($d['from']) ?>
Email to: = escape(implode(';',$data['rcpts'])) ?>
= ((count($att_text) > 0) ? 'Attachments: ' . array2ul($att_text) . ' ' : '') ?>
- View raw email
+ View raw email