In alfresco I need to pull email from my organization mail id(Mail client:Outlook). But in my organization, there is no imap server enabled. So I need some other alternative to pull email from my organization mail id to alfresco repository.
I'd suggest you make use of DavMail. That provides a bridge between Exchange OWA and IMAP. You configure up a copy of DavMail with your Exchange credentials, then point Alfresco at DavMail so it can fetch the email.
Well, either that, or enable the inbound SMTP functionality in Alfresco, and arrange for all the emails to be forwarded / bounced to an address on Alfresco. That'd be push rather than pull though, not sure if that'll work for your case or not.
If you are planning to do it manually (drag-and-drop), I have found so far that dragging to CIFS folders is much faster and scalable. The only problem is that Alfresco does not offer automatic support for .msg files, so you would have to create a rule and script to extract the text and attachments. Fortunately, Alfresco already uses POI (there are 3 POI jar files), and you can use those libraries to extract the files. Just keep in mind that such script would have to live in the Alfresco classpath, or it will be unable to make use of the POI libraries. Also, you may have to move the POI.jar files to the tomecat/lib directory, so those jars can be used by your script. Take a look to the Mozilla Rhino reference for more details about the script.
Configure Alfresco's inbound email.
Link Alfresco as an account to your outlook: SMTP Inbound server
Then follow this guide to create a Marco in outlook: Forward Macro
Then create a rule to fire the script with some conditions you'd like and you're automatically forwarding your incoming mails to Alfresco.
Related
I want to manage my inbound emails in Alfresco the same way demonstrated in the next picture or more detailed in this video
How can I do that?
I'm using Alfresco 6.2 community.
You've embedded a video of a demo for a custom solution called Alfea Correspondence Management. So the short answer is that you should contact the vendor to see if it is still available, inquire about pricing, then install it, and you're done.
If you cannot acquire the solution from that vendor and you have to implement this yourself it will take more work than can or should be described here.
At a very basic level, Alfresco can be configured to accept inbound email. But this requires senders to add Alfresco to the recipient list. Once the objects are in the repository, they are like any other nodes, so they can be queried against and presented in custom dashlets, like the one shown in your video.
I suspect the solution the vendor is showing will do more than just accept inbound emails. All of that functionality would have to be developed custom if you cannot acquire it from the vendor.
hello so I have 2 wp installations with buddypress, I would like to pull the second site members remotely and display them on the first blog.
is there a way to use WP_User_Query with a different database ?
In most server configurations, external access to the database is not allowed, in order to increase security. Thus, direct access to the database is probably not an option.
But Wordpress has a API that is made for external access via HTTP. The API has a getUsers function that should help you.
There are several libraries that can help you make XML-RPC (the protocol of the Wordpress API) requests, see Which PHP RPC (XML or JSON) library have you successfully used? for an overview.
I have a client who has a crimestoppers' website. They want to provide visitors a means to submit anonymous crime tips, which would then be forwarded to a pre-established email address at the local police department.
What is the best / easiest way to accomplish this? The sender's IP address needs to be hidden. My client also needs to be able to pull reports showing how many tips were submitted and forwarded.
Many thanks!
A simple contact form can be used. It's up to the developer's trust to hide the IP. The submitter won't see anything what is being done using PHP.
You can then update a database with the tips being posted before sending the mails.
In terms of development, you can use a plugin such as Contact Form 7 and then use its hooks to save the tips submitted before sending the mails.
While it is rather simple to set up a contact form that submits to an email address (just use the excellent ContactForm7, as rrikesh's answer suggests). However, getting anonymity right (especially against a party that has as much power and resources) is tricky. You need to be clear about the level of anonymity that you can provide. Log files, document metadata or your ISP can easily give a lot of information away.
Here are two project that have different approaches. They're both not ready-made solutions to your question, but still relevant:
PrivacyBox:
This is a web service run by the German Privacy Foundation. It's basically a message relay like the one you want, except that the user has to trust the Foundation, not you. This model highly depends on the institution providing this service. I'm sure there are other, US-based services like this.
Briefkasten:
An open source software tool used by the German newspaper Die ZEIT.
a reasonably secure web application for submitting content anonymously. It allows to upload attachments which are then sanitized of a number of meta-data which could compromise the submitters identity. Next, the sanitized files are encrypted via GPG and sent via email to a pre-configured list of recipients. The original (potentially 'dirty') files are then deleted from the file system of the server. Thus, neither should admins with access to the server be able to access any submissions, nor should any of the recipients have access to the unsanitized raw material.
This is an attempt to automate the crucial steps to strip any identifying data from the submission and encrypt it, so only the intended recipients can access it.
You would have to host this yourself, though. And it's a Python app.
I Love BitBucket.org
But is there a way to configure BitBucket to accept email and automatically put them into my 'New' Issue list in the issue tracker?
BitBucket sends out email notifications, but I want something the other way around. I don't want to have to go in and create an issue manually each time someone emails me about a problem. I want to forward those emails to Bitbucket so problems to go directly into the issue tracker via E-Mail.
And: Similarly, can you configure Bitbucket so that it listens for code check-ins and it auto-magically set issues to complete/fixed etc.?
Is there a way?
I don't think there is a way to submit issues via email and now that Atlassian has bought Bitbucket I doubt that they will spend much time improving or enhancing the issue tracking inside Bitbucket as their main product (JIRA) is an very comprehensive issue tracker.
I would sooner expect some sort of integration of the two and a phase out of the current issue tracker. But then we will probably have to pay :-(
Re adding emails:
I want to forward those emails to Bitbucket so problems to go directly into the issue tracker via E-Mail.
Yes you can do this - you need to have an endpoint that receives emails, so for example sendgrid allows this (see Sendgrid webhooks docs), and will call a webhook on your server whenever an email comes in. You then need a bit of glue code on the server to post that issue to bitbucket via the bitbucket API (see the bitbucket api docs). So there are two parts to doing this, and you will need to write some code I think.
I'm currently working on a tool to do just this at Project Page. If anyone would like to try it out let me know. I'm also planning to let it interrogate the user to get a bit more detail about things like priority and urls associated with the problem.
Re the second part of your question:
Similarly, can you configure Bitbucket so that it listens for code check-ins and it auto-magically set issues to complete/fixed etc.?
Yes you can close issues automatically - just use the text fixes #n, so for example:
fixes #123
in the commit message, where 123 is the number of the issue you want to close.
There is a API to create issue http://confluence.atlassian.com/display/BBDEV/Issues.
And a custom script which may or could be able to fetch email and post to issue tracker.
Yes, it's possible. Bitbucket has a robust REST API that lets you do it at least two ways:
Option 1: 3rd Party Service
Use an online API automation service like
Zapier or
Integromat
(Click those links for specific email/Bitbucket integration examples.)
You have a couple of options with this approach. With Zapier, for example, you can have a dedicated Issue-only Gmail address, and any email sent to it creates a new Issues ticket. OR you can automatically create Issues just by assigning a specific label to an email in an existing Gmail account.
Oddly, IFTTT doesn't currently offer Bitbucket integration.
Option 2: Write Your Own Server Script
If you have server access, you can configure your Message Transfer Agent to send certain emails to a PHP script that will create a Bitbucket Issue.
The script will need to use the Bitbucket API repositories > {username} > {repo_slug} > issues > POST method.
A great how-to article for this approach is Process Incoming Mail with PHP Script with Exim.
I'm building a public website which has its own domain name with pop/smtp mail services. I'm considering giving users the option to update their data via email - something similar to the functionality found in Flickr or Blogger where you email posts to a special email address. The email data is then processed and stored in the underlying database for the website.
I'm using ASP.NET and SQL Server and using a shared hosting service. Any ideas how one would implement this, or if it's even possible using shared hosting?
Thanks
For starters you need to have hosting that allows you to create a catch-all mailbox.
Secondly you need a good POP3 or IMAP library, which is not included AFAIK in the .NET stack.
Then you would write a Command Line application or a Service that regularly checks the mailbox, pulls messages, inserts content in db based on the "To" address (which is unique for each user), and then deletes the email from the mailbox.
It's feasible and sounds like fun. Just make sure you have all you need before you start!
If the data is somewhat "critical", or at least moderately important, do NOT use their username as the "change-data-address". Example: You might be tempted to create an address like username#domain.com, but instead use username-randomnumer#domain.com where you give them the random number if the visit the web-page. That way people can not update other peoples data just by knowing their username.
E-mails can be trivially forged. I would only do this if you can process PGP / SMime certificates in your application.
Other than that, I see no reason why not!
use a dotnet popclient to read the incoming emails, parse them for whatever you are expecting and insert the data into the database.
see codeproject website for simple popclient implementation
you would have to decided on the email content yourself, eg data only, payload of sql statements, etc
You could also identify the user based on sender address. This is how Tripit (and probably others) does it. This only requires one e-mail address on your end.
I have done something similar, using Lumisoft's IMAP client and scheduling a task in my app that checks every x minutes the configured mail address for updates. For scheduling I recommend quartz.net. No launching external processes or anything.