Datacap Email count and connect to a specific folder - ibm-datacap

I have two requirements in Datacap 9.0.1
I want to find how many emails that were sent to the done folder and
how many were sent to problem folder. This way, I can alert the
users that say, out of 10 emails in the inbox, 7 of them processed
successfully and 3 moved to the problematic folder. I know
EmailCount variable gives me the count of emails that datacap was
able to read successfully/moved them to the done folder but what I
want is the initial count of emails so that I can find a difference.
Is it possible within datacap to scan a folder other than Inbox? For
Ex, if I want to scan 'Sent Items' folder how would I do that? I
looked into the email connection actions, but I don't see anything
which can help me to connect to the folder that I want.

Ok, this is the answer that I got from another datacap forum. Posting it here so that it helps others
Not sure about number 1. I believe that would require modifications to the mail actions.
For #2, no, there is no way to specify something other than inbox.
Both of these would likely require some sort of enhancement.
Here the enhancement means creating datacap custom actions. I haven't tried creating one and in case if I happen to create, will post the details of it.

Related

subscription service - email sending

Am looking for some help in a subscription service email sending from domino using Xpages.
scenario : Paul Goodman is a building contractor and he would like to subscribe to his category named "Buildings and Road”.
When someone asks question about his category "Buildings and Road” he and everyone else that have the same subscription , should get email. I have a LS Agent that goes thought a view to send these emails but I would like
to have his done as soon as the message is saved and it has to send one at the time to void spam filters. I know I could execute the LS agent onSave but do you see another solution maybe with JavaScript ? I have only seen some .NET & PHP solutions here.
You have a series of options here:
Extract your logic into a LS library, so it can be used by several agents. Then have on that runs on save (and another one on a new subscription)
Use a DOTs task to listen to documents save - you can write your logic in Java then
Call an ?OpenAgent URL from your client side JavaScript
Put it into your XPage for new articles
Since you have the agent already, I'd go with the first one

Find Which script or workflow is sending mails

I got a Netsuite CRM system from a client where already there are 100+ workflows and scripts implemented and running.
One of the consumer of client is getting system generated emails from netsuite on Daily basis which they want to stop. Say the mail id is abc#xyz.com
Client asked me the same, now my question is how to find which workflow or script is generating the mails or is there any simpler way to block the mails sent to that id?
Thanks in advance.
Regards
Rahul
Thanks for the reply.
The best option I found was sending that mail id to Netsuite support and asking them which workflow/script is really sending the mails to which they replied.
Once that was done then I found it to be a workflow which had a saved search that was giving the data.
I went to the record from the saved search and I was able to stop the mails.
Any ways thanks for your time.
Glad
In your case, you have to do some dig through with your email and its content.
Check the content of the email and check for the email reason. Ex. Order Completed, Payment Pending
From this you can identify from which record mail is being sent.
Check the Messages sub tab under General tab of the Customer record for the author of the email.
Download all Scheduled Scripts with deploy status as Released and open all the script files and use Find all method with the authoremailid and authorinternalid
Thanks
Frederick
Best way I found:
Get the mail id.
Search it in global search
It will give corresponding record.
Open the record and in bottom go to system information.
Check the Active workfow and check that work flows you will find your answer.
Thanks
Gladiator

Outlook REST API - getFolders not returning all folders

I'm just getting started with the Outlook REST API. My baseline is the tutorial that uses node-outlook.
First order of business is to retrieve all of the folders in my mail account.
So I issue this REST request:
GET https://outlook.office.com/api/v2.0/Me/MailFolders
Instead of returning all of my folders, it only returns the "well known" folders:
Clutter
Deleted Items
Drafts
Inbox
Junk Email
Outbox
Sent Items
Trash
Am I missing a query parameter or something that says, "no, really, all of them please"?
UPDATE
I tried a different email account, and I also don't get all of my actual folders, but I get a different subset (some of which are well-known, others aren't).
I am implementing the paging protocol (using the #nextLink parameter) so it's not a matter of page sizes. I am getting these 8 folders on one account, and 18 folders on another.
So there must be something that decides what folders will be returned.
UPDATE 2
I changed to doing a folder sync instead using the "beta" API. In this case, I also get an unnamed folder in the list, which is the parent of the other folders. It comes along with a ChildFolderCount which is accurate. However, when I do a child folder request on that folder id I get the same list.
UPDATE 3
Here's the request url I'm using when I attempt to read the child folders of the one folder that comes back with a non-zero ChildFolderCount.
GET https://outlook.office.com/api/beta/Me/MailFolders/AAMkADRmMzFmNjZmLWU3MjctNGZiNi1iZTg4LTRmNGQwYTVhMDgxYgAuAAAAAAB8IxaZ5KGbQom4EPywGCSdAQDVy0eYwAzLS63k5pohzykCAAAAAAEJAAA=/childfolders
Here's what appears to define what folders are returned by this API and what are not:
If I create a folder in office365 directly on outlook webmail, it shows up in this query.
If I create a folder in Mac Mail, it does not.
Mac Mail accesses the service using EWS, so I would expect a folder created by it would be like any other folder.
So there is something about folders created on Mac Mail that prevents them from being returned by this API.
Folders created in Mac Mail DO show up in web mail and vice versa.
Folders created on an iPhone DO show up, so in my limited testing it looks like Mac Mail may be the only app suffering from this problem. The problem I have is most of my folders were created in Mac Mail and I have no easy way of rebuilding them.
I'm thinking this is just a BUG in the API. At any rate, this answers my original question and should help anyone out there trying to use the new API.
If I find a workaround I'll post it here.

Expression Engine: Removing Members From Mailing List

I'm sure there's a way to do this, but I haven't been able to find it:
I have a site with an email newsletter signup form (uses EE's Mailing List module), as well as member registration.
If a user signs up for emails, and then later becomes a member, what is the best way to ensure that they don't receive duplicate emails, other than manually removing them from the email list?
Ideally, I'd want them to be removed from the email list when they confirm registration. Is there a direct way of doing this?
Thanks in advance!
ty
Good question.
I've just set up a test in my sandbox, and subscribed to the mailing list, and set up a member with the same email. When I send a mail out, via the Communicate module, I do indeed get two copies.
Personally I think this is really a bug within EE, as ideally it should only send out to unique addresses.
I'm guessing that an extension for the http://expressionengine.com/developers/extension_hooks/member_member_register hook, to run a check against the Mailing List DB table?

Script to check whether all mails replied in Lotus Notes

We use Lotusnotes 6.5 as email client. We wil have around 1600+ mails for 9 hrs. If a mail not checked , we have face serious issues with our client. Can any script can be written to check whether all mails are checked and replied?
Update:
We have already tried moving the mails to another folder.But has this mailbox handled by team of persons, we noticed lot of human error happening like moving a unread mail, sometimes they would have read mail but forget to reply it etc.etc.
So I was looking out for a script solution, will your other options. Also one more thing we do is we cc our mailbox mail id for all outgoing emails to have a track of all replied mails, will this could help in any way to find out which mails was missed?
If you need to track unread marks, I second the aforementioned nsftools solution, which works in Domino 7.x too. However, this is very much Notes ID-dependent. A folder would be better.
Note that 6.5x is well out of support, and that Domino 7.x officially died this week: use something at least vaguely modern!
There's an easier non-programmatic way. Just move the email from the inbox into another folder once the email has been responded to. That is more reliable than any programmatic solution, and keeps your inbox tidy (which will certainly be necessary if you get nearly 200 emails per hour!)
That said, here are some other ideas.
Determining if the document was read
Unread marks are not your friend here, unless you'll be accessing the mail file from the same client. Also they tend to get out of sync and would likely prove unreliable at some point, especially given the number of incoming emails. Instead you'll need to have some information that is saved within the individual mail document, such as the last accessed property or a custom item you manage via scripts/formulas.
You can see if an email has been read by checking the Last Accessed property of the mail document. According to IBM's technote (https://www-304.ibm.com/support/docview.wss?uid=swg21086670), the property will be updated when the document is read.
You could write a script in the QueryOpen event that stamps a value on the document and saves it.
Determining if the email was responded to
First off, I'd suggest you save all sent emails in case you need a record of what was sent to the client. That won't give you a way to see which emails have not been responded to, however.
Instead you could add script to the reply action within the memo form. When someone click's reply it could update the current memo, stamping an item on it to say who replied and at what time, for instance. Then you can create a view to show any emails that don't have that item, and another view to show emails that do grouped by who responded. The second view could even show how many emails each person responded to, something that might be used as a measurement of performance perhaps.
"Unread mark" checking is not exposed in the API.
I did find 2 links, this one is a basic implementation, where as this link does have more robust code and is implemented as an object in LotusScript. It should be compatible with Notes 6.5+.
I found the second link through nsftools website which has lots of great snippets that solve various problems. You should at least be able to detect if a mail has been read or not. Note that it requires making API level calls. You should be able to create a new script library and copy/paste the code into it.

Resources