aboutsummaryrefslogtreecommitdiffstats
path: root/pullimap
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-11-18 03:45:51 +0100
committerGuilhem Moulin <guilhem@fripost.org>2019-11-18 03:47:12 +0100
commitee040747f5f8b096f6c6ea3172826fd4c3c14053 (patch)
tree4703720a11defeb123ddab2e2b3ca57f494e2f4b /pullimap
parent5d55a14fa52981ae2a8bb6e65a65bf410c773464 (diff)
pullimap: Treat messages with a NIL RFC822 attribute as empty.
Diffstat (limited to 'pullimap')
-rwxr-xr-xpullimap2
1 files changed, 1 insertions, 1 deletions
diff --git a/pullimap b/pullimap
index 1dc4b9e..fbe300e 100755
--- a/pullimap
+++ b/pullimap
@@ -166,7 +166,7 @@ sub sendmail($$) {
);
print STDERR "C: [...]\n" if $CONFIG{debug};
- if ($$rfc822 eq '') {
+ if (!defined $$rfc822 or $$rfc822 eq "") {
# RFC 5321 section 4.1.1.4: if there was no mail data, the first
# "\r\n" ends the DATA command itself
$SMTP->printflush("\r\n.\r\n") or die;