<commit_before><?xml version="1.0"?>
<openerp>
    <data>

        <record model="ir.ui.view" id="view_email_server_tree">
            <field name="name">fetchmail.server.list</field>
            <field name="model">fetchmail.server</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree colors="blue:state == 'draft'" string="POP/IMAP Servers">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="is_ssl"/>
                    <field name="object_id"/>
                    <field name="date"/>
                    <field name="message_ids" string="# of emails"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="view_email_server_form">
            <field name="name">fetchmail.server.form</field>
            <field name="model">fetchmail.server</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Incoming Mail Server">
                    <group colspan="4" col="6">
                        <field name="name" select="1"/>
                        <field name="type" select="1" on_change="onchange_server_type(type, is_ssl, object_id)"/>
                        <field name="date" select="1"/>
                    </group>
                    <notebook colspan="4">
                        <page string="Server &amp; Login">
                            <group col="2" colspan="2" attrs="{'invisible' : [('type', '=', 'local')]}">
                                <separator string="Server Information" colspan="2"/>
                                <field name="server" colspan="4" attrs="{'required' : [('type', '!=', 'local')]}" />
                                <field name="port" required="1" attrs="{'required' : [('type', '!=', 'local')]}" />
                                <field name="is_ssl" select="1" on_change="onchange_server_type(type, is_ssl)"/>
                            </group>
                            <group col="2" colspan="2" attrs="{'invisible' : [('type', '=', 'local')]}">
                                <separator string="Login Information" colspan="2"/>
                                <field name="user" attrs="{'required' : [('type', '!=', 'local')]}"/>
                                <field name="password" password="<PASSWORD>" attrs="{'required' : [('type', '!=', 'local')]}"/>
                            </group>
                            <group col="2" colspan="2">
                                <separator string="Actions to Perform on Incoming Mails" colspan="2"/>
                                <field name="object_id" on_change="onchange_server_type(type, is_ssl, object_id)"/>
                                <field name="action_id" groups="base.group_extended"/>
                            </group>
                            <group attrs="{'invisible' : [('type', '!=', 'local')]}" colspan="4" col="4">
                                <separator string="Configuration" colspan="4"/>
                                <field name="configuration" colspan="4"/>
                                <field name="script" colspan="4" widget="url"/>
                            </group>
                        </page>
                        <page string="Advanced" groups="base.group_extended">
                            <group colspan="2" col="2">
                                <separator string="Advanced options" colspan="2"/>
                                <field name="priority" groups="base.group_extended"/>
                                <field name="attach"/>
                                <field name="original"/>
                                <field name="active" select="1"/>
                            </group>
                        </page>
                    </notebook>
                    <group colspan="4" col="6" attrs="{'invisible' : [('type', '=', 'local')]}">
                        <field name="state"/>
                        <button string="Reset Confirmation" type="object" name="set_draft" icon="gtk-convert" states="done"/>
                        <button string="Test &amp; Confirm" type="object" name="button_confirm_login" states="draft" icon="gtk-apply"/>
                        <button string="Fetch Now" type="object" name="fetch_mail" states="done" icon="gtk-network"/>
                    </group>
                </form>
            </field>
        </record>

        <record model="ir.ui.view" id="view_email_server_search">
            <field name="name">fetchmail.server.search</field>
            <field name="model">fetchmail.server</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Incoming Mail Servers">
                    <filter string="IMAP" icon="terp-folder-green" domain="[('type','=','imap')]" help="Server type IMAP."/>
                    <filter string="POP" icon="terp-folder-orange" domain="[('type','=','pop')]" help="Server type POP."/>
                    <separator orientation="vertical"/>
                    <filter string="SSL" icon="terp-camera_test" domain="[('is_ssl','=',True)]" help="If SSL required."/>
                    <separator orientation="vertical"/>
                    <field name="name"/>
                </search>
            </field>
        </record>

        <record model="ir.actions.act_window" id="action_email_server_tree">
            <field name="name">Incoming Mail Servers</field>
            <field name="res_model">fetchmail.server</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="view_email_server_tree"/>
            <field name="search_view_id" ref="view_email_server_search"/>
        </record>

        <menuitem
            parent="base.next_id_15"
            id="menu_action_fetchmail_server_tree"
            action="action_email_server_tree"
            name="Incoming Mail Servers"
            sequence="40"
        />

      <record model="ir.ui.view" id="email_message_tree_view">
          <field name="name">mail.message.list.fetchmail</field>
          <field name="model">mail.message</field>
          <field name="type">tree</field>
          <field name="inherit_id" ref="mail.view_email_message_tree"/>
          <field name="arch" type="xml">
              <field name="user_id" position="after">
                  <field name="fetchmail_server_id" select="1"/>
              </field>
          </field>
      </record>

      <record model="ir.ui.view" id="email_message_search_view">
          <field name="name">mail.message.inherit.search</field>
          <field name="model">mail.message</field>
          <field name="type">search</field>
          <field name="inherit_id" ref="mail.view_email_message_search"/>
          <field name="arch" type="xml">
            <xpath expr="/search/group/filter[@string='Thread']" position="before">
                <filter string="Mail Server" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'fetchmail_server_id'}"/>
            </xpath>
          </field><commit_msg>[FIX] fetchmail: change the parent menu to email for Incoming server.<commit_after><?xml version="1.0"?>
<openerp>
    <data>

        <record model="ir.ui.view" id="view_email_server_tree">
            <field name="name">fetchmail.server.list</field>
            <field name="model">fetchmail.server</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree colors="blue:state == 'draft'" string="POP/IMAP Servers">
                    <field name="name"/>
                    <field name="type"/>
                    <field name="is_ssl"/>
                    <field name="object_id"/>
                    <field name="date"/>
                    <field name="message_ids" string="# of emails"/>
                    <field name="state"/>
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="view_email_server_form">
            <field name="name">fetchmail.server.form</field>
            <field name="model">fetchmail.server</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Incoming Mail Server">
                    <group colspan="4" col="6">
                        <field name="name" select="1"/>
                        <field name="type" select="1" on_change="onchange_server_type(type, is_ssl, object_id)"/>
                        <field name="date" select="1"/>
                    </group>
                    <notebook colspan="4">
                        <page string="Server &amp; Login">
                            <group col="2" colspan="2" attrs="{'invisible' : [('type', '=', 'local')]}">
                                <separator string="Server Information" colspan="2"/>
                                <field name="server" colspan="4" attrs="{'required' : [('type', '!=', 'local')]}" />
                                <field name="port" required="1" attrs="{'required' : [('type', '!=', 'local')]}" />
                                <field name="is_ssl" select="1" on_change="onchange_server_type(type, is_ssl)"/>
                            </group>
                            <group col="2" colspan="2" attrs="{'invisible' : [('type', '=', 'local')]}">
                                <separator string="Login Information" colspan="2"/>
                                <field name="user" attrs="{'required' : [('type', '!=', 'local')]}"/>
                                <field name="password" password="<PASSWORD>" attrs="{'required' : [('type', '!=', 'local')]}"/>
                            </group>
                            <group col="2" colspan="2">
                                <separator string="Actions to Perform on Incoming Mails" colspan="2"/>
                                <field name="object_id" on_change="onchange_server_type(type, is_ssl, object_id)"/>
                                <field name="action_id" groups="base.group_extended"/>
                            </group>
                            <group attrs="{'invisible' : [('type', '!=', 'local')]}" colspan="4" col="4">
                                <separator string="Configuration" colspan="4"/>
                                <field name="configuration" colspan="4"/>
                                <field name="script" colspan="4" widget="url"/>
                            </group>
                        </page>
                        <page string="Advanced" groups="base.group_extended">
                            <group colspan="2" col="2">
                                <separator string="Advanced options" colspan="2"/>
                                <field name="priority" groups="base.group_extended"/>
                                <field name="attach"/>
                                <field name="original"/>
                                <field name="active" select="1"/>
                            </group>
                        </page>
                    </notebook>
                    <group colspan="4" col="6" attrs="{'invisible' : [('type', '=', 'local')]}">
                        <field name="state"/>
                        <button string="Reset Confirmation" type="object" name="set_draft" icon="gtk-convert" states="done"/>
                        <button string="Test &amp; Confirm" type="object" name="button_confirm_login" states="draft" icon="gtk-apply"/>
                        <button string="Fetch Now" type="object" name="fetch_mail" states="done" icon="gtk-network"/>
                    </group>
                </form>
            </field>
        </record>

        <record model="ir.ui.view" id="view_email_server_search">
            <field name="name">fetchmail.server.search</field>
            <field name="model">fetchmail.server</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Search Incoming Mail Servers">
                    <filter string="IMAP" icon="terp-folder-green" domain="[('type','=','imap')]" help="Server type IMAP."/>
                    <filter string="POP" icon="terp-folder-orange" domain="[('type','=','pop')]" help="Server type POP."/>
                    <separator orientation="vertical"/>
                    <filter string="SSL" icon="terp-camera_test" domain="[('is_ssl','=',True)]" help="If SSL required."/>
                    <separator orientation="vertical"/>
                    <field name="name"/>
                </search>
            </field>
        </record>

        <record model="ir.actions.act_window" id="action_email_server_tree">
            <field name="name">Incoming Mail Servers</field>
            <field name="res_model">fetchmail.server</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="view_email_server_tree"/>
            <field name="search_view_id" ref="view_email_server_search"/>
        </record>

      <menuitem id="menu_mail_servers1" parent="base.menu_email" action="action_email_server_tree" sequence="14"/>

      <record model="ir.ui.view" id="email_message_tree_view">
          <field name="name">mail.message.list.fetchmail</field>
          <field name="model">mail.message</field>
          <field name="type">tree</field>
          <field name="inherit_id" ref="mail.view_email_message_tree"/>
          <field name="arch" type="xml">
              <field name="user_id" position="after">
                  <field name="fetchmail_server_id" select="1"/>
              </field>
          </field>
      </record>

      <record model="ir.ui.view" id="email_message_search_view">
          <field name="name">mail.message.inherit.search</field>
          <field name="model">mail.message</field>
          <field name="type">search</field>
          <field name="inherit_id" ref="mail.view_email_message_search"/>
          <field name="arch" type="xml">
            <xpath expr="/search/group/filter[@string='Thread']" position="before">
                <filter string="Mail Server" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'fetchmail_server_id'}"/>
            </xpath>
          </field>
{'fraction_non_alphanumeric': 0.16170300570878327, 'fraction_numerical': 0.004883417016300983, 'mean_word_length': 1.6896041435442102, 'pattern_counts': {'":': 0, '<': 279, '<?xml version=': 2, '>': 279, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '6627546', 'n_tokens_mistral': 3895, 'n_tokens_neox': 3711, 'n_words': 704}