Email Log - Version 1.1

Version Description

= 0.9.2 = Added filters for more customizing

= 1.0 = Added support for buying pro addons

Download this release

Release Info

Developer sudar
Plugin Icon 128x128 Email Log
Version 1.1
Comparing to
See all releases

Code changes from version 0.9.2 to 1.1

Files changed (4) hide show
  1. email-log.php +74 -50
  2. languages/email-log.pot +81 -67
  3. readme.txt +77 -45
  4. uninstall.php +2 -5
email-log.php CHANGED
@@ -5,9 +5,10 @@ Plugin URI: http://sudarmuthu.com/wordpress/email-log
5
  Description: Logs every email sent through WordPress. Compatible with WPMU too.
6
  Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
  Author: Sudar
8
- Version: 0.9.2
9
  Author URI: http://sudarmuthu.com/
10
  Text Domain: email-log
 
11
 
12
  === RELEASE NOTES ===
13
  2009-10-08 - v0.1 - Initial Release
@@ -35,7 +36,12 @@ Text Domain: email-log
35
  - Moved the menu under tools (Thanks samuelaguilera)
36
  2013-03-14 - v0.9.2 - (Dev time: 0.5 hour)
37
  - Added support for filters which can be used while logging emails
38
-
 
 
 
 
 
39
  */
40
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
41
 
@@ -53,30 +59,26 @@ Text Domain: email-log
53
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
54
  */
55
 
56
- global $wpdb;
57
- global $smel_table_name;
58
- $smel_table_name = $wpdb->prefix . "email_log";
59
-
60
- // TODO - Should find some way to get away with these global variables.
61
- global $smel_db_version;
62
- $smel_db_version = "0.1";
63
-
64
  class EmailLog {
65
 
66
- private $table_name ; /* Database table name */
67
- private $db_version ; /* Database version */
68
  private $admin_page;
69
  private $admin_screen;
70
 
71
  const FILTER_NAME = 'wp_mail_log';
 
 
 
 
 
72
  /**
73
  * Initalize the plugin by registering the hooks
74
  */
75
  function __construct() {
76
 
77
  global $wpdb;
78
- global $smel_table_name;
79
- global $smel_db_version;
80
 
81
  // Load localization domain
82
  $this->translations = dirname(plugin_basename(__FILE__)) . '/languages/' ;
@@ -84,6 +86,7 @@ class EmailLog {
84
 
85
  // Register hooks
86
  add_action( 'admin_menu', array(&$this, 'register_settings_page') );
 
87
 
88
  // Register Filter
89
  add_filter('wp_mail', array(&$this, 'log_email'));
@@ -92,9 +95,20 @@ class EmailLog {
92
  $plugin = plugin_basename(__FILE__);
93
  add_filter("plugin_action_links_$plugin", array(&$this, 'add_action_links'));
94
 
95
- // Initialize Variables
96
- $this->table_name = $smel_table_name;
97
- $this->db_version = $smel_db_version;
 
 
 
 
 
 
 
 
 
 
 
98
  }
99
 
100
  /**
@@ -196,7 +210,8 @@ class EmailLog {
196
  /**
197
  * Dipslay the Settings page
198
  *
199
- * Some parts of this function is based on the wp-rattings Plugin http://wordpress.org/extend/plugins/email-log/
 
200
  */
201
  function settings_page() {
202
  global $wpdb;
@@ -614,6 +629,12 @@ jQuery('document').ready(function() {
614
  </table>
615
  </div>
616
  </form>
 
 
 
 
 
 
617
  </div>
618
  <?php
619
  // Display credits in Footer
@@ -663,42 +684,45 @@ jQuery('document').ready(function() {
663
  }
664
 
665
  /**
666
- * Create database table when the Plugin is installed for the first time
667
- *
668
- * @global object $wpdb
669
- * @global string $smel_table_name Table Name
670
- * @global string $smel_db_version DB Version
671
  */
672
- function smel_on_install() {
673
-
674
- global $wpdb;
675
- global $smel_table_name;
676
- global $smel_db_version;
677
-
678
- if($wpdb->get_var("show tables like '{$smel_table_name}'") != $smel_table_name) {
679
-
680
- $sql = "CREATE TABLE " . $smel_table_name . " (
681
- id mediumint(9) NOT NULL AUTO_INCREMENT,
682
- to_email VARCHAR(100) NOT NULL,
683
- subject VARCHAR(250) NOT NULL,
684
- message TEXT NOT NULL,
685
- headers TEXT NOT NULL,
686
- attachments TEXT NOT NULL,
687
- sent_date timestamp NOT NULL,
688
- PRIMARY KEY (id)
689
- );";
690
-
691
- require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
692
- dbDelta($sql);
693
-
694
- add_option("email-log-db", $smel_db_version);
695
- }
 
 
 
 
 
 
 
 
696
  }
697
 
698
- // When installed
699
- register_activation_hook(__FILE__, 'smel_on_install');
700
 
701
  // Start this plugin once all other plugins are fully loaded
702
  add_action( 'init', 'EmailLog' ); function EmailLog() { global $EmailLog; $EmailLog = new EmailLog(); }
703
-
704
  ?>
5
  Description: Logs every email sent through WordPress. Compatible with WPMU too.
6
  Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
  Author: Sudar
8
+ Version: 1.1
9
  Author URI: http://sudarmuthu.com/
10
  Text Domain: email-log
11
+ Domain Path: languages/
12
 
13
  === RELEASE NOTES ===
14
  2009-10-08 - v0.1 - Initial Release
36
  - Moved the menu under tools (Thanks samuelaguilera)
37
  2013-03-14 - v0.9.2 - (Dev time: 0.5 hour)
38
  - Added support for filters which can be used while logging emails
39
+ 2013-04-01 - v0.9.3 - (Dev time: 0.5 hour)
40
+ - Moved table name into a separate constants file
41
+ 2013-04-17 - v1.0 - (Dev time: 0.5 hour)
42
+ - Added support for buying pro addons
43
+ 2013-04-27 - v1.1 - (Dev time: 0.5 hour)
44
+ - Added more documentation
45
  */
46
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
47
 
59
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
60
  */
61
 
62
+ /**
63
+ * The main Plugin class
64
+ */
 
 
 
 
 
65
  class EmailLog {
66
 
 
 
67
  private $admin_page;
68
  private $admin_screen;
69
 
70
  const FILTER_NAME = 'wp_mail_log';
71
+
72
+ const TABLE_NAME = 'email_log'; /* Database table name */
73
+ const DB_OPTION_NAME = 'email-log-db'; /* Database option name */
74
+ const DB_VERSION = '0.1'; /* Database version */
75
+
76
  /**
77
  * Initalize the plugin by registering the hooks
78
  */
79
  function __construct() {
80
 
81
  global $wpdb;
 
 
82
 
83
  // Load localization domain
84
  $this->translations = dirname(plugin_basename(__FILE__)) . '/languages/' ;
86
 
87
  // Register hooks
88
  add_action( 'admin_menu', array(&$this, 'register_settings_page') );
89
+ add_filter( 'plugin_row_meta', array( &$this, 'add_plugin_links' ), 10, 2 );
90
 
91
  // Register Filter
92
  add_filter('wp_mail', array(&$this, 'log_email'));
95
  $plugin = plugin_basename(__FILE__);
96
  add_filter("plugin_action_links_$plugin", array(&$this, 'add_action_links'));
97
 
98
+ $this->table_name = $wpdb->prefix . self::TABLE_NAME;
99
+ }
100
+
101
+ /**
102
+ * Adds additional links in the Plugin listing. Based on http://zourbuth.com/archives/751/creating-additional-wordpress-plugin-links-row-meta/
103
+ */
104
+ function add_plugin_links($links, $file) {
105
+ $plugin = plugin_basename(__FILE__);
106
+
107
+ if ($file == $plugin) // only for this plugin
108
+ return array_merge( $links,
109
+ array( '<a href="http://sudarmuthu.com/out/buy-email-log-forward-email-addon" target="_blank">' . __('Buy Addons', 'email-log') . '</a>' )
110
+ );
111
+ return $links;
112
  }
113
 
114
  /**
210
  /**
211
  * Dipslay the Settings page
212
  *
213
+ * Some parts of this function is based on the wp-rattings Plugin
214
+ * TODO: Rewrite this using this technique http://wp.smashingmagazine.com/2011/11/03/native-admin-tables-wordpress/
215
  */
216
  function settings_page() {
217
  global $wpdb;
629
  </table>
630
  </div>
631
  </form>
632
+ <?php
633
+ echo '<h3>', __('Pro Addon', 'email-log'), '</h3>';
634
+ echo '<p>';
635
+ _e('You can <a href = "http://sudarmuthu.com/out/buy-email-log-forward-email-addon">buy the Forward email pro addon</a>, which allows you to send a copy of all the emails send from WordPress, to another email address. The addon allows you to choose whether you want to forward through to, cc or bcc fields. This can be extremely useful when you want to debug by analyzing the emails that are sent from WordPress. The cost of the addon is $15.', 'email-log');
636
+ echo '</p>';
637
+ ?>
638
  </div>
639
  <?php
640
  // Display credits in Footer
684
  }
685
 
686
  /**
687
+ * Helper class to create and maintain tables
 
 
 
 
688
  */
689
+ class EmailLogInit {
690
+
691
+ /**
692
+ * Create database table when the Plugin is installed for the first time
693
+ *
694
+ * @global object $wpdb
695
+ * @global string $smel_table_name Table Name
696
+ */
697
+ function on_activate() {
698
+
699
+ global $wpdb;
700
+ $table_name = $wpdb->prefix . EmailLog::TABLE_NAME;
701
+
702
+ if($wpdb->get_var("show tables like '{$table_name}'") != $table_name) {
703
+
704
+ $sql = "CREATE TABLE " . $table_name . " (
705
+ id mediumint(9) NOT NULL AUTO_INCREMENT,
706
+ to_email VARCHAR(100) NOT NULL,
707
+ subject VARCHAR(250) NOT NULL,
708
+ message TEXT NOT NULL,
709
+ headers TEXT NOT NULL,
710
+ attachments TEXT NOT NULL,
711
+ sent_date timestamp NOT NULL,
712
+ PRIMARY KEY (id)
713
+ );";
714
+
715
+ require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
716
+ dbDelta($sql);
717
+
718
+ add_option(EmailLog::DB_OPTION_NAME, EmailLog::DB_VERSION);
719
+ }
720
+ }
721
  }
722
 
723
+ // When the Plugin installed
724
+ register_activation_hook(__FILE__, array('EmailLogInit', 'on_activate'));
725
 
726
  // Start this plugin once all other plugins are fully loaded
727
  add_action( 'init', 'EmailLog' ); function EmailLog() { global $EmailLog; $EmailLog = new EmailLog(); }
 
728
  ?>
languages/email-log.pot CHANGED
@@ -1,258 +1,272 @@
1
- # Copyright (C) 2012 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 0.8.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/email-log\n"
7
- "POT-Creation-Date: 2012-07-23 16:21: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: 2012-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #. #-#-#-#-# plugin.pot (Email Log 0.8.1) #-#-#-#-#
 
 
 
 
16
  #. Plugin Name of the plugin/theme
17
- #: email-log.php:96
18
  msgid "Email Log"
19
  msgstr ""
20
 
21
- #: email-log.php:117
22
  msgid "About Plugin"
23
  msgstr ""
24
 
25
- #: email-log.php:119
26
  msgid ""
27
  "Email Log WordPress Plugin, allows you to log all emails that are sent "
28
  "through WordPress."
29
  msgstr ""
30
 
31
- #: email-log.php:126
32
  msgid "More information"
33
  msgstr ""
34
 
35
- #: email-log.php:127
36
  msgid "Plugin Homepage/support"
37
  msgstr ""
38
 
39
- #: email-log.php:128
40
  msgid "Plugin author's blog"
41
  msgstr ""
42
 
43
- #: email-log.php:129
44
  msgid "Other Plugin's by Author"
45
  msgstr ""
46
 
47
- #: email-log.php:136
48
  msgid "Entries per page"
49
  msgstr ""
50
 
51
- #: email-log.php:174
52
- msgid "Settings"
53
  msgstr ""
54
 
55
- #: email-log.php:184
56
  msgid "plugin"
57
  msgstr ""
58
 
59
- #: email-log.php:184
60
  msgid "Version"
61
  msgstr ""
62
 
63
- #: email-log.php:184
64
  msgid "by"
65
  msgstr ""
66
 
67
- #: email-log.php:214 email-log.php:579 email-log.php:602
68
  msgid "Delete Logs"
69
  msgstr ""
70
 
71
- #: email-log.php:223
72
  msgid "The selected Email Logs have been deleted."
73
  msgstr ""
74
 
75
- #: email-log.php:225
76
  msgid "An error has occurred while deleting the selected Email logs"
77
  msgstr ""
78
 
79
- #: email-log.php:234
80
  msgid "All Email Logs for email id \"%s\" have been deleted."
81
  msgstr ""
82
 
83
- #: email-log.php:236
84
  msgid ""
85
  "An error has occurred while deleting all Email Logs for email id \"%s\"."
86
  msgstr ""
87
 
88
- #: email-log.php:244
89
  msgid "All Email Logs with subject \"%s\" have been deleted."
90
  msgstr ""
91
 
92
- #: email-log.php:246
93
  msgid ""
94
  "An error has occurred while deleting all Email Logs with subject \"%s\"."
95
  msgstr ""
96
 
97
- #: email-log.php:254
98
  msgid "All Email Logs were deleted."
99
  msgstr ""
100
 
101
- #: email-log.php:256
102
  msgid "An error has occurred while deleting all Email Logs"
103
  msgstr ""
104
 
105
- #: email-log.php:286 email-log.php:394 email-log.php:476 email-log.php:513
106
  msgid "ID"
107
  msgstr ""
108
 
109
- #: email-log.php:290 email-log.php:395 email-log.php:595
110
  msgid "To Email"
111
  msgstr ""
112
 
113
- #: email-log.php:294 email-log.php:396 email-log.php:479 email-log.php:516
114
- #: email-log.php:597
115
  msgid "Subject"
116
  msgstr ""
117
 
118
- #: email-log.php:299 email-log.php:397
119
  msgid "Date"
120
  msgstr ""
121
 
122
- #: email-log.php:306 email-log.php:401
123
  msgid "Ascending"
124
  msgstr ""
125
 
126
- #: email-log.php:311 email-log.php:402
127
  msgid "Descending"
128
  msgstr ""
129
 
130
- #: email-log.php:372
131
- msgid "Email Log Settings"
132
- msgstr ""
133
-
134
- #: email-log.php:380
135
  msgid "Filter Options:"
136
  msgstr ""
137
 
138
- #: email-log.php:382
139
  msgid "ID:"
140
  msgstr ""
141
 
142
- #: email-log.php:384
143
  msgid "To Email:"
144
  msgstr ""
145
 
146
- #: email-log.php:386
147
  msgid "Subject:"
148
  msgstr ""
149
 
150
- #: email-log.php:391
151
  msgid "Sort Options:"
152
  msgstr ""
153
 
154
- #: email-log.php:407
155
  msgid "Filter"
156
  msgstr ""
157
 
158
- #: email-log.php:412
159
  msgid ""
160
  "Displaying <strong>%s</strong> to <strong>%s</strong> of <strong>%s</strong> "
161
  "Email log entries."
162
  msgstr ""
163
 
164
- #: email-log.php:413
165
  msgid "Sorted by <strong>%s</strong> in <strong>%s</strong> order."
166
  msgstr ""
167
 
168
- #: email-log.php:425 email-log.php:528
169
  msgid "Previous Page"
170
  msgstr ""
171
 
172
- #: email-log.php:432 email-log.php:535
173
  msgid "Pages (%s): "
174
  msgstr ""
175
 
176
- #: email-log.php:435 email-log.php:538
177
  msgid "Go to First Page"
178
  msgstr ""
179
 
180
- #: email-log.php:435 email-log.php:538
181
  msgid "First"
182
  msgstr ""
183
 
184
- #: email-log.php:438 email-log.php:450 email-log.php:541 email-log.php:553
185
  msgid "Go to Page"
186
  msgstr ""
187
 
188
- #: email-log.php:445 email-log.php:548
189
  msgid "Page"
190
  msgstr ""
191
 
192
- #: email-log.php:453 email-log.php:556
193
  msgid "Go to Last Page"
194
  msgstr ""
195
 
196
- #: email-log.php:453 email-log.php:556
197
  msgid "Last"
198
  msgstr ""
199
 
200
- #: email-log.php:460 email-log.php:563
201
  msgid "Next Page"
202
  msgstr ""
203
 
204
- #: email-log.php:477 email-log.php:514
205
  msgid "Date / Time"
206
  msgstr ""
207
 
208
- #: email-log.php:478 email-log.php:515
209
  msgid "To"
210
  msgstr ""
211
 
212
- #: email-log.php:493
213
  msgid "%s @ %s"
214
  msgstr ""
215
 
216
- #: email-log.php:506
217
  msgid "No Email Logs were found"
218
  msgstr ""
219
 
220
- #: email-log.php:583
221
  msgid "Delete Type : "
222
  msgstr ""
223
 
224
- #: email-log.php:586
225
  msgid "Selected entries"
226
  msgstr ""
227
 
228
- #: email-log.php:587
229
  msgid "Based on"
230
  msgstr ""
231
 
232
- #: email-log.php:588
233
  msgid "All Logs"
234
  msgstr ""
235
 
236
- #: email-log.php:593
237
  msgid "Condition:"
238
  msgstr ""
239
 
240
- #: email-log.php:596
241
  msgid "or"
242
  msgstr ""
243
 
244
- #: email-log.php:602
245
  msgid ""
246
  "You Are About To Delete Email Logs.\\nThis Action Is Not Reversible.\\n\\n "
247
  "Choose \\'Cancel\\' to stop, \\'OK\\' to delete."
248
  msgstr ""
249
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
  #. Plugin URI of the plugin/theme
251
  msgid "http://sudarmuthu.com/wordpress/email-log"
252
  msgstr ""
253
 
254
  #. Description of the plugin/theme
255
- msgid "Logs every email sent through WordPress. Compatiable with WPMU too."
256
  msgstr ""
257
 
258
  #. Author of the plugin/theme
1
+ # Copyright (C) 2013 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.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/email-log\n"
7
+ "POT-Creation-Date: 2013-04-27 11:49:08+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: 2013-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: email-log.php:109
16
+ msgid "Buy Addons"
17
+ msgstr ""
18
+
19
+ #. #-#-#-#-# email-log.pot (Email Log 1.1) #-#-#-#-#
20
  #. Plugin Name of the plugin/theme
21
+ #: email-log.php:119 email-log.php:396
22
  msgid "Email Log"
23
  msgstr ""
24
 
25
+ #: email-log.php:140
26
  msgid "About Plugin"
27
  msgstr ""
28
 
29
+ #: email-log.php:142
30
  msgid ""
31
  "Email Log WordPress Plugin, allows you to log all emails that are sent "
32
  "through WordPress."
33
  msgstr ""
34
 
35
+ #: email-log.php:149
36
  msgid "More information"
37
  msgstr ""
38
 
39
+ #: email-log.php:150
40
  msgid "Plugin Homepage/support"
41
  msgstr ""
42
 
43
+ #: email-log.php:151
44
  msgid "Plugin author's blog"
45
  msgstr ""
46
 
47
+ #: email-log.php:152
48
  msgid "Other Plugin's by Author"
49
  msgstr ""
50
 
51
+ #: email-log.php:159
52
  msgid "Entries per page"
53
  msgstr ""
54
 
55
+ #: email-log.php:197
56
+ msgid "Log"
57
  msgstr ""
58
 
59
+ #: email-log.php:207
60
  msgid "plugin"
61
  msgstr ""
62
 
63
+ #: email-log.php:207
64
  msgid "Version"
65
  msgstr ""
66
 
67
+ #: email-log.php:207
68
  msgid "by"
69
  msgstr ""
70
 
71
+ #: email-log.php:238 email-log.php:603 email-log.php:626
72
  msgid "Delete Logs"
73
  msgstr ""
74
 
75
+ #: email-log.php:247
76
  msgid "The selected Email Logs have been deleted."
77
  msgstr ""
78
 
79
+ #: email-log.php:249
80
  msgid "An error has occurred while deleting the selected Email logs"
81
  msgstr ""
82
 
83
+ #: email-log.php:258
84
  msgid "All Email Logs for email id \"%s\" have been deleted."
85
  msgstr ""
86
 
87
+ #: email-log.php:260
88
  msgid ""
89
  "An error has occurred while deleting all Email Logs for email id \"%s\"."
90
  msgstr ""
91
 
92
+ #: email-log.php:268
93
  msgid "All Email Logs with subject \"%s\" have been deleted."
94
  msgstr ""
95
 
96
+ #: email-log.php:270
97
  msgid ""
98
  "An error has occurred while deleting all Email Logs with subject \"%s\"."
99
  msgstr ""
100
 
101
+ #: email-log.php:278
102
  msgid "All Email Logs were deleted."
103
  msgstr ""
104
 
105
+ #: email-log.php:280
106
  msgid "An error has occurred while deleting all Email Logs"
107
  msgstr ""
108
 
109
+ #: email-log.php:310 email-log.php:418 email-log.php:500 email-log.php:537
110
  msgid "ID"
111
  msgstr ""
112
 
113
+ #: email-log.php:314 email-log.php:419 email-log.php:619
114
  msgid "To Email"
115
  msgstr ""
116
 
117
+ #: email-log.php:318 email-log.php:420 email-log.php:503 email-log.php:540
118
+ #: email-log.php:621
119
  msgid "Subject"
120
  msgstr ""
121
 
122
+ #: email-log.php:323 email-log.php:421
123
  msgid "Date"
124
  msgstr ""
125
 
126
+ #: email-log.php:330 email-log.php:425
127
  msgid "Ascending"
128
  msgstr ""
129
 
130
+ #: email-log.php:335 email-log.php:426
131
  msgid "Descending"
132
  msgstr ""
133
 
134
+ #: email-log.php:404
 
 
 
 
135
  msgid "Filter Options:"
136
  msgstr ""
137
 
138
+ #: email-log.php:406
139
  msgid "ID:"
140
  msgstr ""
141
 
142
+ #: email-log.php:408
143
  msgid "To Email:"
144
  msgstr ""
145
 
146
+ #: email-log.php:410
147
  msgid "Subject:"
148
  msgstr ""
149
 
150
+ #: email-log.php:415
151
  msgid "Sort Options:"
152
  msgstr ""
153
 
154
+ #: email-log.php:431
155
  msgid "Filter"
156
  msgstr ""
157
 
158
+ #: email-log.php:436
159
  msgid ""
160
  "Displaying <strong>%s</strong> to <strong>%s</strong> of <strong>%s</strong> "
161
  "Email log entries."
162
  msgstr ""
163
 
164
+ #: email-log.php:437
165
  msgid "Sorted by <strong>%s</strong> in <strong>%s</strong> order."
166
  msgstr ""
167
 
168
+ #: email-log.php:449 email-log.php:552
169
  msgid "Previous Page"
170
  msgstr ""
171
 
172
+ #: email-log.php:456 email-log.php:559
173
  msgid "Pages (%s): "
174
  msgstr ""
175
 
176
+ #: email-log.php:459 email-log.php:562
177
  msgid "Go to First Page"
178
  msgstr ""
179
 
180
+ #: email-log.php:459 email-log.php:562
181
  msgid "First"
182
  msgstr ""
183
 
184
+ #: email-log.php:462 email-log.php:474 email-log.php:565 email-log.php:577
185
  msgid "Go to Page"
186
  msgstr ""
187
 
188
+ #: email-log.php:469 email-log.php:572
189
  msgid "Page"
190
  msgstr ""
191
 
192
+ #: email-log.php:477 email-log.php:580
193
  msgid "Go to Last Page"
194
  msgstr ""
195
 
196
+ #: email-log.php:477 email-log.php:580
197
  msgid "Last"
198
  msgstr ""
199
 
200
+ #: email-log.php:484 email-log.php:587
201
  msgid "Next Page"
202
  msgstr ""
203
 
204
+ #: email-log.php:501 email-log.php:538
205
  msgid "Date / Time"
206
  msgstr ""
207
 
208
+ #: email-log.php:502 email-log.php:539
209
  msgid "To"
210
  msgstr ""
211
 
212
+ #: email-log.php:517
213
  msgid "%s @ %s"
214
  msgstr ""
215
 
216
+ #: email-log.php:530
217
  msgid "No Email Logs were found"
218
  msgstr ""
219
 
220
+ #: email-log.php:607
221
  msgid "Delete Type : "
222
  msgstr ""
223
 
224
+ #: email-log.php:610
225
  msgid "Selected entries"
226
  msgstr ""
227
 
228
+ #: email-log.php:611
229
  msgid "Based on"
230
  msgstr ""
231
 
232
+ #: email-log.php:612
233
  msgid "All Logs"
234
  msgstr ""
235
 
236
+ #: email-log.php:617
237
  msgid "Condition:"
238
  msgstr ""
239
 
240
+ #: email-log.php:620
241
  msgid "or"
242
  msgstr ""
243
 
244
+ #: email-log.php:626
245
  msgid ""
246
  "You Are About To Delete Email Logs.\\nThis Action Is Not Reversible.\\n\\n "
247
  "Choose \\'Cancel\\' to stop, \\'OK\\' to delete."
248
  msgstr ""
249
 
250
+ #: email-log.php:633
251
+ msgid "Pro Addon"
252
+ msgstr ""
253
+
254
+ #: email-log.php:635
255
+ msgid ""
256
+ "You can <a href = \"http://sudarmuthu.com/out/buy-email-log-forward-email-"
257
+ "addon\">buy the Forward email pro addon</a>, which allows you to send a copy "
258
+ "of all the emails send from WordPress, to another email address. The addon "
259
+ "allows you to choose whether you want to forward through to, cc or bcc "
260
+ "fields. This can be extremely useful when you want to debug by analyzing the "
261
+ "emails that are sent from WordPress. The cost of the addon is $15."
262
+ msgstr ""
263
+
264
  #. Plugin URI of the plugin/theme
265
  msgid "http://sudarmuthu.com/wordpress/email-log"
266
  msgstr ""
267
 
268
  #. Description of the plugin/theme
269
+ msgid "Logs every email sent through WordPress. Compatible with WPMU too."
270
  msgstr ""
271
 
272
  #. Author of the plugin/theme
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Email Log ===
2
- Contributors: sudar
3
- Tags: email, wpmu, wordpress-mu, log
4
- Requires at least: 2.8
5
- Tested up to: 3.5.1
6
- Stable tag: 0.9.2
7
 
8
  Logs every email sent through WordPress. Compatible with WPMU too.
9
 
@@ -11,63 +11,87 @@ Logs every email sent through WordPress. Compatible with WPMU too.
11
 
12
  Logs every email sent through WordPress. Compatible with WPMU too.
13
 
14
- #### Viewing logged emails
15
 
16
- The logged emails will be stored in a separate table and can be viewed from the admin interface. While viewing the logs, the emails can be filtered or sorted based on the date, to address, subject etc.
17
 
18
- **Deleting logged emails**
19
 
20
- In the admin interface, all the logged emails can be delete in bulk or can also be selectively deleted based on date, to address, subject.
21
 
22
- **Cleaning up db on uninstall**
23
 
24
- As [recommended by Ozh][1], the Plugin has uninstall hook which will clean up the database when the Plugin is uninstalled.
25
 
26
- [1]: http://sudarmuthu.com/blog/2009/10/07/lessons-from-wordpress-plugin-competition.html
27
 
28
- ### Translation
29
 
30
- * German (Thanks Frank)
31
- * Lithuanian (Thanks Vincent G , from [http://www.host1free.com][6])
32
- * Dutch (Thanks Zjan Preijde)
33
 
34
- The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.
35
 
36
- ### Development and Support
37
  The development of the Plugin happens over at [github](http://github.com/sudar/email-log). If you want to contribute to the Plugin, [fork the project at github](http://github.com/sudar/email-log) and send me a pull request.
38
 
39
  If you are not familiar with either git or Github then refer to this [guide to see how fork and send pull request](http://sudarmuthu.com/blog/contributing-to-project-hosted-in-github).
40
 
41
- Support for the Plugin is available from the [Plugin's home page][1]. If you have any questions or suggestions, do leave a comment there or contact me in [twitter][2].
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  ### Stay updated
44
 
45
  I would be posting updates about this Plugin in my [blog][3] and in [Twitter][2]. If you want to be informed when new version of this Plugin is released, then you can either subscribe to this [blog's RSS feed][4] or [follow me in Twitter][2].
46
 
47
- ### Links
48
-
49
- * [Plugin home page][1]
50
- * [Author's Blog][3]
51
- * [Other Plugins by the author][5]
52
 
53
  [1]: http://sudarmuthu.com/wordpress/email-log
54
  [2]: http://twitter.com/sudarmuthu
55
  [3]: http://sudarmuthu.com/blog
56
  [4]: http://sudarmuthu.com/feed
57
  [5]: http://sudarmuthu.com/wordpress
 
 
 
 
 
 
 
 
 
 
 
 
58
  [6]: http://www.host1free.com
59
 
60
  == Installation ==
61
 
62
- #### Normal WordPress installations
63
 
64
  Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
65
 
66
- #### WordPress MU installations
67
 
68
  Extract the zip file and drop the contents in the wp-content/plugins/ directory or mu-plugins directory of your WordPress MU installation and then activate the Plugin from the main blog's Plugins page.
69
 
70
  == Screenshots ==
 
71
  1. The following screenshot shows how the logged emails will be displayed
72
 
73
  2. This screenshot shows how the email logs could be filtered or sorted.
@@ -76,57 +100,65 @@ Extract the zip file and drop the contents in the wp-content/plugins/ directory
76
 
77
  == Changelog ==
78
 
79
- ###v0.1 (2009-10-08)
80
-
81
  * Initial Release
82
 
83
- ###v0.2 (2009-10-15)
84
-
85
  * Added compatibility for MySQL 4
86
 
87
- ###v0.3 (2009-10-19)
88
-
89
  * Added compatibility for MySQL 4 (Thanks Frank)
90
 
91
- ###v0.4 (2010-01-02)
92
-
93
  * Added German translation (Thanks Frank)
94
 
95
- ###v0.5 (2012-01-01)
96
-
97
  * Fixed a deprecation notice
98
 
99
- ###v0.6 (2012-04-29) (Dev time: 2 hours)
100
  * Added option to delete individual email logs
101
  * Moved pages per screen option to Screen options panel
102
  * Added information to the screen help tab
103
  * Added Lithuanian translations
104
 
105
- ###v0.7 (2012-06-23) (Dev time: 1 hour)
106
  * Changed Timestamp(n) MySQL datatype to Timestamp (now compatible with MySQL 5.5+)
107
  * Added the ability to bulk delete checkboxes
108
 
109
- ###v0.8 (2012-07-12) (Dev time: 1 hour)
110
  * Fixed undefined notices - http://wordpress.org/support/topic/plugin-email-log-notices-undefined-indices
111
  * Added Dutch translations
112
 
113
- ###v0.8.1 (2012-07-23) (Dev time: 0.5 hour)
114
  * Reworded most error messages and fixed lot of typos
115
 
116
- ### v0.9(2013-01-08) - (Dev time: 1 hour)
117
  * Use blog date/time for send date instead of server time
118
  * Handle cases where the headers send is an array
119
 
120
- ### v0.9.1 (2013-01-08) - (Dev time: 0.5 hour)
121
  * Moved the menu under tools (Thanks samuelaguilera)
122
 
123
- ### v0.9.2 (2013-03-14) - (Dev time: 0.5 hour)
124
  * Added support for filters which can be used while logging emails
125
 
 
 
 
 
 
 
 
 
 
126
  == Upgrade Notice ==
127
 
128
- = 0.9.2 = Added filters for more customizing
 
 
 
 
129
 
130
- == Readme Generator ==
131
 
132
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
1
  === Email Log ===
2
+ Contributors: sudar
3
+ Tags: email, wpmu, wordpress-mu, log
4
+ Requires at least: 2.8
5
+ Tested up to: 3.5.1
6
+ Stable tag: 1.1
7
 
8
  Logs every email sent through WordPress. Compatible with WPMU too.
9
 
11
 
12
  Logs every email sent through WordPress. Compatible with WPMU too.
13
 
14
+ ### Viewing logged emails
15
 
16
+ The logged emails will be stored in a separate table and can be viewed from the admin interface. While viewing the logs, the emails can be filtered or sorted based on the date, email, subject etc.
17
 
18
+ ### Deleting logged emails
19
 
20
+ In the admin interface, all the logged emails can be delete in bulk or can also be selectively deleted based on date, email and subject.
21
 
22
+ ### Forward email (Pro addon)
23
 
24
+ You can [buy the Forward email pro addon](http://sudarmuthu.com/out/buy-email-log-forward-email-addon), which allows you to send a copy of all the emails send from WordPress, to another email address. The addon allows you to choose whether you want to forward through to, cc or bcc fields. This can be extremely useful when you want to debug by analyzing the emails that are sent from WordPress. The cost of the addon is $15.
25
 
26
+ ### Cleaning up db on uninstall
27
 
28
+ As [recommended by Ozh][1], the Plugin has an uninstall hook which will clean up the database when the Plugin is uninstalled.
29
 
30
+ [1]: http://sudarmuthu.com/blog/2009/10/07/lessons-from-wordpress-plugin-competition.html
 
 
31
 
32
+ ### Development
33
 
 
34
  The development of the Plugin happens over at [github](http://github.com/sudar/email-log). If you want to contribute to the Plugin, [fork the project at github](http://github.com/sudar/email-log) and send me a pull request.
35
 
36
  If you are not familiar with either git or Github then refer to this [guide to see how fork and send pull request](http://sudarmuthu.com/blog/contributing-to-project-hosted-in-github).
37
 
38
+ If you are looking for ideas, then you can start with one of the following TODO items :)
39
+
40
+ ### TODO for Future releases
41
+
42
+ The following are the features that I am thinking of adding to the Plugin, when I get some free time. If you have any feature request or want to increase the priority of a particular feature, then let me know.
43
+
44
+ - Revamp the Admin UI, by following [this technique](http://wp.smashingmagazine.com/2011/11/03/native-admin-tables-wordpress/)
45
+ - Add option to automatically delete the logs periodically
46
+ - Make it MU compatible
47
+ - Add the ability to view the entire email
48
+ - Add the ability to resend the emails
49
+
50
+ ### Support
51
+
52
+ - If you have found a bug/issue or have a feature request, then post them in [github issues](https://github.com/sudar/email-log/issues)
53
+ - If you have a question about usage or need help to troubleshoot, then post in WordPress forums or leave a comment in [Plugins's home page][1]
54
+ - If you like the Plugin, then kindly leave a review/feedback at [WordPress repo page][7].
55
+ - If you find this Plugin useful or and wanted to say thank you, then there are ways to [make me happy](http://sudarmuthu.com/if-you-wanna-thank-me) :) and I would really appreciate if you can do one of those.
56
+ - If anything else, then contact me in [twitter][2].
57
 
58
  ### Stay updated
59
 
60
  I would be posting updates about this Plugin in my [blog][3] and in [Twitter][2]. If you want to be informed when new version of this Plugin is released, then you can either subscribe to this [blog's RSS feed][4] or [follow me in Twitter][2].
61
 
62
+ You can also checkout some of the [other Plugins that I have released][5].
 
 
 
 
63
 
64
  [1]: http://sudarmuthu.com/wordpress/email-log
65
  [2]: http://twitter.com/sudarmuthu
66
  [3]: http://sudarmuthu.com/blog
67
  [4]: http://sudarmuthu.com/feed
68
  [5]: http://sudarmuthu.com/wordpress
69
+ [7]: http://wordpress.org/extend/plugins/email-log
70
+
71
+ == Translation ==
72
+
73
+ The Plugin currently has translations for the following languages.
74
+
75
+ * German (Thanks Frank)
76
+ * Lithuanian (Thanks Vincent G , from [http://www.host1free.com][6])
77
+ * Dutch (Thanks Zjan Preijde)
78
+
79
+ The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.
80
+
81
  [6]: http://www.host1free.com
82
 
83
  == Installation ==
84
 
85
+ ### Normal WordPress installations
86
 
87
  Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
88
 
89
+ ### WordPress MU installations
90
 
91
  Extract the zip file and drop the contents in the wp-content/plugins/ directory or mu-plugins directory of your WordPress MU installation and then activate the Plugin from the main blog's Plugins page.
92
 
93
  == Screenshots ==
94
+
95
  1. The following screenshot shows how the logged emails will be displayed
96
 
97
  2. This screenshot shows how the email logs could be filtered or sorted.
100
 
101
  == Changelog ==
102
 
103
+ = v0.1 (2009-10-08) =
 
104
  * Initial Release
105
 
106
+ = v0.2 (2009-10-15) =
 
107
  * Added compatibility for MySQL 4
108
 
109
+ = v0.3 (2009-10-19) =
 
110
  * Added compatibility for MySQL 4 (Thanks Frank)
111
 
112
+ = v0.4 (2010-01-02) =
 
113
  * Added German translation (Thanks Frank)
114
 
115
+ = v0.5 (2012-01-01) =
 
116
  * Fixed a deprecation notice
117
 
118
+ = v0.6 (2012-04-29) (Dev time: 2 hours) =
119
  * Added option to delete individual email logs
120
  * Moved pages per screen option to Screen options panel
121
  * Added information to the screen help tab
122
  * Added Lithuanian translations
123
 
124
+ = v0.7 (2012-06-23) (Dev time: 1 hour) =
125
  * Changed Timestamp(n) MySQL datatype to Timestamp (now compatible with MySQL 5.5+)
126
  * Added the ability to bulk delete checkboxes
127
 
128
+ = v0.8 (2012-07-12) (Dev time: 1 hour) =
129
  * Fixed undefined notices - http://wordpress.org/support/topic/plugin-email-log-notices-undefined-indices
130
  * Added Dutch translations
131
 
132
+ = v0.8.1 (2012-07-23) (Dev time: 0.5 hour) =
133
  * Reworded most error messages and fixed lot of typos
134
 
135
+ = v0.9(2013-01-08) - (Dev time: 1 hour) =
136
  * Use blog date/time for send date instead of server time
137
  * Handle cases where the headers send is an array
138
 
139
+ = v0.9.1 (2013-01-08) - (Dev time: 0.5 hour) =
140
  * Moved the menu under tools (Thanks samuelaguilera)
141
 
142
+ = v0.9.2 (2013-03-14) - (Dev time: 0.5 hour) =
143
  * Added support for filters which can be used while logging emails
144
 
145
+ = v0.9.3 (2013-04-01) - (Dev time: 0.5 hour) =
146
+ * Moved table name into a separate constants file
147
+
148
+ = v1.0 (2013-04-17) - (Dev time: 0.5 hour) =
149
+ * Added support for buying pro addons
150
+
151
+ = v1.1 (2013-04-27) - (Dev time: 0.5 hour) =
152
+ * Added more documentation
153
+
154
  == Upgrade Notice ==
155
 
156
+ = 0.9.2 =
157
+ Added filters for more customizing
158
+
159
+ = 1.0 =
160
+ Added support for buying pro addons
161
 
162
+ == Readme Generator ==
163
 
164
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
uninstall.php CHANGED
@@ -6,8 +6,7 @@ if( !defined( 'ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') )
6
  exit();
7
 
8
  global $wpdb;
9
- global $smel_table_name;
10
- $smel_table_name = $wpdb->prefix . "email_log";
11
 
12
  if($wpdb->get_var("show tables like '{$smel_table_name}'") == $smel_table_name) {
13
  // If table is present, drop it
@@ -17,6 +16,4 @@ if($wpdb->get_var("show tables like '{$smel_table_name}'") == $smel_table_name)
17
 
18
  // Delete the option
19
  delete_option('email-log-db');
20
-
21
- //Sorry to see you go :(
22
- ?>
6
  exit();
7
 
8
  global $wpdb;
9
+ $smel_table_name = $wpdb->prefix . "email_log"; // This is hardcoded on purpose
 
10
 
11
  if($wpdb->get_var("show tables like '{$smel_table_name}'") == $smel_table_name) {
12
  // If table is present, drop it
16
 
17
  // Delete the option
18
  delete_option('email-log-db');
19
+ ?>