Version Description
Added the ability to log all emails in the TO field instead of just the first one
Download this release
Release Info
Developer | sudar |
Plugin | Email Log |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- email-log.php +3 -3
- include/class-email-header-parser.php +2 -2
- languages/email-log.pot +5 -5
- readme.txt +9 -2
email-log.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Logs every email sent through WordPress
|
6 |
* Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
|
7 |
* Author: Sudar
|
8 |
-
* Version: 1.8.
|
9 |
* Author URI: http://sudarmuthu.com/
|
10 |
* Text Domain: email-log
|
11 |
* Domain Path: languages/
|
@@ -47,7 +47,7 @@ class EmailLog {
|
|
47 |
|
48 |
private $admin_screen;
|
49 |
|
50 |
-
const VERSION = '1.8.
|
51 |
const FILTER_NAME = 'wp_mail_log';
|
52 |
const PAGE_SLUG = 'email-log';
|
53 |
const DELETE_LOG_NONCE_FIELD = 'sm-delete-email-log-nonce';
|
@@ -328,7 +328,7 @@ class EmailLog {
|
|
328 |
|
329 |
// Log into the database
|
330 |
$wpdb->insert( $table_name, array(
|
331 |
-
'to_email' => is_array( $mail_info['to'] ) ? $mail_info['to']
|
332 |
'subject' => $mail_info['subject'],
|
333 |
'message' => $message,
|
334 |
'headers' => is_array( $mail_info['headers'] ) ? implode( "\n", $mail_info['headers'] ) : $mail_info['headers'],
|
5 |
* Description: Logs every email sent through WordPress
|
6 |
* Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
|
7 |
* Author: Sudar
|
8 |
+
* Version: 1.8.2
|
9 |
* Author URI: http://sudarmuthu.com/
|
10 |
* Text Domain: email-log
|
11 |
* Domain Path: languages/
|
47 |
|
48 |
private $admin_screen;
|
49 |
|
50 |
+
const VERSION = '1.8.2';
|
51 |
const FILTER_NAME = 'wp_mail_log';
|
52 |
const PAGE_SLUG = 'email-log';
|
53 |
const DELETE_LOG_NONCE_FIELD = 'sm-delete-email-log-nonce';
|
328 |
|
329 |
// Log into the database
|
330 |
$wpdb->insert( $table_name, array(
|
331 |
+
'to_email' => is_array( $mail_info['to'] ) ? implode( ',', $mail_info['to'] ) : $mail_info['to'],
|
332 |
'subject' => $mail_info['subject'],
|
333 |
'message' => $message,
|
334 |
'headers' => is_array( $mail_info['headers'] ) ? implode( "\n", $mail_info['headers'] ) : $mail_info['headers'],
|
include/class-email-header-parser.php
CHANGED
@@ -90,11 +90,11 @@ class Email_Header_Parser {
|
|
90 |
break;
|
91 |
|
92 |
case 'reply-to':
|
93 |
-
$data['
|
94 |
break;
|
95 |
|
96 |
case 'content-type':
|
97 |
-
$data['
|
98 |
break;
|
99 |
}
|
100 |
}
|
90 |
break;
|
91 |
|
92 |
case 'reply-to':
|
93 |
+
$data['reply_to'] = $value;
|
94 |
break;
|
95 |
|
96 |
case 'content-type':
|
97 |
+
$data['content_type'] = $value;
|
98 |
break;
|
99 |
}
|
100 |
}
|
languages/email-log.pot
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Email Log package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Email Log 1.8.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
@@ -16,7 +16,7 @@ msgstr ""
|
|
16 |
msgid "Buy Addons"
|
17 |
msgstr ""
|
18 |
|
19 |
-
#. #-#-#-#-# email-log.pot (Email Log 1.8.
|
20 |
#. Plugin Name of the plugin/theme
|
21 |
#: email-log.php:117
|
22 |
msgid "Email Log"
|
1 |
+
# Copyright (C) 2016 Email Log
|
2 |
# This file is distributed under the same license as the Email Log package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Email Log 1.8.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/email-log\n"
|
7 |
+
"POT-Creation-Date: 2016-04-20 11:54:31+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
16 |
msgid "Buy Addons"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#. #-#-#-#-# email-log.pot (Email Log 1.8.2) #-#-#-#-#
|
20 |
#. Plugin Name of the plugin/theme
|
21 |
#: email-log.php:117
|
22 |
msgid "Email Log"
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: sudar
|
3 |
Tags: email, log, multisite
|
4 |
Requires at least: 3.3
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.8.
|
7 |
|
8 |
Logs every email sent through WordPress. Works with WordPress Multisite as well
|
9 |
|
@@ -121,6 +121,10 @@ wpmandrill plugin has a bug that prevents this plugin from logging the content o
|
|
121 |
This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
124 |
= v1.8.1 (2015-12-27) - (Dev time: 0.5 hour) =
|
125 |
- Fix: Fixed the "Delete All Logs" issue that was introduced in v1.8
|
126 |
|
@@ -240,6 +244,9 @@ This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/
|
|
240 |
|
241 |
== Upgrade Notice ==
|
242 |
|
|
|
|
|
|
|
243 |
= 1.8.1 =
|
244 |
Fixed issue with "Delete All Logs" action that was introduced in v1.8
|
245 |
|
2 |
Contributors: sudar
|
3 |
Tags: email, log, multisite
|
4 |
Requires at least: 3.3
|
5 |
+
Tested up to: 4.5
|
6 |
+
Stable tag: 1.8.2
|
7 |
|
8 |
Logs every email sent through WordPress. Works with WordPress Multisite as well
|
9 |
|
121 |
This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= v1.8.2 (2016-04-20) - (Dev time: 1 hour) =
|
125 |
+
- Tweak: Log all emails from the TO field. Earlier the plugin was logging only the first email
|
126 |
+
- Fix: Fixed issues in parsing reply-to and content-type headers
|
127 |
+
|
128 |
= v1.8.1 (2015-12-27) - (Dev time: 0.5 hour) =
|
129 |
- Fix: Fixed the "Delete All Logs" issue that was introduced in v1.8
|
130 |
|
244 |
|
245 |
== Upgrade Notice ==
|
246 |
|
247 |
+
= 1.8.2 =
|
248 |
+
Added the ability to log all emails in the TO field instead of just the first one
|
249 |
+
|
250 |
= 1.8.1 =
|
251 |
Fixed issue with "Delete All Logs" action that was introduced in v1.8
|
252 |
|