Code Duplication    Length = 6-6 lines in 2 locations

admin/accounts.php 2 locations

@@ 133-138 (lines=6) @@
130
                        if ('{' . $command . '}' . $accounts_inbox == $val) {
131
                            $accounts_inbox_ok = true;
132
                        }
133
                        if ('{' . $command . '}' . $accounts_hardbox == $val) {
134
                            $accounts_hardbox_ok = true;
135
                        } else {
136
                            @imap_createmailbox($mbox, imap_utf7_encode('{' . $command . '}' . $accounts_hardbox));
137
                            $foldercreated = 1;
138
                        }
139
                        if ('{' . $command . '}' . $accounts_softbox == $val) {
140
                            $accounts_softbox_ok = true;
141
                        } else {
@@ 139-144 (lines=6) @@
136
                            @imap_createmailbox($mbox, imap_utf7_encode('{' . $command . '}' . $accounts_hardbox));
137
                            $foldercreated = 1;
138
                        }
139
                        if ('{' . $command . '}' . $accounts_softbox == $val) {
140
                            $accounts_softbox_ok = true;
141
                        } else {
142
                            @imap_createmailbox($mbox, imap_utf7_encode('{' . $command . '}' . $accounts_softbox));
143
                            $foldercreated = 1;
144
                        }
145
                    }
146
                    if (1 == $foldercreated) {
147
                        $folders_recheck = imap_list($mbox, '{' . $command . '}', '*');