well, after the core upgrade i went back to work on the email publishing. i really have had a hard time with one aspect of the mod. i am able to get the content in, display it in a view. but the content of the email was being stripped down to filtered html and not full so all the formatting was a mess. i have made it work though and it was this post that really helped me. I would save the “master” piece of content (node) for my custom content type to the full html spec for the body. but it would always set itself back to filtered. i tried everything. deleted the content. redid the whole work flow. more than once. went through everything i could think of. then i found that post above. and that seemed to do the trick. such a trial! i’ll write more tomorrow. but this is working and looks pretty good.
now, email newsletters from a government agency are published automatically in all their full html beauty on my site. which will be a great service to my customers.
Well, I have made more progress on this and understand it pretty well now.
- Mailhandler Mailbox – [Name is firstname.lastname@example.org] Connects you to the POP3/IMAP4 Mailbox.
- Feeds Importer [TNCourts] – This is one of the big ones. You tie the IMAP Fetcher and the IMAP Parser to the Content type that you should already have created. In this case, it is TNCourts
- Content Type [TNCourts] – I think this is where i have some work to do because the body of my email is there but showing up in the View that I have created.
- Content [TNCourts] – I unpublish this so it won’t show in my view but you have to have it. Even though it appears as a piece of content the same way that the nodes created by this process are, it is the master for those and the import will break if you delete it. To keep it from showing in Views, I just unpublish it.
- Nodes [titles from the subject] of the emails that are imported if you made that choice in step 2 in the Feeds importer mapping. Subject source title target.
- Views – Create one to display the content type TNCourts where the content is published.
This is a tricky area. But what you can get from it is really worth the effort.
Well, I’m just about done with this. And it was a bit of a chore. But it does work, well at that. Here are some of the point to consider
** Since I am receiving email from an outside party from a mailing list, I created a dummy account with that email address.
I believe that I have the Mailhandler module working properly. And, as usual with Drupal, there are a few quirks.
I tried it with my gmail account, which requires TCP port 995 for POP3 or 993 for IMAP4 These are the secure versions of these protocols. But they don’t appear to work properly. At least, I couldn’t get them. But I have my DOCResource.org email provider, Blackmesh.com, and they were able to give me some fast assistance.
I used IMAP, over port 143. I created an address on the qmail admin page, set the password and then went through the very simple process of connecting. Here is a note. When you are connected successfully, you will get a notice seen in the attached image. But when it fails, it should fail quickly and not tell you anything. And that slowed me down because I thought that it was working. So look for the msg below.
The next step is to configure a Feed importer that uses the Mailhandler mod as a “Fetcher”. I have mine setup but I am not sure if it is working yet. Will return soon.
I’m working with the Mailhandler module in my sandbox. Of course, there are prereqs. I have to install Feeds. So I installed the Feeds module but I’m only enabling the Feeds submod itself. then, the mailhandler mod and mailhandler IMAP module. So I also have to enable PHP IMAP. Here is the message the you will get when you try to enable the module:
Mailhandler PHP IMAP requires that PHP’s IMAP extension is enabled in order to function properly. (Currently using IMAP Not found).
OK, this is easier than it appears, especially in Centos. From the command line type,
yum install php-imap
service httpd restart
So easy. I think that I love Linux. And my whole career I have been a Microsoft guy. 😉
Now you’ll be able to choose the submod. Now, I have it in Sand. Going to make sure nothing is broken then install it in prod.
also installing features
feeds admin ui
strongarm – you only need these mods for the example submod. i’m not going to put it in prod.
I believe that the settings for the mailbox are ok. going to try the rest of this and see what happens.
Here is a promising candidate. Mailhandler. It has been around for about 9 years and although it is only used on 2500 sites, it looks like it has been well maintained. I’m going to install it and see what happens.
One of the things that I need to be able to do is publish content via email. I currently receive information from the Appellate courts of TN that will be of interest to those who use my site. They don’t have an RSS feed for this but they do email me summaries and links.
There are options out there for this sort of thing but I am not sure how good they are. But I believe this will be a real convenience for me because I can easily script email messages via Blat. If you’ve never used Blat before and have a need for automating log file retrieval via email check it out. I used it for years in the corporate world and it is a great tool and it is free. But you do need a way to relay mail, which can classify you as a spammer to many so be aware of the implications.
But I will be working on that today and will provide an update later.