<?xml version="1.0" encoding="UTF-8"?>
<e-plugin-list>
  <e-plugin type="shlib" location="@PLUGINDIR@/liborg-gnome-mail-to-task@SOEXT@" id="org.gnome.evolution.plugin.mailToTask" name="Mail-to-Task">
    <author name="Rodrigo Moya" email="rodrigo@novell.com"/>
    <_description>Convert a mail message to a task.</_description>

    <hook class="org.gnome.evolution.ui:1.0">
      <ui-manager id="org.gnome.evolution.mail.browser"
                  callback="mail_browser_init">
#if !EXPRESS
        <menubar name='main-menu'>
          <placeholder name='custom-menus'>
            <menu action="mail-message-menu">
              <placeholder name="mail-message-actions">
                <menuitem action="mail-convert-to-event"/>
                <menuitem action="mail-convert-to-meeting"/>
                <menuitem action="mail-convert-to-task"/>
                <menuitem action="mail-convert-to-memo"/>
              </placeholder>
            </menu>
          </placeholder>
        </menubar>
        <popup name="mail-preview-popup">
          <placeholder name="mail-message-popup-actions">
            <menuitem action="mail-convert-to-event"/>
            <menuitem action="mail-convert-to-meeting"/>
            <menuitem action="mail-convert-to-task"/>
            <menuitem action="mail-convert-to-memo"/>
          </placeholder>
        </popup>
#endif
      </ui-manager>
      <ui-manager id="org.gnome.evolution.mail"
                  callback="mail_shell_view_init">
#if !EXPRESS
        <menubar name='main-menu'>
          <placeholder name='custom-menus'>
            <menu action="mail-message-menu">
              <placeholder name="mail-message-actions">
                <menuitem action="mail-convert-to-event"/>
                <menuitem action="mail-convert-to-meeting"/>
                <menuitem action="mail-convert-to-task"/>
                <menuitem action="mail-convert-to-memo"/>
              </placeholder>
            </menu>
          </placeholder>
        </menubar>
        <popup name="mail-message-popup">
           <placeholder name="mail-message-popup-actions">
            <menuitem action="mail-convert-to-event"/>
            <menuitem action="mail-convert-to-meeting"/>
            <menuitem action="mail-convert-to-task"/>
            <menuitem action="mail-convert-to-memo"/>
          </placeholder>
        </popup>
        <popup name="mail-preview-popup">
          <placeholder name="mail-message-popup-actions">
            <menuitem action="mail-convert-to-event"/>
            <menuitem action="mail-convert-to-meeting"/>
            <menuitem action="mail-convert-to-task"/>
            <menuitem action="mail-convert-to-memo"/>
          </placeholder>
        </popup>
      </ui-manager>
#endif
    </hook>

  </e-plugin>
</e-plugin-list>
