Bump to version 2.66.
[rss2email.git] / readme.html
1 <html>
2 <head>
3 <title>Getting Started With rss2email</title>
4 </head>
5 <body>
6 <h1>Getting Started With rss2email</h1>
7
8 <p style="color: green;">We highly recommend that you subscribe to the rss2email project feed so you can keep up to date with the latest version, bugfixes and features: <a href="http://feeds.feedburner.com/allthingsrss/hJBr">http://feeds.feedburner.com/allthingsrss/hJBr</a></p>
9 <p><a href="#windows">Instructions for Windows Users</a><br/>
10 <a href="#unix">Instructions for UNIX Users</a><br/>
11 <a href="#customizeit">Customizing rss2email</a></p>
12
13
14 <h2 id="windows">Instructions for Windows Users</h2>
15
16 <h3>Requirements</h3>
17
18 <p>Before you install rss2email, you'll need to make sure that a few things are in place. First, is that a version of <a href="http://www.python.org">Python</a> 2.x installed. Second, determine your outgoing email server's address. That should be all you need.</p>
19
20 <h3>Download</h3>
21
22 <ol>
23 <li>Create a new folder</li>
24 <li>Download the latest rss2email .ZIP file and unzip to the new folder
25 </ol>
26   
27 <h3>Configure</h3>
28
29 <p>Edit the <code>config.py</code> file and fill in your outoing email server's details. If your server requires you to login, change <code>"AUTHREQUIRED = 0"</code> to <code>"AUTHREQUIRED = 1"</code> and enter your email username and password.</p>
30
31 <h3>Install</h3>
32
33 <p>From the command line, change to the folder you created. Now create a new feed database to send updates to your email address:</p>
34
35 <blockquote>
36   <p><code>r2e new you@yourdomain.com</code></p>
37 </blockquote>
38
39 <p>Subscribe to some feeds:</p>
40
41 <blockquote>
42   <p><code>r2e add http://feeds.feedburner.com/allthingsrss/hJBr</code></p>
43 </blockquote>
44
45 <p>That's the feed to be notified when there's a new version of rss2email. Repeat this for each feed you want to subscribe to.</p>
46
47 <p>When you run rss2email, it emails you about every story it hasn't seen before. But the first time you run it, that will be every story. To avoid this, you can ask rss2email not to send you any stories the first time you run it:</p>
48
49 <blockquote>
50   <p><code>r2e run --no-send</code></p>
51 </blockquote>
52
53 <p>Then later, you can ask it to email you new stories:</p>
54
55 <blockquote>
56   <p><code>r2e run</code></p>
57
58 </blockquote>
59
60 <p>If you get an error message "Sender domain must exist", add a line to <code>config.py</code> like this:</p>
61
62 <blockquote>
63   <p><code>DEFAULT_FROM = rss2email@yoursite.com</code></p>
64 </blockquote>
65
66 <p>You can make the email address whatever you want, but your mail server requires that the yoursite.com part actually exists.</p>
67
68 <h3>Automating rss2email</h3>
69
70 <p>More than likely you will want rss2email to run automatically at a regular interval. Under Windows this is can be easily accomplished using the Windows Task Scheduler. This site has a nice <a href="http://www.iopus.com/guides/winscheduler.htm">tutorial</a> on it. Just select r2e.bat as the program to run. Once you've created the task, double click on it in the task list and change the Run entry so that "run" comes after r2e.bat. For example, if you installed rss2email in the C:\rss2email folder, then you would change the Run entry from "C:\rss2email\r2e.bat" to "C:\rss2email\r2e.bat run".</p>
71
72 <p>Now jump down to the section on <a href="#customizeit">customizing rss2email</a> to your needs.</p>
73
74 <h3>Upgrading to a new version</h3>
75 <p>Simply replace all of the files from the .ZIP package to your install directory <strong style="color: red;">EXCEPT config.py</strong></p>
76
77 <h2 id="unix">Instructions for UNIX/Linux Users</h2>
78
79 <h3>Requirements</h3>
80
81 <p>Before you install rss2email, you'll need to make sure that a few things are in place. First, is a version of <a href="http://www.python.org">Python</a> 2.x installed. Second, is whether you have sendmail (or a compatible replacement like postfix) installed. If sendmail isn't installed, determine your outgoing email server's address. That should be all you need.</p>
82
83 <h3>Download</h3>
84
85 <p>A quick way to get rss2email going is using pre-made packages. Here are releases for <a href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;version=all&amp;exact=1&amp;keywords=rss2email">Debian</a> Linux, <a href="http://packages.ubuntu.com/search?keywords=rss2email&searchon=names&section=all">Ubuntu</a> Linux and <a href="ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/pkgsrc/mail/rss2email/README.html">NetBSD</a>.</p>
86
87 <p>If you are unable to use these packages or you want the latest and greatest version, here's what you do:</p>
88
89 <blockquote><code>
90 Unarchive (probably 'tar -xzf') the rss2email .tar.gz package to [folder where you want rss2email files to live] <br>
91 cd [yourfolder] <br>
92 chmod +x r2e
93 </code></blockquote>
94
95 <h3>Install</h3>
96
97 <p>Create a new feed database with your target email address:</p>
98
99 <blockquote>
100   <p><code>./r2e new you@yourdomain.com</code></p>
101 </blockquote>
102
103 <p>Subscribe to some feeds:</p>
104
105 <blockquote>
106   <p><code>./r2e add http://feeds.feedburner.com/allthingsrss/hJBr</code></p>
107
108 </blockquote>
109
110 <p>That's the feed to be notified when there's a new version of rss2email. Repeat this for each feed you want to subscribe to.</p>
111
112 <p>When you run rss2email, it emails you about every story it hasn't seen before. But the first time you run it, that will be every story. To avoid this, you can ask rss2email not to send you any stories the first time you run it:</p>
113
114 <blockquote>
115   <p><code>./r2e run --no-send</code></p>
116 </blockquote>
117
118 <p>Then later, you can ask it to email you new stories:</p>
119
120 <blockquote>
121   <p><code>./r2e run</code></p>
122 </blockquote>
123
124 <p>You probably want to set things up so that this command is run repeatedly. (One good way is via a cron job.)</p>
125
126 <p>If you get an error message "Sender domain must exist", add a line to <code>config.py</code> like this:</p>
127
128 <blockquote>
129   <p><code>DEFAULT_FROM = rss2email@yoursite.com</code></p>
130 </blockquote>
131
132 <p>You can make the email address whatever you want, but your mail server requires that the yoursite.com part actually exists.</p>
133
134 <h3>Upgrading to a new version</h3>
135 <p>Simply replace all of the files from the .tar.gz package to your install directory <strong style="color: red;">EXCEPT config.py</strong></p>
136
137
138
139 <h1 id="customizeit">Customize rss2email</h1>
140
141 <p>There are a number of options, described in full at the top of rss2email.py file, to customize the way rss2email behaves. If you want to change something, edit the <code>config.py</code> file. If you're not using rss2email under Windows, you'll have to create this file if it doesn't already exist.</p>
142
143 <p>For example, if you want to receive HTML mail, instead of having entries converted to plain text:</p>
144
145 <blockquote>
146   <p><code>HTML_MAIL = 1</code></p>
147
148 </blockquote>
149
150 <p>To be notified every time a post changes, instead of just when it's first posted:</p>
151
152 <blockquote>
153   <p><code>TRUST_GUID = 0</code></p>
154 </blockquote>
155
156 <p>And to make the emails look as if they were sent when the item was posted:</p>
157
158 <blockquote>
159   <p><code>DATE_HEADER = 1</code></p>
160   
161 </body>
162 </html>  
163