diff --git a/include/class.mailparse.php b/include/class.mailparse.php
index 3361cf2c14915fd78f2a15d3db99f17406bebe3f..eecbf5656898c7c2c1bd7faedc97d1cd2ef917f2 100644
--- a/include/class.mailparse.php
+++ b/include/class.mailparse.php
@@ -371,7 +371,7 @@ class Mail_Parse {
         ) {
             foreach ($struct->parts as $i=>$part) {
                 if ($part && ($text=$this->getPart($part, $ctypepart,
-                    $recurse-1, $recursIntoRfc822))
+                    $recurse-1, $recurseIntoRfc822))
                 ) {
                     $data .= $text;
                 }