Inbound mail Alfresco - alfresco

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.

Related

How to Import Contacts from Hotmail

I am trying to import contacts from Hotmail in Asp.Net Project but I am unable to find proper documentation that's working . is there any changes microsoft made . I have read somewhere that microsoft is not allowing to share this info.
I have used following two links but Link info redirects us to onedrive
http://gnillydev.blogspot.in/2007/10/live-msn-hotmail-contacts-importing-in.html
Yes, a lot has changed in Microsoft when subject is contacts importing.
Client
Now MSN, Hotmail and WindowsLive are all under Outlook.com. I.e., you must import your contacts from Outlook.com in order to get your contacts from all the these clients (including Hotmail).
Importing Protocol
Microsoft used, until few years ago, a custom protocol very close to OAuth (v1), called DeLauth. But, thanks God, now they're more towards to the existing standards, and now we can import contacts using the standard OAuth v2.
It's called Live Connect and you can read more about it here.
If you need to learn about OAuth2, I like this tutorial.
How to Implement
As you're using asp.net, you'll need to use the Authorization code grant flow (in above tutorial called Authorization code flow).
Basically: after register (one time only) your web app with Microsoft (requesting to use the Contacts API), you'll need to display to the user a hyperlink. User will click and a consent popup will be displayed.
Probably you already faced this consent popup in modern apps/games or websites asking grants like "Foo wants to access your profile info", etc.
Once user granted access to the API you want to use, then you'll receive an access code (which is temporary). Now using HTTPRequest class, you'll use this code to request the access token.
Then now finally, with this access token, you can make the API calls. Using again the HTTPRequest class.
Easy Path
You can find more Live Connect questions here in SO, like this good one.
Additionally, you can use ready-to-use solutions, like CloudSponge.com (with the benefit of support other address book sources). Disclaimer: I work for CloudSponge.
i'm not positive but you probably have to export from hotmail first, into a csv file (for ex), then work with that.

How to send an anonymous email through Wordpress?

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.

Alfresco : Pull E-Mails without imap

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.

Publish Subscribe Content Notifications

I came across this site in alfresco discussing publish/subscribe notifications within alfresco and was wondering if there were any progress on it or someone had created an add-on
http://wiki.alfresco.com/wiki/Publish_Subscribe_Content_Notifications
Only type of notification I've read thus far from the wiki or forums is email or using rss feeds. The CMIS specifications does not encompass this and alfresco web services does not include any such methods.
We have several web applications that need to download content once a document has been uploaded and transformed in alfresco. I could develop an action to push the documents to the appropriate app, but that would require me to know every endpoint. At this point there are only 3 application but there are requirements to add additional ones in the future. Having a publisher/subscriber model would make the solution more scalable and easy maintenance in the future
What if you wrote a custom action that adds a message to a queue. You could have the queue/topic name configurable so that when someone configures a rule on a folder, they can specify which queue to put the message on. Your apps can then subscribe to the queue and act appropriately.
You could also do something similar as a step in a workflow.
Maybe the message would be something simple like the nodeRef or the CMIS object ID.

How do I send Issues into BitBucket by email?

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.

Resources