Version Description
(2017-10-13) = * Feature: change post status to pending/draft if the user doesn't have publish_posts capability * Fix: process postie_email_notify_recipients filter regardless of the "Send post confirmation email to" setting * Fix: process postie_email_reject_recipients filter regardless of the "Send post confirmation email to" setting
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.9.5 |
Comparing to | |
See all releases |
Code changes from version 1.9.4 to 1.9.5
- config_form_attachments.php +1 -1
- config_form_message.php +5 -4
- config_form_user.php +1 -1
- docs/Changes.txt +5 -0
- docs/Postie.txt +4 -3
- languages/postie-da_DK.mo +0 -0
- languages/postie-da_DK.po +409 -0
- postie-tags.php +15 -5
- postie.class.php +14 -22
- postie.php +3 -3
- readme.txt +9 -3
config_form_attachments.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<div id="simpleTabs-content-6" class="simpleTabs-content">
|
2 |
<table class='form-table'>
|
3 |
<?php echo PostieAdmin::textarea_html(__("Supported MIME Types", 'postie'), "postie-settings[supported_file_types]", $supported_file_types, __("Add just the type (not the subtype). Text, Video, Audio, Image and Multipart are always supported. Put each type on a single line", 'postie')); ?>
|
4 |
-
<?php echo PostieAdmin::textarea_html(__("Banned File Names", 'postie'), "postie-settings[banned_files_list]", $banned_files_list, __("Put each file name on a single line.Files matching this list will never be posted to your blog. You can use wildcards such as *.xls, or *.* for all files", 'postie')); ?>
|
5 |
|
6 |
<tr>
|
7 |
<th scope='row'><?php _e('Attachment icon set', 'postie') ?></th>
|
1 |
<div id="simpleTabs-content-6" class="simpleTabs-content">
|
2 |
<table class='form-table'>
|
3 |
<?php echo PostieAdmin::textarea_html(__("Supported MIME Types", 'postie'), "postie-settings[supported_file_types]", $supported_file_types, __("Add just the type (not the subtype). Text, Video, Audio, Image and Multipart are always supported. Put each type on a single line", 'postie')); ?>
|
4 |
+
<?php echo PostieAdmin::textarea_html(__("Banned File Names", 'postie'), "postie-settings[banned_files_list]", $banned_files_list, __("Put each file name on a single line. Files matching this list will never be posted to your blog. You can use wildcards such as *.xls, or *.* for all files", 'postie')); ?>
|
5 |
|
6 |
<tr>
|
7 |
<th scope='row'><?php _e('Attachment icon set', 'postie') ?></th>
|
config_form_message.php
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
echo PostieAdmin::boolean_select_html(__("Use colon to match category", 'postie'), "postie-settings[category_colon]", $category_colon);
|
28 |
echo PostieAdmin::boolean_select_html(__("Use dash to match category", 'postie'), "postie-settings[category_dash]", $category_dash);
|
29 |
echo PostieAdmin::boolean_select_html(__("Use square bracket to match category", 'postie'), "postie-settings[category_bracket]", $category_bracket, __('See the following article for more information <a href="http://postieplugin.com/faq/override-post-categories/" target="_blank">http://postieplugin.com/faq/override-post-categories/</a>', 'postie'));
|
30 |
-
echo PostieAdmin::boolean_select_html(__("Remove matched categories", 'postie'), "postie-settings[category_remove]", $category_remove,__('Typically you want any categories specified on the subject line removed from the post title.'));
|
31 |
?>
|
32 |
|
33 |
<tr valign="top">
|
@@ -36,7 +36,7 @@
|
|
36 |
</th>
|
37 |
<td>
|
38 |
<input type='text' name='postie-settings[default_post_tags]' id='postie-settings-default_post_tags' value='<?php echo esc_attr($default_post_tags) ?>' />
|
39 |
-
<p class='description'><?php _e('separated by commas', 'postie') ?></p>
|
40 |
</td>
|
41 |
</tr>
|
42 |
|
@@ -107,6 +107,7 @@
|
|
107 |
<th scope="row"><?php _e('Default Title', 'postie') ?> </th>
|
108 |
<td>
|
109 |
<input name='postie-settings[default_title]' type="text" id='postie-settings-default_title' value="<?php echo esc_attr($default_title); ?>" size="50" /><br />
|
|
|
110 |
</td>
|
111 |
</tr>
|
112 |
|
@@ -121,14 +122,14 @@
|
|
121 |
<th scope="row"><?php _e('Text for Message Start', 'postie') ?> </th>
|
122 |
<td>
|
123 |
<input name='postie-settings[message_start]' type="text" id='postie-settings-message_start' value="<?php echo esc_attr($message_start); ?>" size="50" /><br />
|
124 |
-
<p class='description'><?php _e('Remove all text from the beginning of the message up to the point where this is found. Note this works best with "Plain" messages.', 'postie') ?></p>
|
125 |
</td>
|
126 |
</tr>
|
127 |
<tr>
|
128 |
<th scope="row"><?php _e('Text for Message End', 'postie') ?> </th>
|
129 |
<td>
|
130 |
<input name='postie-settings[message_end]' type="text" id='postie-settings-message_end' value="<?php echo esc_attr($message_end); ?>" size="50" /><br />
|
131 |
-
<p class='description'><?php _e('Remove all text from the point this is found to the end of the message. Note this works best with "Plain" messages.', 'postie') ?></p>
|
132 |
</td>
|
133 |
</tr>
|
134 |
|
27 |
echo PostieAdmin::boolean_select_html(__("Use colon to match category", 'postie'), "postie-settings[category_colon]", $category_colon);
|
28 |
echo PostieAdmin::boolean_select_html(__("Use dash to match category", 'postie'), "postie-settings[category_dash]", $category_dash);
|
29 |
echo PostieAdmin::boolean_select_html(__("Use square bracket to match category", 'postie'), "postie-settings[category_bracket]", $category_bracket, __('See the following article for more information <a href="http://postieplugin.com/faq/override-post-categories/" target="_blank">http://postieplugin.com/faq/override-post-categories/</a>', 'postie'));
|
30 |
+
echo PostieAdmin::boolean_select_html(__("Remove matched categories", 'postie'), "postie-settings[category_remove]", $category_remove, __('Typically you want any categories specified on the subject line removed from the post title.'));
|
31 |
?>
|
32 |
|
33 |
<tr valign="top">
|
36 |
</th>
|
37 |
<td>
|
38 |
<input type='text' name='postie-settings[default_post_tags]' id='postie-settings-default_post_tags' value='<?php echo esc_attr($default_post_tags) ?>' />
|
39 |
+
<p class='description'><?php _e('(optional) separated by commas', 'postie') ?></p>
|
40 |
</td>
|
41 |
</tr>
|
42 |
|
107 |
<th scope="row"><?php _e('Default Title', 'postie') ?> </th>
|
108 |
<td>
|
109 |
<input name='postie-settings[default_title]' type="text" id='postie-settings-default_title' value="<?php echo esc_attr($default_title); ?>" size="50" /><br />
|
110 |
+
<p class='description'><?php _e('(optional) only used if no subject is supplied by the email (rare)', 'postie') ?></p>
|
111 |
</td>
|
112 |
</tr>
|
113 |
|
122 |
<th scope="row"><?php _e('Text for Message Start', 'postie') ?> </th>
|
123 |
<td>
|
124 |
<input name='postie-settings[message_start]' type="text" id='postie-settings-message_start' value="<?php echo esc_attr($message_start); ?>" size="50" /><br />
|
125 |
+
<p class='description'><?php _e('(optional) Remove all text from the beginning of the message up to the point where this is found. Note this works best with "Plain" messages.', 'postie') ?></p>
|
126 |
</td>
|
127 |
</tr>
|
128 |
<tr>
|
129 |
<th scope="row"><?php _e('Text for Message End', 'postie') ?> </th>
|
130 |
<td>
|
131 |
<input name='postie-settings[message_end]' type="text" id='postie-settings-message_end' value="<?php echo esc_attr($message_end); ?>" size="50" /><br />
|
132 |
+
<p class='description'><?php _e('(optional) Remove all text from the point this is found to the end of the message. Note this works best with "Plain" messages.', 'postie') ?></p>
|
133 |
</td>
|
134 |
</tr>
|
135 |
|
config_form_user.php
CHANGED
@@ -37,7 +37,7 @@
|
|
37 |
</td>
|
38 |
</tr>
|
39 |
|
40 |
-
<?php echo PostieAdmin::textarea_html(__("Authorized Addresses", 'postie'), "postie-settings[authorized_addresses]", $authorized_addresses, __("Put each email address on a single line. Posts from emails in this list will be treated as if they came from the admin. If you would prefer to have users post under their own name - create a WordPress user with the correct access level.", 'postie')); ?>
|
41 |
<tr>
|
42 |
<th scope="row"><?php _e('Default Poster', 'postie') ?></th>
|
43 |
<td>
|
37 |
</td>
|
38 |
</tr>
|
39 |
|
40 |
+
<?php echo PostieAdmin::textarea_html(__("Authorized Addresses", 'postie'), "postie-settings[authorized_addresses]", $authorized_addresses, __("(optional) Put each email address on a single line. Posts from emails in this list will be treated as if they came from the admin. If you would prefer to have users post under their own name - create a WordPress user with the correct access level.", 'postie')); ?>
|
41 |
<tr>
|
42 |
<th scope="row"><?php _e('Default Poster', 'postie') ?></th>
|
43 |
<td>
|
docs/Changes.txt
CHANGED
@@ -35,6 +35,11 @@ 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.4 (2017.08.10) =
|
39 |
* Fix: Incorrectly looking for links in html head style blocks
|
40 |
|
35 |
Attachments are now processed in the order they were attached.
|
36 |
|
37 |
== CHANGELOG ==
|
38 |
+
= 1.9.5 (2017-10-13) =
|
39 |
+
* Feature: change post status to pending/draft if the user doesn't have publish_posts capability
|
40 |
+
* Fix: process postie_email_notify_recipients filter regardless of the "Send post confirmation email to" setting
|
41 |
+
* Fix: process postie_email_reject_recipients filter regardless of the "Send post confirmation email to" setting
|
42 |
+
|
43 |
= 1.9.4 (2017.08.10) =
|
44 |
* Fix: Incorrectly looking for links in html head style blocks
|
45 |
|
docs/Postie.txt
CHANGED
@@ -4,9 +4,10 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Author URI: http://allens-home.com/
|
5 |
Plugin URI: http://PostiePlugin.com/
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
-
Requires
|
8 |
-
|
9 |
-
|
|
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
4 |
Author URI: http://allens-home.com/
|
5 |
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.8.1
|
10 |
+
Stable tag: 1.9.5
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
languages/postie-da_DK.mo
ADDED
Binary file
|
languages/postie-da_DK.po
ADDED
@@ -0,0 +1,409 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Postie Translation File
|
2 |
+
# Copyright (C) 2005 Dirk Elmendorf <headgeek@economysizegeek.com>
|
3 |
+
# This file is distributed under the same license as Postie.
|
4 |
+
# Dirk Elmendorf <headgeek@economysizegeek.com>, 2005
|
5 |
+
#
|
6 |
+
msgid ""
|
7 |
+
msgstr ""
|
8 |
+
"Project-Id-Version: Postie\n"
|
9 |
+
"Report-Msgid-Bugs-To: \n"
|
10 |
+
"POT-Creation-Date: 2005-11-10 11:48-0600\n"
|
11 |
+
"PO-Revision-Date: 2017-09-05 01:56+0200\n"
|
12 |
+
"Last-Translator: Claus Svalekjaer <claus@svalekjaer.dk>\n"
|
13 |
+
"Language-Team: Claus Svalekjaer <claus@svalekjaer.dk>\n"
|
14 |
+
"MIME-Version: 1.0\n"
|
15 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
16 |
+
"Content-Transfer-Encoding: 8bit\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"Language: da_DK\n"
|
19 |
+
"X-Generator: Poedit 2.0.3\n"
|
20 |
+
|
21 |
+
#: config_form.php:18
|
22 |
+
msgid "Postie Options"
|
23 |
+
msgstr "Postie indstillinger"
|
24 |
+
|
25 |
+
#: config_form.php:18
|
26 |
+
msgid "Reset Configs To Default"
|
27 |
+
msgstr "Nulstil konfigs til standard"
|
28 |
+
|
29 |
+
#: config_form.php:2
|
30 |
+
msgid ""
|
31 |
+
"If you would like to start over - you can click the button on the right to "
|
32 |
+
"reset all configurations to the default."
|
33 |
+
msgstr ""
|
34 |
+
"Hvis du vil starte forfra - kan du klikke på knappen til højre og nulstille "
|
35 |
+
"alle konfigurations indstillinger til standard."
|
36 |
+
|
37 |
+
#: config_form.php:30
|
38 |
+
msgid "To run the check mail script manually"
|
39 |
+
msgstr "Til at tjekke mail script manuelt"
|
40 |
+
|
41 |
+
#: config_form.php:32
|
42 |
+
msgid "Run Postie"
|
43 |
+
msgstr "Kør Postie"
|
44 |
+
|
45 |
+
#: config_form.php:39
|
46 |
+
msgid ""
|
47 |
+
"If you have problems with Postie this will run a special script to test your "
|
48 |
+
"configuraiton options"
|
49 |
+
msgstr ""
|
50 |
+
"Hvis der er problemer med Postie, vil dette køre et specielt script til at "
|
51 |
+
"teste din konfig indstillinger"
|
52 |
+
|
53 |
+
#: config_form.php:41
|
54 |
+
msgid "Test Config"
|
55 |
+
msgstr "Test konfig"
|
56 |
+
|
57 |
+
msgid "Yes"
|
58 |
+
msgstr "Ja"
|
59 |
+
|
60 |
+
msgid "No"
|
61 |
+
msgstr "Nej"
|
62 |
+
|
63 |
+
#: config_form.php
|
64 |
+
msgid "Authorization Settings"
|
65 |
+
msgstr "Autorisations indstillinger"
|
66 |
+
|
67 |
+
#: config_form.php
|
68 |
+
msgid "Allow Anyone To Post Via Email"
|
69 |
+
msgstr "Tillad alle at poste via mail"
|
70 |
+
|
71 |
+
#: config_form.php
|
72 |
+
msgid ""
|
73 |
+
"Changing this to yes is NOT RECOMMEDED - anything that gets sent in will "
|
74 |
+
"automatically be posted. This could make it easier to compromise your server "
|
75 |
+
"- YOU HAVE BEEN WARNED."
|
76 |
+
msgstr ""
|
77 |
+
"Det er IKKE ANBEFALET at ændre denne til JA - alt som sendes vil automatisk "
|
78 |
+
"blive posted. Det kan gøre det nemmere at hacke din server - DU ER ADVARET."
|
79 |
+
|
80 |
+
#: config_form.php
|
81 |
+
msgid "Minimum Access Level Required To Post:"
|
82 |
+
msgstr "Minimum adgangs niveau krævet for at poste:"
|
83 |
+
|
84 |
+
#: config_form.php
|
85 |
+
msgid ""
|
86 |
+
"This allows you to grant access to other users to post if they have the "
|
87 |
+
"proper access level"
|
88 |
+
msgstr ""
|
89 |
+
"Dette tillader at give andre brugere lov til at poste, hvis de har de "
|
90 |
+
"nødvendige tilladelser"
|
91 |
+
|
92 |
+
#: config_form.php
|
93 |
+
msgid "Authorized Addresses"
|
94 |
+
msgstr "Tilladte adresser"
|
95 |
+
|
96 |
+
#: config_form.php
|
97 |
+
msgid ""
|
98 |
+
"Put each email address on a single line. Posts from emails in this list will "
|
99 |
+
"be treated as if they came from the admin. If you would prefer to have users "
|
100 |
+
"post under their own name - create a WordPress user with the correct access "
|
101 |
+
"level."
|
102 |
+
msgstr ""
|
103 |
+
"Sæt hver enkelt email på en linie. Poster fra emails i listen vil blive "
|
104 |
+
"behandlet som om de kom fra en admin. Hvis du vil have at brugere skal poste "
|
105 |
+
"i deres eget navn - så opret en WordPress bruger med de nødvendige "
|
106 |
+
"tilladelser."
|
107 |
+
|
108 |
+
#: config_form.php
|
109 |
+
msgid "Directory Settings"
|
110 |
+
msgstr "Mappe indstillinger"
|
111 |
+
|
112 |
+
#: config_form.php
|
113 |
+
msgid "Directory For Photos:"
|
114 |
+
msgstr "Mapper til billeder:"
|
115 |
+
|
116 |
+
#: config_form.php
|
117 |
+
msgid "Recommended"
|
118 |
+
msgstr "Anbefalet"
|
119 |
+
|
120 |
+
#: config_form.php
|
121 |
+
msgid "Directory For Files:"
|
122 |
+
msgstr "Mappe til filer:"
|
123 |
+
|
124 |
+
#: config_form.php
|
125 |
+
msgid "Message Settings"
|
126 |
+
msgstr "Besked indstillinger"
|
127 |
+
|
128 |
+
#: config_form.php
|
129 |
+
msgid "Default post by mail category:"
|
130 |
+
msgstr "Standard post i mail kategori:"
|
131 |
+
|
132 |
+
#: config_form.php
|
133 |
+
msgid "Default Title:"
|
134 |
+
msgstr "Standard titel:"
|
135 |
+
|
136 |
+
#: config_form.php
|
137 |
+
msgid "Live from the field"
|
138 |
+
msgstr "Direkte fra marken"
|
139 |
+
|
140 |
+
#: config_form.php
|
141 |
+
msgid "Prefered Text Type (HTML/plain):"
|
142 |
+
msgstr "Foretrukken tekst type (HTML/plain):"
|
143 |
+
|
144 |
+
#: config_form.php
|
145 |
+
msgid "plain"
|
146 |
+
msgstr "plain"
|
147 |
+
|
148 |
+
#: config_form.php
|
149 |
+
msgid "html"
|
150 |
+
msgstr "html"
|
151 |
+
|
152 |
+
#: config_form.php
|
153 |
+
msgid "Forward Rejected Mail"
|
154 |
+
msgstr "Videresend afvist mail"
|
155 |
+
|
156 |
+
#: config_form.php
|
157 |
+
msgid "Allow Subject In Mail"
|
158 |
+
msgstr "Tillad overskrift i mail"
|
159 |
+
|
160 |
+
#: config_form.php
|
161 |
+
msgid "Allow HTML In Mail Subject"
|
162 |
+
msgstr "Tillad HTML i mailoverskrift"
|
163 |
+
|
164 |
+
#: config_form.php
|
165 |
+
msgid "Allow HTML In Mail Body"
|
166 |
+
msgstr "Tillad HTML i mailbrødtaksten"
|
167 |
+
|
168 |
+
#: config_form.php
|
169 |
+
msgid "Encoding for pages and feeds:"
|
170 |
+
msgstr "Afkodning af sider og feeds:"
|
171 |
+
|
172 |
+
#: config_form.php
|
173 |
+
msgid "UTF-8"
|
174 |
+
msgstr "UTF-8"
|
175 |
+
|
176 |
+
#: config_form.php
|
177 |
+
msgid "it should handle ISO-8859-1 as well"
|
178 |
+
msgstr "det burde også håndtere ISO-8859-1"
|
179 |
+
|
180 |
+
#: config_form.php
|
181 |
+
msgid "Decode Quoted Printable Data"
|
182 |
+
msgstr "Decode Quoted Printable Data"
|
183 |
+
|
184 |
+
#: config_form.php
|
185 |
+
msgid "Should be yes in most cases."
|
186 |
+
msgstr "Bør være Ja i det fleste tilfælde."
|
187 |
+
|
188 |
+
#: config_form.php
|
189 |
+
msgid "Supported File Types"
|
190 |
+
msgstr "Understøttede fil typer"
|
191 |
+
|
192 |
+
#: config_form.php
|
193 |
+
msgid "Put each type on a single line."
|
194 |
+
msgstr "Sæt hver enkelt type på en linie."
|
195 |
+
|
196 |
+
#: config_form.php
|
197 |
+
msgid "Banned File Names"
|
198 |
+
msgstr "Bannede fil navne"
|
199 |
+
|
200 |
+
#: config_form.php
|
201 |
+
msgid ""
|
202 |
+
"Put each file name on a single line.Files matching this list will never be "
|
203 |
+
"posted to your blog."
|
204 |
+
msgstr ""
|
205 |
+
"Sæt et filnavn på hver linie. Filer der matcher denne liste aldrig blive "
|
206 |
+
"postet i din blog."
|
207 |
+
|
208 |
+
#: config_form.php
|
209 |
+
msgid "Drop The Signature From Mail"
|
210 |
+
msgstr "Smid signatur fra mailen væk"
|
211 |
+
|
212 |
+
#: config_form.php
|
213 |
+
msgid "Signature Patterns"
|
214 |
+
msgstr "Signatur mønster"
|
215 |
+
|
216 |
+
#: config_form.php
|
217 |
+
msgid ""
|
218 |
+
"Put each pattern on a seperate line and make sure to escape any special "
|
219 |
+
"characters."
|
220 |
+
msgstr "Sæt hvert mønster på en linie og sikre at alle special tegner escaped."
|
221 |
+
|
222 |
+
#: config_form.php
|
223 |
+
msgid "Image Settings"
|
224 |
+
msgstr "Billede indstillinger"
|
225 |
+
|
226 |
+
#: config_form.php
|
227 |
+
msgid "No GD Support"
|
228 |
+
msgstr "Ingen GD understøttelse"
|
229 |
+
|
230 |
+
#: config_form.php
|
231 |
+
msgid ""
|
232 |
+
"Currently your installation of PHP does not have GD installed so no image "
|
233 |
+
"resizing can occur."
|
234 |
+
msgstr ""
|
235 |
+
"Pt. har din PHP-installation ingen GD installeret, så der kan ikke resizes "
|
236 |
+
"billeder."
|
237 |
+
|
238 |
+
#: config_form.php
|
239 |
+
msgid "Post Images At End"
|
240 |
+
msgstr "Post billeder i slutning"
|
241 |
+
|
242 |
+
#: config_form.php
|
243 |
+
msgid "No means they will be put before the text of the message."
|
244 |
+
msgstr "No means they will be put before the text of the message."
|
245 |
+
|
246 |
+
#: config_form.php
|
247 |
+
msgid "Resize Large Images"
|
248 |
+
msgstr "Resize store billeder"
|
249 |
+
|
250 |
+
#: config_form.php
|
251 |
+
msgid "Maximum Image Width:"
|
252 |
+
msgstr "Maksimum billede bredde:"
|
253 |
+
|
254 |
+
#: config_form.php
|
255 |
+
msgid "pixels"
|
256 |
+
msgstr "pixels"
|
257 |
+
|
258 |
+
#: config_form.php
|
259 |
+
msgid "JPEG Compression:"
|
260 |
+
msgstr "JPEG kompression:"
|
261 |
+
|
262 |
+
#: config_form.php
|
263 |
+
msgid "%"
|
264 |
+
msgstr "%"
|
265 |
+
|
266 |
+
#: config_form.php
|
267 |
+
msgid "Use ImageMagick"
|
268 |
+
msgstr "Benyt ImageMagick"
|
269 |
+
|
270 |
+
#: config_form.php
|
271 |
+
msgid "convert binary location:"
|
272 |
+
msgstr "konverter binær lokation:"
|
273 |
+
|
274 |
+
#: config_form.php
|
275 |
+
msgid "only needed if you are using ImageMagick"
|
276 |
+
msgstr "skal kun bruges når ImageMagick anvendes"
|
277 |
+
|
278 |
+
#: config_form.php
|
279 |
+
msgid "should be /usr/bin/convert"
|
280 |
+
msgstr "bør være /usr/bin/convert"
|
281 |
+
|
282 |
+
#: config_form.php
|
283 |
+
msgid "identify binary location:"
|
284 |
+
msgstr "identify binary location:"
|
285 |
+
|
286 |
+
#: config_form.php
|
287 |
+
msgid "should be /usr/bin/identify"
|
288 |
+
msgstr "bør være /usr/bin/identify"
|
289 |
+
|
290 |
+
#: config_form.php
|
291 |
+
msgid "Start Image Count At 0"
|
292 |
+
msgstr "Start billede tælning med 0"
|
293 |
+
|
294 |
+
#: config_form.php
|
295 |
+
msgid "Image Place Holder Tag:"
|
296 |
+
msgstr "Billede holder tag:"
|
297 |
+
|
298 |
+
#: config_form.php
|
299 |
+
msgid "Image CSS Class:"
|
300 |
+
msgstr "Billede CSS Class:"
|
301 |
+
|
302 |
+
#: config_form.php
|
303 |
+
msgid "Image CSS Style:"
|
304 |
+
msgstr "Billede CSS Style:"
|
305 |
+
|
306 |
+
#: config_form.php
|
307 |
+
msgid "3GP"
|
308 |
+
msgstr "3GP"
|
309 |
+
|
310 |
+
#: config_form.php
|
311 |
+
msgid "Embed 3GP videos as QuickTime"
|
312 |
+
msgstr "Embed 3GP videoer som QuickTime"
|
313 |
+
|
314 |
+
#: config_form.php
|
315 |
+
msgid ""
|
316 |
+
"This controls if the video is just a link or embeded in the page using "
|
317 |
+
"QuickTime"
|
318 |
+
msgstr ""
|
319 |
+
"Dette kontrollerer om videoen kun er et link eller embeded på siden vha. "
|
320 |
+
"QuickTime"
|
321 |
+
|
322 |
+
#: config_form.php
|
323 |
+
msgid "Location of ffmpeg:"
|
324 |
+
msgstr "Ffmpeg lokation:"
|
325 |
+
|
326 |
+
#: config_form.php
|
327 |
+
msgid ""
|
328 |
+
"only needed if you are on a Linux server and use 3gp video,and don't embed "
|
329 |
+
"the video. This allows postie to make thumbnail of the very first frame"
|
330 |
+
msgstr ""
|
331 |
+
"skal kun bruges hvis du er på en Linux server og anvender 3gp videoer og "
|
332 |
+
"ikke embedder videoen. Gør at Postie kan lave et thumbnail af allerførste "
|
333 |
+
"frame"
|
334 |
+
|
335 |
+
#: config_form.php
|
336 |
+
msgid "should be /usr/bin/ffmpeg"
|
337 |
+
msgstr "burde være /usr/bin/ffmpeg"
|
338 |
+
|
339 |
+
#: config_form.php
|
340 |
+
msgid "3GP CSS Class:"
|
341 |
+
msgstr "3GP CSS Class:"
|
342 |
+
|
343 |
+
#: config_form.php
|
344 |
+
msgid "Mailserver Settings"
|
345 |
+
msgstr "Mailserver indstillinger"
|
346 |
+
|
347 |
+
#: config_form.php
|
348 |
+
msgid "Mail Protocol:"
|
349 |
+
msgstr "Mail protokol:"
|
350 |
+
|
351 |
+
#: config_form.php
|
352 |
+
msgid "IMAP/IMAP-SSL/POP3-SSL unavailable"
|
353 |
+
msgstr "IMAP/IMAP-SSL/POP3-SSL unavailable"
|
354 |
+
|
355 |
+
#: config_form.php
|
356 |
+
msgid "Standard Ports:"
|
357 |
+
msgstr "Standard Porte:"
|
358 |
+
|
359 |
+
#: config_form.php
|
360 |
+
msgid "POP3"
|
361 |
+
msgstr "POP3"
|
362 |
+
|
363 |
+
#: config_form.php
|
364 |
+
msgid "IMAP"
|
365 |
+
msgstr "IMAP"
|
366 |
+
|
367 |
+
#: config_form.php
|
368 |
+
msgid "IMAP-SSL"
|
369 |
+
msgstr "IMAP-SSL"
|
370 |
+
|
371 |
+
#: config_form.php
|
372 |
+
msgid "POP3-SSL"
|
373 |
+
msgstr "POP3-SSL"
|
374 |
+
|
375 |
+
#: config_form.php
|
376 |
+
msgid "Postie Time Correction:"
|
377 |
+
msgstr "Postie tidskorrektion:"
|
378 |
+
|
379 |
+
#: config_form.php
|
380 |
+
msgid "hours"
|
381 |
+
msgstr "timer"
|
382 |
+
|
383 |
+
#: config_form.php
|
384 |
+
msgid ""
|
385 |
+
"Should be the same as your normal offset - but this lets you adjust it in "
|
386 |
+
"cases where that doesn't work."
|
387 |
+
msgstr ""
|
388 |
+
"Bør være det samme som din normale offset - men lader dig justere i tilfælde "
|
389 |
+
"det ikke virker."
|
390 |
+
|
391 |
+
#: config_form.php
|
392 |
+
msgid "Mail Server:"
|
393 |
+
msgstr "Mail Server:"
|
394 |
+
|
395 |
+
#: config_form.php
|
396 |
+
msgid "Port:"
|
397 |
+
msgstr "Port:"
|
398 |
+
|
399 |
+
#: config_form.php
|
400 |
+
msgid "Mail Userid:"
|
401 |
+
msgstr "Mail brugernavn:"
|
402 |
+
|
403 |
+
#: config_form.php
|
404 |
+
msgid "Mail Password:"
|
405 |
+
msgstr "Mail adgangskode:"
|
406 |
+
|
407 |
+
#: config_form.php
|
408 |
+
msgid "Update Options"
|
409 |
+
msgstr "Opdater indstillinger"
|
postie-tags.php
CHANGED
@@ -106,8 +106,9 @@ function tag_AllowCommentsOnPost(&$content) {
|
|
106 |
return $comments_allowed;
|
107 |
}
|
108 |
|
109 |
-
function tag_Status(&$content, $
|
110 |
-
|
|
|
111 |
|
112 |
foreach (postie_content_lines($content) as $lines) {
|
113 |
$matches = array();
|
@@ -119,6 +120,15 @@ function tag_Status(&$content, $currentstatus) {
|
|
119 |
break;
|
120 |
}
|
121 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
return $poststatus;
|
123 |
}
|
124 |
|
@@ -399,12 +409,12 @@ function tag_Date(&$content, $message_date) {
|
|
399 |
DebugEcho("tag_Date: found date tag $matches[1]");
|
400 |
$newdate = strtotime($possibledate);
|
401 |
if (false !== $newdate) {
|
402 |
-
$t = date(
|
403 |
DebugEcho("tag_Date: original time: $t");
|
404 |
|
405 |
-
$format =
|
406 |
if ($t != '00:00:00') {
|
407 |
-
$format .=
|
408 |
}
|
409 |
$message_date = date($format, $newdate);
|
410 |
$content = str_replace($matches[0], '', $content);
|
106 |
return $comments_allowed;
|
107 |
}
|
108 |
|
109 |
+
function tag_Status(&$content, $config) {
|
110 |
+
|
111 |
+
$poststatus = $config['post_status'];
|
112 |
|
113 |
foreach (postie_content_lines($content) as $lines) {
|
114 |
$matches = array();
|
120 |
break;
|
121 |
}
|
122 |
}
|
123 |
+
if ($config['force_user_login']) {
|
124 |
+
if (stristr('publish|future', $poststatus)) {
|
125 |
+
if (!current_user_can('publish_posts')) {
|
126 |
+
DebugEcho("tag_Status: user doesn't have publish_posts capability");
|
127 |
+
$poststatus = 'pending';
|
128 |
+
}
|
129 |
+
}
|
130 |
+
}
|
131 |
+
|
132 |
return $poststatus;
|
133 |
}
|
134 |
|
409 |
DebugEcho("tag_Date: found date tag $matches[1]");
|
410 |
$newdate = strtotime($possibledate);
|
411 |
if (false !== $newdate) {
|
412 |
+
$t = date('H:i:s', $newdate);
|
413 |
DebugEcho("tag_Date: original time: $t");
|
414 |
|
415 |
+
$format = 'Y-m-d';
|
416 |
if ($t != '00:00:00') {
|
417 |
+
$format .= ' H:i:s';
|
418 |
}
|
419 |
$message_date = date($format, $newdate);
|
420 |
$content = str_replace($matches[0], '', $content);
|
postie.class.php
CHANGED
@@ -703,7 +703,7 @@ class Postie {
|
|
703 |
DebugEcho("post tag_AllowCommentsOnPost: $content");
|
704 |
}
|
705 |
|
706 |
-
$post_status = tag_Status($content, $config
|
707 |
if ($fulldebug) {
|
708 |
DebugEcho("post tag_Status: $content");
|
709 |
}
|
@@ -1132,10 +1132,6 @@ class Postie {
|
|
1132 |
function email_notify($email, $recipients, $postid) {
|
1133 |
DebugEcho("email_notify: start");
|
1134 |
|
1135 |
-
if (count($recipients) == 0) {
|
1136 |
-
DebugEcho("email_notify: no recipients");
|
1137 |
-
return;
|
1138 |
-
}
|
1139 |
if (empty($postid)) {
|
1140 |
DebugEcho("email_notify: no post id");
|
1141 |
return;
|
@@ -1210,17 +1206,18 @@ class Postie {
|
|
1210 |
} else {
|
1211 |
$postid = $this->save_post($details, $is_reply);
|
1212 |
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
}
|
1221 |
}
|
1222 |
-
$this->email_notify($mimeDecodedEmail, $recipients, $postid);
|
1223 |
}
|
|
|
|
|
|
|
1224 |
if ($this->is_debugmode()) {
|
1225 |
$post = get_post($post_id);
|
1226 |
DebugEcho("PostEmail: resulting post");
|
@@ -1297,12 +1294,7 @@ class Postie {
|
|
1297 |
function email_reject($email, $recipients, $returnToSender) {
|
1298 |
DebugEcho("email_reject: start");
|
1299 |
|
1300 |
-
|
1301 |
-
DebugEcho("email_reject: no recipients");
|
1302 |
-
return;
|
1303 |
-
}
|
1304 |
-
|
1305 |
-
$blogname = get_option("blogname");
|
1306 |
$from = $email['headers']['from']['mailbox'] . '@' . $email['headers']['from']['host'];
|
1307 |
|
1308 |
$subject = $email['headers']['subject'];
|
@@ -1312,7 +1304,7 @@ class Postie {
|
|
1312 |
}
|
1313 |
|
1314 |
$eblogname = $this->header_encode($blogname);
|
1315 |
-
$adminemail = get_option(
|
1316 |
|
1317 |
$headers = array();
|
1318 |
$headers[] = "From: $eblogname <$adminemail>";
|
@@ -1445,7 +1437,7 @@ class Postie {
|
|
1445 |
if (!$poster) {
|
1446 |
EchoError('Invalid sender: ' . htmlentities($from) . "! Not adding email!");
|
1447 |
if ($config['forward_rejected_mail']) {
|
1448 |
-
$this->email_reject($mimeDecodedEmail, array(get_option(
|
1449 |
EchoError("A copy of the message has been forwarded to the administrator.");
|
1450 |
}
|
1451 |
return '';
|
703 |
DebugEcho("post tag_AllowCommentsOnPost: $content");
|
704 |
}
|
705 |
|
706 |
+
$post_status = tag_Status($content, $config);
|
707 |
if ($fulldebug) {
|
708 |
DebugEcho("post tag_Status: $content");
|
709 |
}
|
1132 |
function email_notify($email, $recipients, $postid) {
|
1133 |
DebugEcho("email_notify: start");
|
1134 |
|
|
|
|
|
|
|
|
|
1135 |
if (empty($postid)) {
|
1136 |
DebugEcho("email_notify: no post id");
|
1137 |
return;
|
1206 |
} else {
|
1207 |
$postid = $this->save_post($details, $is_reply);
|
1208 |
|
1209 |
+
$recipients = array();
|
1210 |
+
if ($config['confirmation_email'] == 'sender' || $config['confirmation_email'] == 'both') {
|
1211 |
+
$recipients[] = $details['email_author'];
|
1212 |
+
}
|
1213 |
+
if ($config['confirmation_email'] == 'admin' || $config['confirmation_email'] == 'both') {
|
1214 |
+
foreach (get_users(array('role' => 'administrator', 'blog_id' => get_current_blog_id())) as $user) {
|
1215 |
+
$recipients[] = $user->user_email;
|
|
|
1216 |
}
|
|
|
1217 |
}
|
1218 |
+
|
1219 |
+
$this->email_notify($mimeDecodedEmail, $recipients, $postid);
|
1220 |
+
|
1221 |
if ($this->is_debugmode()) {
|
1222 |
$post = get_post($post_id);
|
1223 |
DebugEcho("PostEmail: resulting post");
|
1294 |
function email_reject($email, $recipients, $returnToSender) {
|
1295 |
DebugEcho("email_reject: start");
|
1296 |
|
1297 |
+
$blogname = get_option('blogname');
|
|
|
|
|
|
|
|
|
|
|
1298 |
$from = $email['headers']['from']['mailbox'] . '@' . $email['headers']['from']['host'];
|
1299 |
|
1300 |
$subject = $email['headers']['subject'];
|
1304 |
}
|
1305 |
|
1306 |
$eblogname = $this->header_encode($blogname);
|
1307 |
+
$adminemail = get_option('admin_email');
|
1308 |
|
1309 |
$headers = array();
|
1310 |
$headers[] = "From: $eblogname <$adminemail>";
|
1437 |
if (!$poster) {
|
1438 |
EchoError('Invalid sender: ' . htmlentities($from) . "! Not adding email!");
|
1439 |
if ($config['forward_rejected_mail']) {
|
1440 |
+
$this->email_reject($mimeDecodedEmail, array(get_option('admin_email')), $config['return_to_sender']);
|
1441 |
EchoError("A copy of the message has been forwarded to the administrator.");
|
1442 |
}
|
1443 |
return '';
|
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.5
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 1746299 2017-10-13 22:41:34Z WayneAllen $
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
+
define('POSTIE_VERSION', '1.9.5');
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
readme.txt
CHANGED
@@ -4,9 +4,10 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Author URI: http://allens-home.com/
|
5 |
Plugin URI: http://PostiePlugin.com/
|
6 |
Tags: e-mail, email, post-by-email
|
7 |
-
Requires
|
8 |
-
|
9 |
-
|
|
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -242,6 +243,11 @@ All script, style and body tags are stripped from html emails.
|
|
242 |
Attachments are now processed in the order they were attached.
|
243 |
|
244 |
== CHANGELOG ==
|
|
|
|
|
|
|
|
|
|
|
245 |
= 1.9.4 (2017.08.10) =
|
246 |
* Fix: Incorrectly looking for links in html head style blocks
|
247 |
|
4 |
Author URI: http://allens-home.com/
|
5 |
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.8.1
|
10 |
+
Stable tag: 1.9.5
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
243 |
Attachments are now processed in the order they were attached.
|
244 |
|
245 |
== CHANGELOG ==
|
246 |
+
= 1.9.5 (2017-10-13) =
|
247 |
+
* Feature: change post status to pending/draft if the user doesn't have publish_posts capability
|
248 |
+
* Fix: process postie_email_notify_recipients filter regardless of the "Send post confirmation email to" setting
|
249 |
+
* Fix: process postie_email_reject_recipients filter regardless of the "Send post confirmation email to" setting
|
250 |
+
|
251 |
= 1.9.4 (2017.08.10) =
|
252 |
* Fix: Incorrectly looking for links in html head style blocks
|
253 |
|