Giter VIP home page Giter VIP logo

mail-imaptalk's People

Contributors

brong avatar rjbs avatar robmueller avatar robn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gnb brong rjbs kael

mail-imaptalk's Issues

getannotation issue

Hello,
let suppose this IMAP query:

a getannotation "" "/vendor/EXAMPLE/*example.com" ("value.priv" "value.shared")
* ANNOTATION "" "/vendor/EXAMPLE/uc.example.com" ("value.priv" "maildata40")
* ANNOTATION "" "/vendor/EXAMPLE/example.com" ("value.priv" NIL "value.shared" NIL)
* ANNOTATION "" "/vendor/EXAMPLE/uc.example.com" ("value.shared" NIL)
a OK Completed

For some reason, for the same metadata (uc.example.com above) the Cyrus IMAP Server returns two rows.

Well, if I query

use Data::Dumper;
$Data::Dumper::Terse = 1;
$read=$IMAP->getannotation( "", "/vendor/EXAMPLE/*example.com", "value.*" );
print Dumper($read);

then I see:

{
  '' => {
          '/vendor/EXAMPLE/example.com' => {
                                              'value.shared' => undef,
                                              'value.priv' => undef
                                            },
          '/vendor/EXAMPLE/uc.example.com' => {
                                                 'value.shared' => undef
                                               }
        }
}

I suppose that getannotation saves only the result returned in the last row, if multiple rows for the same metadata occurs.

If I modify the getannotation to return only value.priv, I will correctly see:

{
  '' => {
          '/vendor/EXAMPLE/example.com' => {
                                              'value.priv' => undef
                                            },
          '/vendor/EXAMPLE/uc.example.com' => {
                                                 'value.priv' => 'maildata40'
                                               }
        }
}

IMAP response not available if LITERAL parameter is rejected

When sending a literal value, server is currently expected to return a + go ahead-like response. Otherwise sending routine dies, leaving only the last error message (get_last_error) available; for example:
IMAP Command : 'append' failed. Reason was : IMAPTalk: Did not get "+ ...go ahead..." response from IMAP server. Got - 33 NO Over quota at /usr/local/share/perl/5.10.1/Mail/IMAPTalk.pm line 3083
In particular the server IMAP response is not available (get_last_completion_response).

However in some cases the server can return a tagged NO response instead of + go ahead. That's for example the case when appending a message in an overquota mailbox, or when trying to send a literal which size is not handled (too big) by the server.
That's allowed from the server, and in those cases it is useful to be able to get the IMAP response.

Could this behaviour be fixed ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.