Postie - Version 1.4.32

Version Description

(2013.01.29) = * Fixed bug in detecting need for imap extension. * Added additional selections for "Maximum number of emails to process" * Added logic to skip text attachments named "ATT00001.txt" which are added by MS Exchange virus scanning. * Added option to check for email every 5 minutes.

Download this release

Release Info

Developer WayneAllen
Plugin Icon 128x128 Postie
Version 1.4.32
Comparing to
See all releases

Code changes from version 1.4.31 to 1.4.32

Files changed (11) hide show
  1. Revision +2 -2
  2. config_form.php +8 -1
  3. docs/Changes.txt +6 -0
  4. docs/Postie.txt +1 -1
  5. docs/Usage.txt +11 -2
  6. faq.html +3 -0
  7. postie-functions.php +11 -7
  8. postie.php +4 -3
  9. postie_test.php +4 -4
  10. readme.html +21 -225
  11. readme.txt +19 -3
Revision CHANGED
@@ -1,2 +1,2 @@
1
- Revision: 658787
2
- Last Changed Date: 2013-01-24 21:31:40 -0800 (Thu, 24 Jan 2013)
1
+ Revision: 660784
2
+ Last Changed Date: 2013-01-27 22:37:48 -0800 (Sun, 27 Jan 2013)
config_form.php CHANGED
@@ -193,6 +193,11 @@
193
  echo "selected='selected'";
194
  }
195
  ?>><?php _e('every ten minutes', 'postie') ?></option>
 
 
 
 
 
196
  <option value="manual" <?php
197
  if ($interval == "manual") {
198
  echo "selected='selected'";
@@ -203,11 +208,13 @@
203
  </tr>
204
  <tr>
205
  <th>
206
- <?php _e('Maximum number of emails to process', 'postie'); ?>
207
  </th>
208
  <td>
209
  <select name='postie-settings[maxemails]' id='postie-settings-maxemails'>
210
  <option value="0" <?php if ($maxemails == '0') echo "selected='selected'" ?>>All</option>
 
 
211
  <option value="5" <?php if ($maxemails == '5') echo "selected='selected'" ?>>5</option>
212
  <option value="10" <?php if ($maxemails == '10') echo "selected='selected'" ?>>10</option>
213
  <option value="25" <?php if ($maxemails == '25') echo "selected='selected'" ?>>25</option>
193
  echo "selected='selected'";
194
  }
195
  ?>><?php _e('every ten minutes', 'postie') ?></option>
196
+ <option value="fiveminutes" <?php
197
+ if ($interval == "fiveminutes") {
198
+ echo "selected='selected'";
199
+ }
200
+ ?>><?php _e('every five minutes', 'postie') ?></option>
201
  <option value="manual" <?php
202
  if ($interval == "manual") {
203
  echo "selected='selected'";
208
  </tr>
209
  <tr>
210
  <th>
211
+ <?php _e('Maximum number of emails to process:', 'postie'); ?>
212
  </th>
213
  <td>
214
  <select name='postie-settings[maxemails]' id='postie-settings-maxemails'>
215
  <option value="0" <?php if ($maxemails == '0') echo "selected='selected'" ?>>All</option>
216
+ <option value="1" <?php if ($maxemails == '1') echo "selected='selected'" ?>>1</option>
217
+ <option value="2" <?php if ($maxemails == '2') echo "selected='selected'" ?>>2</option>
218
  <option value="5" <?php if ($maxemails == '5') echo "selected='selected'" ?>>5</option>
219
  <option value="10" <?php if ($maxemails == '10') echo "selected='selected'" ?>>10</option>
220
  <option value="25" <?php if ($maxemails == '25') echo "selected='selected'" ?>>25</option>
docs/Changes.txt CHANGED
@@ -10,6 +10,12 @@ All script, style and body tags are stripped from html emails.
10
  Attachments are now processed in the order they were attached.
11
 
12
  == CHANGELOG ==
 
 
 
 
 
 
13
  = 1.4.31 (2013.01.25) =
14
  * Enhanced category detection to be compatible with Polylang plugin.
15
  * Enhanced prerequisite detection.
10
  Attachments are now processed in the order they were attached.
11
 
12
  == CHANGELOG ==
13
+ = 1.4.32 (2013.01.29) =
14
+ * Fixed bug in detecting need for imap extension.
15
+ * Added additional selections for "Maximum number of emails to process"
16
+ * Added logic to skip text attachments named "ATT00001.txt" which are added by MS Exchange virus scanning.
17
+ * Added option to check for email every 5 minutes.
18
+
19
  = 1.4.31 (2013.01.25) =
20
  * Enhanced category detection to be compatible with Polylang plugin.
21
  * Enhanced prerequisite detection.
docs/Postie.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.5.1
9
- Stable tag: 1.4.31
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.5.1
9
+ Stable tag: 1.4.32
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
docs/Usage.txt CHANGED
@@ -1,6 +1,9 @@
1
  == Usage ==
 
2
  * If you put in :start - the message processing won't start until it sees that string.
3
  * If you put in :end - the message processing will stop once it sees that string.
 
 
4
  * Posts can have a specific publication date. Relative dates like "tomorrow", "monday", "first day of next month" are supported.
5
  * date: date
6
  * date: date time
@@ -9,6 +12,8 @@
9
  * delay:1h - 1 hour
10
  * delay:1m - 1 minute
11
  * delay:1d2h4m - 1 day 2 hours 4m
 
 
12
  * By putting comments:X in your message you can control if comments are allowed
13
  * comments:0 - means closed
14
  * comments:1 - means open
@@ -19,6 +24,8 @@
19
  get posted as a comment to the "foo" post. This works by the subject
20
  line, so if you have two posts with titles "foo", then the comment
21
  will get placed in the more recent post.
 
 
22
  * Custom excerpt
23
  * You can include a custom excerpt of an e-mail by putting it between
24
  :excerptstart and :excerptend
@@ -29,7 +36,7 @@
29
  You can specify the post type by including it as the first part of the subject
30
  E.g. post type//real subject
31
 
32
- = Category and tag handling =
33
  * If you put a category name in the subject with a : it will be used
34
  as the category for the post
35
  * If you put a category id number in the subject with a : it will
@@ -60,6 +67,8 @@
60
  * You can also set a default tag to be applied if no tags are included.
61
 
62
  = Image Handling =
 
 
63
  * Allows you to attach images to your email and automatically post
64
  them to your blog
65
  * You can publish images in the text of your message by using #img1#
@@ -122,4 +131,4 @@
122
  if you send an HTML and plain text message
123
  * Automatically confirms that you are installed correctly
124
 
125
- = Extending =
1
  == Usage ==
2
+ = Specifying Beginning and Ending of Post =
3
  * If you put in :start - the message processing won't start until it sees that string.
4
  * If you put in :end - the message processing will stop once it sees that string.
5
+
6
+ = Post Date =
7
  * Posts can have a specific publication date. Relative dates like "tomorrow", "monday", "first day of next month" are supported.
8
  * date: date
9
  * date: date time
12
  * delay:1h - 1 hour
13
  * delay:1m - 1 minute
14
  * delay:1d2h4m - 1 day 2 hours 4m
15
+
16
+ = Comment Control =
17
  * By putting comments:X in your message you can control if comments are allowed
18
  * comments:0 - means closed
19
  * comments:1 - means open
24
  get posted as a comment to the "foo" post. This works by the subject
25
  line, so if you have two posts with titles "foo", then the comment
26
  will get placed in the more recent post.
27
+
28
+ = Post Excerpt =
29
  * Custom excerpt
30
  * You can include a custom excerpt of an e-mail by putting it between
31
  :excerptstart and :excerptend
36
  You can specify the post type by including it as the first part of the subject
37
  E.g. post type//real subject
38
 
39
+ = Categories =
40
  * If you put a category name in the subject with a : it will be used
41
  as the category for the post
42
  * If you put a category id number in the subject with a : it will
67
  * You can also set a default tag to be applied if no tags are included.
68
 
69
  = Image Handling =
70
+ Note you can only use this feature if your "Preferred Text Type" is set to "plain"
71
+
72
  * Allows you to attach images to your email and automatically post
73
  them to your blog
74
  * You can publish images in the text of your message by using #img1#
131
  if you send an HTML and plain text message
132
  * Automatically confirms that you are installed correctly
133
 
134
+ = Extending =
faq.html CHANGED
@@ -145,6 +145,9 @@ must name the icons according to the following scheme:</p>
145
 
146
  <pre><code>{filetype}-{size}.png</code></pre>
147
 
 
 
 
148
  <p>For example, for word documents, you could use:</p>
149
 
150
  <pre><code>doc-32.png</code></pre>
145
 
146
  <pre><code>{filetype}-{size}.png</code></pre>
147
 
148
+ <p>NOTE THAT ANY CUSTOM FILES ADDED TO THE POSTIE DIRECTORY WILL BE DELETED IF YOU
149
+ USE THE NORMAL WORDPRESS UPGRADE PROCESS.</p>
150
+
151
  <p>For example, for word documents, you could use:</p>
152
 
153
  <pre><code>doc-32.png</code></pre>
postie-functions.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /*
4
- $Id: postie-functions.php 659001 2013-01-25 22:49:55Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
@@ -875,13 +875,17 @@ function GetContent($part, &$attachments, $post_id, $poster, $config) {
875
  }
876
  if (array_key_exists('disposition', $part) && $part->disposition == 'attachment') {
877
  DebugEcho("text Attachement: $filename");
878
- $file_id = postie_media_handle_upload($part, $post_id, $poster);
879
- if (!is_wp_error($file_id)) {
880
- $file = wp_get_attachment_url($file_id);
881
- $icon = chooseAttachmentIcon($file, $part->ctype_primary, $part->ctype_secondary, $icon_set, $icon_size);
882
- $attachments["html"][$filename] = "<a href='$file'>" . $icon . $filename . '</a>' . "\n";
 
 
 
 
883
  } else {
884
- LogInfo($file_id->get_error_message());
885
  }
886
  } else {
887
 
1
  <?php
2
 
3
  /*
4
+ $Id: postie-functions.php 660792 2013-01-29 18:44:14Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
875
  }
876
  if (array_key_exists('disposition', $part) && $part->disposition == 'attachment') {
877
  DebugEcho("text Attachement: $filename");
878
+ if (strtolower($filename) != strtolower('ATT00001.txt')) {
879
+ $file_id = postie_media_handle_upload($part, $post_id, $poster);
880
+ if (!is_wp_error($file_id)) {
881
+ $file = wp_get_attachment_url($file_id);
882
+ $icon = chooseAttachmentIcon($file, $part->ctype_primary, $part->ctype_secondary, $icon_set, $icon_size);
883
+ $attachments["html"][$filename] = "<a href='$file'>" . $icon . $filename . '</a>' . "\n";
884
+ } else {
885
+ LogInfo($file_id->get_error_message());
886
+ }
887
  } else {
888
+ DebugEcho("text attachment: skipping");
889
  }
890
  } else {
891
 
postie.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Signifigantly upgrades the posting by mail features of Word Press (See <a href='options-general.php?page=postie/postie.php'>Settings and options</a>) to configure your e-mail settings. See the <a href='http://wordpress.org/extend/plugins/postie/other_notes'>Readme</a> for usage. Visit the <a href='http://wordpress.org/support/plugin/postie'>postie forum</a> for support.
7
- Version: 1.4.31
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
@@ -27,7 +27,7 @@
27
  */
28
 
29
  /*
30
- $Id: postie.php 659001 2013-01-25 22:49:55Z WayneAllen $
31
  */
32
 
33
  define("POSTIE_ROOT", dirname(__FILE__));
@@ -135,7 +135,7 @@ function postie_warnings() {
135
  }
136
 
137
  $p = strtolower($config['input_protocol']);
138
- if (!function_exists('imap_mime_header_decode') && ($p == 'imap' || $p == 'imap-ssl' || $p = 'pop-ssl')) {
139
 
140
  function postie_imap_warning() {
141
  echo "<div id='postie-imap-warning' class='error'><p><strong>";
@@ -225,6 +225,7 @@ function postie_more_reccurences($schedules) {
225
  $schedules['weekly'] = array('interval' => (60 * 60 * 24 * 7), 'display' => __('Once Weekly'));
226
  $schedules['twiceperhour'] = array('interval' => 60 * 30, 'display' => __('Twice per hour '));
227
  $schedules['tenminutes'] = array('interval' => 60 * 10, 'display' => __('Every 10 minutes'));
 
228
 
229
  return $schedules;
230
  }
4
  Plugin Name: Postie
5
  Plugin URI: http://PostiePlugin.com/
6
  Description: Signifigantly upgrades the posting by mail features of Word Press (See <a href='options-general.php?page=postie/postie.php'>Settings and options</a>) to configure your e-mail settings. See the <a href='http://wordpress.org/extend/plugins/postie/other_notes'>Readme</a> for usage. Visit the <a href='http://wordpress.org/support/plugin/postie'>postie forum</a> for support.
7
+ Version: 1.4.32
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
27
  */
28
 
29
  /*
30
+ $Id: postie.php 660909 2013-01-29 21:22:26Z WayneAllen $
31
  */
32
 
33
  define("POSTIE_ROOT", dirname(__FILE__));
135
  }
136
 
137
  $p = strtolower($config['input_protocol']);
138
+ if (!function_exists('imap_mime_header_decode') && ($p == 'imap' || $p == 'imap-ssl' || $p == 'pop-ssl')) {
139
 
140
  function postie_imap_warning() {
141
  echo "<div id='postie-imap-warning' class='error'><p><strong>";
225
  $schedules['weekly'] = array('interval' => (60 * 60 * 24 * 7), 'display' => __('Once Weekly'));
226
  $schedules['twiceperhour'] = array('interval' => 60 * 30, 'display' => __('Twice per hour '));
227
  $schedules['tenminutes'] = array('interval' => 60 * 10, 'display' => __('Every 10 minutes'));
228
+ $schedules['fiveminutes'] = array('interval' => 60 * 5, 'display' => __('Every 5 minutes'));
229
 
230
  return $schedules;
231
  }
postie_test.php CHANGED
@@ -30,7 +30,7 @@ $images = array("Test.png", "Test.jpg", "Test.gif");
30
  }
31
 
32
  if (!isPostieInCorrectDirectory()) {
33
- EchoInfo("<b>Warning!</b> Postie expects to be in its own directory named postie.");
34
  } else {
35
  EchoInfo("Postie is in " . dirname(__FILE__));
36
  }
@@ -42,19 +42,19 @@ $images = array("Test.png", "Test.jpg", "Test.gif");
42
  if (HasIconvInstalled()) {
43
  EchoInfo("iconv: installed");
44
  } else {
45
- EchoInfo("<b>Warning!</b> Postie requires that iconv be enabled.");
46
  }
47
 
48
  if (function_exists('imap_mime_header_decode')) {
49
  EchoInfo("imap: installed");
50
  } else {
51
- EchoInfo("<b>Warning!</b> Postie requires that imap be enabled.");
52
  }
53
 
54
  if (HasMbStringInstalled()) {
55
  EchoInfo("mbstring: installed");
56
  } else {
57
- EchoInfo("<b>Warning!</b> Postie requires that mbstring be enabled.");
58
  }
59
  ?>
60
 
30
  }
31
 
32
  if (!isPostieInCorrectDirectory()) {
33
+ EchoInfo("Warning! Postie expects to be in its own directory named postie.");
34
  } else {
35
  EchoInfo("Postie is in " . dirname(__FILE__));
36
  }
42
  if (HasIconvInstalled()) {
43
  EchoInfo("iconv: installed");
44
  } else {
45
+ EchoInfo("Warning! Postie requires that iconv be enabled.");
46
  }
47
 
48
  if (function_exists('imap_mime_header_decode')) {
49
  EchoInfo("imap: installed");
50
  } else {
51
+ EchoInfo("Warning! Postie requires that imap be enabled.");
52
  }
53
 
54
  if (HasMbStringInstalled()) {
55
  EchoInfo("mbstring: installed");
56
  } else {
57
+ EchoInfo("Warning! Postie requires that mbstring be enabled.");
58
  }
59
  ?>
60
 
readme.html CHANGED
@@ -69,6 +69,7 @@ enable mail checking using cron.</p>
69
 
70
  <p>You will need to install <a href="http://gnuwin32.sourceforge.net/packages/wget.htm">wget</a> or <a href="http://curl.haxx.se/dlwiz/">curl</a>
71
  Then use the Task Scheduler control panel to call wget or cron.</p> <hr />
 
72
  <h3>Upgrade Notice</h3>
73
  <dl>
74
  <dt>1.4.18</dt>
@@ -80,9 +81,16 @@ Then use the Task Scheduler control panel to call wget or cron.</p> <hr />
80
  </dl>
81
 
82
  <h3 id='Usage'>Usage</h3>
 
 
83
  <ul>
84
  <li>If you put in :start - the message processing won't start until it sees that string.</li>
85
  <li>If you put in :end - the message processing will stop once it sees that string.</li>
 
 
 
 
 
86
  <li>Posts can have a specific publication date. Relative dates like "tomorrow", "monday", "first day of next month" are supported.
87
 
88
  <ul>
@@ -97,6 +105,11 @@ Then use the Task Scheduler control panel to call wget or cron.</p> <hr />
97
  <li>delay:1m - 1 minute</li>
98
  <li>delay:1d2h4m - 1 day 2 hours 4m</li>
99
  </ul></li>
 
 
 
 
 
100
  <li>By putting comments:X in your message you can control if comments are allowed
101
 
102
  <ul>
@@ -113,6 +126,11 @@ get posted as a comment to the "foo" post. This works by the subject
113
  line, so if you have two posts with titles "foo", then the comment
114
  will get placed in the more recent post.</li>
115
  </ul></li>
 
 
 
 
 
116
  <li>Custom excerpt
117
 
118
  <ul>
@@ -128,7 +146,7 @@ will get placed in the more recent post.</li>
128
  <p>You can specify the post type by including it as the first part of the subject
129
  E.g. post type//real subject</p>
130
 
131
- <h4>Category and tag handling</h4>
132
 
133
  <ul>
134
  <li>If you put a category name in the subject with a : it will be used
@@ -164,6 +182,8 @@ tags: foo, bar</li>
164
 
165
  <h4>Image Handling</h4>
166
 
 
 
167
  <ul>
168
  <li>Allows you to attach images to your email and automatically post
169
  them to your blog</li>
@@ -234,229 +254,5 @@ if you send an HTML and plain text message</li>
234
  </ul>
235
 
236
  <h4>Extending</h4>
237
-
238
- <p>== Frequently Asked Questions ==</p>
239
-
240
- <h4>Postie won't connect to my mailserver. Why Not?</h4>
241
-
242
- <p>Make sure the port you are using is open. For example, bluehost seems to block
243
- ports 993 and 995 (for pop3-ssl and imap-ssl) by default. I have heard that
244
- you can request that they open them for you ( you might have to pay extra).</p>
245
-
246
- <p>You can check for open ports with the following command on your server:</p>
247
-
248
- <pre><code>netstat -ln|grep -E &#039;:::(993|995|143)&#039;</code></pre>
249
-
250
- <p>If nothing shows up, then the ports are not open.</p>
251
-
252
- <h4>How can I get postie to display inline images?</h4>
253
-
254
- <p>Make sure that you send e-mail formatted as html (richtext), and set postie to
255
- prefer html messages (in the message tab of the postie settings)</p>
256
-
257
- <h4>Mail is not showing up right when I send html (rich formatted) e-mail!</h4>
258
-
259
- <p>Make sure you set the preferred text type to html</p>
260
-
261
- <h4>Do I need to any code to my theme for postie to work?</h4>
262
-
263
- <p>No.</p>
264
-
265
- <h4>I read somewhere to add an iframe to my footer. Should I do this?</h4>
266
-
267
- <p>No. Do not add an iframe in your footer to get postie to check mail
268
- periodically. To check e-mail periodically, either set-up a cron job, or use
269
- cronless postie. See installation instructions</p>
270
-
271
- <h4>My mail host requires SSL, but postie will not allow me to select pop3-ssl or imap-ssl</h4>
272
-
273
- <p>You must have php-imap installed on your server for this to work. Ask your
274
- hosting provider about this.</p>
275
-
276
- <h4>Can I use postie to check a gmail account?</h4>
277
-
278
- <p>Yes. You can use either pop3-ssl or imap-ssl with a gmail account. Before
279
- attempting to use with postie, make sure that you enable pop or imap in your
280
- gmail preferences.</p>
281
-
282
- <ul>
283
- <li>Pop3 settings:
284
-
285
- <ul>
286
- <li>protocol - pop3-ssl</li>
287
- <li>server - pop.gmail.com</li>
288
- <li>port - 995</li>
289
- <li>userid - your username (e.g. if your e-mail address is foo@gmail.com,
290
- this would be just foo)</li>
291
- <li>password - your password </li>
292
- </ul></li>
293
- <li>IMAP settings:
294
-
295
- <ul>
296
- <li>protocol - imap-ssl</li>
297
- <li>server - imap.gmail.com</li>
298
- <li>port - 993</li>
299
- <li>userid - your username (e.g. if your e-mail address is foo@gmail.com,
300
- this would be just foo)</li>
301
- <li>password - your password </li>
302
- </ul></li>
303
- </ul>
304
-
305
- <h4>Can I use postie with GoDaddy hosting?</h4>
306
-
307
- <p>Yes, but you must use an email set up using the GoDaddy email service and the following settings:</p>
308
-
309
- <ul>
310
- <li>protocol - pop3</li>
311
- <li>server - pop.secureserver.net</li>
312
- <li>port - 110</li>
313
- <li>userid - xxxxx@yourdomain</li>
314
- <li>password - your password </li>
315
- </ul>
316
-
317
- <p>GoDaddy hosting does not allow you to connect to non-GoDaddy mail servers like Gmail.</p>
318
-
319
- <h4>My posts show up as being posted by 'admin' instead of me. Why?</h4>
320
-
321
- <p>If your admin account is linked to bar@gmail.com, and you send mail from
322
- bar@gmail.com, it will show up as being posted by admin. If you have a
323
- wordpress user named "John Doe", which is linked to johndoe@gmail.com, make
324
- sure that you send e-mails from johndoe@gmail.com. It doesn't matter which
325
- e-mail address postie is checking. That is, if you send mail from
326
- johndoe@gmail.com to foo@gmail.com, it gets posted as "John Doe".</p>
327
-
328
- <p>If you send an e-mail to your postie address from an e-mail address that is no
329
- t linked to a wordpress user, it will get posted as admin.</p>
330
-
331
- <h4>Images aren't showing up at all?</h4>
332
-
333
- <p>There are a couple possible reasons for this. First, check to see if you can
334
- add an image through wordpress's normal posting mechanism. If not, then there
335
- is probably 1 or 2 problems:
336
- 1. Your server does not have the php-gd library installed. Ask your hosting
337
- provider about this.</p>
338
-
339
- <ol>
340
- <li>Your wp-content/uploads directory is not writable by the webserver. Make
341
- sure that it is</li>
342
- </ol>
343
-
344
- <h4>Can I delete the wp-files directory needed by postie version &lt;1.3.0?</h4>
345
-
346
- <p>If you have posts published already by older versions of postie, getting rid
347
- of those directories will delete any files you might have had associated with
348
- those old posts. If you don't have any such posts, then you can safely delete
349
- them.</p>
350
-
351
- <h4>How can I get rid of stupid stuff my e-mail provider adds to my messages?</h4>
352
-
353
- <p>To strip off stuff that they add at the beginning of a message, start your
354
- post with :start</p>
355
-
356
- <p>To strip off stuff that they add at the end of a message, end your
357
- post with :end</p>
358
-
359
- <h4>How can I add custom attachment icons?</h4>
360
-
361
- <p>Simply upload the icons you want to the postie/icons/custom directory. You
362
- must name the icons according to the following scheme:</p>
363
-
364
- <pre><code>{filetype}-{size}.png</code></pre>
365
-
366
- <p>NOTE THAT ANY CUSTOM FILES ADDED TO THE POSTIE DIRECTORY WILL BE DELETED IF YOU
367
- USE THE NORMAL WORDPRESS UPGRADE PROCESS.</p>
368
-
369
- <p>For example, for word documents, you could use:</p>
370
-
371
- <pre><code>doc-32.png</code></pre>
372
-
373
- <p>for a 32x32 pixel icon. (You can actually create any size icon you want, but
374
- if you name it 32, then it will only be used if you select to use size 32
375
- icons)</p>
376
-
377
- <p>See the other directories in icons for more examples.</p>
378
-
379
- <p>Currently the following filetypes are supported:</p>
380
-
381
- <ul>
382
- <li>doc - microsoft word (including docx)</li>
383
- <li>ppt - microsoft powerpoint (including pptx)</li>
384
- <li>xls - microsoft excel (including xlsx)</li>
385
- <li>numbers - iWork numbres spreadsheet</li>
386
- <li>pages - iWork pages document</li>
387
- <li>key - iWork keynote presentation</li>
388
- <li>pdf - portable document format</li>
389
- <li>rtf - rich text format</li>
390
- <li>txt - plain text document</li>
391
- </ul>
392
-
393
- <h4>Can I add special text to the body of the post when using postie?</h4>
394
-
395
- <p>Yes. You can create your own function, and use the postie_post filter.
396
- Two short examples are included in the filterPostie.php.sample file</p>
397
-
398
- <h4>Can I add special text to the title of the post when using postie?</h4>
399
-
400
- <p>Yes. You can create your own function, and use the postie_post filter.
401
- Two short examples are included in the filterPostie.php.sample file</p>
402
-
403
- <h4>Can I select tags or categories based on the content of the e-mail?</h4>
404
-
405
- <p>Yes. You can create your own function, and use the postie_post filter.
406
- See the filterPostie.php.sample file for examples.</p>
407
-
408
- <h4>Is the IMAP extension required for postie?</h4>
409
-
410
- <p>The IMAP extension is not required, but it is strongly recommended, especially
411
- is you are using non-English text. There is more information on php.net about
412
- installing the IMAP extension. If you have control over your server, it is
413
- often not hard to install.</p>
414
-
415
- <p>On Ubuntu, try</p>
416
-
417
- <pre><code>sudo apt-get install php5-imap</code></pre>
418
-
419
- <p>On Fedora, try</p>
420
-
421
- <pre><code>sudo yuminstall php-imap</code></pre>
422
-
423
- <p>The IMAP extension is known to be installed on the following popular webhosts:
424
- * Dreamhost</p>
425
-
426
- <h4>How can I embed youtube or vimeo videos?</h4>
427
-
428
- <p>Simply put the url in the body of your e-mail. (Make sure that you have the
429
- option to convert url into links turned on)</p>
430
-
431
- <h4>Something is going wrong, how do I see what is happening?</h4>
432
-
433
- <p>Add the following lines to your wp-config.php file</p>
434
-
435
- <pre><code>define(&#039;WP_DEBUG&#039;, true);
436
- define(&#039;WP_DEBUG_LOG&#039;, true);
437
- define(&#039;POSTIE_DEBUG&#039;, true);</code></pre>
438
-
439
- <p>Various errors, warning and informational will be written to the wp-content\debug.log
440
- file. There may also be all sorts of warnings and messages in your site as well
441
- depending on how well behaved your other plugins and themes are, so you will not
442
- want to leave these settings set to true all the time.</p>
443
-
444
- <h4>Why doesn't Postie automatically publish my emails when running manually works</h4>
445
-
446
- <p>WordPress cron (which Postie relies on) doesn't run unless a page is accessed on the
447
- site. So if you send an email, but nobody accesses the site for 3 days Postie won't
448
- be given the chance to fetch the email and publish the post.</p>
449
-
450
- <p>To ensure that Postie runs smoothly on a low or no volume site you need to ensure that
451
- a page gets hit (any page is fine). Use something like cron + curl on Linux or install
452
- curl on Windows and use the Scheduled Tasks control panel. If you are using a hosting company
453
- that doesn't allow you access to cron you can use a service like
454
- <a href="https://www.setcronjob.com/">SetCronJob</a>.</p>
455
-
456
- <p>It is also possible to turn the WordPress cron off. Please make sure something like</p>
457
-
458
- <pre><code>define(&#039;DISABLE_WP_CRON&#039;, true);</code></pre>
459
-
460
- <p>is not in your wp-config.php file.</p>
461
  <hr />
462
 
69
 
70
  <p>You will need to install <a href="http://gnuwin32.sourceforge.net/packages/wget.htm">wget</a> or <a href="http://curl.haxx.se/dlwiz/">curl</a>
71
  Then use the Task Scheduler control panel to call wget or cron.</p> <hr />
72
+
73
  <h3>Upgrade Notice</h3>
74
  <dl>
75
  <dt>1.4.18</dt>
81
  </dl>
82
 
83
  <h3 id='Usage'>Usage</h3>
84
+ <h4>Specifying Beginning and Ending of Post</h4>
85
+
86
  <ul>
87
  <li>If you put in :start - the message processing won't start until it sees that string.</li>
88
  <li>If you put in :end - the message processing will stop once it sees that string.</li>
89
+ </ul>
90
+
91
+ <h4>Post Date</h4>
92
+
93
+ <ul>
94
  <li>Posts can have a specific publication date. Relative dates like "tomorrow", "monday", "first day of next month" are supported.
95
 
96
  <ul>
105
  <li>delay:1m - 1 minute</li>
106
  <li>delay:1d2h4m - 1 day 2 hours 4m</li>
107
  </ul></li>
108
+ </ul>
109
+
110
+ <h4>Comment Control</h4>
111
+
112
+ <ul>
113
  <li>By putting comments:X in your message you can control if comments are allowed
114
 
115
  <ul>
126
  line, so if you have two posts with titles "foo", then the comment
127
  will get placed in the more recent post.</li>
128
  </ul></li>
129
+ </ul>
130
+
131
+ <h4>Post Excerpt</h4>
132
+
133
+ <ul>
134
  <li>Custom excerpt
135
 
136
  <ul>
146
  <p>You can specify the post type by including it as the first part of the subject
147
  E.g. post type//real subject</p>
148
 
149
+ <h4>Categories</h4>
150
 
151
  <ul>
152
  <li>If you put a category name in the subject with a : it will be used
182
 
183
  <h4>Image Handling</h4>
184
 
185
+ <p>Note you can only use this feature if your "Preferred Text Type" is set to "plain"</p>
186
+
187
  <ul>
188
  <li>Allows you to attach images to your email and automatically post
189
  them to your blog</li>
254
  </ul>
255
 
256
  <h4>Extending</h4>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  <hr />
258
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://PostiePlugin.com/
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.5.1
9
- Stable tag: 1.4.31
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -80,8 +80,11 @@ You will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.ht
80
  Then use the Task Scheduler control panel to call wget or cron.
81
 
82
  == Usage ==
 
83
  * If you put in :start - the message processing won't start until it sees that string.
84
  * If you put in :end - the message processing will stop once it sees that string.
 
 
85
  * Posts can have a specific publication date. Relative dates like "tomorrow", "monday", "first day of next month" are supported.
86
  * date: date
87
  * date: date time
@@ -90,6 +93,8 @@ Then use the Task Scheduler control panel to call wget or cron.
90
  * delay:1h - 1 hour
91
  * delay:1m - 1 minute
92
  * delay:1d2h4m - 1 day 2 hours 4m
 
 
93
  * By putting comments:X in your message you can control if comments are allowed
94
  * comments:0 - means closed
95
  * comments:1 - means open
@@ -100,6 +105,8 @@ Then use the Task Scheduler control panel to call wget or cron.
100
  get posted as a comment to the "foo" post. This works by the subject
101
  line, so if you have two posts with titles "foo", then the comment
102
  will get placed in the more recent post.
 
 
103
  * Custom excerpt
104
  * You can include a custom excerpt of an e-mail by putting it between
105
  :excerptstart and :excerptend
@@ -110,7 +117,7 @@ Then use the Task Scheduler control panel to call wget or cron.
110
  You can specify the post type by including it as the first part of the subject
111
  E.g. post type//real subject
112
 
113
- = Category and tag handling =
114
  * If you put a category name in the subject with a : it will be used
115
  as the category for the post
116
  * If you put a category id number in the subject with a : it will
@@ -141,6 +148,8 @@ Then use the Task Scheduler control panel to call wget or cron.
141
  * You can also set a default tag to be applied if no tags are included.
142
 
143
  = Image Handling =
 
 
144
  * Allows you to attach images to your email and automatically post
145
  them to your blog
146
  * You can publish images in the text of your message by using #img1#
@@ -203,7 +212,8 @@ Then use the Task Scheduler control panel to call wget or cron.
203
  if you send an HTML and plain text message
204
  * Automatically confirms that you are installed correctly
205
 
206
- = Extending === Frequently Asked Questions ==
 
207
 
208
  = Postie won't connect to my mailserver. Why Not? =
209
 
@@ -416,6 +426,12 @@ All script, style and body tags are stripped from html emails.
416
  Attachments are now processed in the order they were attached.
417
 
418
  == CHANGELOG ==
 
 
 
 
 
 
419
  = 1.4.31 (2013.01.25) =
420
  * Enhanced category detection to be compatible with Polylang plugin.
421
  * Enhanced prerequisite detection.
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.5.1
9
+ Stable tag: 1.4.32
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
80
  Then use the Task Scheduler control panel to call wget or cron.
81
 
82
  == Usage ==
83
+ = Specifying Beginning and Ending of Post =
84
  * If you put in :start - the message processing won't start until it sees that string.
85
  * If you put in :end - the message processing will stop once it sees that string.
86
+
87
+ = Post Date =
88
  * Posts can have a specific publication date. Relative dates like "tomorrow", "monday", "first day of next month" are supported.
89
  * date: date
90
  * date: date time
93
  * delay:1h - 1 hour
94
  * delay:1m - 1 minute
95
  * delay:1d2h4m - 1 day 2 hours 4m
96
+
97
+ = Comment Control =
98
  * By putting comments:X in your message you can control if comments are allowed
99
  * comments:0 - means closed
100
  * comments:1 - means open
105
  get posted as a comment to the "foo" post. This works by the subject
106
  line, so if you have two posts with titles "foo", then the comment
107
  will get placed in the more recent post.
108
+
109
+ = Post Excerpt =
110
  * Custom excerpt
111
  * You can include a custom excerpt of an e-mail by putting it between
112
  :excerptstart and :excerptend
117
  You can specify the post type by including it as the first part of the subject
118
  E.g. post type//real subject
119
 
120
+ = Categories =
121
  * If you put a category name in the subject with a : it will be used
122
  as the category for the post
123
  * If you put a category id number in the subject with a : it will
148
  * You can also set a default tag to be applied if no tags are included.
149
 
150
  = Image Handling =
151
+ Note you can only use this feature if your "Preferred Text Type" is set to "plain"
152
+
153
  * Allows you to attach images to your email and automatically post
154
  them to your blog
155
  * You can publish images in the text of your message by using #img1#
212
  if you send an HTML and plain text message
213
  * Automatically confirms that you are installed correctly
214
 
215
+ = Extending =
216
+ == Frequently Asked Questions ==
217
 
218
  = Postie won't connect to my mailserver. Why Not? =
219
 
426
  Attachments are now processed in the order they were attached.
427
 
428
  == CHANGELOG ==
429
+ = 1.4.32 (2013.01.29) =
430
+ * Fixed bug in detecting need for imap extension.
431
+ * Added additional selections for "Maximum number of emails to process"
432
+ * Added logic to skip text attachments named "ATT00001.txt" which are added by MS Exchange virus scanning.
433
+ * Added option to check for email every 5 minutes.
434
+
435
  = 1.4.31 (2013.01.25) =
436
  * Enhanced category detection to be compatible with Polylang plugin.
437
  * Enhanced prerequisite detection.