POPFetcher + attachment = no post

Creating and modifying plugins.
Post Reply
Xani
Regular
Posts: 5
Joined: Tue Mar 25, 2008 11:57 am

POPFetcher + attachment = no post

Post by Xani »

Hi,

I'm having some issues with the (great :-)) POPFetcher plugin. I truly love the functionallity and it works great when I don't add an attachment. If I add an attachment I'm not seeing any text in the posting nor a picture. The picture however is added to the Media Library.

Second question: my hosting server has no Cron installed, is there another way of automating this task?

Thanks
Xani
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: POPFetcher + attachment = no post

Post by garvinhicking »

Hi!

Please tell us how you set the config options of the popfetcher plugin, and which version you are using?
Second question: my hosting server has no Cron installed, is there another way of automating this task?
Yes, you can either use the s9y cronjob plugin or you can simply create a cronjob on some other server (or even your client) that periodically calls the popfetcher URL; it doesn'T need to be the same server!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Xani
Regular
Posts: 5
Joined: Tue Mar 25, 2008 11:57 am

Post by Xani »

Hi Garvin,

thank you so much for your swift reply :-)

Well, about POPFetcher config, I hope I did something wrong in there but I have been playing with it but no luck so far... :( without attachment it works prefect :-)

Image

About the CronJob, according to the owners of the webserver there is no Cron installed so I don't see how the s9y Cronjob can help but I installed it and this is the settings page:

[Edit]: execution is set to internal now

Image

"This plugin periodically executes plugins that provide/require periodic tasks. See the configuration of this plugin for details." ==> This is what the CronJob plugin says in the overview but is the above the configration or is there something I'm missing, if it would work independent from Cron on it's own server?

I don't have a client which is running 24/7 :(

Thanks a lot for your help again,

Xani
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

When you installed the Cronjob Scheduler plugin, popfetcher should have noticed and updated its configuration options. Go look; it should now have an option for how often to update.

The Cronjob Scheduler works by checking whether a cron job needs to be executed every time your page is displayed. If some predetermined time has passed, the Cronjob Scheduler triggers all the plugins who are waiting. The popfetcher is one such plugin.

Note that this means your jobs don't run as often as you might think. If you schedule something to run hourly, but you only get one visitor on some day, then that job will only be run once that day. (The visit wakes up the Cronjob Scheduler, who triggers all the waiting plugins; then he goes back to sleep until someone visits again.)
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Can you try to enable the options

"Use plaintext attachments as entry body"

and

"First text attachment is entry body"

?

Attachments are only added to your body, if either of those is enalbed, but I don't know which one. So enabling both might help.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Xani
Regular
Posts: 5
Joined: Tue Mar 25, 2008 11:57 am

Post by Xani »

Hi,

thanks for the suggestions... but no luck :( only the topic is set right, no text is inserted and the picture is moved to the media lib.

Thanks
Xani
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Can you please send a mail like you send to your popfetcher to my mail address, blog (at) garv (point) in?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Xani
Regular
Posts: 5
Joined: Tue Mar 25, 2008 11:57 am

Post by Xani »

Done :-)

tnx already :-)
Xani
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, it works for me here. When I use your mail as a base with these settings:

[img=http://img265.imageshack.us/img265/4682/serendipityverwaltungsoex6.th.png]

I then get a blog entry with this body:

Code: Select all


<a target="_blank" href="/cvs/serendipity/recent/uploads/IMAGE_005.jpg" class="popfetcherimage"><img alt="Hier klicken für Vollbild-Anzeige" src="/cvs/serendipity/recent/uploads/IMAGE_005.serendipityThumb.jpg" /></a>
I am using popfetcher v. 1.22

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Xani
Regular
Posts: 5
Joined: Tue Mar 25, 2008 11:57 am

Post by Xani »

Hi,

thanks for your post. When I take exactly the same settings as you I got this result:

"/uploads/IMAGE_005.jpg" target="_blank">" with a "non resolvable picture", you know the thing with the red cross that it can't show the picture.

I played a bit more and apparently when I put no limitations (please check my previous post: start capturing test after "Blog" end at the word "toeter" than it shows my picture but NO text at all, even if there is text in the mail.

When I use a text attachment together with the picture than it works perfectly... but sending that from my phone is quite difficult :(


THanks
Xani
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah, I see. The "text restrictions" you make should be responsible for it. It does not handle attachments well, you must then sadly not use those restrictions and always post your full emails. Or add manual links to the attachments you upload...?

The whole text decoding logic is quite hard to do, and there are several side-cases where either options might not apply, because attachments are all seperate parts of a mail and are influenced by the "cutting"...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply