aboutsummaryrefslogtreecommitdiffstats
path: root/interimap
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-07-29 13:37:30 +0200
committerGuilhem Moulin <guilhem@fripost.org>2017-07-29 13:37:30 +0200
commitb3b34342a2276619d321392e0f06114e13a6d46d (patch)
tree22d808c95f52de208d8caad1cf015d47552db436 /interimap
parent99f085242ccb3ffdb903ce63d790b536d27176e8 (diff)
parent783954eaacec35d53674749e302c2ea6ac137935 (diff)
Merge branch 'master' into debian
Diffstat (limited to 'interimap')
-rwxr-xr-xinterimap3
1 files changed, 2 insertions, 1 deletions
diff --git a/interimap b/interimap
index 7a36c4e..049b564 100755
--- a/interimap
+++ b/interimap
@@ -577,7 +577,8 @@ sub download_missing($$$@) {
my $uid = $mail->{UID};
my $from = first { defined $_ and @$_ } @{$mail->{ENVELOPE}}[2,3,4];
- $from = (defined $from and @$from) ? $from->[0]->[2].'@'.$from->[0]->[3] : '';
+ $from = (defined $from and defined $from->[0]->[2] and defined $from->[0]->[3])
+ ? $from->[0]->[2].'@'.$from->[0]->[3] : '';
msg(undef, "$source($mailbox): UID $uid from <$from> ($mail->{INTERNALDATE})") unless $CONFIG{quiet};
callback_new_message($idx, $mailbox, $source, $mail, \@uids, $buff, \$bufflen)