Get SequenceNumber by UniqueID in Aspose.Mail Pop3 - email

I use Aspose.Mail in my project and I have a collection of UniqueIDs and I want to retrieve Pop3MessageInfo. All method that do this work by SequenceNumber. Is there any method to get SequenceNumber by UniqueID?

There is no such feature available at the moment and provision of the same depends whether the POP3 protocol supports this or not. Please follow the discussion on your forum thread on Aspose.Email forum to get updated about it.

Related

API to access Google Doc "Email Notification settings"

We have hundreds of business documents, and when a user makes a suggested edit or comment it's the manager's responsibility to review and approve/reject.
Google offers a feature to receive an email notification when a comment is made or suggested edit made(otherwise easy for managers to loose track or not know about suggested edits/comments), and we'd like to turn this on for managers but manually doing this for hundreds of documents is a maintenance nightmare. Is there an API that would allow us programmatically set this field, or even read it.
If there are no APIs is there some other recommended work flow such that employees can suggest improvements and managers will be proactively notified so they can approve/reject the suggestion(ISO 9001 Control of Documents/Records)?
PS I wrote some scripts to poll documents for open comments/suggestion, but we'd prefer to be proactively notified.
You could create a program to watch changes in files by using the SuggestionsViewMode. You need to fetch the entire document content and then look through it for suggestions.
result = service.documents().get(documentId=DOCUMENT_ID, suggestion_mode=SUGGEST_MODE).execute()
I assume by the previous response that there is not a way to change notification settings for a doc via API?
I actually have sort of the opposite problem of the OP, where I am generating lots of documents for a shared drive via automations. These docs are used by our team, but aren't generally relevant to me. Because my account is the one generating the docs, the notification setting defaults to "All comments and tasks".
It would be great if I could update my automation to change the notification setting to "Comments and tasks for you" after creating the doc. I'd appreciate any suggestions.

retrieve newest messages xmpp?

I recently create a chat application (ejabberd and smack). Everything is ok but 2 problem that I can't resolve.
I would like to get list of recent messages (list of conversations) from xmpp. But I don't know how to do that.
I would like to save thread id of each conversation to mysql but no module can do that.
Someone else can help me? Thank in advance.
You should request recent messages via XEP-0313. It's functionality is implemented in ejabberd's mod_mam module. As far as I know, Smack has support for this too, just make sure you have recent version of the library.
There is indeed no module you can use to store conversation identifiers.

Adding passive bookings in sabre

I have a requirement to add Passive bookings to Sabre. Any idea on which service is to be used. I couldn't find the required SOAP request from dev studio.
I'm supposed to create passive bookings for certain bookings that I create in another system.
MiscSegmentSellRQ is what we used to create a passive booking. Sharing this if in case someone stumbles upon such a situation.
As far as I know, there isn't a dedicated service to create passive segments.
We had a similar requirement, and we ended up just issuing the commands using SabreCommandLLSRQ
Sabre Format Finder.
Have you checked in the above link,
I am also having trouble in adding passive segment, and waiting for a response from Sabre, Using SabreCommandLLSRQ, it will work.
They have mentioned about EnhancedAirBookRq and PassengerDetailsRQ. I have not tried using this, I am waiting for confirmation from Sabre.
As an agent that uses SABRE and does this exact thing described (manually), we use YK as the status code for a passive booking made elsewhere. SABRE says you can also use GK, but YK is better.

Smack API User search

I'm try to implement a user search on top of my working Smack-API based jabber client.It can create user using:
AccountManager manager = conn.getAccountManager();
manager.createAccount(usename,password);
However I need to add a functionality that will first search for "existing" user before it creates the account, but I can't find any straightforward way to do it. Anyone can provide me hints?
Thanks.
Apparently what's needed is just to catch the error code 409 in the XMPPException, as createAccount throws exception if user exist.
Although you don't actually need the functionality you requested any more (according to your own answer), I will answer the original question anyway for future reference.
There is a class called UserSearchManager in Smack that can be used for this purpose.
Easiest way is to log in as the user once, without sending presence. In general, we try to find all of the ways you could answer this question without having the ability to log in as the user, and eliminate them, in order to help prevent spim.

how can i update my avtar in xmpp using iphone SDK?

how can i update my avtar - login user avtar (photo) in xmpp using iphone SDK (XMPPStream) ?
i have XMPPvCardAvatarModule (but not having method description) so not able to get how to use its methods to update avtar(image) ?? Can any one post sample code & links to understand that, i am stuck with this problem !! Thanks.
Most folks use XEP-153 for avatars. But please be careful implementing this. If you get your hash logic wrong, and you don't do negative caching, it wreaks havoc on the network as your client constantly re-queries for vcards that will never match the hash they're given. Please do NOT set your client to send vcard queries to everyone on your roster every time you log in -- please heed the MUST in the XEP for caching avatars, or do NOT implement this feature.
Also, please be aware the community hopes to one day move to XEP-84, which has the potential to be more efficient in certain cases.