Author Topic: which file produces the code shown upon viewing a sent message  (Read 2769 times)

Offline pinews

  • Newbie
  • *
  • Posts: 3
How do you remove the bcc line shown in sent messages?

I was trying to edit the "Bcc
" field but could not find the code anywhere in the roundcube files.

edit: found this in the func file but not sure which one to remove

// show these headers
  $standard_headers = array('subject', 'from', 'to', 'cc', 'bcc', 'replyto', 'date');
  $output_headers = array();

  foreach ($standard_headers as $hkey) {
    if (!$headers[$hkey])
      continue;

    if ($hkey == 'date') {
      if ($PRINT_MODE)
        $header_value = format_date($headers[$hkey], $RCMAIL->config->get('date_long', 'x'));
      else
        $header_value = format_date($headers[$hkey]);
    }
    else if ($hkey == 'replyto') {
      if ($headers['replyto'] != $headers['from'])
        $header_value = rcmail_address_string($headers['replyto'], null, true, $attrib['addicon']);
      else
        continue;
    }
    else if (in_array($hkey, array('from', 'to', 'cc', 'bcc')))
      $header_value = rcmail_address_string($headers[$hkey], null, true, $attrib['addicon']);
    else if ($hkey == 'subject' && empty($headers[$hkey]))
      $header_value = rcube_label('nosubject');
    else
      $header_value = trim($IMAP->decode_header($headers[$hkey]));
     
    $output_headers[$hkey] = array('title' => rcube_label($hkey), 'value' => $header_value, 'raw' => $headers[$hkey]);
  }
   
  $plugin = $RCMAIL->plugins->exec_hook('message_headers_output', array('output' => $output_headers, 'headers' => $MESSAGE->headers));
 
  // compose html table
  $table = new html_table(array('cols' => 2));
 
  foreach ($plugin['output'] as $hkey => $row) {
    $table->add(array('class' => 'header-title'), Q($row['title']));
    $table->add(array('class' => $hkey, 'width' => "90%"), Q($row['value'], ($hkey == 'subject' ? 'strict' : 'show')));
  }

does anyone know which file the below code belongs too?
its the code which shows up when you view a sent message















   

 

Subject(no subject)
Senderemail@example.com "Add
Recipientemail@example.com "Add
Bcc
« Last Edit: June 04, 2010, 11:34:22 AM by pinews »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
which file produces the code shown upon viewing a sent message
« Reply #1 on: June 04, 2010, 11:43:31 AM »
Edit /skins//templates/compose.html
Find and remove:
Code: [Select]

<a href=&quot;#bcc&quot; onclick=&quot;return rcmail_show_header_form('bcc')&quot; id=&quot;bcc-link&quot;><roundcube:label name=&quot;addbcc&quot; /></a>
   <span class=&quot;separator&quot;>|</span>

And:
Code: [Select]

""" />