<commit_before><?php

/**
 * Sample plugin to try out some hooks.
 * This performs an automatic login if accessed from localhost
 */
class epesi_mailto extends rcube_plugin
{
//  public $task = 'mail|settings|addressbook';

  function init()
  {
    $this->add_hook('startup', array($this, 'startup'));
    $this->add_hook('login_after', array($this, 'logged'));
    if(!isset($_SESSION['epesi_mailto'])) return;
    $rcmail = rcmail::get_instance();

    if (($rcmail->task!='mail' || $rcmail->action == '') && !isset($_GET['mailto'])) {
        unset($_SESSION['epesi_mailto']);
        print('<script>parent._chj("'.http_build_query(array('base_box_pop_main'=>1)).'","loading...");</script>');//setTimeout(function(){},3000);
    }
  }
  
  function startup($args)
  {
    if(isset($_GET['mailto'])) {
        $_POST['_url'] = http_build_query(array('task' => 'mail', '_action' => 'compose', '_to' => $_GET['mailto']));
        $_SESSION['epesi_mailto'] = 1;
    }

  }  

  function logged($args)
  {
    if(isset($_GET['mailto'])) {
        $_SESSION['epesi_mailto'] = 1;
    }
  }  
}<commit_msg>Roundcube - spellchecker problem, bug fix<commit_after><?php

/**
 * Sample plugin to try out some hooks.
 * This performs an automatic login if accessed from localhost
 */
class epesi_mailto extends rcube_plugin
{
//  public $task = 'mail|settings|addressbook';

  function init()
  {
    $this->add_hook('startup', array($this, 'startup'));
    $this->add_hook('login_after', array($this, 'logged'));
    if(!isset($_SESSION['epesi_mailto'])) return;
    $rcmail = rcmail::get_instance();

    if ((($rcmail->task!='mail' && $rcmail->task!='utils') || $rcmail->action == '') && !isset($_GET['mailto'])) {
        unset($_SESSION['epesi_mailto']);
        print('<script>parent._chj("'.http_build_query(array('base_box_pop_main'=>1)).'","loading...");</script>');//setTimeout(function(){},3000);
    }
  }
  
  function startup($args)
  {
    if(isset($_GET['mailto'])) {
        $_POST['_url'] = http_build_query(array('task' => 'mail', '_action' => 'compose', '_to' => $_GET['mailto']));
        $_SESSION['epesi_mailto'] = 1;
    }

  }  

  function logged($args)
  {
    if(isset($_GET['mailto'])) {
        $_SESSION['epesi_mailto'] = 1;
    }
  }  
}
{'fraction_non_alphanumeric': 0.21814159292035398, 'fraction_numerical': 0.006194690265486726, 'mean_word_length': 4.002212389380531, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5011412', 'n_tokens_mistral': 785, 'n_tokens_neox': 767, 'n_words': 123}