I am having a serious brain cramp right now since I don't think I have done this in 10 years...maybe I never did but I THINK I did lol.
I have a new mail-in database. When mail comes in, either from Lotus Notes, from an outside mail system, like gmail, or from a text message from a cell phone, I want to refresh that document so that a couple fields get set based on the SMPTOriginator that the mail is from. I thought I would do it with an agent that runs before mail arrives, but that didn't work. I tried after mail arrives and that also didn't work. I need it to runn almost immediately after the document arrives because they are getting emergency responders to reply ASAP and I need these documents to refresh as they come in.
Can someone point me in the right direction...this is something that I know I have done in the past, I just can't remember.
Maybe you just don't have the necessary rights to run the agent. In any case, when the agent is correctly placed and the mail db receives a mail, the agent is started by the server (either the Agent Manager or the Router), and if the agent isn't started there is a message in the log.nsf database. Check there.
I would think the events you tried would have worked, but perhaps they are only for mail databases, and not mail-in databases.
Anyway, you could use the "After documents are created or modified" trigger, although that won't run immediately. It runs about every 5 minutes, I believe.
You might also create a scheduled agent. If the process isn't very long, you might be able to get away with it running every, say, 2 minutes.
Related
I have an app that sends SMS's out to a bunch of people. Those messages contain links. They are not using any link shorteners or any other service. They link back to my site. The links themselves are randomized strings, which are stored in my db, which are associated with an action. (Click "yes" or "no" link and the db tracks what you chose.) For ALL users, this works perfectly. With one user - and it's always the same user, as soon as the cron job runs, which triggers this event, his "vote" comes in. This is without him clicking or even seeing the message sometimes.
So, the question: has anyone ever seen or heard of a cell provider or a messaging app or similar that "clicks" links as part of some process before sharing the content with the user? I can't see ANYTHING in the code that would single him out so I'm thinking it has to be something in between when the message goes out and he does what he does. Especially because the timestamp is also always within seconds of the cron job running.
Sending an SMS can sometimes go through multiple carriers before reaching an end destination. As such, providers may be "handling" the content in this case.
The best thing to do would for any cases of this in the future would be to write support for further investigation.
I have a web application that monitors farms in certain areas. Right now I am having a problem of performing automation with some of the tasks.
Users of the web application can send reports or checkins using keywords. If the reports or checkins correspond to certain keywords, for example "alert", I need the web application to send an alert to the user via email using that web application. But that alert must be sent two weeks after the date of the report received, and to that particular user only.
Would it be possible to use cron to perform this? If not, can anyone suggest me a workaround?
A possible approach you might consider is to store an entry in a database for each of these reminder emails you need to send, at the time your user does whatever action in your application that determines the need to send that email exists. Include the recipient, the date to be sent, and the email content as content you store for each entry. Schedule a single cron job to run periodically to process these database records by due date, and populate an email template to be sent out. You can then either delete the database records, or a better option, include a column that indicates they were sent and mark them as sent.
It would help to provide which technology stack you're operating on and what the application is developed in. Others might be able to point you to technology specific approaches or pre-built plugins/extensions that already do this for the situation you're in, to help you avoid the need to write your own code for the solution.
i have wrote an agent which works like this-
whenever my subordinates get any mail with an attachment; the agent runs and forwards that mail to our HR who can keep a track of all mails.
everything is working fine, but the issue occurs wen HR tries to open the mail..
he gets an notes error - "You are not authorized to access that database"
even though he has an 'Person' 'Manager' accesss in the ACL.
What could have possibly went wrong?
Right click on the doclink and select properties. Check to see what you are actually linking to. I have seen common mistakes like this where the user is creating a doclink to their own mail file.
Try Mail Journalling and find out what it can do for you. Set it up on the Domino server, and add a rule that journals the mails you want.
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.
I created a customised button with some simple actions attached to it in Lotus Notes 6.5. It's just a simple voting button, which I emailed to a group of nearly 200 people. While sending I got a pop up telling me that the button can't be send. After about 10 seconds I got a first reply asking 'where's the button'. Then an avalanche of very clever emails followed, such as: 'no button', 'where's the button', etc.
Before I spammed everyon I had tried the email on my work mate and the button went through fine!
Any ideas? I suspect some security policy....
I really need to send this mail and get the survey results, so I don't want to fail again. Any suggestions appreciated.
Many Thanks,
Damo
Might be an issue if some recipients don't have Notes e-mail account.
If your gathering information then assuming you are going to store the data in a Lotus notes database create a form where they can input it directly and just send them a doc link to the database.
Buttons can be weird because if they contain code that is restricted by the ECL of the workstation then notes may automatically hide the button on the basis that it won't let the code run so hide it by default. You may be able to get round this by having the system admins send the button on your behalf.
This may be a daft question, but did you actually send the email to other Lotus Notes users via your Notes infrastructure? If not, the mail routers will have stripped the mail of any proprietary Notes stuff as it wings out to the internet.
You mention an error message, what was it exactly? AndrewB mentions that your organisation's ECL may be kicking in; alternatively, if you use 3rd party spam / trojan protection, that might have had something to do with it, I don't know.