Email Log - Version 0.3

Version Description

Download this release

Release Info

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

Code changes from version 0.2 to 0.3

Files changed (2) hide show
  1. email-log.php +7 -4
  2. readme.txt +16 -2
email-log.php CHANGED
@@ -4,13 +4,14 @@ Plugin Name: Email Log
4
  Plugin URI: http://sudarmuthu.com/wordpress/email-log
5
  Description: Logs every email sent through WordPress. Compatiable with WPMU too.
6
  Author: Sudar
7
- Version: 0.2
8
  Author URI: http://sudarmuthu.com/
9
  Text Domain: email-log
10
 
11
  === RELEASE NOTES ===
12
  2009-10-08 – v0.1 – Initial Release
13
  2009-10-15 – v0.2 – Added compatability for MySQL 4
 
14
  */
15
 
16
  global $wpdb;
@@ -508,13 +509,15 @@ class EmailLog {
508
 
509
  global $wpdb;
510
 
 
 
511
  // Log into the database
512
  $wpdb->insert($this->table_name, array(
513
  'to_email' => $mail_info['to'],
514
  'subject' => $mail_info['subject'],
515
  'message' => $mail_info['message'],
516
  'headers' => $mail_info['headers'],
517
- 'attachments' => $mail_info['attachments']
518
  ));
519
 
520
  // return unmodifiyed array
@@ -549,8 +552,8 @@ function smel_on_install() {
549
  message TEXT NOT NULL,
550
  headers TEXT NOT NULL,
551
  attachments TEXT NOT NULL,
552
- sent_date timestamp default CURRENT_TIMESTAMP,
553
- UNIQUE KEY id (id)
554
  );";
555
 
556
  require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
4
  Plugin URI: http://sudarmuthu.com/wordpress/email-log
5
  Description: Logs every email sent through WordPress. Compatiable with WPMU too.
6
  Author: Sudar
7
+ Version: 0.3
8
  Author URI: http://sudarmuthu.com/
9
  Text Domain: email-log
10
 
11
  === RELEASE NOTES ===
12
  2009-10-08 – v0.1 – Initial Release
13
  2009-10-15 – v0.2 – Added compatability for MySQL 4
14
+ 2009-10-19 – v0.3 – Added compatability for MySQL 4 (Thanks Frank)
15
  */
16
 
17
  global $wpdb;
509
 
510
  global $wpdb;
511
 
512
+ $attachment_present = (count ($mail_info['attachments']) > 0) ? "true" : "false";
513
+
514
  // Log into the database
515
  $wpdb->insert($this->table_name, array(
516
  'to_email' => $mail_info['to'],
517
  'subject' => $mail_info['subject'],
518
  'message' => $mail_info['message'],
519
  'headers' => $mail_info['headers'],
520
+ 'attachments' => $attachment_present
521
  ));
522
 
523
  // return unmodifiyed array
552
  message TEXT NOT NULL,
553
  headers TEXT NOT NULL,
554
  attachments TEXT NOT NULL,
555
+ sent_date timestamp(14) NOT NULL,
556
+ PRIMARY KEY (id)
557
  );";
558
 
559
  require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sudar
3
  Tags: email, wpmu, wordpress-mu, log
4
  Requires at least: 2.8
5
  Tested up to: 2.8.4
6
- Stable tag: 0.2
7
 
8
  Logs every email sent through WordPress. Compatiable with WPMU too.
9
 
@@ -25,6 +25,16 @@ As [recommended by Ozh][1], the Plugin has uninstall hook which will clean up th
25
 
26
  [1]: http://sudarmuthu.com/blog/2009/10/07/lessons-from-wordpress-plugin-competition.html
27
 
 
 
 
 
 
 
 
 
 
 
28
  == Installation ==
29
 
30
  #### Normal WordPress installations
@@ -33,7 +43,7 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
33
 
34
  #### WordPress MU installations
35
 
36
- 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 Plugins page. You can activate it site wide or just for a single blog.
37
  == Screenshots ==
38
  1. The following screenshot shows how the logged emails will be displayed
39
 
@@ -51,6 +61,10 @@ Extract the zip file and drop the contents in the wp-content/plugins/ directory
51
 
52
  * Added compatability for MySQL 4
53
 
 
 
 
 
54
  ==Readme Generator==
55
 
56
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
3
  Tags: email, wpmu, wordpress-mu, log
4
  Requires at least: 2.8
5
  Tested up to: 2.8.4
6
+ Stable tag: 0.3
7
 
8
  Logs every email sent through WordPress. Compatiable with WPMU too.
9
 
25
 
26
  [1]: http://sudarmuthu.com/blog/2009/10/07/lessons-from-wordpress-plugin-competition.html
27
 
28
+ ### Translation
29
+
30
+ 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.
31
+
32
+ ### Support
33
+
34
+ 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.
35
+
36
+ [1]: http://sudarmuthu.com/wordpress/email-log
37
+
38
  == Installation ==
39
 
40
  #### Normal WordPress installations
43
 
44
  #### WordPress MU installations
45
 
46
+ 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.
47
  == Screenshots ==
48
  1. The following screenshot shows how the logged emails will be displayed
49
 
61
 
62
  * Added compatability for MySQL 4
63
 
64
+ ###v0.3 (2009-10-19)
65
+
66
+ * Added compatability for MySQL 4 (Thanks Frank)
67
+
68
  ==Readme Generator==
69
 
70
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.