Postie - Version 1.3.0

Version Description

(2009.08.14) = * Features * Added mpeg4 to default list of videotypes * Added support for KOI8-R character set (cyrillic) * Added support for iso-8859-2 character set (eastern european) * Added option to include custom icons for attachments * Added option to send confirmation message to sender * Enhanced e-mails for unauthorized users * Added option to send unauthorized e-mail back to sender * Added option to only allow e-mails from a specified list of smtp servers * Added option to use shortcode for embedding videos (works with the videos plugin http://www.daburna.de/download/videos-plugin.zip * Better handling of comment authors (thanks to Petter for suggestion) * Simplified message options (now includes an advanced options section) * Added filter ability for post content * Bug fixes * No longer including wp-config.php * If tmpdir is not writable, try a different tmpdir * More subject encoding fixes * Updated image templates, which were causing problems for cron * Fixed in text captions * Fixed SQL problems when updating options * Fixed name clashes with other plugins * Fixed custom image field

Download this release

Release Info

Developer robfelty
Plugin Icon 128x128 Postie
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.0

Files changed (8) hide show
  1. Revision +2 -2
  2. cronless_postie.php +1 -1
  3. faq.html +11 -33
  4. filterPostie.php +0 -60
  5. postie-functions.php +19 -41
  6. postie.php +3 -4
  7. readme.html +672 -2
  8. readme.txt +14 -26
Revision CHANGED
@@ -1,2 +1,2 @@
1
- Revision: 148662
2
- Last Changed Date: 2009-08-17 13:07:26 -0400 (Mon, 17 Aug 2009)
1
+ Revision: 145640
2
+ Last Changed Date: 2009-08-13 17:08:39 -0400 (Thu, 13 Aug 2009)
cronless_postie.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Cronless Postie
4
  Plugin URI: http://blog.robfelty.com/plugins/postie
5
  Description: Checks e-mail periodically using wordpress's built-in scheduling mechanism
6
  Author: Robert Felty
7
- Version: 1.3.1
8
  Author URI: http://blog.robfelty.com
9
  */
10
 
4
  Plugin URI: http://blog.robfelty.com/plugins/postie
5
  Description: Checks e-mail periodically using wordpress's built-in scheduling mechanism
6
  Author: Robert Felty
7
+ Version: 1.3.0
8
  Author URI: http://blog.robfelty.com
9
  */
10
 
faq.html CHANGED
@@ -1,36 +1,24 @@
1
- <li id='question-0'><a href='#answer-0'>Mail is not showing up right when I send html (rich formatted) e-mail!</a></li>
2
- <li id='question-1'><a href='#answer-1'>Do I need to any code to my theme for postie to work?</a></li>
3
- <li id='question-2'><a href='#answer-2'>I read somewhere to add an iframe to my footer. Should I do this?</a></li>
4
- <li id='question-3'><a href='#answer-3'>My mail host requires SSL, but postie will not allow me to select pop3-ssl or imap-ssl</a></li>
5
- <li id='question-4'><a href='#answer-4'>Can I use postie to check a gmail account?</a></li>
6
- <li id='question-5'><a href='#answer-5'>My posts show up as being posted by 'admin' instead of me. Why?</a></li>
7
- <li id='question-6'><a href='#answer-6'>Images aren't showing up at all?</a></li>
8
- <li id='question-7'><a href='#answer-7'>Can I delete the wp-files directory needed by postie version &lt;1.3.0?</a></li>
9
- <li id='question-8'><a href='#answer-8'>How can I get rid of stupid stuff my e-mail provider adds to my messages?</a></li>
10
- <li id='question-9'><a href='#answer-9'>How can I add custom attachment icons?</a></li>
11
- <li id='question-10'><a href='#answer-10'>Can I add special text to the body of the post when using postie?</a></li>
12
- <li id='question-11'><a href='#answer-11'>Can I add special text to the title of the post when using postie?</a></li>
13
  <h3>Frequently Asked Questions</h3>
14
- <h4 id='answer-0'>Mail is not showing up right when I send html (rich formatted) e-mail!</h4>
15
 
16
  <p>Make sure you set the preferred text type to html</p>
17
 
18
- <h4 id='answer-1'>Do I need to any code to my theme for postie to work?</h4>
19
 
20
  <p>No. </p>
21
 
22
- <h4 id='answer-2'>I read somewhere to add an iframe to my footer. Should I do this?</h4>
23
 
24
  <p>No. Do not add an iframe in your footer to get postie to check mail
25
  periodically. To check e-mail periodically, either set-up a cron job, or use
26
  cronless postie. See installation instructions</p>
27
 
28
- <h4 id='answer-3'>My mail host requires SSL, but postie will not allow me to select pop3-ssl or imap-ssl</h4>
29
 
30
  <p>You must have php-imap installed on your server for this to work. Ask your
31
  hosting provider about this.</p>
32
 
33
- <h4 id='answer-4'>Can I use postie to check a gmail account?</h4>
34
 
35
  <p>Yes. You can use either pop3-ssl or imap-ssl with a gmail account. Before
36
  attempting to use with postie, make sure that you enable pop or imap in your
@@ -59,7 +47,7 @@ this would be just foo)</li>
59
  </ul></li>
60
  </ul>
61
 
62
- <h4 id='answer-5'>My posts show up as being posted by 'admin' instead of me. Why?</h4>
63
 
64
  <p>If your admin account is linked to bar@gmail.com, and you send mail from
65
  bar@gmail.com, it will show up as being posted by admin. If you have a
@@ -71,7 +59,7 @@ johndoe@gmail.com to foo@gmail.com, it gets posted as "John Doe". </p>
71
  <p>If you send an e-mail to your postie address from an e-mail address that is no
72
  t linked to a wordpress user, it will get posted as admin.</p>
73
 
74
- <h4 id='answer-6'>Images aren't showing up at all?</h4>
75
 
76
  <p>There are a couple possible reasons for this. First, check to see if you can
77
  add an image through wordpress's normal posting mechanism. If not, then there
@@ -84,14 +72,14 @@ provider about this.</p>
84
  sure that it is</li>
85
  </ol>
86
 
87
- <h4 id='answer-7'>Can I delete the wp-files directory needed by postie version &lt;1.3.0?</h4>
88
 
89
  <p>If you have posts published already by older versions of postie, getting rid
90
  of those directories will delete any files you might have had associated with
91
  those old posts. If you don't have any such posts, then you can safely delete
92
  them.</p>
93
 
94
- <h4 id='answer-8'>How can I get rid of stupid stuff my e-mail provider adds to my messages?</h4>
95
 
96
  <p>To strip off stuff that they add at the beginning of a message, start your
97
  post with :start</p>
@@ -99,7 +87,7 @@ post with :start</p>
99
  <p>To strip off stuff that they add at the end of a message, end your
100
  post with :end</p>
101
 
102
- <h4 id='answer-9'>How can I add custom attachment icons?</h4>
103
 
104
  <p>Simply upload the icons you want to the postie/icons/custom directory. You
105
  must name the icons according to the following scheme:
@@ -128,14 +116,4 @@ icons)</p>
128
  <li>pdf - portable document format</li>
129
  <li>rtf - rich text format</li>
130
  <li>txt - plain text document</li>
131
- </ul>
132
-
133
- <h4 id='answer-10'>Can I add special text to the body of the post when using postie?</h4>
134
-
135
- <p>Yes. You can create your own function, and use the postie_post filter
136
- Two short examples are included in the filterPostie.php file</p>
137
-
138
- <h4 id='answer-11'>Can I add special text to the title of the post when using postie?</h4>
139
-
140
- <p>Yes. You can create your own function, and use the postie_post filter
141
- Two short examples are included in the filterPostie.php file</p>
 
 
 
 
 
 
 
 
 
 
 
 
1
  <h3>Frequently Asked Questions</h3>
2
+ <h4>Mail is not showing up right when I send html (rich formatted) e-mail!</h4>
3
 
4
  <p>Make sure you set the preferred text type to html</p>
5
 
6
+ <h4>Do I need to any code to my theme for postie to work?</h4>
7
 
8
  <p>No. </p>
9
 
10
+ <h4>I read somewhere to add an iframe to my footer. Should I do this?</h4>
11
 
12
  <p>No. Do not add an iframe in your footer to get postie to check mail
13
  periodically. To check e-mail periodically, either set-up a cron job, or use
14
  cronless postie. See installation instructions</p>
15
 
16
+ <h4>My mail host requires SSL, but postie will not allow me to select pop3-ssl or imap-ssl</h4>
17
 
18
  <p>You must have php-imap installed on your server for this to work. Ask your
19
  hosting provider about this.</p>
20
 
21
+ <h4>Can I use postie to check a gmail account?</h4>
22
 
23
  <p>Yes. You can use either pop3-ssl or imap-ssl with a gmail account. Before
24
  attempting to use with postie, make sure that you enable pop or imap in your
47
  </ul></li>
48
  </ul>
49
 
50
+ <h4>My posts show up as being posted by 'admin' instead of me. Why?</h4>
51
 
52
  <p>If your admin account is linked to bar@gmail.com, and you send mail from
53
  bar@gmail.com, it will show up as being posted by admin. If you have a
59
  <p>If you send an e-mail to your postie address from an e-mail address that is no
60
  t linked to a wordpress user, it will get posted as admin.</p>
61
 
62
+ <h4>Images aren't showing up at all?</h4>
63
 
64
  <p>There are a couple possible reasons for this. First, check to see if you can
65
  add an image through wordpress's normal posting mechanism. If not, then there
72
  sure that it is</li>
73
  </ol>
74
 
75
+ <h4>Can I delete the wp-files directory needed by postie version &lt;1.3.0?</h4>
76
 
77
  <p>If you have posts published already by older versions of postie, getting rid
78
  of those directories will delete any files you might have had associated with
79
  those old posts. If you don't have any such posts, then you can safely delete
80
  them.</p>
81
 
82
+ <h4>How can I get rid of stupid stuff my e-mail provider adds to my messages?</h4>
83
 
84
  <p>To strip off stuff that they add at the beginning of a message, start your
85
  post with :start</p>
87
  <p>To strip off stuff that they add at the end of a message, end your
88
  post with :end</p>
89
 
90
+ <h4>How can I add custom attachment icons?</h4>
91
 
92
  <p>Simply upload the icons you want to the postie/icons/custom directory. You
93
  must name the icons according to the following scheme:
116
  <li>pdf - portable document format</li>
117
  <li>rtf - rich text format</li>
118
  <li>txt - plain text document</li>
119
+ </ul>
 
 
 
 
 
 
 
 
 
 
filterPostie.php DELETED
@@ -1,60 +0,0 @@
1
- <?php
2
- /*
3
- Plugin Name: Postie Filter
4
- Plugin URI: http://blog.robfelty.com/plugins/postie
5
- Description: Adds my own custom filter to messages posted by postie
6
- Version: 1.3.1
7
- Author: Robert Felty
8
- Author URI: http://blog.robfelty.com/
9
- */
10
-
11
- /*
12
- * Any filter function you write should accept one argument, which is the post
13
- array, which contains the following fields:
14
- 'post_author'
15
- 'comment_author'
16
- 'comment_author_url'
17
- 'user_ID'
18
- 'email_author'
19
- 'post_date'
20
- 'post_date_gmt'
21
- 'post_content'
22
- 'post_title'
23
- 'post_modified'
24
- 'post_modified_gmt'
25
- 'ping_status'
26
- 'post_category'
27
- 'tags_input'
28
- 'comment_status'
29
- 'post_name'
30
- 'post_excerpt'
31
- 'ID'
32
- 'customImages'
33
- 'post_status'
34
-
35
- Your function can modify any of these fields. It should then return the array
36
- back.
37
-
38
- Two example functions are provided here
39
- */
40
-
41
- function filter_content($post) {
42
- //this function prepends a link to bookmark the category of the post
43
- $this_cat = get_the_category($post['ID']);
44
- //var_dump($this_cat);
45
- $link = '<a href="' . get_category_link($this_cat[0]->term_id) .
46
- '">Bookmark this category</a>' . "\n";
47
- $post['post_content'] = $link . $post['post_content'];
48
- return ($post);
49
- }
50
-
51
- function filter_title($post) {
52
- //this function appends "(via postie)" to the title (subject)
53
- $post['post_title']= $post['post_title'] . ' (via postie)';
54
- return ($post);
55
- }
56
-
57
- add_filter('postie_post', 'filter_title');
58
- add_filter('postie_post', 'filter_content');
59
-
60
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
postie-functions.php CHANGED
@@ -5,7 +5,7 @@ $original_mem_limit = ini_get('memory_limit');
5
  ini_set('memory_limit', -1);
6
 
7
  /*
8
- $Id: postie-functions.php 148682 2009-08-24 18:17:18Z robfelty $
9
  */
10
 
11
  /*TODO
@@ -153,7 +153,7 @@ function PostEmail($poster,$mimeDecodedEmail,$config) {
153
  'email_author' => $postAuthorDetails['email'],
154
  'post_date' => $post_date,
155
  'post_date_gmt' => $post_date_gmt,
156
- 'post_content' => apply_filters('content_save_pre',$content),
157
  'post_title' => $subject,
158
  'post_modified' => $post_date,
159
  'post_modified_gmt' => $post_date_gmt,
@@ -167,7 +167,6 @@ function PostEmail($poster,$mimeDecodedEmail,$config) {
167
  'customImages' => $customImages,
168
  'post_status' => $post_status
169
  );
170
- $details = apply_filters('postie_post', $details);
171
  DisplayEmailPost($details);
172
  PostToDB($details,$isReply, $config['POST_TO_DB'],
173
  $config['CUSTOM_IMAGE_FIELD']);
@@ -703,7 +702,7 @@ function GetContent ($part,&$attachments, $post_id, $config) {
703
  break;
704
  }
705
  }
706
- return($meta_return);
707
  }
708
 
709
  function ubb2HTML(&$text) {
@@ -828,12 +827,11 @@ function ValidatePoster( &$mimeDecodedEmail, $config ) {
828
  $poster = NULL;
829
  $from = RemoveExtraCharactersInEmailAddress(trim($mimeDecodedEmail->headers["from"]));
830
  $resentFrom = RemoveExtraCharactersInEmailAddress(trim($mimeDecodedEmail->headers["resent-from"]));
831
- /*
832
  if ( empty($from) ) {
833
  echo 'Invalid Sender - Emtpy! ';
834
  return;
835
  }
836
- */
837
 
838
  //See if the email address is one of the special authorized ones
839
  print("Confirming Access For $from \n");
@@ -905,8 +903,8 @@ function StartFilter(&$content,$start) {
905
  * @param array - a list of patterns to determine if it is a sig block
906
  */
907
  function RemoveSignature( &$content,$filterList = array('--','- --' )) {
908
- if (empty($filterList))
909
- return;
910
  $arrcontent = explode("\n", $content);
911
  $i = 0;
912
  $pattern='/^(';
@@ -1632,7 +1630,7 @@ function chooseAttachmentIcon($file, $primary, $secondary, $iconSet='silver',
1632
  $mp3Exts=array('mp3');
1633
  $mp3Mimes=array('mp3', 'mpeg3','mpeg');
1634
  $mp4Exts=array('mp4', 'm4v');
1635
- $mp4Mimes=array('mp4', 'mpeg4','octet-stream');
1636
  $aacExts=array('m4a', 'aac');
1637
  $aacMimes=array('m4a', 'aac', 'mp4');
1638
  $aviExts=array('avi');
@@ -1816,7 +1814,7 @@ function GetSubject(&$mimeDecodedEmail,&$content, $config) {
1816
  }
1817
  $mimeDecodedEmail->headers['subject'] = $subject;
1818
  } else {
1819
- //$subject = $mimeDecodedEmail->headers['subject'];
1820
  if ($mimeDecodedEmail->headers["content-transfer-encoding"]!='') {
1821
  $encoding = $mimeDecodedEmail->headers["content-transfer-encoding"];
1822
  } else if ($mimeDecodedEmail->ctype_parameters["content-transfer-encoding"]!='') {
@@ -1825,6 +1823,7 @@ function GetSubject(&$mimeDecodedEmail,&$content, $config) {
1825
  $encoding='7bit';
1826
  }
1827
  if (function_exists(imap_mime_header_decode)) {
 
1828
  //$elements=imap_mime_header_decode($mimeDecodedEmail->headers['subject']);
1829
  //$text = "=?utf-8?b?w6XDpMO2?= unicode";
1830
  $text=$mimeDecodedEmail->headers['subject'];
@@ -1868,7 +1867,7 @@ function postie_get_tags(&$content, $defaultTags) {
1868
  global $wpdb;
1869
  $post_tags = array();
1870
  //try and determine tags
1871
- if ( preg_match('/tags: ?(.*)\n/', $content, $matches)) {
1872
  $content = str_replace($matches[0], "", $content);
1873
  $post_tags = preg_split("/,\s*/", $matches[1]);
1874
  }
@@ -2048,30 +2047,6 @@ function ResetPostieConfig() {
2048
  }
2049
  UpdatePostieConfig($config);
2050
  }
2051
-
2052
- function UpdateArrayConfig() {
2053
- global $wpdb;
2054
- $key_arrays = GetListOfArrayConfig();
2055
- $data = $wpdb->get_results("SELECT label,value FROM ". POSTIE_TABLE .";");
2056
- if (is_array($data)) {
2057
- foreach($data as $row) {
2058
- if (in_array($row->label,$key_arrays)) {
2059
- if (unserialize($row->value)) {
2060
- $config[$row->label] = unserialize($row->value);
2061
- } else {
2062
- if (!is_array($config[$row->label])) {
2063
- $config[$row->label] = array();
2064
- }
2065
- $config[$row->label][] = $row->value;
2066
- }
2067
- } else {
2068
- $config[$row->label] = $row->value;
2069
- }
2070
- }
2071
- }
2072
- WriteConfig($config);
2073
- echo "updating database";
2074
- }
2075
  /**
2076
  * This function handles updating the configuration
2077
  *@return boolean
@@ -2112,16 +2087,14 @@ function UpdatePostieConfig($data) {
2112
  function WriteConfig($config) {
2113
  global $wpdb;
2114
  foreach($config as $key=>$value) {
2115
- $label = $key;
2116
  $q = $wpdb->query($wpdb->prepare("DELETE FROM ". POSTIE_TABLE . "
2117
  WHERE label = '$label';"));
2118
- if (is_array($value)) {
2119
  $value=serialize($value);
2120
- }
2121
- $theQuery=$wpdb->prepare("INSERT INTO ". POSTIE_TABLE . "
2122
  (label,value) VALUES
2123
- ('$label','". $value ."');");
2124
- $q = $wpdb->query($theQuery);
2125
  }
2126
  }
2127
  /**
@@ -2136,6 +2109,11 @@ function ReadDBConfig() {
2136
  if (is_array($data)) {
2137
  foreach($data as $row) {
2138
  if (in_array($row->label,GetListOfArrayConfig())) {
 
 
 
 
 
2139
  $config[$row->label] = unserialize($row->value);
2140
  } else {
2141
  $config[$row->label] = $row->value;
5
  ini_set('memory_limit', -1);
6
 
7
  /*
8
+ $Id: postie-functions.php 149089 2009-08-25 21:27:12Z robfelty $
9
  */
10
 
11
  /*TODO
153
  'email_author' => $postAuthorDetails['email'],
154
  'post_date' => $post_date,
155
  'post_date_gmt' => $post_date_gmt,
156
+ 'post_content' => $content,
157
  'post_title' => $subject,
158
  'post_modified' => $post_date,
159
  'post_modified_gmt' => $post_date_gmt,
167
  'customImages' => $customImages,
168
  'post_status' => $post_status
169
  );
 
170
  DisplayEmailPost($details);
171
  PostToDB($details,$isReply, $config['POST_TO_DB'],
172
  $config['CUSTOM_IMAGE_FIELD']);
702
  break;
703
  }
704
  }
705
+ return(apply_filters('GetContent', $meta_return));
706
  }
707
 
708
  function ubb2HTML(&$text) {
827
  $poster = NULL;
828
  $from = RemoveExtraCharactersInEmailAddress(trim($mimeDecodedEmail->headers["from"]));
829
  $resentFrom = RemoveExtraCharactersInEmailAddress(trim($mimeDecodedEmail->headers["resent-from"]));
830
+
831
  if ( empty($from) ) {
832
  echo 'Invalid Sender - Emtpy! ';
833
  return;
834
  }
 
835
 
836
  //See if the email address is one of the special authorized ones
837
  print("Confirming Access For $from \n");
903
  * @param array - a list of patterns to determine if it is a sig block
904
  */
905
  function RemoveSignature( &$content,$filterList = array('--','- --' )) {
906
+ if (empty($filterList))
907
+ return;
908
  $arrcontent = explode("\n", $content);
909
  $i = 0;
910
  $pattern='/^(';
1630
  $mp3Exts=array('mp3');
1631
  $mp3Mimes=array('mp3', 'mpeg3','mpeg');
1632
  $mp4Exts=array('mp4', 'm4v');
1633
+ $mp4Mimes=array('mp4', 'mpeg4');
1634
  $aacExts=array('m4a', 'aac');
1635
  $aacMimes=array('m4a', 'aac', 'mp4');
1636
  $aviExts=array('avi');
1814
  }
1815
  $mimeDecodedEmail->headers['subject'] = $subject;
1816
  } else {
1817
+ $subject = $mimeDecodedEmail->headers['subject'];
1818
  if ($mimeDecodedEmail->headers["content-transfer-encoding"]!='') {
1819
  $encoding = $mimeDecodedEmail->headers["content-transfer-encoding"];
1820
  } else if ($mimeDecodedEmail->ctype_parameters["content-transfer-encoding"]!='') {
1823
  $encoding='7bit';
1824
  }
1825
  if (function_exists(imap_mime_header_decode)) {
1826
+ $subject='';
1827
  //$elements=imap_mime_header_decode($mimeDecodedEmail->headers['subject']);
1828
  //$text = "=?utf-8?b?w6XDpMO2?= unicode";
1829
  $text=$mimeDecodedEmail->headers['subject'];
1867
  global $wpdb;
1868
  $post_tags = array();
1869
  //try and determine tags
1870
+ if ( preg_match('/tags: ?(.*)\n/i', $content, $matches)) {
1871
  $content = str_replace($matches[0], "", $content);
1872
  $post_tags = preg_split("/,\s*/", $matches[1]);
1873
  }
2047
  }
2048
  UpdatePostieConfig($config);
2049
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2050
  /**
2051
  * This function handles updating the configuration
2052
  *@return boolean
2087
  function WriteConfig($config) {
2088
  global $wpdb;
2089
  foreach($config as $key=>$value) {
2090
+ $label = apply_filters('content_save_pre', $key);
2091
  $q = $wpdb->query($wpdb->prepare("DELETE FROM ". POSTIE_TABLE . "
2092
  WHERE label = '$label';"));
2093
+ if (is_array($value))
2094
  $value=serialize($value);
2095
+ $q = $wpdb->query($wpdb->prepare("INSERT INTO ". POSTIE_TABLE . "
 
2096
  (label,value) VALUES
2097
+ ('$label','". $value ."');"));
 
2098
  }
2099
  }
2100
  /**
2109
  if (is_array($data)) {
2110
  foreach($data as $row) {
2111
  if (in_array($row->label,GetListOfArrayConfig())) {
2112
+ /*
2113
+ if (!is_array($config[$row->label])) {
2114
+ $config[$row->label] = array();
2115
+ }
2116
+ */
2117
  $config[$row->label] = unserialize($row->value);
2118
  } else {
2119
  $config[$row->label] = $row->value;
postie.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: Postie
4
  Plugin URI: http://blog.robfelty.com/plugins/postie
5
  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://forum.robfelty.com/forum/postie'>postie forum</a> for support.
6
- Version: 1.3.1
7
  Author: Robert Felty
8
  Author URI: http://blog.robfelty.com/
9
  */
10
 
11
  /*
12
- $Id: postie.php 148682 2009-08-24 18:17:18Z robfelty $
13
  * -= Requests Pending =-
14
  * German Umlats don't work
15
  * Problems under PHP5
@@ -83,8 +83,7 @@ if (is_admin()) {
83
  add_action('init', 'postie_load_domain');
84
  }
85
  }
86
- register_activation_hook(__FILE__, 'UpdateArrayConfig');
87
  /* Version info
88
- $Id: postie.php 148682 2009-08-24 18:17:18Z robfelty $
89
  */
90
  ?>
3
  Plugin Name: Postie
4
  Plugin URI: http://blog.robfelty.com/plugins/postie
5
  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://forum.robfelty.com/forum/postie'>postie forum</a> for support.
6
+ Version: 1.3.0
7
  Author: Robert Felty
8
  Author URI: http://blog.robfelty.com/
9
  */
10
 
11
  /*
12
+ $Id: postie.php 145838 2009-08-14 17:04:45Z robfelty $
13
  * -= Requests Pending =-
14
  * German Umlats don't work
15
  * Problems under PHP5
83
  add_action('init', 'postie_load_domain');
84
  }
85
  }
 
86
  /* Version info
87
+ $Id: postie.php 145838 2009-08-14 17:04:45Z robfelty $
88
  */
89
  ?>
readme.html CHANGED
@@ -13,7 +13,7 @@
13
  <li>Login to WordPress as an administrator</li>
14
  <li>Goto the Plugins tab in the WordPress Admin Site</li>
15
  <li>Activate "Postie"</li>
16
- <li>Goto to the "Settings" tab and click on the sub-tab "Postie" to configure it.</li>
17
  <li>Make sure you enter the mailserver information correctly, including the type
18
  of connection and the port number. Common port configurations:
19
 
@@ -59,7 +59,677 @@ you only get one visit every 30 minutes, then it might take 30 minutes for a
59
  post to show up.</li>
60
  </ul> <hr />
61
 
62
- <h3>Usage</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  <ul>
64
  <li>If you put in :start - the message processing won't start until it sees that string</li>
65
  <li>If you put in :end - the message processing will stop once it sees that string</li>
13
  <li>Login to WordPress as an administrator</li>
14
  <li>Goto the Plugins tab in the WordPress Admin Site</li>
15
  <li>Activate "Postie"</li>
16
+ <li>Goto to the "Settings" tab and click on the sub-tab "Configure Postie" to configure it.</li>
17
  <li>Make sure you enter the mailserver information correctly, including the type
18
  of connection and the port number. Common port configurations:
19
 
59
  post to show up.</li>
60
  </ul> <hr />
61
 
62
+ <h3>Screenshots</h3>
63
+ <ol>
64
+ <li>Postie options (showing video and audio templates)</li>
65
+ </ol> <hr />
66
+ <h3>Changelog</h3>
67
+ <h4>1.3.0 (2009.08.14)</h4>
68
+
69
+ <ul>
70
+ <li>Features
71
+
72
+ <ul>
73
+ <li>Added mpeg4 to default list of videotypes</li>
74
+ <li>Added support for KOI8-R character set (cyrillic)</li>
75
+ <li>Added support for iso-8859-2 character set (eastern european)</li>
76
+ <li>Added option to include custom icons for attachments</li>
77
+ <li>Added option to send confirmation message to sender</li>
78
+ <li>Enhanced e-mails for unauthorized users</li>
79
+ <li>Added option to send unauthorized e-mail back to sender</li>
80
+ <li>Added option to only allow e-mails from a specified list of smtp
81
+ servers</li>
82
+ <li>Added option to use shortcode for embedding videos (works with the
83
+ videos plugin http://www.daburna.de/download/videos-plugin.zip</li>
84
+ <li>Better handling of comment authors (thanks to Petter for suggestion)</li>
85
+ <li>Simplified message options (now includes an advanced options section)</li>
86
+ <li>Added filter ability for post content</li>
87
+ </ul></li>
88
+ <li>Bug fixes
89
+
90
+ <ul>
91
+ <li>No longer including wp-config.php</li>
92
+ <li>If tmpdir is not writable, try a different tmpdir</li>
93
+ <li>More subject encoding fixes</li>
94
+ <li>Updated image templates, which were causing problems for cron</li>
95
+ <li>Fixed in text captions</li>
96
+ <li>Fixed SQL problems when updating options</li>
97
+ <li>Fixed name clashes with other plugins</li>
98
+ <li>Fixed custom image field</li>
99
+ </ul></li>
100
+ </ul>
101
+
102
+ <h4>1.3.beta (2009.07.01)</h4>
103
+
104
+ <ul>
105
+ <li>Mores fixes for character issues in subject</li>
106
+ <li>Now handling Windows-1256 (arabic) character set</li>
107
+ <li>Fixed image uploading on windows servers</li>
108
+ <li>Fixed replying to message adds comment</li>
109
+ <li>Uploading pictures via MMS should now work</li>
110
+ <li>Fixed some issues with e-mails from outloook 12</li>
111
+ <li>Greatly reduced number of database queries</li>
112
+ <li>No longer requiring config_handler.php</li>
113
+ </ul>
114
+
115
+ <h4>1.3.alpha (2009.06.05)</h4>
116
+
117
+ <ul>
118
+ <li>Now using default wordpress image and upload handling, which means:
119
+
120
+ <ul>
121
+ <li>No more creating special directories for postie</li>
122
+ <li>No more confusion about imagemagick</li>
123
+ <li>Can now use the [gallery] feature of wordpress</li>
124
+ <li>Attachments are now connected to posts in the database</li>
125
+ <li>All image resizing uses wordpress's default settings (under media)</li>
126
+ </ul></li>
127
+ <li>Configuration, settings and documentation improvements
128
+
129
+ <ul>
130
+ <li>Completely redesigned settings page (mostly thanks to Rainman)</li>
131
+ <li>Reset configuration no longer deletes mailserver settings</li>
132
+ <li>Now including help files and faq directly in settings page</li>
133
+ </ul></li>
134
+ <li>More media features
135
+
136
+ <ul>
137
+ <li>Automatically turn links to youtube into an embedded player</li>
138
+ <li>Added option to embed audio files with custom templates</li>
139
+ <li>Video options are now template based</li>
140
+ <li>Image options are now solely template based, with several new default
141
+ templates</li>
142
+ </ul></li>
143
+ <li>Bug fixes
144
+
145
+ <ul>
146
+ <li>Uploading images from vodafone phones should now work</li>
147
+ <li>Correctly handling Windows-1252 encoding</li>
148
+ <li>Correctly handling non-ascii characters in subject line</li>
149
+ </ul></li>
150
+ </ul>
151
+
152
+ <h4>1.2.3 (2009.05.17)</h4>
153
+
154
+ <ul>
155
+ <li>Fixed headers already sent bug</li>
156
+ <li>Converted shortcode <code>&lt;?</code> to proper <code>&lt;?php</code> (thanks brack)</li>
157
+ <li>Deleting mails after processing again</li>
158
+ </ul>
159
+
160
+ <h4>1.2.2 (2009.05.15)</h4>
161
+
162
+ <ul>
163
+ <li>Show empty categories for default category in options</li>
164
+ <li>Image scaling fixed so that the smaller value of max image width and max
165
+ image height is used</li>
166
+ <li>Fixed some issues with parsing html e-mail</li>
167
+ <li>Got rid of stupid mime tag (thanks Jeroen)</li>
168
+ <li>No longer adding slashes before calling wp<em>insert</em>post</li>
169
+ <li>When using custom image field, each image has a unique key</li>
170
+ </ul>
171
+
172
+ <h4>1.2.1 (2009.05.07)</h4>
173
+
174
+ <ul>
175
+ <li>Got rid of stupid version checking</li>
176
+ <li>Improved cronless postie instructions and configuration</li>
177
+ <li>Internationalization is working now</li>
178
+ <li>Dutch localization (thanks to gvmelle http://gvmelle.com)</li>
179
+ <li>Fixed caption bug when using image magick</li>
180
+ <li>Added option to not filter new lines (when using markdown syntax)</li>
181
+ <li>Fixed autoplay option</li>
182
+ <li>Can now use wildcards in excluding filenames</li>
183
+ <li>Producing better quality thumbnails (thanks to robcarey)</li>
184
+ </ul>
185
+
186
+ <h4>1.2 (2009.04.22)</h4>
187
+
188
+ <ul>
189
+ <li>More video options:
190
+
191
+ <ul>
192
+ <li>Can embed 3gp, mp4, mov videos</li>
193
+ <li>Can specify video width, video height, player width, and player height
194
+ in the settings page</li>
195
+ <li>Can specify custom image template</li>
196
+ </ul></li>
197
+ <li>Image handling improvements:
198
+
199
+ <ul>
200
+ <li>Only downscale images, not up-scale (thanks Jarven)</li>
201
+ <li>More custom image template options</li>
202
+ <li>IPTC captions now also work when not resizing images</li>
203
+ <li>Added option to use custom field for images (for Datapusher)</li>
204
+ <li>Fixed some issues with image templates and line break handling</li>
205
+ <li>Custom image template now works even when not resizing images</li>
206
+ </ul></li>
207
+ <li>Documentation improvements:
208
+
209
+ <ul>
210
+ <li>Added links to settings, forum, and readme in plugin description</li>
211
+ <li>Updated readme (thanks to Venkatraman Dhamodaran)</li>
212
+ <li>Added better instructions on how to use cronless postie</li>
213
+ </ul></li>
214
+ <li>Text processing improvements:
215
+
216
+ <ul>
217
+ <li>Added option to automatically convert urls into links</li>
218
+ <li>Added feature to include a custom excerpt</li>
219
+ </ul></li>
220
+ <li>Miscellaneous improvements
221
+
222
+ <ul>
223
+ <li>Improved internationalization (thanks to Håvard Broberg
224
+ (nanablag@nanablag.com))</li>
225
+ </ul></li>
226
+ <li>Bug Fixes
227
+
228
+ <ul>
229
+ <li>Removed debugging info in get_mail.php (security issue) thanks to
230
+ <a href="http://svalgaard.net/jens/">Jens</a></li>
231
+ <li>No longer directly including pluggable.php (should
232
+ prevent conflicts with other plugins such as registerplus</li>
233
+ </ul></li>
234
+ </ul>
235
+
236
+ <h4>1.1.5 (2009.03.10)</h4>
237
+
238
+ <ul>
239
+ <li>Added option to have postie posts be pending review, published, or draft</li>
240
+ <li>Settings panel only shows up for administrators</li>
241
+ <li>Need not be user "admin" to modify settings or to post from non-registered
242
+ users</li>
243
+ <li>Can now set administrator name. Authorized e-mail addresses which don't
244
+ have a user get posted under this name</li>
245
+ <li>Will use IPTC captions if available</li>
246
+ <li>Added option to replace newline characters with &lt;br /&gt;</li>
247
+ </ul>
248
+
249
+ <h4>1.1.4 (2009.03.06)</h4>
250
+
251
+ <ul>
252
+ <li>Added more image options (open in new window, custom image template)</li>
253
+ <li>can now add captions to images</li>
254
+ <li>Can now add tags (including default tag option)</li>
255
+ </ul>
256
+
257
+ <h4>1.1.3 (2009.02.20)</h4>
258
+
259
+ <ul>
260
+ <li>Fixed delayed posting</li>
261
+ <li>updated readme some</li>
262
+ </ul>
263
+
264
+ <h4>1.1.2 (2008.07.12)</h4>
265
+
266
+ <ul>
267
+ <li>now maintained by Robert Felty</li>
268
+ <li>allow negative delays</li>
269
+ <li>will glean author information from forwarded or redirected e*mails</li>
270
+ <li>replying to an e*mail adds a comment to a post</li>
271
+ <li>fixed category handling to work with taxonomy</li>
272
+ <li>fixed one syntax error</li>
273
+ <li>added option to wrap posts and comments in &lt;pre%gt; tags</li>
274
+ </ul>
275
+
276
+ <h4>1.1.1</h4>
277
+
278
+ <p>Below is all the of the version information. As far as I can tell there once was a guy named John Blade. He took some of the orignal wp-mail.php code and started hacking away on it. He actually got pretty far. About the time I discovered WordPress and his little hack - called WP-Mail at the time - he went on a vacation or something. There were some problems with the script, and it was missing some features I wanted. I hacked away at it and got it into a place where it did what I wanted. I started posting about it since I figured other people might want the features. </p>
279
+
280
+ <p>John didn't release any more versions at least up til July 2005. So I started accepting submissions and feature requests from people to help make the code better. In June/July 2005 I discovered a little plugin by Chris J Davis (http://www.chrisjdavis.org/cjd-notepad/) called notepad. I added a small feature to it (basically a bookmarklet). In the process I started looking at his code and realized how much you could do with the plugin system available in Word Press.</p>
281
+
282
+ <p>So I decided to make an offical fork. I put up an article on my blog asking for new names. I picked Postie. I then modified the code to be a proper plugin. And the rest is history :)
283
+ * BUGFIX -problem with subject
284
+ * BUGFIX -cronless postie typo</p>
285
+
286
+ <h4>1.1</h4>
287
+
288
+ <ul>
289
+ <li>FEATURE: Updated and tested with WordPress 2.1</li>
290
+ <li>BUGFIX:Removed deprecated functions</li>
291
+ <li>FEATURE: Cronless Postie now uses the WordPress native Psuedo Cron.</li>
292
+ </ul>
293
+
294
+ <h4>1.0</h4>
295
+
296
+ <ul>
297
+ <li>BUGFIX: TestWPVersion broke with 2.1</li>
298
+ <li>FEATURE: end: now marks the end of a message (Dan Cunningham)</li>
299
+ <li>FEATURE: Better Readme (Michael Rasmussen)</li>
300
+ <li>FEATURE: Smart Sharpen Option -EXPERIMENTAL- (Jonas Rhodin)</li>
301
+ <li>BUGFIX: Issue with google imap fixed (Jim Hodgson)</li>
302
+ <li>BUGFIX: Fixed espacing issue in subjects (Paul Clip)</li>
303
+ <li>BUGFIX: Typo in Div fixed (phil)</li>
304
+ </ul>
305
+
306
+ <h4>0.9.9.3.2</h4>
307
+
308
+ <ul>
309
+ <li>BUGFIX: Typo</li>
310
+ </ul>
311
+
312
+ <h4>0.9.9.3.1</h4>
313
+
314
+ <ul>
315
+ <li>BUGFIX: Removed debugging code</li>
316
+ </ul>
317
+
318
+ <h4>0.9.9.3</h4>
319
+
320
+ <ul>
321
+ <li>BUGFIX: If your email address matches an existing user - then it will post as that user - even if you allow anyone to post.</li>
322
+ <li>BUGFIX: Replaced get<em>settings('home') with get</em>settings('siteurl')</li>
323
+ <li>BUGFIX: Better handling for Japanese charactersets - Thanks to http://www.souzouzone.jp/blog/archives/009531.html</li>
324
+ <li>BUGFIX: Better thumbnail window opening code - thanks to Gabi &amp; Duntello!</li>
325
+ <li>FEATURE: Added an option to set the MAX Height of an image - idea from Duntello</li>
326
+ <li>BUGFIX: Modified the FilterNewLines for better flowed text handling - You now HAVE TO PUT TWO NEW LINES to end a paragraph.</li>
327
+ <li>FEATURE: Added new CSS tags to support positioning images/attachments/3gp videos</li>
328
+ <li>BUGFIX: Tries to use the date in the message (Thanks Ravan) I tried this once before and it never worked - hopefully this time it will.</li>
329
+ <li>BUGFIX: Added a workaround to fix the problem with Subscribe2 - it will now notify on posts that are not set to show up in the future.</li>
330
+ </ul>
331
+
332
+ <h4>0.9.9.2</h4>
333
+
334
+ <ul>
335
+ <li>BUGFIX: Looks for the NOOP error and disgards it</li>
336
+ <li>FEATURE: Postie now detects the version of WordPress being used </li>
337
+ <li>FEATURE: Smarter Parsing of VodaPhone </li>
338
+ <li>FEATURE: Easy place to add new code to handle other brain-dead mail clients</li>
339
+ <li>BUGFIX: Handles insertion of single quotes properly</li>
340
+ <li>BUGFIX: Thumbnails should now link properly</li>
341
+ </ul>
342
+
343
+ <h4>0.9.9.1</h4>
344
+
345
+ <ul>
346
+ <li>BUGFIX: Needed a strtolower in places to catch all iso-8859 - thx to Gitte Wange for the catch</li>
347
+ <li>BUGFIX: Fixed issue with the category not being posted properly</li>
348
+ </ul>
349
+
350
+ <h4>0.9.9</h4>
351
+
352
+ <ul>
353
+ <li>UPDATE TO WP 2.0</li>
354
+ <li>BUGFIX: Config Page now works</li>
355
+ <li>FEATURES: Supports role based posting</li>
356
+ <li>BUGFIX: Posting updates the category counts.</li>
357
+ </ul>
358
+
359
+ <h4>0.9.8.6</h4>
360
+
361
+ <ul>
362
+ <li>BUGFIX: Fixed problems with config page &lt;%php became &lt;?php</li>
363
+ *
364
+ </ul>
365
+
366
+ <h4>0.9.8.5</h4>
367
+
368
+ <ul>
369
+ <li>BUGFIX: onClick changed to onclick</li>
370
+ <li>BUGFIX: strolower added to test for iso - thanks daniele</li>
371
+ <li>BUGFIX: Added a class to the 3gp video tags</li>
372
+ <li>FEATURE: Added the option to put the images before the article</li>
373
+ <li>BUGFIX: Added in selection for charsets - thanks Psykotik - this may cause problems for other encodings</li>
374
+ <li>FEATURE: Added option to turn of quoted printable decoding</li>
375
+ <li>FEATURE: :start tag - now postie looks for this tag before looking for you message - handy if your service provider prepends a message </li>
376
+ <li>FEATURE: Template for translation now included</li>
377
+ </ul>
378
+
379
+ <h4>0.9.8.4</h4>
380
+
381
+ <ul>
382
+ <li>BUGFIX: Fixed problem with config_form.php - select had "NULL" instead of ""</li>
383
+ <li>BUGFIX: 3g2 now supported</li>
384
+ <li>BUGFIX: More line break issues addressed</li>
385
+ <li>BUGFIX: QuickTime controls are now visible even if the movie is done playing</li>
386
+ <li>BUGFIX: Email addresses in the format <a href="mailto:&#x73;o&#109;&#x65;&#64;&#x64;&#111;&#x6d;&#97;&#x69;&#110;&#46;&#x63;&#111;&#x6d;">&#x73;o&#109;&#x65;&#64;&#x64;&#111;&#x6d;&#97;&#x69;&#110;&#46;&#x63;&#111;&#x6d;</a> (Full Name) supported</li>
387
+ <li>BUGFIX: Some images that were not being resized - are now</li>
388
+ <li>BUGFIX: HTML problems - if you posted plain text with HTML on it ignored all images</li>
389
+ <li>BUGFIX: The test system blew up on the thumbnails </li>
390
+ <li>BUGFIX: Selected HTML for preferred text is now shown in the config form properly</li>
391
+ <li>BUGFIX: Postie now complains if it is not in its own directory</li>
392
+ <li>BUGFIX: Postie doesn't include PEAR if it is already available</li>
393
+ <li>BUGFIX: In Test mode rejected emails are simply dropped</li>
394
+ <li>BUGFIX: Markdown messes up Postie - it will warn you if you turn it on.</li>
395
+ *
396
+ </ul>
397
+
398
+ <h4>0.9.8.3</h4>
399
+
400
+ <ul>
401
+ <li>BUGFIX: Fixed issue with the line feed replacement</li>
402
+ <li>BUGFIX: Added Banned File Config back in</li>
403
+ <li>FEATURE: Added in a link around 3gp video embedded via QT</li>
404
+ <li>BUGFIX: Email that has both Plain and HTML content will show the HTML content and not the plain if html is preferred</li>
405
+ </ul>
406
+
407
+ <h4>0.9.8.2</h4>
408
+
409
+ <ul>
410
+ <li>BUGFIX: Fixed an extra new line after attachin non-image files.</li>
411
+ <li>BUGFIX: The Test system now displays any missing gd functions</li>
412
+ <li>BUGFIX: The test system was only using ImageMagick</li>
413
+ </ul>
414
+
415
+ <h4>0.9.8.1</h4>
416
+
417
+ <ul>
418
+ <li>BUGFIX: The test images are now included in the zip </li>
419
+ </ul>
420
+
421
+ <h4>0.9.8</h4>
422
+
423
+ <ul>
424
+ <li>BUGFIX: New Lines detected and handled properly in cases where the mail client doesn't put a space before the new line (Miss Distance)</li>
425
+ <li>BUGFIX: 3gp mime type added (Paco Cotera)</li>
426
+ <li>BUGFIX: Authorized Email Addresses are not case-insensitive</li>
427
+ <li>FEATURE: The larger image now does a proper pop up </li>
428
+ <li>BUGFIX: Fixed Timeing Issue - turns out it wasn't reading the db at all</li>
429
+ <li>FEATURE: New Test Screen - to help track down problems</li>
430
+ </ul>
431
+
432
+ <h4>0.9.7</h4>
433
+
434
+ <ul>
435
+ <li>BUGFIX: removed all short tags</li>
436
+ <li>BUGFIX: There were spacing issues in the way I wrote the QT embed statements </li>
437
+ <li>FEATURE: Added calls to WP-Cron - should work with that properly now if you activate Cronless Postie</li>
438
+ <li>FEATURE: ImageMagick version works without any calls to GD</li>
439
+ <li>BUGFIX: Postie now correctly handles cases wjere tjere are multiple blogs in one db</li>
440
+ <li>BUGFIX: Turned off warnings when using without GD</li>
441
+ <li>FEATURE: add the rotate:X to your message to rotate all images</li>
442
+ <li>FEATURE: new filter<em>postie</em>thumbnail<em>with</em>full which makes it easy to show a thumbnail on the front page but full image on the single page - see FAQ</li>
443
+ </ul>
444
+
445
+ <h4>0.9.6</h4>
446
+
447
+ <ul>
448
+ <li>BUGFIX: handles email addresses that are no name and just <a href="mailto:&#101;&#109;&#x61;&#105;&#108;&#x40;&#101;&#109;&#x61;&#x69;&#108;&#x2e;&#x63;&#111;&#x6d;">&#101;&#109;&#x61;&#105;&#108;&#x40;&#101;&#109;&#x61;&#x69;&#108;&#x2e;&#x63;&#111;&#x6d;</a> (Steve Cooley Reported)</li>
449
+ <li>FEATURE: Basic support for embedding flash files</li>
450
+ <li>BUGFIX: Postie now handles creating the correct URL on non Unix platforms</li>
451
+ <li>BUGFIX: Fixed problem with file attachments not being put in the right place.</li>
452
+ <li>FEATURE: You can now choose to use imagemagick convert to handle making thumbnails</li>
453
+ <li>BUGFIX: Rewrote Cronless Postie to use direct sockets</li>
454
+ <li>BUGFIX: Time offset is now settable just for Postie - hopefully this will fix problems for cases where the normal time offset doesn't work properly.</li>
455
+ <li>FEATURE: First draft of frame for a 3GP video</li>
456
+ <li>FEATURE: Option to embed 3GP in QuickTime Controller.</li>
457
+ </ul>
458
+
459
+ <h4>0.9.5.2</h4>
460
+
461
+ <ul>
462
+ <li>BUGFIX: gmt varialble not being set correctly</li>
463
+ <li>BUGFIX: Changed the name of the Check Mail button to fix an issue with mod_security</li>
464
+ <li>BUGFIX: Fixed issue with Cronless-Postie</li>
465
+ <li>BUGFIX: There was an argument passed by reference incorrectly</li>
466
+ <li>FEATURE: Added in Cronless Postie Readme</li>
467
+ <li>FEATURE: Added in Postie Readme</li>
468
+ </ul>
469
+
470
+ <h4>0.9.5.1</h4>
471
+
472
+ <ul>
473
+ <li>BUGFIX: Confirmed POP3-SSL on debian-3.0</li>
474
+ <li>BUGFIX: Updated the plugin version</li>
475
+ <li>BUGFIX: Stopped displaying the email account</li>
476
+ *
477
+ </ul>
478
+
479
+ <h4>0.9.5</h4>
480
+
481
+ <ul>
482
+ <li>BUGFIX: Postie handles cases where you do not have GD</li>
483
+ <li>FEATURE: You can now set the access level for posting - so other people can use the gate way</li>
484
+ <li>BUGFIX: Fixed issue when admininstrator email is not tied to a user account.</li>
485
+ <li>FEATURE: Can now reset all Postie configurations back to defaults</li>
486
+ <li>BUGFIX: HTML Emails with embedded images are now handled properly.</li>
487
+ <li>BUGFIX: The time difference should work correctly now</li>
488
+ <li>BUGFIX: Postie's configs are completely seperate from Writing-By-Mail</li>
489
+ <li>FEATURE: Warning if you use Gmail to make sure you turn on POP support</li>
490
+ <li>BUGFIX: Manual Check Mail Button in interface</li>
491
+ <li>BUGFIX: fixed issue of compatability with cjd-notepad</li>
492
+ <li>BUGFIX: Windows Works Now</li>
493
+ </ul>
494
+
495
+ <h4>0.9.4</h4>
496
+
497
+ <ul>
498
+ <li>BUGFIX: Cronless Postie - fixed the include statement</li>
499
+ <li>BUGFIX: Authorized Addresses now supports a single address</li>
500
+ <li>FEATURE: All configuration in Postie done in a single screen</li>
501
+ <li>FEATURE: AUTHORIZATION can be completely overridden</li>
502
+ <li>BUGFIX: line 1159 - didn't handle cases where the table didn't exist already very well</li>
503
+ <li>FEATURE: Detects if you can do IMAP</li>
504
+ <li>FEATURE: Added IMAP Support</li>
505
+ <li>FEATURE: Added IMAP-SSL Support</li>
506
+ <li>FEATURE: Added POP3-SSL Support</li>
507
+ </ul>
508
+
509
+ <h4>0.9.3</h4>
510
+
511
+ <ul>
512
+ <li>Bug fixes for IIS</li>
513
+ </ul>
514
+
515
+ <h4>0.9.2</h4>
516
+
517
+ <ul>
518
+ <li>Moved to more of a DIRECTORY_SEPARATOR structure </li>
519
+ </ul>
520
+
521
+ <h4>0.9.1</h4>
522
+
523
+ <ul>
524
+ <li>Added a define to fix a problem with over including</li>
525
+ </ul>
526
+
527
+ <h4>0.9</h4>
528
+
529
+ <ul>
530
+ <li>Converted to an honest to god plugin</li>
531
+ <li>BUGFIX: If you put a single category:subject it now works</li>
532
+ <li>BUGFIX: ? Special characters may be supported? The test post now shows a lot of umlats and accents?</li>
533
+ <li>BUGFIX: The last ] in a subject with categories is now filtered out</li>
534
+ <li>FEATURE: -1- subject - will put the post in category 1</li>
535
+ </ul>
536
+
537
+ <h4>0.312.13</h4>
538
+
539
+ <ul>
540
+ <li>Code clean up - The main loop is finally readable by even non programmers</li>
541
+ <li>FEATURE - You can now post to multiple categories at one time by using the [#],[Category Name], [Cat] in the subject</li>
542
+ <li>FEATURE - You can now select a category by just including the begining characters [G] will select General </li>
543
+ <li>if you don't have any other categories that start with g</li>
544
+ <li>FEATURE - Jay Talbot - added a new feature so you can have multiple email addresses be allowed in</li>
545
+ <li>Make multi category posting more obvious</li>
546
+ <li>BUG FIX: Timezones of GMT+? should now work properly</li>
547
+ <li>BUG FIX: Able to handle mis-mime typed images as long as they are named with .jpg/.gif/.png</li>
548
+ </ul>
549
+
550
+ <h4>0.312.12</h4>
551
+
552
+ <ul>
553
+ <li>Code clean up - slowing shrinking the main to make it easiery to fix things</li>
554
+ <li>FEATURE: Be able to turn on/off allowing comments in an email</li>
555
+ <li>BUG FIX: AppleDouble now mostly supported </li>
556
+ <li>BUG FIX: MIME handling improved.</li>
557
+ <li>BUG FIX: Fix issue with timing delay</li>
558
+ </ul>
559
+
560
+ <h4>0.312.11</h4>
561
+
562
+ <ul>
563
+ <li>FEATURE: Patterns to define where a sig starts are user configurable</li>
564
+ <li>FEATURE: Add filter options for banned file names</li>
565
+ <li>BUG FIX: Made it possible to turn off posting to the db for testing purposes</li>
566
+ </ul>
567
+
568
+ <h4>0.312.10</h4>
569
+
570
+ <ul>
571
+ <li>FEATURE: Added in code to diplay the mime type of the file being linked to</li>
572
+ <li>BUG FIX: It now tests for the existance of the directories and makes sure</li>
573
+ <li>that the web server can write to them</li>
574
+ </ul>
575
+
576
+ <h4>0.312.9</h4>
577
+
578
+ <ul>
579
+ <li>FEATURE:Should handle jpg as well as jpeg as the file type</li>
580
+ <li>BUG FIX: Now correctly handles the subject in the message</li>
581
+ <li>BUG FIX: Should handle Text preferences correctly </li>
582
+ </ul>
583
+
584
+ <h4>0.312.8</h4>
585
+
586
+ <ul>
587
+ <li>Some general code tidying. </li>
588
+ <li>FEATURE: Can now have email from invalid email addresses automatically forwared</li>
589
+ <li>to the admin's email account. This forward includes all attachments. </li>
590
+ <li>Props to David Luden for getting this started.</li>
591
+ <li>Minor change: The system will continue if it runs into a message that doesn't have </li>
592
+ <li>any content - it will also continue to process if it gets an email from </li>
593
+ <li>someone not in the system. In the past this could result in deleted mail</li>
594
+ <li>if your cron job didn't run often enough.</li>
595
+ </ul>
596
+
597
+ <h4>0.312.7</h4>
598
+
599
+ <ul>
600
+ <li>Confirm the handling of 3gp video for cell phones o</li>
601
+ <li>Added in new directive SUPPORTED<em>FILE</em>TYPES -if the mime type is listed here then the system will try to make a link to it without making a thumb nail.</li>
602
+ </ul>
603
+
604
+ <h4>0.312.6</h4>
605
+
606
+ <ul>
607
+ <li>Bug Fix: Ok the last bug I fixed - actually caused another bug - man I should set up some unit tests. Now it handles mail from the nokia mail client correctly.</li>
608
+ </ul>
609
+
610
+ <h4>0.312.5</h4>
611
+
612
+ <ul>
613
+ <li>Bug Fix : The system was accepting all test/* types. Now you can set a preference (defaults to text/plain)</li>
614
+ <li>to use as the main text for the post.</li>
615
+ </ul>
616
+
617
+ <h4>0.312.4</h4>
618
+
619
+ <ul>
620
+ <li>Added in sanitize_title call suggested by Jemima</li>
621
+ <li>Added in ability to provide a subject in an mms - by using #Subject#</li>
622
+ <li>Fixed an issue with the time stamp system so it now automatically uses the gmt_offset from WordPress</li>
623
+ <li>Fixed issue with the delay:1d1h tag that prevented it from being removed from the body.</li>
624
+ <li>Fixed issue with the delay tag that caused problems if it was the last thing before an image.</li>
625
+ </ul>
626
+
627
+ <h4>0.312.3-HEY (2005-05)</h4>
628
+
629
+ <ul>
630
+ <li>&gt; Some changes and Bugfixes by Adrian Heydecker</li>
631
+ <li>&gt; Not (yet) in main development branch.</li>
632
+ <li>Fixed bug: JPEG-thumbnails had a bigger filesize than full images caused by bad hardcoded compression value.</li>
633
+ <li>Fixed bug: If images and signatures were present but no placeholder tags, the images were deleted together with the signature.</li>
634
+ <li>Fixed bug: Generates valid postnames for users of mod_rewrite. Permalinks to posts should now work even when whitespaces are present in the subject line.</li>
635
+ <li>Added support for Quoted Printable encoded mail.</li>
636
+ <li>Added ability to encode Wordpress-posts in charset ISO-8859-1 instead of UTF-8.</li>
637
+ <li>Added ability to choose JPEG-compression value for thumbnails.</li>
638
+ <li>Added ability to add class="" and style="" to images.</li>
639
+ <li>Added ability to use a different mailadress (eg. mobile) without setting up a new Wordpress-account.</li>
640
+ </ul>
641
+
642
+ <h4>0.312.2</h4>
643
+
644
+ <ul>
645
+ <li>BUGFIX: It now removes the delay tag from the message</li>
646
+ </ul>
647
+
648
+ <h4>0.312.1</h4>
649
+
650
+ <ul>
651
+ <li>Added modification for placeholder support for images (David Luden)</li>
652
+ <li>Added in support to automatically scale down big images (Dirk Elmendorf)</li>
653
+ <li>Fixed bug with multiple emails all getting the contents of the first image tag (Dirk Elmendorf)</li>
654
+ <li>Added option to allow HTML in the body and subject of the email (Dirk Elmendorf)</li>
655
+ <li>Switch config options to defines to reduce the number of global variables (Dirk Elmendorf)</li>
656
+ <li>Added tests to make sure there is a trailing slash on the DIR definitions (Dirk Elmendorf)</li>
657
+ <li>Add tests to see if they have gd installed (Dirk Elmendorf)</li>
658
+ <li>Seperate the scaling out to a function for easier usage (Dirk Elmendorf)</li>
659
+ <li>Add delay feature for future posting. (Dirk Elmendorf)</li>
660
+ <li><p>Added in ability to use strtotime if it is available (Dirk ELmendorf)</p></li>
661
+ <li><p>Todo</p></li>
662
+ <li>Have option to have the email that is rejected forwarded on to another address.</li>
663
+ <li>Fix bug that id still diplays the delay tag in the body </li>
664
+ </ul>
665
+
666
+ <h4>0.312 - 2005-03</h4>
667
+
668
+ <ul>
669
+ <li>CHANGE FOR DEFAULT E-mail Categories, instead of [General] Subject you can now use General: Subject in the subject line. Less typing, and there must be a space after the colon. </li>
670
+ <li>Fixed bugs with no default posting for categories and user </li>
671
+ </ul>
672
+
673
+ <h4>0.311 - 2005-01</h4>
674
+
675
+ <ul>
676
+ <li>eep, major bug for pop3 server. Next time I test my code more before I released, fixed so that pop3 now works.`</li>
677
+ </ul>
678
+
679
+ <h4>0.31 - 2004-12 &amp; 2005-01</h4>
680
+
681
+ <ul>
682
+ <li>(Has it been this long, best get back into the swing of things... did most of this coding on my holiday as I didn't have a machine to play WoW on :)</li>
683
+ <li>moved the deletion of pop3 emails into a check so that e-mails aren't deleted without proper checking.</li>
684
+ <li>added HTML 'decoding' (basic support for Thunderbird &amp; Outlook) </li>
685
+ <li>updated the Category search so that it matches words as well as numbers (i.e. [General] Subjectname will work instead of just [1] Subjectname)</li>
686
+ <li>Changed time function from time to strtotime (as per Senior Pez's suggestion), but found out that strtotime isn't in default php distro so removed...</li>
687
+ </ul>
688
+
689
+ <h4>0.3 - 2004-09</h4>
690
+
691
+ <ul>
692
+ <li>Added UBB decoding support</li>
693
+ <li>Added default title (when there is no subject assigned)</li>
694
+ <li>Started doing a little code cleanup, been reading Advanced PHP Book :)</li>
695
+ *
696
+ </ul>
697
+
698
+ <h4>0.2 - 2004-08</h4>
699
+
700
+ <ul>
701
+ <li>Stopped using pear body decoding in favour of own decoding (may be slower but more modifiable) because of enriched text decoding</li>
702
+ <li>Added base64_decode checking (may help mobile phone users)</li>
703
+ <li>Fixed Subject line for non-english users (htmlentities instead of just trim)</li>
704
+ <li>Fixed error in some pop hanging -&gt; more graceful exit on event on no emails in inbox ($pop3-&gt;quit)</li>
705
+ <li>Added work around for email addresses with exta &lt;&gt; in field (ie: <a href="mailto:&#98;&#108;&#97;d&#x65;&#x40;&#x6c;&#x61;&#x6e;&#115;&#109;&#97;&#115;&#104;.&#x63;&#x6f;&#x6d;">&#98;&#108;&#97;d&#x65;&#x40;&#x6c;&#x61;&#x6e;&#115;&#109;&#97;&#115;&#104;.&#x63;&#x6f;&#x6d;</a> instead of blade@lasmash.com</li>
706
+ <li>Added some ===basic=== enriched text support</li>
707
+ <li>Updated readme file for easier install</li>
708
+ <li>Easy modify of globals (such as PHOTOSDIR and FILESDIR)</li>
709
+ <li>Cleaned up some pear stuff in install</li>
710
+ *
711
+ </ul>
712
+
713
+ <h4>0.1 - 2004-06</h4>
714
+
715
+ <ul>
716
+ <li>First release</li>
717
+ </ul> <hr />
718
+
719
+ <h3>Options and Settings</h3>
720
+ <ul>
721
+ <li>You can set the starting characters for you signature so that it
722
+ is removed from the posting message</li>
723
+ <li>You can set a list of banned file names so if you provider adds
724
+ images to your post they don't show up in the blog</li>
725
+ <li>If you post from an email address that is not a valid author the
726
+ email post will be forwarded to the admin</li>
727
+ <li>You can control if you want HTML allowed in the body or subject
728
+ of your post</li>
729
+ <li>Lets you set a default subject when you don't set one</li>
730
+ <li>Defaults to posting to the default category you set in Word Press</li>
731
+ </ul>
732
+ <h3>Usage</h3>
733
  <ul>
734
  <li>If you put in :start - the message processing won't start until it sees that string</li>
735
  <li>If you put in :end - the message processing will stop once it sees that string</li>
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://blog.robfelty.com/plugins/postie
5
  Tags: e-mail
6
  Requires at least: 2.3
7
  Tested up to: 2.8
8
- Stable tag: 1.3.1
9
 
10
  The Postie plugin allows you to blog via e-mail, including many advanced
11
  features not found in wordpress's default post by e-mail feature.
@@ -19,13 +19,6 @@ imap and pop3, with the option for ssl with both. For usage notes, see the
19
 
20
  = What's new? =
21
 
22
- * 1.3.1 (2009.08.24)
23
- * Changed GetContent filter to postie_content
24
- * Added postie_subject filter
25
- * Added database upgrade hook on activation
26
- * Fixed bug where content would be empty if trying to remove signature,
27
- and signature list was emtpy
28
-
29
  * 1.3.0 (2009.08.14)
30
  * Features
31
  * Added mpeg4 to default list of videotypes
@@ -60,7 +53,7 @@ imap and pop3, with the option for ssl with both. For usage notes, see the
60
  * Login to WordPress as an administrator
61
  * Goto the Plugins tab in the WordPress Admin Site
62
  * Activate "Postie"
63
- * Goto to the "Settings" tab and click on the sub-tab "Postie" to configure it.
64
  * Make sure you enter the mailserver information correctly, including the type
65
  of connection and the port number. Common port configurations:
66
  * pop3: 110
@@ -100,6 +93,18 @@ If you don't have access to cron, you can run postie without it.
100
  you only get one visit every 30 minutes, then it might take 30 minutes for a
101
  post to show up.
102
 
 
 
 
 
 
 
 
 
 
 
 
 
103
 
104
  == Usage ==
105
  * If you put in :start - the message processing won't start until it sees that string
@@ -309,26 +314,9 @@ Currently the following filetypes are supported:
309
  * rtf - rich text format
310
  * txt - plain text document
311
 
312
- = Can I add special text to the body of the post when using postie? =
313
-
314
- Yes. You can create your own function, and use the postie_post filter
315
- Two short examples are included in the filterPostie.php file
316
-
317
- = Can I add special text to the title of the post when using postie? =
318
-
319
- Yes. You can create your own function, and use the postie_post filter
320
- Two short examples are included in the filterPostie.php file
321
-
322
 
323
  == CHANGELOG ==
324
 
325
- = 1.3.1 (2009.08.24) =
326
- * Changed GetContent filter to postie_post
327
- * Added database upgrade hook on activation
328
- * Fixed bug where content would be empty if trying to remove signature,
329
- and signature list was emtpy
330
- * Updated FAQ and readme
331
-
332
  = 1.3.0 (2009.08.14) =
333
  * Features
334
  * Added mpeg4 to default list of videotypes
5
  Tags: e-mail
6
  Requires at least: 2.3
7
  Tested up to: 2.8
8
+ Stable tag: 1.3.0
9
 
10
  The Postie plugin allows you to blog via e-mail, including many advanced
11
  features not found in wordpress's default post by e-mail feature.
19
 
20
  = What's new? =
21
 
 
 
 
 
 
 
 
22
  * 1.3.0 (2009.08.14)
23
  * Features
24
  * Added mpeg4 to default list of videotypes
53
  * Login to WordPress as an administrator
54
  * Goto the Plugins tab in the WordPress Admin Site
55
  * Activate "Postie"
56
+ * Goto to the "Settings" tab and click on the sub-tab "Configure Postie" to configure it.
57
  * Make sure you enter the mailserver information correctly, including the type
58
  of connection and the port number. Common port configurations:
59
  * pop3: 110
93
  you only get one visit every 30 minutes, then it might take 30 minutes for a
94
  post to show up.
95
 
96
+ == Options and Settings ==
97
+
98
+ * You can set the starting characters for you signature so that it
99
+ is removed from the posting message
100
+ * You can set a list of banned file names so if you provider adds
101
+ images to your post they don't show up in the blog
102
+ * If you post from an email address that is not a valid author the
103
+ email post will be forwarded to the admin
104
+ * You can control if you want HTML allowed in the body or subject
105
+ of your post
106
+ * Lets you set a default subject when you don't set one
107
+ * Defaults to posting to the default category you set in Word Press
108
 
109
  == Usage ==
110
  * If you put in :start - the message processing won't start until it sees that string
314
  * rtf - rich text format
315
  * txt - plain text document
316
 
 
 
 
 
 
 
 
 
 
 
317
 
318
  == CHANGELOG ==
319
 
 
 
 
 
 
 
 
320
  = 1.3.0 (2009.08.14) =
321
  * Features
322
  * Added mpeg4 to default list of videotypes