Version Description
(2017-11-22) = * Feature: New filter postie_include_attachment to allow/prevent attachment to be added to post. See http://postieplugin.com/filter-postie_include_attachment/
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.9.13 |
Comparing to | |
See all releases |
Code changes from version 1.9.12 to 1.9.13
- docs/Changes.txt +3 -0
- docs/Installation.txt +1 -0
- docs/Postie.txt +3 -3
- docs/TODO.txt +1 -7
- docs/Usage.txt +1 -136
- postie.class.php +6 -1
- postie.php +3 -3
- readme.txt +9 -140
docs/Changes.txt
CHANGED
@@ -35,6 +35,9 @@ All script, style and body tags are stripped from html emails.
|
|
35 |
Attachments are now processed in the order they were attached.
|
36 |
|
37 |
== CHANGELOG ==
|
|
|
|
|
|
|
38 |
= 1.9.12 (2017-11-15) =
|
39 |
* Fix: use wp native function to detect MySQL version
|
40 |
|
35 |
Attachments are now processed in the order they were attached.
|
36 |
|
37 |
== CHANGELOG ==
|
38 |
+
= 1.9.13 (2017-11-22) =
|
39 |
+
* Feature: New filter postie_include_attachment to allow/prevent attachment to be added to post. See http://postieplugin.com/filter-postie_include_attachment/
|
40 |
+
|
41 |
= 1.9.12 (2017-11-15) =
|
42 |
* Fix: use wp native function to detect MySQL version
|
43 |
|
docs/Installation.txt
CHANGED
@@ -6,3 +6,4 @@
|
|
6 |
of connection and the port number.
|
7 |
* (Postie ignores the settings under Settings->Writing->Writing-by-Email)
|
8 |
* More information can be found at http://PostiePlugin.com
|
|
6 |
of connection and the port number.
|
7 |
* (Postie ignores the settings under Settings->Writing->Writing-by-Email)
|
8 |
* More information can be found at http://PostiePlugin.com
|
9 |
+
|
docs/Postie.txt
CHANGED
@@ -6,8 +6,8 @@ Plugin URI: http://PostiePlugin.com/
|
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
-
Tested up to: 4.
|
10 |
-
Stable tag: 1.9.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -43,7 +43,7 @@ More info at http://PostiePlugin.com/
|
|
43 |
|
44 |
= Developers =
|
45 |
* Several filter hooks available for custom processing of emails.
|
46 |
-
* More developer info at http://postieplugin.com/extending/
|
47 |
|
48 |
== Screenshots ==
|
49 |
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
+
Tested up to: 4.9
|
10 |
+
Stable tag: 1.9.13
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
43 |
|
44 |
= Developers =
|
45 |
* Several filter hooks available for custom processing of emails.
|
46 |
+
* More developer info at <a href="http://postieplugin.com/extending/">http://postieplugin.com/extending/</a>
|
47 |
|
48 |
== Screenshots ==
|
49 |
|
docs/TODO.txt
CHANGED
@@ -9,32 +9,28 @@ Configurable message for "post confirmation" - variable substitution, by post st
|
|
9 |
|
10 |
Bugs
|
11 |
#img# caption feature not working
|
12 |
-
plugin conflict - Image Rotation Fixer/Image Rotation Repair
|
13 |
Comment not being created when subject contains category command []. I.e. listserv subject lines
|
14 |
|
15 |
Other
|
16 |
Process single email at a time and don't delete unless successful
|
17 |
Add default comment status (like post status) wp_set_comment_status
|
18 |
provide a location for custom icons. update docs about location.
|
19 |
-
Make sure all failures are sent to admin (option?) failed attachments, etc.
|
20 |
"yoast" style admin sidebar - see clicky by yoast
|
21 |
fix postie settings http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/
|
22 |
check multiple email accounts
|
23 |
allow other roles access to manual check like "Roles That Can Post"
|
24 |
Test server port combination by opening a socket connection to see if any service responds. (via ajax call)
|
25 |
-
send email notice when attachments are rejected.
|
26 |
For IMAP mailboxes allow the user to choose the folder.
|
27 |
Check to see if post already exists. Store hash in custom field.
|
28 |
-
Change successful post message to take post status into account (i.e. draft really isn't posted - possible link to publish draft?)
|
29 |
Verify that WP is honoring the wp_set_current_user() call. I.e. if the user is not an "author" role can they publish?
|
30 |
Add Message-ID header value to custom field (postie_message_id?) to both posts and comments.
|
31 |
Use In-Reply-To header value as a better way to detect replies
|
32 |
date: tag is being detected in body when not wanted
|
33 |
-
Update tag_* and filter_* to handle HTML (per tag_Tags)
|
34 |
dynamically determine video size (height/width) - https://code.google.com/p/phpvideotoolkit/
|
35 |
readme tips http://wp.smashingmagazine.com/2011/11/23/improve-wordpress-plugins-readme-txt/
|
36 |
review http://codex.wordpress.org/Settings_API
|
37 |
plugin structure http://www.yaconiello.com/blog/how-to-write-wordpress-plugin/
|
|
|
38 |
use wordpress plugin template
|
39 |
boilerplate http://wppb.io/
|
40 |
starter-plugin https://github.com/mattyza/starter-plugin
|
@@ -65,7 +61,6 @@ hook for actions
|
|
65 |
mail read
|
66 |
mail delete
|
67 |
collect and send last debug log and system info (see http://wordpress.org/plugins/send-system-info/)
|
68 |
-
Support EXIF orientation via PHP Exif Library https://github.com/lsolesen/pel
|
69 |
|
70 |
=========
|
71 |
Revised parsing logic
|
@@ -84,4 +79,3 @@ Original text is never modified
|
|
84 |
There are filters that modify
|
85 |
meta data (tags, categories, date)
|
86 |
content (start, end, newlines, linkifying)
|
87 |
-
|
9 |
|
10 |
Bugs
|
11 |
#img# caption feature not working
|
|
|
12 |
Comment not being created when subject contains category command []. I.e. listserv subject lines
|
13 |
|
14 |
Other
|
15 |
Process single email at a time and don't delete unless successful
|
16 |
Add default comment status (like post status) wp_set_comment_status
|
17 |
provide a location for custom icons. update docs about location.
|
|
|
18 |
"yoast" style admin sidebar - see clicky by yoast
|
19 |
fix postie settings http://alisothegeek.com/2011/01/wordpress-settings-api-tutorial-1/
|
20 |
check multiple email accounts
|
21 |
allow other roles access to manual check like "Roles That Can Post"
|
22 |
Test server port combination by opening a socket connection to see if any service responds. (via ajax call)
|
|
|
23 |
For IMAP mailboxes allow the user to choose the folder.
|
24 |
Check to see if post already exists. Store hash in custom field.
|
|
|
25 |
Verify that WP is honoring the wp_set_current_user() call. I.e. if the user is not an "author" role can they publish?
|
26 |
Add Message-ID header value to custom field (postie_message_id?) to both posts and comments.
|
27 |
Use In-Reply-To header value as a better way to detect replies
|
28 |
date: tag is being detected in body when not wanted
|
|
|
29 |
dynamically determine video size (height/width) - https://code.google.com/p/phpvideotoolkit/
|
30 |
readme tips http://wp.smashingmagazine.com/2011/11/23/improve-wordpress-plugins-readme-txt/
|
31 |
review http://codex.wordpress.org/Settings_API
|
32 |
plugin structure http://www.yaconiello.com/blog/how-to-write-wordpress-plugin/
|
33 |
+
Support EXIF orientation via PHP Exif Library https://github.com/lsolesen/pel
|
34 |
use wordpress plugin template
|
35 |
boilerplate http://wppb.io/
|
36 |
starter-plugin https://github.com/mattyza/starter-plugin
|
61 |
mail read
|
62 |
mail delete
|
63 |
collect and send last debug log and system info (see http://wordpress.org/plugins/send-system-info/)
|
|
|
64 |
|
65 |
=========
|
66 |
Revised parsing logic
|
79 |
There are filters that modify
|
80 |
meta data (tags, categories, date)
|
81 |
content (start, end, newlines, linkifying)
|
|
docs/Usage.txt
CHANGED
@@ -1,139 +1,4 @@
|
|
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 |
-
|
7 |
-
* Posts can have their status set to draft, publish, pending or private. This will override the Default Post Status set in the settings screen.
|
8 |
-
* status: private
|
9 |
-
* status: draft
|
10 |
-
|
11 |
-
= Post Date =
|
12 |
-
* Posts can have a specific publication date such as Apr 14, 2013. Relative dates like "tomorrow", "monday", "first day of next month" are also supported.
|
13 |
-
* date: date
|
14 |
-
* date: date time
|
15 |
-
* Posts can be delayed by adding a line with delayXdXhXm where X is a number.
|
16 |
-
* delay:1d - 1 day
|
17 |
-
* delay:1h - 1 hour
|
18 |
-
* delay:1m - 1 minute
|
19 |
-
* delay:1d2h4m - 1 day 2 hours 4m
|
20 |
-
|
21 |
-
= Comment Control =
|
22 |
-
* By putting comments:X in your message you can control if comments are allowed
|
23 |
-
* comments:0 - means closed
|
24 |
-
* comments:1 - means open
|
25 |
-
* comments:2 - means registered only
|
26 |
-
* Replying to an e-mail gets posted as a comment.
|
27 |
-
* For example, you e-mailed a post with the subject line "foo".
|
28 |
-
If you then send an e-mail with the subject line "Re: foo", it will
|
29 |
-
get posted as a comment to the "foo" post. This works by the subject
|
30 |
-
line, so if you have two posts with titles "foo", then the comment
|
31 |
-
will get placed in the more recent post.
|
32 |
-
|
33 |
-
= Post Excerpt =
|
34 |
-
* Custom excerpt
|
35 |
-
* You can include a custom excerpt of an e-mail by putting it between
|
36 |
-
:excerptstart and :excerptend
|
37 |
-
* You can include images in the excerpt by using the shortcode #eimg1#,
|
38 |
-
#eimg2# etc.
|
39 |
-
|
40 |
-
= Post type/format =
|
41 |
-
You can specify the post type or format by including it as the first part of the subject followed by 2 forward slashes (//).
|
42 |
-
E.g. aside//real subject
|
43 |
-
|
44 |
-
= Categories =
|
45 |
-
* If you put a category name in the subject with a : it will be used
|
46 |
-
as the category for the post
|
47 |
-
* If you put a category id number in the subject with a : it will
|
48 |
-
be used as the category for the post
|
49 |
-
* If you put the first part of a category name it will be posted in
|
50 |
-
the first category that the system finds that matches - so if you put
|
51 |
-
|
52 |
-
Gen: New News
|
53 |
-
|
54 |
-
The system will post that in General. Note you must turn on the "Match short category"
|
55 |
-
setting for this to work (on by default).
|
56 |
-
|
57 |
-
* All of the above also applies if you put the category in brackets []
|
58 |
-
* Using [] or you can post to multiple categories at once
|
59 |
-
|
60 |
-
Subject: [1] [Mo] [Br] My Subject
|
61 |
-
|
62 |
-
On my blog it would post to General (Id 1), Moblog, and Brewing all at one time
|
63 |
-
|
64 |
-
* Using - or you can post to multiple categories at once
|
65 |
-
|
66 |
-
Subject: -1- -Mo- -Br- My Subject
|
67 |
-
|
68 |
-
On my blog it would post to General (Id 1), Moblog, and Brewing all at one time
|
69 |
-
|
70 |
-
= Tags =
|
71 |
-
* You can add tags by adding a line in the body of the message like so:
|
72 |
-
tags: foo, bar
|
73 |
-
* You can also set a default tag to be applied if no tags are included.
|
74 |
-
|
75 |
-
= Image Handling =
|
76 |
-
* Allows you to attach images to your email and automatically post
|
77 |
-
them to your blog.
|
78 |
-
* You can publish images in the text of your message by using #img1#
|
79 |
-
#img2# - each one will be replaced with the HTML for the image
|
80 |
-
you attached
|
81 |
-
* Captions - you can also add a caption like so:
|
82 |
-
|
83 |
-
* #img1 caption='foo'#
|
84 |
-
* #img2 caption='bar'#
|
85 |
-
|
86 |
-
Or, if you use IPTC captions, this caption will be used (adding a caption
|
87 |
-
in many photo editing programs (for example Picasa), will add an IPTC caption)
|
88 |
-
|
89 |
-
Note that the images are processed in the order they are attached as of version
|
90 |
-
1.4.6.
|
91 |
-
|
92 |
-
Note you can only use the #img# feature if your "Preferred Text Type" is set to "plain"
|
93 |
-
|
94 |
-
* Image templates
|
95 |
-
Postie now uses the default wordpress image template, but you can specify a
|
96 |
-
different one if you wish.
|
97 |
-
|
98 |
-
You can also specify a custom image template. I use the following custom
|
99 |
-
template:
|
100 |
-
|
101 |
-
`<div class='imageframe alignleft'><a href='{IMAGE}'><img src="{THUMBNAIL}"
|
102 |
-
alt="{CAPTION}" title="{CAPTION}"
|
103 |
-
class="attachment" /></a><div
|
104 |
-
class='imagecaption'>{CAPTION}</div></div>`
|
105 |
-
|
106 |
-
* {CAPTION} gets replaced with the caption you specified (if any)
|
107 |
-
* {FILELINK} gets replaced with the url to the media
|
108 |
-
* {FILENAME} gets replaced with the name of the attachment from the email
|
109 |
-
* {FULL} same as {FILELINK}
|
110 |
-
* {HEIGHT} gets replaced with the height of the photo
|
111 |
-
* {ID} gets replaced with the post id
|
112 |
-
* {IMAGE} same as {FILELINK}
|
113 |
-
* {LARGEHEIGHT} gets replaced with the height of a large image
|
114 |
-
* {LARGEWIDTH} gets replaced with the width of a large image
|
115 |
-
* {LARGE} gets replaced with the url to the large-sized image
|
116 |
-
* {MEDIUMHEIGHT} gets replaced with the height of a medium image
|
117 |
-
* {MEDIUMWIDTH} gets replaced with the width of a medium image
|
118 |
-
* {MEDIUM} gets replaced with the url to the medium-sized image
|
119 |
-
* {PAGELINK} gets replaced with the URL of the file in WordPress
|
120 |
-
* {RELFILENAME} gets replaced with the relative path to the full-size image
|
121 |
-
* {THUMBHEIGHT} gets replaced with the height of a thumbnail image
|
122 |
-
* {THUMB} gets replaced with the url to the thumbnail image
|
123 |
-
* {THUMBNAIL} same as {THUMB}
|
124 |
-
* {THUMBWIDTH} gets replaced with the width of a thumbnail image
|
125 |
-
* {TITLE} same as {FILENAME}
|
126 |
-
* {URL} same as {FILELINK}
|
127 |
-
* {WIDTH} gets replaced with width of the photo
|
128 |
-
* {ICON} insert the icon for the attachment (for non-audio/image/video attachments only)
|
129 |
-
|
130 |
-
|
131 |
-
= Interoperability =
|
132 |
-
* If your mail client doesn't support setting the subject (nokia) you
|
133 |
-
can do so by putting #your subject/title here# at the beginning of your message
|
134 |
-
* POP3,POP3-SSL,IMAP,IMAP-SSL now supported - last three require
|
135 |
-
php-imap support
|
136 |
-
* The program understands enough about mime to not duplicate post
|
137 |
-
if you send an HTML and plain text message
|
138 |
-
* Automatically confirms that you are installed correctly
|
139 |
|
1 |
== Usage ==
|
|
|
|
|
|
|
2 |
|
3 |
+
Please visit our site at <a href="http://postieplugin.com/">http://postieplugin.com/</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
postie.class.php
CHANGED
@@ -188,6 +188,11 @@ class Postie {
|
|
188 |
DebugEcho("save_attachments_worker: skipping banned filename " . $attachment['filename']);
|
189 |
break;
|
190 |
}
|
|
|
|
|
|
|
|
|
|
|
191 |
} else {
|
192 |
DebugEcho('save_attachments_worker: un-named attachment');
|
193 |
}
|
@@ -1480,7 +1485,7 @@ class Postie {
|
|
1480 |
DebugEcho("PHP cURL version: " . $cv['version'], $force_display);
|
1481 |
}
|
1482 |
|
1483 |
-
DebugEcho("MySQL Version: ". $wpdb->db_version(), $force_display);
|
1484 |
|
1485 |
DebugEcho("WordPress Version: " . get_bloginfo('version'), $force_display);
|
1486 |
if (defined('MULTISITE') && MULTISITE) {
|
188 |
DebugEcho("save_attachments_worker: skipping banned filename " . $attachment['filename']);
|
189 |
break;
|
190 |
}
|
191 |
+
|
192 |
+
if (false === apply_filters('postie_include_attachment', true, $attachment)) {
|
193 |
+
DebugEcho("save_attachments_worker: skipping filename by filter " . $attachment['filename']);
|
194 |
+
break;
|
195 |
+
}
|
196 |
} else {
|
197 |
DebugEcho('save_attachments_worker: un-named attachment');
|
198 |
}
|
1485 |
DebugEcho("PHP cURL version: " . $cv['version'], $force_display);
|
1486 |
}
|
1487 |
|
1488 |
+
DebugEcho("MySQL Version: " . $wpdb->db_version(), $force_display);
|
1489 |
|
1490 |
DebugEcho("WordPress Version: " . get_bloginfo('version'), $force_display);
|
1491 |
if (defined('MULTISITE') && MULTISITE) {
|
postie.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Postie
|
5 |
Plugin URI: http://PostiePlugin.com/
|
6 |
Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
|
7 |
-
Version: 1.9.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
@@ -28,14 +28,14 @@
|
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
-
$Id: postie.php
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
-
define('POSTIE_VERSION', '1.9.
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
4 |
Plugin Name: Postie
|
5 |
Plugin URI: http://PostiePlugin.com/
|
6 |
Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
|
7 |
+
Version: 1.9.13
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 1773602 2017-11-22 22:05:48Z WayneAllen $
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
+
define('POSTIE_VERSION', '1.9.13');
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
readme.txt
CHANGED
@@ -6,8 +6,8 @@ Plugin URI: http://PostiePlugin.com/
|
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
-
Tested up to: 4.
|
10 |
-
Stable tag: 1.9.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -43,7 +43,7 @@ More info at http://PostiePlugin.com/
|
|
43 |
|
44 |
= Developers =
|
45 |
* Several filter hooks available for custom processing of emails.
|
46 |
-
* More developer info at http://postieplugin.com/extending/
|
47 |
|
48 |
== Screenshots ==
|
49 |
|
@@ -64,144 +64,10 @@ More info at http://PostiePlugin.com/
|
|
64 |
of connection and the port number.
|
65 |
* (Postie ignores the settings under Settings->Writing->Writing-by-Email)
|
66 |
* More information can be found at http://PostiePlugin.com
|
|
|
67 |
== Usage ==
|
68 |
-
|
69 |
-
|
70 |
-
* If you put in :end - the message processing will stop once it sees that string.
|
71 |
-
|
72 |
-
= Post Status =
|
73 |
-
* Posts can have their status set to draft, publish, pending or private. This will override the Default Post Status set in the settings screen.
|
74 |
-
* status: private
|
75 |
-
* status: draft
|
76 |
-
|
77 |
-
= Post Date =
|
78 |
-
* Posts can have a specific publication date such as Apr 14, 2013. Relative dates like "tomorrow", "monday", "first day of next month" are also supported.
|
79 |
-
* date: date
|
80 |
-
* date: date time
|
81 |
-
* Posts can be delayed by adding a line with delayXdXhXm where X is a number.
|
82 |
-
* delay:1d - 1 day
|
83 |
-
* delay:1h - 1 hour
|
84 |
-
* delay:1m - 1 minute
|
85 |
-
* delay:1d2h4m - 1 day 2 hours 4m
|
86 |
-
|
87 |
-
= Comment Control =
|
88 |
-
* By putting comments:X in your message you can control if comments are allowed
|
89 |
-
* comments:0 - means closed
|
90 |
-
* comments:1 - means open
|
91 |
-
* comments:2 - means registered only
|
92 |
-
* Replying to an e-mail gets posted as a comment.
|
93 |
-
* For example, you e-mailed a post with the subject line "foo".
|
94 |
-
If you then send an e-mail with the subject line "Re: foo", it will
|
95 |
-
get posted as a comment to the "foo" post. This works by the subject
|
96 |
-
line, so if you have two posts with titles "foo", then the comment
|
97 |
-
will get placed in the more recent post.
|
98 |
-
|
99 |
-
= Post Excerpt =
|
100 |
-
* Custom excerpt
|
101 |
-
* You can include a custom excerpt of an e-mail by putting it between
|
102 |
-
:excerptstart and :excerptend
|
103 |
-
* You can include images in the excerpt by using the shortcode #eimg1#,
|
104 |
-
#eimg2# etc.
|
105 |
-
|
106 |
-
= Post type/format =
|
107 |
-
You can specify the post type or format by including it as the first part of the subject followed by 2 forward slashes (//).
|
108 |
-
E.g. aside//real subject
|
109 |
-
|
110 |
-
= Categories =
|
111 |
-
* If you put a category name in the subject with a : it will be used
|
112 |
-
as the category for the post
|
113 |
-
* If you put a category id number in the subject with a : it will
|
114 |
-
be used as the category for the post
|
115 |
-
* If you put the first part of a category name it will be posted in
|
116 |
-
the first category that the system finds that matches - so if you put
|
117 |
-
|
118 |
-
Gen: New News
|
119 |
-
|
120 |
-
The system will post that in General. Note you must turn on the "Match short category"
|
121 |
-
setting for this to work (on by default).
|
122 |
-
|
123 |
-
* All of the above also applies if you put the category in brackets []
|
124 |
-
* Using [] or you can post to multiple categories at once
|
125 |
-
|
126 |
-
Subject: [1] [Mo] [Br] My Subject
|
127 |
-
|
128 |
-
On my blog it would post to General (Id 1), Moblog, and Brewing all at one time
|
129 |
-
|
130 |
-
* Using - or you can post to multiple categories at once
|
131 |
-
|
132 |
-
Subject: -1- -Mo- -Br- My Subject
|
133 |
-
|
134 |
-
On my blog it would post to General (Id 1), Moblog, and Brewing all at one time
|
135 |
-
|
136 |
-
= Tags =
|
137 |
-
* You can add tags by adding a line in the body of the message like so:
|
138 |
-
tags: foo, bar
|
139 |
-
* You can also set a default tag to be applied if no tags are included.
|
140 |
-
|
141 |
-
= Image Handling =
|
142 |
-
* Allows you to attach images to your email and automatically post
|
143 |
-
them to your blog.
|
144 |
-
* You can publish images in the text of your message by using #img1#
|
145 |
-
#img2# - each one will be replaced with the HTML for the image
|
146 |
-
you attached
|
147 |
-
* Captions - you can also add a caption like so:
|
148 |
-
|
149 |
-
* #img1 caption='foo'#
|
150 |
-
* #img2 caption='bar'#
|
151 |
-
|
152 |
-
Or, if you use IPTC captions, this caption will be used (adding a caption
|
153 |
-
in many photo editing programs (for example Picasa), will add an IPTC caption)
|
154 |
-
|
155 |
-
Note that the images are processed in the order they are attached as of version
|
156 |
-
1.4.6.
|
157 |
-
|
158 |
-
Note you can only use the #img# feature if your "Preferred Text Type" is set to "plain"
|
159 |
-
|
160 |
-
* Image templates
|
161 |
-
Postie now uses the default wordpress image template, but you can specify a
|
162 |
-
different one if you wish.
|
163 |
-
|
164 |
-
You can also specify a custom image template. I use the following custom
|
165 |
-
template:
|
166 |
-
|
167 |
-
`<div class='imageframe alignleft'><a href='{IMAGE}'><img src="{THUMBNAIL}"
|
168 |
-
alt="{CAPTION}" title="{CAPTION}"
|
169 |
-
class="attachment" /></a><div
|
170 |
-
class='imagecaption'>{CAPTION}</div></div>`
|
171 |
-
|
172 |
-
* {CAPTION} gets replaced with the caption you specified (if any)
|
173 |
-
* {FILELINK} gets replaced with the url to the media
|
174 |
-
* {FILENAME} gets replaced with the name of the attachment from the email
|
175 |
-
* {FULL} same as {FILELINK}
|
176 |
-
* {HEIGHT} gets replaced with the height of the photo
|
177 |
-
* {ID} gets replaced with the post id
|
178 |
-
* {IMAGE} same as {FILELINK}
|
179 |
-
* {LARGEHEIGHT} gets replaced with the height of a large image
|
180 |
-
* {LARGEWIDTH} gets replaced with the width of a large image
|
181 |
-
* {LARGE} gets replaced with the url to the large-sized image
|
182 |
-
* {MEDIUMHEIGHT} gets replaced with the height of a medium image
|
183 |
-
* {MEDIUMWIDTH} gets replaced with the width of a medium image
|
184 |
-
* {MEDIUM} gets replaced with the url to the medium-sized image
|
185 |
-
* {PAGELINK} gets replaced with the URL of the file in WordPress
|
186 |
-
* {RELFILENAME} gets replaced with the relative path to the full-size image
|
187 |
-
* {THUMBHEIGHT} gets replaced with the height of a thumbnail image
|
188 |
-
* {THUMB} gets replaced with the url to the thumbnail image
|
189 |
-
* {THUMBNAIL} same as {THUMB}
|
190 |
-
* {THUMBWIDTH} gets replaced with the width of a thumbnail image
|
191 |
-
* {TITLE} same as {FILENAME}
|
192 |
-
* {URL} same as {FILELINK}
|
193 |
-
* {WIDTH} gets replaced with width of the photo
|
194 |
-
* {ICON} insert the icon for the attachment (for non-audio/image/video attachments only)
|
195 |
-
|
196 |
-
|
197 |
-
= Interoperability =
|
198 |
-
* If your mail client doesn't support setting the subject (nokia) you
|
199 |
-
can do so by putting #your subject/title here# at the beginning of your message
|
200 |
-
* POP3,POP3-SSL,IMAP,IMAP-SSL now supported - last three require
|
201 |
-
php-imap support
|
202 |
-
* The program understands enough about mime to not duplicate post
|
203 |
-
if you send an HTML and plain text message
|
204 |
-
* Automatically confirms that you are installed correctly
|
205 |
|
206 |
== Frequently Asked Questions ==
|
207 |
|
@@ -243,6 +109,9 @@ All script, style and body tags are stripped from html emails.
|
|
243 |
Attachments are now processed in the order they were attached.
|
244 |
|
245 |
== CHANGELOG ==
|
|
|
|
|
|
|
246 |
= 1.9.12 (2017-11-15) =
|
247 |
* Fix: use wp native function to detect MySQL version
|
248 |
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
+
Tested up to: 4.9
|
10 |
+
Stable tag: 1.9.13
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
43 |
|
44 |
= Developers =
|
45 |
* Several filter hooks available for custom processing of emails.
|
46 |
+
* More developer info at <a href="http://postieplugin.com/extending/">http://postieplugin.com/extending/</a>
|
47 |
|
48 |
== Screenshots ==
|
49 |
|
64 |
of connection and the port number.
|
65 |
* (Postie ignores the settings under Settings->Writing->Writing-by-Email)
|
66 |
* More information can be found at http://PostiePlugin.com
|
67 |
+
|
68 |
== Usage ==
|
69 |
+
|
70 |
+
Please visit our site at <a href="http://postieplugin.com/">http://postieplugin.com/</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
== Frequently Asked Questions ==
|
73 |
|
109 |
Attachments are now processed in the order they were attached.
|
110 |
|
111 |
== CHANGELOG ==
|
112 |
+
= 1.9.13 (2017-11-22) =
|
113 |
+
* Feature: New filter postie_include_attachment to allow/prevent attachment to be added to post. See http://postieplugin.com/filter-postie_include_attachment/
|
114 |
+
|
115 |
= 1.9.12 (2017-11-15) =
|
116 |
* Fix: use wp native function to detect MySQL version
|
117 |
|