I shall try to put something together for you tomorrow morning. On Nov 24, 2016 1:29 AM, "Alexandr Porunov" <alexandr.poru...@gmail.com> wrote:
> I need either POP3 or IMAP (doesn't matter). Could you please tell me what > you have done to customize IMAP logic? I have downloaded Apache James > Protocols Project and right now I am trying to figure out what we should > implement and how it works. I see there is an IMAP implementation but there > are a lot of classes it is little bit hard to figure out. > > Sincerely, > Alexandr > > On Wed, Nov 23, 2016 at 9:51 PM, Akhilesh Tyagi <tyagiakhil...@gmail.com> > wrote: > > > Actually defining your custom storage should be as simple as defining > your > > implementations for a set of APIs. I am guessing somewhere for each > module, > > implementations are loaded via spring so application context xml > belonging > > to your domain must be telling you a lot. > > > > If you are really writing some serious stuff, then your best bet is > > actually building the code and try to debug it. > > > > On Nov 24, 2016 1:13 AM, "Akhilesh Tyagi" <tyagiakhil...@gmail.com> > wrote: > > > > 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 > > > > > > > > > > > > > > >