Mercurial > hg > rc1
comparison plugins/thunderbird_labels/thunderbird_labels.php @ 21:678dcc5152a8
restore mistaken deletion
author | Charlie Root |
---|---|
date | Tue, 16 Jan 2018 13:10:10 -0500 |
parents | c3a974bdb435 |
children | 5a851d965bc1 |
comparison
equal
deleted
inserted
replaced
20:c3a974bdb435 | 21:678dcc5152a8 |
---|---|
329 foreach($args['messages'] as $message) | 329 foreach($args['messages'] as $message) |
330 { | 330 { |
331 #rcube::write_log($this->name, print_r($message->flags, true)); | 331 #rcube::write_log($this->name, print_r($message->flags, true)); |
332 $message->list_flags['extra_flags']['tb_labels'] = array(); # always set extra_flags, needed for javascript later! | 332 $message->list_flags['extra_flags']['tb_labels'] = array(); # always set extra_flags, needed for javascript later! |
333 $message->list_flags['extra_flags']['tb_parms'] = array(); | 333 $message->list_flags['extra_flags']['tb_parms'] = array(); |
334 if (is_array($message->flags)) | |
334 foreach ($message->flags as $flagname => $flagvalue) | 335 foreach ($message->flags as $flagname => $flagvalue) |
335 { | 336 { |
336 $flag = is_numeric("$flagvalue")? $flagname:$flagvalue;// for compatibility with < 0.5.4 | 337 $flag = is_numeric("$flagvalue")? $flagname:$flagvalue;// for compatibility with < 0.5.4 |
337 $flag = strtolower($flag); | 338 $flag = strtolower($flag); |
338 if (preg_match('/^\$?label/', $flag)) | 339 if (preg_match('/^\$?label/', $flag)) |