Show full IMAP response if line cannot be parsed

This commit is contained in:
Jamie Cameron
2015-02-17 21:51:25 -08:00
parent cf091c95e1
commit 7fd6e5f0ef

View File

@@ -2085,7 +2085,7 @@ if ($lline =~ /^(\S+)\s+OK\s*(.*)/) {
}
else {
# Command failed!
return (0, \@rv, $j, $lline =~ /^(\S+)\s+(\S+)\s*(.*)/ ? $3 : undef);
return (0, \@rv, $j, $lline =~ /^(\S+)\s+(\S+)\s*(.*)/ ? $3 : $lline);
}
}