Postie - Version 1.5.8

Version Description

(2013.05.14) = * Added additional default signature patterns. * Fixed a bug where attachments were not showing up if :start or :end were used.

Download this release

Release Info

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

Code changes from version 1.5.7 to 1.5.8

Files changed (9) hide show
  1. Revision +0 -2
  2. docs/Changes.txt +4 -0
  3. docs/FAQ.txt +6 -5
  4. docs/Postie.txt +1 -1
  5. docs/TODO.txt +1 -0
  6. faq.html +6 -5
  7. postie-functions.php +15 -15
  8. postie.php +3 -3
  9. readme.txt +11 -6
Revision CHANGED
@@ -1,2 +0,0 @@
1
- Revision: 710089
2
- Last Changed Date: 2013-05-07 19:19:03 -0700 (Tue, 07 May 2013)
 
 
docs/Changes.txt CHANGED
@@ -22,6 +22,10 @@ All script, style and body tags are stripped from html emails.
22
  Attachments are now processed in the order they were attached.
23
 
24
  == CHANGELOG ==
 
 
 
 
25
  = 1.5.7 (2013.05.09) =
26
  * Fixed bug where the admin user was not getting set as author in some cases.
27
  * Fixed bug where file names were not being sanitized.
22
  Attachments are now processed in the order they were attached.
23
 
24
  == CHANGELOG ==
25
+ = 1.5.8 (2013.05.14) =
26
+ * Added additional default signature patterns.
27
+ * Fixed a bug where attachments were not showing up if :start or :end were used.
28
+
29
  = 1.5.7 (2013.05.09) =
30
  * Fixed bug where the admin user was not getting set as author in some cases.
31
  * Fixed bug where file names were not being sanitized.
docs/FAQ.txt CHANGED
@@ -37,23 +37,23 @@ hosting provider about this.
37
 
38
  = Can I use postie to check a gmail account? =
39
 
40
- Yes. You can use either pop3-ssl or imap-ssl with a gmail account. Before
41
  attempting to use with postie, make sure that you enable pop or imap in your
42
  gmail preferences.
43
 
44
  * Pop3 settings:
45
  * protocol - pop3-ssl
 
46
  * server - pop.gmail.com
47
  * port - 995
48
- * userid - your username (e.g. if your e-mail address is foo@gmail.com,
49
- this would be just foo)
50
  * password - your password
51
  * IMAP settings:
52
  * protocol - imap-ssl
 
53
  * server - imap.gmail.com
54
  * port - 993
55
- * userid - your username (e.g. if your e-mail address is foo@gmail.com,
56
- this would be just foo)
57
  * password - your password
58
 
59
  = Can I use postie with GoDaddy hosting? =
@@ -61,6 +61,7 @@ gmail preferences.
61
  Yes, but you must use an email set up using the GoDaddy email service and the following settings:
62
 
63
  * protocol - pop3
 
64
  * server - pop.secureserver.net
65
  * port - 110
66
  * userid - xxxxx@yourdomain
37
 
38
  = Can I use postie to check a gmail account? =
39
 
40
+ Yes. You can use either pop3-ssl or imap-ssl with a gmail account (including Google Apps). Before
41
  attempting to use with postie, make sure that you enable pop or imap in your
42
  gmail preferences.
43
 
44
  * Pop3 settings:
45
  * protocol - pop3-ssl
46
+ * Use Transport Layer Security - no
47
  * server - pop.gmail.com
48
  * port - 995
49
+ * userid - your full email address
 
50
  * password - your password
51
  * IMAP settings:
52
  * protocol - imap-ssl
53
+ * Use Transport Layer Security - no
54
  * server - imap.gmail.com
55
  * port - 993
56
+ * userid - your full email address
 
57
  * password - your password
58
 
59
  = Can I use postie with GoDaddy hosting? =
61
  Yes, but you must use an email set up using the GoDaddy email service and the following settings:
62
 
63
  * protocol - pop3
64
+ * Use Transport Layer Security - no
65
  * server - pop.secureserver.net
66
  * port - 110
67
  * userid - xxxxx@yourdomain
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.5.7
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.5.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
docs/TODO.txt CHANGED
@@ -3,6 +3,7 @@ replace native imap MIME parser with flourish - http://flourishlib.com/docs/fMai
3
  automatically create category if it doesn't exist. new option to allow this feature?
4
  WP MU support
5
  Add setting for category detection. I.e. checkboxes for [], -- and : styles. Default to all on.
 
6
  Make sure all failures are sent to admin (option?) failed attachments, etc.
7
  Comment not being created when subject contains category command []. I.e. listserv subject lines
8
  rework attachment logic. video files can come through as application/octect-stream. Mail parsing should separate attachments
3
  automatically create category if it doesn't exist. new option to allow this feature?
4
  WP MU support
5
  Add setting for category detection. I.e. checkboxes for [], -- and : styles. Default to all on.
6
+ Add setting to not remove category text from subject/title
7
  Make sure all failures are sent to admin (option?) failed attachments, etc.
8
  Comment not being created when subject contains category command []. I.e. listserv subject lines
9
  rework attachment logic. video files can come through as application/octect-stream. Mail parsing should separate attachments
faq.html CHANGED
@@ -57,7 +57,7 @@ hosting provider about this.</p>
57
 
58
  <h4 id='answer-6'>Can I use postie to check a gmail account?</h4>
59
 
60
- <p>Yes. You can use either pop3-ssl or imap-ssl with a gmail account. Before
61
  attempting to use with postie, make sure that you enable pop or imap in your
62
  gmail preferences.</p>
63
 
@@ -66,20 +66,20 @@ gmail preferences.</p>
66
 
67
  <ul>
68
  <li>protocol - pop3-ssl</li>
 
69
  <li>server - pop.gmail.com</li>
70
  <li>port - 995</li>
71
- <li>userid - your username (e.g. if your e-mail address is <a href="mailto:foo@gmail.com">foo@gmail.com</a>,
72
- this would be just foo)</li>
73
  <li>password - your password </li>
74
  </ul></li>
75
  <li>IMAP settings:
76
 
77
  <ul>
78
  <li>protocol - imap-ssl</li>
 
79
  <li>server - imap.gmail.com</li>
80
  <li>port - 993</li>
81
- <li>userid - your username (e.g. if your e-mail address is <a href="mailto:foo@gmail.com">foo@gmail.com</a>,
82
- this would be just foo)</li>
83
  <li>password - your password </li>
84
  </ul></li>
85
  </ul>
@@ -90,6 +90,7 @@ this would be just foo)</li>
90
 
91
  <ul>
92
  <li>protocol - pop3</li>
 
93
  <li>server - pop.secureserver.net</li>
94
  <li>port - 110</li>
95
  <li>userid - xxxxx@yourdomain</li>
57
 
58
  <h4 id='answer-6'>Can I use postie to check a gmail account?</h4>
59
 
60
+ <p>Yes. You can use either pop3-ssl or imap-ssl with a gmail account (including Google Apps). Before
61
  attempting to use with postie, make sure that you enable pop or imap in your
62
  gmail preferences.</p>
63
 
66
 
67
  <ul>
68
  <li>protocol - pop3-ssl</li>
69
+ <li>Use Transport Layer Security - no</li>
70
  <li>server - pop.gmail.com</li>
71
  <li>port - 995</li>
72
+ <li>userid - your full email address</li>
 
73
  <li>password - your password </li>
74
  </ul></li>
75
  <li>IMAP settings:
76
 
77
  <ul>
78
  <li>protocol - imap-ssl</li>
79
+ <li>Use Transport Layer Security - no</li>
80
  <li>server - imap.gmail.com</li>
81
  <li>port - 993</li>
82
+ <li>userid - your full email address</li>
 
83
  <li>password - your password </li>
84
  </ul></li>
85
  </ul>
90
 
91
  <ul>
92
  <li>protocol - pop3</li>
93
+ <li>Use Transport Layer Security - no</li>
94
  <li>server - pop.secureserver.net</li>
95
  <li>port - 110</li>
96
  <li>userid - xxxxx@yourdomain</li>
postie-functions.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /*
4
- $Id: postie-functions.php 710554 2013-05-09 19:28:59Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
@@ -147,7 +147,7 @@ function tag_Date(&$content, $message_date, $time_offset) {
147
 
148
  function CreatePost($poster, $mimeDecodedEmail, $post_id, &$is_reply, $config, $postmodifiers) {
149
 
150
- $fulldebug = true;
151
 
152
  extract($config);
153
 
@@ -241,16 +241,6 @@ function CreatePost($poster, $mimeDecodedEmail, $post_id, &$is_reply, $config, $
241
  if ($fulldebug)
242
  DebugEcho("post cid: $content");
243
 
244
- filter_ReplaceImagePlaceHolders($content, $attachments["html"], $config);
245
- if ($fulldebug)
246
- DebugEcho("post body img: $content");
247
-
248
- if ($post_excerpt) {
249
- filter_ReplaceImagePlaceHolders($post_excerpt, $attachments["html"], $config);
250
- if ($fulldebug)
251
- DebugEcho("post excerpt img: $content");
252
- }
253
-
254
  $customImages = tag_CustomImageField($content, $attachments, $config);
255
  if ($fulldebug)
256
  DebugEcho("post custom: $content");
@@ -311,6 +301,16 @@ function CreatePost($poster, $mimeDecodedEmail, $post_id, &$is_reply, $config, $
311
  if ($fulldebug)
312
  DebugEcho("post end: $content");
313
 
 
 
 
 
 
 
 
 
 
 
314
  DebugEcho("excerpt: $post_excerpt");
315
 
316
  $details = array(
@@ -1404,8 +1404,8 @@ function filter_RemoveSignatureWorker(&$html, $pattern) {
1404
  DebugEcho("filter_RemoveSignatureWorker sig new text: '$presig'");
1405
  $html->innertext = $presig;
1406
  } else {
1407
- DebugEcho("filter_RemoveSignatureWorker: no matches {preg_last_error()} '$pattern' $html->plaintext");
1408
- DebugDump($matches);
1409
  }
1410
 
1411
  foreach ($html->children() as $e) {
@@ -2659,7 +2659,7 @@ function config_GetDefaults() {
2659
  'selected_video1template' => 'simple_link',
2660
  'selected_video2template' => 'simple_link',
2661
  'shortcode' => false,
2662
- 'sig_pattern_list' => array('--\s?[\r\n]?', '---'),
2663
  'smtp' => array(),
2664
  'start_image_count_at_zero' => false,
2665
  'supported_file_types' => array('application'),
1
  <?php
2
 
3
  /*
4
+ $Id: postie-functions.php 713262 2013-05-15 05:08:09Z WayneAllen $
5
  */
6
 
7
  //to turn on debug output add the following line to wp-config.php
147
 
148
  function CreatePost($poster, $mimeDecodedEmail, $post_id, &$is_reply, $config, $postmodifiers) {
149
 
150
+ $fulldebug = false;
151
 
152
  extract($config);
153
 
241
  if ($fulldebug)
242
  DebugEcho("post cid: $content");
243
 
 
 
 
 
 
 
 
 
 
 
244
  $customImages = tag_CustomImageField($content, $attachments, $config);
245
  if ($fulldebug)
246
  DebugEcho("post custom: $content");
301
  if ($fulldebug)
302
  DebugEcho("post end: $content");
303
 
304
+ filter_ReplaceImagePlaceHolders($content, $attachments["html"], $config);
305
+ if ($fulldebug)
306
+ DebugEcho("post body img: $content");
307
+
308
+ if ($post_excerpt) {
309
+ filter_ReplaceImagePlaceHolders($post_excerpt, $attachments["html"], $config);
310
+ if ($fulldebug)
311
+ DebugEcho("post excerpt img: $content");
312
+ }
313
+
314
  DebugEcho("excerpt: $post_excerpt");
315
 
316
  $details = array(
1404
  DebugEcho("filter_RemoveSignatureWorker sig new text: '$presig'");
1405
  $html->innertext = $presig;
1406
  } else {
1407
+ //DebugEcho("filter_RemoveSignatureWorker: no matches {preg_last_error()} '$pattern' $html->plaintext");
1408
+ //DebugDump($matches);
1409
  }
1410
 
1411
  foreach ($html->children() as $e) {
2659
  'selected_video1template' => 'simple_link',
2660
  'selected_video2template' => 'simple_link',
2661
  'shortcode' => false,
2662
+ 'sig_pattern_list' => array('--\s?[\r\n]?','--\s','--', '---'),
2663
  'smtp' => array(),
2664
  'start_image_count_at_zero' => false,
2665
  'supported_file_types' => array('application'),
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.5.7
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
@@ -27,10 +27,10 @@
27
  */
28
 
29
  /*
30
- $Id: postie.php 710554 2013-05-09 19:28:59Z WayneAllen $
31
  */
32
 
33
- define('POSTIE_VERSION', '1.5.7');
34
  define("POSTIE_ROOT", dirname(__FILE__));
35
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
36
 
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.5.8
8
  Author: Wayne Allen
9
  Author URI: http://allens-home.com/
10
  License: GPL2
27
  */
28
 
29
  /*
30
+ $Id: postie.php 713262 2013-05-15 05:08:09Z WayneAllen $
31
  */
32
 
33
+ define('POSTIE_VERSION', '1.5.8');
34
  define("POSTIE_ROOT", dirname(__FILE__));
35
  define("POSTIE_URL", WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
36
 
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.5.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -258,23 +258,23 @@ hosting provider about this.
258
 
259
  = Can I use postie to check a gmail account? =
260
 
261
- Yes. You can use either pop3-ssl or imap-ssl with a gmail account. Before
262
  attempting to use with postie, make sure that you enable pop or imap in your
263
  gmail preferences.
264
 
265
  * Pop3 settings:
266
  * protocol - pop3-ssl
 
267
  * server - pop.gmail.com
268
  * port - 995
269
- * userid - your username (e.g. if your e-mail address is foo@gmail.com,
270
- this would be just foo)
271
  * password - your password
272
  * IMAP settings:
273
  * protocol - imap-ssl
 
274
  * server - imap.gmail.com
275
  * port - 993
276
- * userid - your username (e.g. if your e-mail address is foo@gmail.com,
277
- this would be just foo)
278
  * password - your password
279
 
280
  = Can I use postie with GoDaddy hosting? =
@@ -282,6 +282,7 @@ gmail preferences.
282
  Yes, but you must use an email set up using the GoDaddy email service and the following settings:
283
 
284
  * protocol - pop3
 
285
  * server - pop.secureserver.net
286
  * port - 110
287
  * userid - xxxxx@yourdomain
@@ -444,6 +445,10 @@ All script, style and body tags are stripped from html emails.
444
  Attachments are now processed in the order they were attached.
445
 
446
  == CHANGELOG ==
 
 
 
 
447
  = 1.5.7 (2013.05.09) =
448
  * Fixed bug where the admin user was not getting set as author in some cases.
449
  * Fixed bug where file names were not being sanitized.
6
  Tags: e-mail, email
7
  Requires at least: 3.0
8
  Tested up to: 3.5.1
9
+ Stable tag: 1.5.8
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
258
 
259
  = Can I use postie to check a gmail account? =
260
 
261
+ Yes. You can use either pop3-ssl or imap-ssl with a gmail account (including Google Apps). Before
262
  attempting to use with postie, make sure that you enable pop or imap in your
263
  gmail preferences.
264
 
265
  * Pop3 settings:
266
  * protocol - pop3-ssl
267
+ * Use Transport Layer Security - no
268
  * server - pop.gmail.com
269
  * port - 995
270
+ * userid - your full email address
 
271
  * password - your password
272
  * IMAP settings:
273
  * protocol - imap-ssl
274
+ * Use Transport Layer Security - no
275
  * server - imap.gmail.com
276
  * port - 993
277
+ * userid - your full email address
 
278
  * password - your password
279
 
280
  = Can I use postie with GoDaddy hosting? =
282
  Yes, but you must use an email set up using the GoDaddy email service and the following settings:
283
 
284
  * protocol - pop3
285
+ * Use Transport Layer Security - no
286
  * server - pop.secureserver.net
287
  * port - 110
288
  * userid - xxxxx@yourdomain
445
  Attachments are now processed in the order they were attached.
446
 
447
  == CHANGELOG ==
448
+ = 1.5.8 (2013.05.14) =
449
+ * Added additional default signature patterns.
450
+ * Fixed a bug where attachments were not showing up if :start or :end were used.
451
+
452
  = 1.5.7 (2013.05.09) =
453
  * Fixed bug where the admin user was not getting set as author in some cases.
454
  * Fixed bug where file names were not being sanitized.