summaryrefslogtreecommitdiff
path: root/tests/mail_to_db.pl
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-11-28 22:47:58 +0200
committerunknown <monty@hundin.mysql.fi>2001-11-28 22:47:58 +0200
commitc90f67fb06430e16e3c37d1420591ac7419a40c4 (patch)
tree26618c7253118930cf17acdcc699e83953795d9b /tests/mail_to_db.pl
parentcaa13ea3e7abd946915e5526680edab46d9f460f (diff)
downloadmariadb-git-c90f67fb06430e16e3c37d1420591ac7419a40c4.tar.gz
Extended manual section about MySQL states
Docs/manual.texi: Extended section about MySQL states. client/get_password.c: Use stderr instead of stdout when asking for password tests/mail_to_db.pl: Small cleanup tools/mysqlmanager.c: Removed warning
Diffstat (limited to 'tests/mail_to_db.pl')
-rwxr-xr-xtests/mail_to_db.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/mail_to_db.pl b/tests/mail_to_db.pl
index b758a171c77..fa2af91d9b2 100755
--- a/tests/mail_to_db.pl
+++ b/tests/mail_to_db.pl
@@ -218,7 +218,7 @@ sub process_mail_file
{
chop;
if ($type ne "message")
- {
+ {
if (/^Reply-To: (.*)/i)
{
$type = "reply";
@@ -288,8 +288,11 @@ sub process_mail_file
$values{$type} .= "\n" . $_;
}
}
- $values{'hash'} = checksum("$values{'message'}");
- update_table($dbh, $file_name, \%values);
+ if (defined($values{'message'}))
+ {
+ $values{'hash'} = checksum("$values{'message'}");
+ update_table($dbh, $file_name, \%values);
+ }
}
####