summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorHorus32016-07-03 18:07:29 +0200
committerHorus32016-07-03 18:07:29 +0200
commitf5cf66b6929928fe5a4a6cf227f9a2f2195329e5 (patch)
tree94155faa0b84a236503ee0843eec749989fd9625 /index.php
downloadimap2rss-f5cf66b6929928fe5a4a6cf227f9a2f2195329e5.tar.gz
Initial commit.
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..b40b8e1
--- /dev/null
+++ b/index.php
@@ -0,0 +1,11 @@
+<?php
+$user = "feed@maxmail.xyz";
+$pass = "1234";
+$inbox = array("INBOX", "Trash");
+$max_items = 10;
+
+$mail = getMail($user, $pass, $inbox, $max_items);
+
+$inbox_string = implode(",", $inbox);
+
+$feed = generate_feed($mail, $user, $inbox_string);