Haven't done it for pop3. But did it for IMAP. :(

(I am no expert either)

On Nov 24, 2016 12:57 AM, "Alexandr Porunov" <alexandr.poru...@gmail.com>
wrote:

> The main problem is that I don't know how to use POP3 or IMAP to retrieve
> messages with custom logic. Is there a way to write something like POP3
> protocol wrapper? For example:
>
> public String retrive(int messageID){
>   String message = myCusomFunctionToRetriveMessage(messageNumber);
>   return message;
> }
>
> public String top(int messageID, int linesCount){
>   String messageInfo = myCusomFunctionToRetriveMessageInfo(messageID,
> linesCount);
>   return messageInfo;
> }
>
> //Other POP3 commands...
>
> Is it possible to wrap the logic?
> I'm really new to this. Maybe I am asking a stupid question. But I would
> appreciate if you could show me info about it.
>
> Sincerely,
> Alexandr
>
> On Wed, Nov 23, 2016 at 9:17 PM, Akhilesh Tyagi <tyagiakhil...@gmail.com>
> wrote:
>
> > I do not have the direct answer to your question. But we have done
> > retrieval from custom storage with custom authentication. So i believe,
> > custom storage should definitely be possible.
> >
> > On Nov 24, 2016 12:32 AM, "Alexandr Porunov" <alexandr.poru...@gmail.com
> >
> > wrote:
> >
> > > Hello,
> > >
> > > I am new to Apache James. I want to know if it is possible to add a
> > custom
> > > storage logic to James. I want to store my emails in Hbase and
> OpenStack
> > > Swift in a convenient way.
> > >
> > > I.e. all users' email metadata will be stored in Hbase (and small email
> > > bodies) and all big email bodies will be stored in OpenStack Swift.
> > >
> > > I understand that it is very complex. But can I change a logic of email
> > > storage? If yes then where to start?
> > >
> > > Sincerely,
> > > Alexandr
> > >
> >
>

Reply via email to