github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

thomas11 / wpmail

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Emacs extension to post to wordpress.com by e-mail. — Read more

  cancel

http://github.com/thomas11/wpmail/tree/master

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

remove redundant conditional 
Thomas Kappler (author)
Wed Nov 25 15:01:11 -0800 2009
commit  3185f52ca351287d3fac66b977bdb878376021ca
tree    48766f7ca36318ce5fe570801a66f29c7de8858a
parent  7831bb136b86b9434ae5b021124d7bb97e25533f
wpmail /
name age
history
message
file .gitignore Loading commit data...
file README.md Tue Nov 24 12:20:40 -0800 2009 Wording of docs. [Thomas Kappler]
file wpmail.el Wed Nov 25 15:01:11 -0800 2009 remove redundant conditional [Thomas Kappler]
README.md

wpmail.el --- Post to wordpress by e-mail

Copyright (C) 2009 Thomas Kappler

  • Author: Thomas Kappler tkappler@gmail.com
  • Created: 2009 June 21
  • Keywords: comm, mail, wordpress, blog, blogging
  • URL: http://github.com/thomas11/wpmail/tree/master

This file is not part of GNU Emacs.

Licensed under the GPL version 3 or later.

Commentary

An Emacs extension to make posting by e-mail to the wordpress.com blog hosting service http://www.wordpress.com easier. It might work with other wordpress installations, which I have not tried. For more information about posting to wordpress by e-mail see the support page http://support.wordpress.com/post-by-email/.

Documentation is a bit lacking, but here's the gist: start a new post, possibly from the region or the buffer, with wpmail-new-post or wpmail-new-post-here. Send it with wpmail-send-post when you are done. wpmail will prompt for title and category; it will propose some titles that you can see via M-n, and it auto-completes the categories in wpmail-categories. See the documentation of these functions for details.

You can write your posts in Markdown format http://daringfireball.net/projects/markdown/ if you have markdown-mode http://jblevins.org/projects/markdown-mode/ installed. Set wpmail-markdown-command to your Markdown converter and posts will be converted to HTML when sending them.

Dependencies

Message from Gnus. It is included in Emacs, at least in version 23. Tested with Emacs 23 and Gnus v5.13.

Installation

Customize the variables at the top of the code section, and (require 'wpmail) in your init file.

History

  • 2009-07: First release.
  • 2009-11-03: Add post-configured-p and use it. Allow creating a new post in current buffer.
  • 2009-11-24: Add Markdown support.

TODO

When proposing the file name for a title, remove suffixes.

Offer before- and after-send hooks, to allow things like transforming the markup or saving all published posts in a certain directory.

If you set wpmail-markdown-command, wpmail blindly assumes you use Markdown for all your posts and will convert them all when sending them off.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server