Add via Email module - still alive?
BillWill
Joined: 2008-08-28
Posts: 205 |
Posted: Thu, 2008-12-25 10:37 |
Hello - At http://codex.gallery2.org/Gallery2:Modules:addviaemail I found these instructions for adding the Add via Email module: site Admin" -> "plugins" -> "Get More Plugins" tab -> "Import" section -> download the Add via Email module. However, I do not see this option listed. Has this module been abandoned, or are there an updated version of the docs somewhere? Thanks, |
|
Posts: 205
Well apparently the documentation has fallen behind reality here.
I found the module here:
http://gallery.svn.sourceforge.net/viewvc/gallery-contrib/trunk/gallery2/modules/
I downloaded it, unzipped it, uploaded it to the modules directory of my install, and THEN I could install it via the admin panel. Added the block, put in the correct info, and the block says it is checking email correctly.
The only problem is, it isn't downloading anything. The emails and attached images are getting to the email account, but the addviaemail module is not bringing it down.
Any solutions out there, or did this not make it all the way to Gallery 2.3?
Posts: 4342
I've just done some testing for you:
The Addviaemail module is in the repository, it does install 100% correctly from the "Get More Plugins Page" (site Admin" -> "plugins" -> "Get More Plugins" tab -> "Import" section -> download the Add via Email module) and when installed as per the instructions, it does download emails and install the contained images into the Gallery pretty much as advertised - I can't fault it.
I haven't checked running it via a crontab though.
That's on top of a stock G2.3 installation.
Posts: 205
Thanks for doing the testing. I really appreciate it, since I've banging my head against the wall for a couple of days now with no positive results.
I unistalled it, thinking my method of uploading the file had caused the problem, and then added it through the control panel (yes, there it was - don't know how I missed it before).
Fresh install, I checked all the settings again, and sent two photos. One from hotmail, and another from a different account. Neither photo showed up in the gallery.
All of my tests are making it to the account I setup for this mod, and I have 10 photos in my outlook express inbox to prove it. I have "leave copy on server" checked, so they are still up there for the mod to get to, and many of the photos have been up there for over 24 hours.
Also, I get this message from the mod:
AddviaEmail results:
Mailbox Checked
0 pictures added.
Any idea as to why yours is working and mine is not?
Thanks again for your help.
Bill
Posts: 4342
Looks like the module author has helpfully put some debugging info in - try again with debug enabled (buffered mode) in your config.php.
Posts: 205
Hi Alec-
Thanks for the info. I did as you suggested, and got a lot of information. However, I don' know what to do with it. If I paste it into a post, can you help me interpret the results?
Posts: 4342
Sure. You probably want to post it as an attachment, though.
Posts: 205
here goes . . .
one attachment is from the debug, the second from when I run the cron from my browser to check the mail.
Posts: 4342
Don't know about the cron thing - but you have this in the debug log:
A quick look through the code reveals this:
So it looks like your email is encoded with the wrong (unexpected/unhandled) format.
The email I tested it with was sent from outlook express, a simple message with a single attachment. Try a different email client, and keep the email as simple as possible.
Posts: 205
Hello -
All but one of the test emails I've sent are from Outlook express. The one that wasn't was from hotmail.
In all cases, I sent one attachment, the subject line matched the one I created in the admin area, and a message with a couple of words like "here it is."
So basically, my unsuccessful tests have been the same as your successful ones.
I've uninstalled and reinstalled it, and still no change.
Is this encoding problem something I can fix in addviaemail mod?
Thanks again,
Bill
Posts: 4342
are you using OE on a mac or a pc?
Posts: 4342
Having a perfunctory look at the struct of your email message as reported in the log, the problem is that your Primary Body Type is 1 (multipart) when it should (according to addviaemail code) be 0 (text)
I guess therefore you're sending the email as multipart coded text/html. Send the body as plain-text only, and it has a better chance of working.
Well, anything is fixable because you have the source code. But I suspect if you had the ability to fix it in short order, you wouldn't be asking me to tell you what was wrong, you'd have found out yourself by now.
Posts: 15
You are 100% correct. It must be a plain text email.
A few tips. (Can be found in the read me file)
You must publish the block in the sidebar or somewhere else in the template (in themes)
Multiple files sent at once.
A superior man is modest in his speech, but exceeds in his actions.
Confucius
Posts: 9
I can't make Add via Email plugin to work under my 1and1 account. Do I need to setup some cron job to pool emails from my POP3 account? Can anyone suggest any steps to debug the problem? I scanned through the g2 debug output but didn't find any traces of the plugin problems. Here is all I see that has to do with Add via Email:
Thank you,
--Alik