{"id":1664,"date":"2013-07-18T03:05:09","date_gmt":"2013-07-18T03:05:09","guid":{"rendered":"https:\/\/notebooks.dataone.org\/?p=1664"},"modified":"2013-07-18T03:05:09","modified_gmt":"2013-07-18T03:05:09","slug":"e-mail-to-open-notebook-shortcodes","status":"publish","type":"post","link":"https:\/\/notebooks.dataone.org\/data-science\/e-mail-to-open-notebook-shortcodes\/","title":{"rendered":"E-mail to Open Notebook – Shortcodes"},"content":{"rendered":"
Google Search used:<\/p>\n
“post by e-mail” AND draft site:wordpress.com<\/p>\n
Third result poses question:<\/p>\n
can the default publish status be \u201cdraft\u201d, or are all Post by Email submissions published immedately<\/p>\n
The site is en.blog.wordpress.com<\/p>\n
So this is probably what I am interested in.<\/p>\n
From another blog, I may have found the answer.<\/p>\n
Somewhere in the post via e-mail, the post needs to have the text “status.draft”<\/p>\n
I imagine this could go before my “Hi Chad” blog.<\/p>\n
Here’s the clue I lifted from another site that mentions a “hack” for getting speech-to-post, which could be useful for some researchers, but not me.<\/p>\n
Save Your Blog Post as a WordPress Draft<\/em> Source: http:\/\/baysweetwater.wordpress.com\/tag\/second-life-disabled\/<\/a><\/p>\n I probably have my answer but since I typically open new tabs from search results, I got my “http:\/\/en.blog.wordpress.com\/2009\/05\/12\/post-by-email\/<\/a>” link that showed up from the initial Google search results.<\/p>\n I’m pretty sure I’ve seen this page before so I did a ctrl-F for “draft” to find where this was, and it was mentioned in the comments. The comments lead me to a new link and keyword shortcode.<\/p>\n Apparently the shortcodes are little instructions for the wordpress platform to do certain things. There are maybe two dozen of them that might be worth looking into more.<\/p>\n Here is a discussion of them:<\/p>\n http:\/\/en.support.wordpress.com\/post-by-email\/#shortcodes<\/a><\/p>\n And some more documentation here:<\/p>\n http:\/\/en.support.wordpress.com\/category\/shortcodes\/<\/a><\/p>\n Interestingly, there are shortcode sets for Google Docs, LaTeX <http:\/\/en.support.wordpress.com\/latex\/<\/a>>, and Microsoft Skydrive Excel Web App. These could all potentially be useful to the open notebook researcher using a wordpress open notebook.<\/p>\n Regarding the list of shortcodes, some that may be useful include:<\/p>\n[excerpt]some excerpt[\/excerpt]\n[title Your post title]\n[end] \u2013 everything after this shortcode is ignored (i.e. signatures). Make sure it\u2019s on its own line with a blank line above it.<\/p>\n[category Hol,Fo]\n(e.g., category “holiday” and category “food”<\/p>\n Tags So, with this info, my next step is to try it out with my message about evolution visualization.<\/p>\n Also from my previous entry I was confused about nothing being posted and suspected the “boilerplate” e-mail heading with your basic e-mail metadata.<\/p>\n Looking over this again, the problem was the <hr> in the forwarded e-mail.<\/p>\n I’ve deleted that and kept the “metadata” and tried again.<\/p>\n I’m including<\/p>\n category research I’m also going to try changing the title to something like “Network Visualization with NESCENT GeoPhyloBuilder”<\/p>\n And of course, status.draft.<\/p>\n Build those in there.<\/p>\n Actually putting them in a group at the end. See how that goes.<\/p>\n The title is actually a good one to see if there is a difference with upper and lower case (everything is supposed to be lower case with these tags).<\/p>\n Here’s what I put in:<\/p>\n[status.draft]\n[category research]\n[tags visualization, network analysis]\n[title Network Visualization with NESCENT GeoPhyloBuilder]\n Let’s see what happens\u2026<\/p>\n Practically immediately I got a notification in my personal e-mail inbox from WordPress (apparently I subscribed a while back to my own posts).<\/p>\n The tags work, the title works, the category did not work (perhaps because the category does not exist already?)<\/p>\n If I set up an auto-filter and routing that could create an interesting feedback loop\u2026<\/p>\n Essentially this is the notification I got:<\/p>\n Post : Network Visualization with NESCENT GeoPhyloBuilder From: Jessel, Tanner Monroe Hi Chad,<\/p>\n FYI because it’s cool, and also because I want to note it for future possible use on the network visualization project.<\/p>\n https:\/\/www.nescent.org\/wg_EvoViz\/Main_Page<\/a><\/p>\n https:\/\/www.nescent.org\/wg_EvoViz\/GeoPhyloBuilder<\/a><\/p>\n -Tanner<\/p>\n Add a comment to this post: http:\/\/mountainsol.wordpress.com\/2013\/07\/18\/network-visualization-with-nescent-geophylobuilder\/#respond<\/a><\/p>\n <\/p>\n — Alright. So. modify the test.<\/p>\n will put status.draft somewhere else. maybe before the header?<\/p>\n Also, it appears WP did not ignore the “boiler plate.” It includes the “alias” of the person in the e-mail.<\/p>\n For now that is good because it will protect collaborator’s e-mails.<\/p>\n Ok, so modify the test to put status.draft first.<\/p>\n Or perhaps I overlooked something in the original instruction.<\/p>\n This time I placed “status.draft” with no quotes and no brackets as the first line.<\/p>\n Let’s see what happens.<\/p>\n From the notification I got, bad news. It did not publish as draft.<\/p>\n Maybe this feature is no longer supported?<\/p>\n In that case, perhaps I should turn to exploiting the “delay” feature. A time delay of 2 days would effectively serve as a draft. 7 days would essentially be the same as draft and perhaps a safeguard against inadvertently noted notebook science.<\/p>\n So let me try the time delay for a second.<\/p>\n I’ll swap out the status.draft shortcode for something.<\/p>\n referencing:<\/p>\n Delaying Your Post<\/p>\n The delay shortcode will accept any time allowed by PHP\u2019s strtotime. For example, you can:<\/p>\n[delay +1 hour]\n[delay +2 days]\n You can also schedule a post to be published at a precise time, as in this example:<\/p>\n[delay 2013-12-01 11:30:00 EST]\n I’ll just go with delay +1 hour and see what happens.<\/p>\n Sent that one.<\/p>\n Unfortunately, I have Test 3 showing up in my inbox so that did not delay at all.<\/p>\n I’m curious if maybe [status draft] could really be what I need.<\/p>\n I’m going to try a Test 4 and see if that works. Frustrating. Still got a new post notification, and it was published to the public. Let me check in another browser to confirm both Test 3 and Test 4 are visible.<\/p>\n Open firefox.<\/p>\n Copy http:\/\/mountainsol.wordpress.com\/<\/p>\n Load http:\/\/mountainsol.wordpress.com\/<\/p>\n Confirm “recent posts” list test 4 and test 3.<\/p>\n Another interesting thing is that the timestamp is July 18.<\/p>\n Should I do a test 5 with condition of delay +2 days to account for some kind of time zone error I haven’t appreciated?<\/p>\n Might as well try. Test 5. condition – delay +2 days<\/p>\n Also perhaps I did not use the correct syntax, and I did not record it in this notebook to confirm (although it is recorded in the sent e-mail.) Correct. Used “1 day” therefore it is possible that I did not use the proper syntax.<\/p>\n The issue is resolved with test 5 (note: did not change title to reflect test 5).<\/p>\n Unfortunately despite correct syntax, the delay did not work.<\/p>\n At this point I feel I’ve spent more time than I expected developing this workflow. I’m somewhat frustrated and out of ideas.<\/p>\n The key point of this is that yes, e-mail to post can save some steps and potential data quality and completeness issues.<\/p>\n My earlier proposal involved multiple steps and transfers.<\/p>\n This allows nearly complete duplication of e-mail content with very little loss of fidelity.<\/p>\n By minimizing the steps, chances for human error are minimized.<\/p>\n I also like that some simple notations can be added to each forwarded e-mail, such as changing the title, or adding tags.<\/p>\n Again, it is disappointing that I could not get the “delay” or the “draft” features to work and I will likely research this further. However I need to move on to looking at how to integrate the workflow in the production environment (e.g., the DataONE open notebook site), compared to my own personal blog.<\/p>\n As discussed earlier, some options might include re-blogging posts from my personal blog, or getting the post-via-email set up on notebooks.dataone.org<\/p>\n","protected":false},"excerpt":{"rendered":" Google Search used: “post by e-mail” AND draft site:wordpress.com Third result poses question: can the default publish status be \u201cdraft\u201d, or are all Post by Email submissions published immedately The site is en.blog.wordpress.com So this is probably what I am interested in. From another blog, I may have found the Continue reading E-mail to Open Notebook – Shortcodes<\/span>
\nAt first, you will probably want your post to be saved as a WordPress draft blog post, rather than a published post, in your blog \u2014 \u00a0since the original transcription draft will probably be a little rough. If so, you must type the following text somewhere in your post: [status.draft]<\/em>
\nAfter saving it as a draft, you can finalize it and then publish it later from inside WordPress.<\/em><\/p>\n
\n[tags one potato, two potato, three potato, more]\nSome time delays from 1 hour to several days can also be used.<\/p>\n
\ntags visualization, network analysis<\/p>\n
\nURL : http:\/\/mountainsol.wordpress.com\/2013\/07\/18\/network-visualization-with-nescent-geophylobuilder\/<\/a>
\nPosted : July 18, 2013 at 2:01 am
\nAuthor : Tanner Jessel
\nTags : network analysis, visualization
\nCategories : Uncategorized<\/p>\n
\nSent: Monday, February 11, 2013 4:51 PM
\nTo: Mitchell, Chad Matthew
\nSubject: Evolution Visualization Tools – GeoPhyloBuilder<\/p>\n
\nWordPress.com | Thanks for flying with WordPress!<\/p>\n
\ncondition is delay +1 day<\/p>\n
\nWill look.<\/p>\n