Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 85dff41758625c26d7c6097135c8f737 > files > 20

cone-doc-0.78-3.fc12.x86_64.rpm

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii"/>

  <title>mail::ACCOUNT::getMyRights</title>
  <link rel="stylesheet" href="manpage.css" type="text/css"/>
  
  <link rel="start" href="index.html" title="Cone: COnsole Newsreader And Emailer"/>
  <link rel="up" href="synchronous.html" title="mail::ACCOUNT Synchronous API reference"/>
  <link rel="prev" href="account-getmessagestructure.html" title="mail::ACCOUNT::getMessageStructure"/>
  <link rel="next" href="account-getparentfolder.html" title="mail::ACCOUNT::getParentFolder"/>
  <link xmlns="" rel="icon" href="icon.gif" type="image/gif"/>
  <meta xmlns="" name="MSSmartTagsPreventParsing" content="TRUE"/>
  <!--

Copyright 2002 - 2007 Double Precision, Inc.  See COPYING for distribution
information.

-->
</head>

<body>
  <div class="navheader">
    <table width="100%" summary="Navigation header">
      <tr>
        <th colspan="3" align="center" rowspan="1">
        mail::ACCOUNT::getMyRights</th>
      </tr>

      <tr>
        <td width="20%" align="left" rowspan="1" colspan="1">
        <a accesskey="p" href="account-getmessagestructure.html" shape="rect">Prev</a>&#160;</td>

        <th width="60%" align="center" rowspan="1" colspan="1">
        <span class="structname">mail::ACCOUNT</span> Synchronous
        API reference</th>

        <td width="20%" align="right" rowspan="1" colspan="1">
        &#160;<a accesskey="n" href="account-getparentfolder.html" shape="rect">Next</a></td>
      </tr>
    </table>
    <hr/>
  </div>

  <div class="refentry" lang="en" xml:lang="en">
    <a id="account-getmyrights" shape="rect" name="account-getmyrights"> </a>

    <div class="titlepage"/>

    <div class="refnamediv">
      <h2>Name</h2>

      <p>mail::ACCOUNT::getMyRights &#8212; Compute my access
      rights on a folder</p>
    </div>

    <div class="refsynopsisdiv">
      <h2>Synopsis</h2>

      <div class="literallayout">
        <p><br clear="none"/>
        <br clear="none"/>
        <br clear="none"/>
        <br clear="none"/>
        #include&#160;&lt;libmail/sync.H&gt;<br clear="none"/>
        <br clear="none"/>
        mail::ACCOUNT&#160;*mail;<br clear="none"/>
        mail::folder&#160;*folder;<br clear="none"/></p>
      </div>

      <div class="funcsynopsis">
        <table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0">
          <tr>
            <td rowspan="1" colspan="1"><code class="funcdef">bool
            ok=mail-&gt;<b class="fsfunc">getMyRights</b>(</code></td>

            <td rowspan="1" colspan="1">mail::folder *&#160;</td>

            <td rowspan="1" colspan="1"><var class="pdparam">folder</var>,</td>
          </tr>

          <tr>
            <td rowspan="1" colspan="1">&#160;</td>

            <td rowspan="1" colspan="1">std::string
            &amp;&#160;</td>

            <td rowspan="1" colspan="1"><var class="pdparam">rights</var><code>)</code>;</td>
          </tr>
        </table>
      </div>
    </div>

    <div class="refsect1" lang="en" xml:lang="en">
      <a id="id564506" shape="rect" name="id564506"> </a>

      <h2>USAGE</h2>

      <p>This function implements folder access control lists
      (ACLs). Access control lists define who is allowed to do
      certain operations on a folder, or on messages in the folder.
      Folder ACLs are implement only for IMAP accounts on IMAP
      servers that implement access control lists. This function
      will fail if <em class="replaceable"><code>folder</code></em>
      is not a folder on an IMAP server that supports access
      control lists.</p>

      <p>This function computes application's access rights on the
      <em class="parameter"><code>folder</code></em>. If this
      function succeeds (this function may fail if the requesting
      client does not have the required access to the folder),
      <em class="parameter"><code>rights</code></em> will be
      initialized by a text string that contains a list of
      character which describe the requested client's access rights
      on the folder.</p>

      <p>At this time, the following access rights are
      supported:</p>

      <div class="variablelist">
        <dl>
          <dt><span class="term">&#8220;<span class="quote"><code class="literal">a</code></span>&#8221;</span></dt>

          <dd>
            <p>Administrator access: view and change folder access
            control lists.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">c</code></span>&#8221;</span></dt>

          <dd>
            <p>Create subfolders.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">e</code></span>&#8221;</span></dt>

          <dd>
            <p>Expunge deleted messages from the folder.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">i</code></span>&#8221;</span></dt>

          <dd>
            <p>Insert, or add messages to the folder.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">l</code></span>&#8221;</span></dt>

          <dd>
            <p>List, or view the folder's existence. If a folder
            does not have the &#8220;<span class="quote"><code class="literal">l</code></span>&#8221;
            access right, the server will not include this folder
            when it's asked to list all folders in the folder
            directory. However, if the &#8220;<span class="quote"><code class="literal">r</code></span>&#8221;
            access right is present, the folder may be opened if
            the folder's name is known.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">r</code></span>&#8221;</span></dt>

          <dd>
            <p>Read, or open the folder. An attempt to open the
            folder will fail without the &#8220;<span class="quote"><code class="literal">r</code></span>&#8221;
            access right, even if the folder's name is known.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">p</code></span>&#8221;</span></dt>

          <dd>
            <p>&#8220;<span class="quote">Post
            messages</span>&#8221; to the folder. This access right
            is currently listed in the ACL specification; however
            its intention is not clear, and most servers do not do
            anything useful with this access right. It is listed
            here for information purposes only.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">s</code></span>&#8221;</span></dt>

          <dd>
            <p>Allow changing the read/unread status of messages in
            the folder. The server will not automatically clear the
            <em class="structfield"><code>unread</code></em>
            message status flag on messages after they are read, or
            let this status flag be explicitly changed, without the
            &#8220;<span class="quote"><code class="literal">s</code></span>&#8221; access right.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">t</code></span>&#8221;</span></dt>

          <dd>
            <p>Allow tagging of messages as deleted or undeleted.
            The server will prohibit changing the messages'
            <em class="structfield"><code>deleted</code></em>
            message status flag without the &#8220;<span class="quote"><code class="literal">t</code></span>&#8221;
            access right.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">w</code></span>&#8221;</span></dt>

          <dd>
            <p>Allow changing the <em class="structfield"><code>draft</code></em>, <em class="structfield"><code>replied</code></em>, and <em class="structfield"><code>marked</code></em> message status
            flags. The server will not allow changes to these flags
            without the &#8220;<span class="quote"><code class="literal">w</code></span>&#8221; access right.</p>
          </dd>

          <dt><span class="term">&#8220;<span class="quote"><code class="literal">x</code></span>&#8221;</span></dt>

          <dd>
            <p>Allow this folder to be removed. The server will not
            this folder to be deleted without the
            &#8220;<span class="quote"><code class="literal">x</code></span>&#8221; access right.</p>
          </dd>
        </dl>
      </div>
    </div>

    <div class="refsect1" lang="en" xml:lang="en">
      <a id="id564896" shape="rect" name="id564896"> </a>

      <h2>RETURN CODES AND CALLBACKS</h2>

      <p>This method returns <code class="literal">true</code> if
      it succeeds, or <code class="literal">false</code> if it
      fails. If the method fails, use <em class="structfield"><code>mail::ACCOUNT::getErrmsg()</code></em> to
      read a brief description of the error.</p>
    </div>

    <div class="refsect1" lang="en" xml:lang="en">
      <a id="id564932" shape="rect" name="id564932"> </a>

      <h2>SEE ALSO</h2>

      <p><a class="link" href="account-delrights.html" title="mail::ACCOUNT::delRights" shape="rect"><span class="citerefentry"><span class="refentrytitle">mail::ACCOUNT::delRights</span>(3x)</span></a>,
      <a class="link" href="account-getfolderindexinfo.html" title="mail::ACCOUNT::getFolderIndexInfo" shape="rect"><span class="citerefentry"><span class="refentrytitle">mail::ACCOUNT::getFolderIndexInfo</span>(3x)</span></a>,
      <a class="link" href="account-getrights.html" title="mail::ACCOUNT::getRights" shape="rect"><span class="citerefentry"><span class="refentrytitle">mail::ACCOUNT::getRights</span>(3x)</span></a>,
      <a class="link" href="account-setrights.html" title="mail::ACCOUNT::setRights" shape="rect"><span class="citerefentry"><span class="refentrytitle">mail::ACCOUNT::setRights</span>(3x)</span></a>.</p>
    </div>
  </div>

  <div class="navfooter">
    <hr/>

    <table width="100%" summary="Navigation footer">
      <tr>
        <td width="40%" align="left" rowspan="1" colspan="1">
        <a accesskey="p" href="account-getmessagestructure.html" shape="rect">Prev</a>&#160;</td>

        <td width="20%" align="center" rowspan="1" colspan="1">
        <a accesskey="u" href="synchronous.html" shape="rect">Up</a></td>

        <td width="40%" align="right" rowspan="1" colspan="1">
        &#160;<a accesskey="n" href="account-getparentfolder.html" shape="rect">Next</a></td>
      </tr>

      <tr>
        <td width="40%" align="left" valign="top" rowspan="1" colspan="1">mail::ACCOUNT::getMessageStructure&#160;</td>

        <td width="20%" align="center" rowspan="1" colspan="1">
        <a accesskey="h" href="index.html" shape="rect">Home</a>&#160;|&#160;<a accesskey="t" href="bk01-toc.html" shape="rect">ToC</a></td>

        <td width="40%" align="right" valign="top" rowspan="1" colspan="1">&#160;mail::ACCOUNT::getParentFolder</td>
      </tr>
    </table>
  </div>
</body>
</html>