email to blog function

Discussion corner for Developers of Serendipity.
Post Reply
jensen
Regular
Posts: 16
Joined: Wed Nov 09, 2005 6:12 pm

email to blog function

Post by jensen »

hi all,

is there/will there be an option to send an email to the blog so that the post will be in the blog (like blogger.com offers)? would improve mobility, just send an email with your cellphone to the blog?!


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

Re: email to blog function

Post by garvinhicking »

We have the popfetcher plugin and the mail2s9y.sh shellscript for moblogging.

You can create a cronjob on your server (or use a free cronjob service for wget a URL) to make the popfetcher automatically poll your fresh mails.

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/
jensen
Regular
Posts: 16
Joined: Wed Nov 09, 2005 6:12 pm

Post by jensen »

could you give me an example of how the cronjob would look like?

cheers,
jens
jensen
Regular
Posts: 16
Joined: Wed Nov 09, 2005 6:12 pm

Post by jensen »

got it, thanks.

but does the cronjob effect a counter? e.g. if i call that cronjob every 10 min. will there be a count? (i quess i have to exclude the server IP from counting, right?)

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

Post by garvinhicking »

Counter? What do you mean with that?

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/
jensen
Regular
Posts: 16
Joined: Wed Nov 09, 2005 6:12 pm

Post by jensen »

does the cronjob need any special rights/setting on the server? i tried with user nobody, but does not work?

cheers,
jensen
zoran
Regular
Posts: 71
Joined: Sun Jan 16, 2005 9:13 pm
Location: Amsterdam
Contact:

Post by zoran »

what part does not work? did you try the cron command you are giving on the command line? did you set the plugin type to 'external' in the config?

i use:

Code: Select all

wget -q -O /dev/null http://hostname.tld/index.php?/plugin/<<insert External Launch Name defined in plugin here>>
good luck!

zz.
jensen
Regular
Posts: 16
Joined: Wed Nov 09, 2005 6:12 pm

Post by jensen »

do i need to set a special usertype for the cronjob? e.g. nobody oder www-user (i use nobody, but doesn't work?!)


cheers,
jens
zoran
Regular
Posts: 71
Joined: Sun Jan 16, 2005 9:13 pm
Location: Amsterdam
Contact:

Post by zoran »

I use my own useraccount. Try su-ing to the desiderd account and execute the command. If all else fails, try it as root.

What is the error? If you remove the -q you'll get a verbose output from wget.
Post Reply