Hello,
I have an issue with roundcube webmail, I'm currently using v 0.9.0.
Whenever I send attachments in bulk with a new mail, let's say I add 6 files
and then 4 more files, I frequently notice that i'm losing attachments.
After I send the email I can see that 2-3 attachments are missing. By giving
a look at the code I saw that in this portion of the code inside
sendmail.inc :

/// sort attachments to make sure the order is the same as in the UI
(#1488423)
if ($files = rcube_utils::get_input_value('_attachments',
rcube_utils::INPUT_POST)) {
    $files = explode(',', $files);
    $files = array_flip($files);
    foreach ($files as $idx => $val) {
        $files[$idx] = $COMPOSE['attachments'][$idx];
        unset($COMPOSE['attachments'][$idx]);
    }

    $COMPOSE['attachments'] = array_merge(array_filter($files),
$COMPOSE['attachments']);
}/

The amount of entries inside $files is greater than the ones in
$COMPOSE['attachments'] resulting in a leak in the attachments added to the
email. I tried to figure out how to fix this issue but I'm still kinda lost.

Could you please help me?

Thank in advance,
Vittorio



--
View this message in context: 
http://roundcube-webmail.10982.n7.nabble.com/Attachments-Issue-tp12199.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
Roundcube Users mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/users

Reply via email to