FAQ Category: Usage

Specifying the End of the Post

Postie has a setting called “Tag Of Message End” which allows you to optionally specify some text that indicates the end of the post. This is useful when the email is coming from a mailing list and you want to automatically strip out the footers or your ISP adds unwanted text to the end of your emails.

There is no default value of “Tag Of Message End” so you will need to set one if you want to use this feature. It is not required to specify the end of the message.

So if set “Tag Of Message End” to “:end” and your message looks like:

Here is my message
:end
With extra stuff

Postie will remove everything after and including the “:end” resulting in a post like:

Here is my message

If your incoming emails look like:

Daily Backup of Database ( test )
Rotating last weeks Backup...
removed `/var/lib/automysqlbackup/daily/test/test_2014-09-12_07h47m.Friday.sql.gz'

Backup Information for /var/lib/automysqlbackup/daily/test/test_2014-09-19_07h47m.Friday.sql
         compressed        uncompressed  ratio uncompressed_name
                563                1412  64.4% /var/lib/automysqlbackup/daily/test/test_2014-09-19_07h47m.Friday.sql
----------------------------------------------------------------------
Backup End Fri Sep 19 07:47:03 BST 2014
======================================================================
Total disk space used for backup storage..
Size - Location
682M /var/lib/automysqlbackup

======================================================================
If you find AutoMySQLBackup valuable please make a donation at
http://sourceforge.net/project/project_donations.php?group_id=101066
======================================================================

You could change the “Tag Of Message End” to “If you find AutoMySQLBackup” and your post will look like:

Daily Backup of Database ( test )
Rotating last weeks Backup...
removed `/var/lib/automysqlbackup/daily/test/test_2014-09-12_07h47m.Friday.sql.gz'

Backup Information for /var/lib/automysqlbackup/daily/test/test_2014-09-19_07h47m.Friday.sql
         compressed        uncompressed  ratio uncompressed_name
                563                1412  64.4% /var/lib/automysqlbackup/daily/test/test_2014-09-19_07h47m.Friday.sql
----------------------------------------------------------------------
Backup End Fri Sep 19 07:47:03 BST 2014
======================================================================
Total disk space used for backup storage..
Size - Location
682M /var/lib/automysqlbackup

======================================================================

Note you can’t use “====” as the “Tag Of Message End” as Postie looks for the tag starting at the beginning of the message and will remove too much.

Override Post Status

Posts can have their status set to draft, publish, pending, future or private. This will override the Default Post Status set in the settings screen.

Usage (in the message body):

status: [draft | publish | pending | private | future]

Note that the future status will only be detected with Postie 1.6.18 or higher.

You can use status: future combined with date to created a scheduled post.

Example

status: draft

Specifying the Beginning of the Post

Postie has a setting called “Tag Of Message Start” which allows you to specify some text that indicates the start of the post. This is useful when the email is coming from a mailing list and you want to automatically strip out the headers or your ISP adds unwanted text to the beginning of your emails.

There is no default value for “Tag Of Message Start” so if you want to use this feature you will need to specify a value.

If your incoming emails look like:

[This e-mail has been automatically generated.]

You have one or more bugs assigned to you in the Bugzilla bug tracking system that require attention.
You will get this message once a day until you've dealt with these bugs!

 Sample defect
    -> http://app.devzing.com/testopia/bugzilla/show_bug.cgi?id=1
 test
    -> http://app.devzing.com/testopia/bugzilla/show_bug.cgi?id=2
 [Test Case 2] Test Case 1

You could change the “Tag Of Message Start” to “until you’ve dealt with these bugs!” and your post will look like:

 Sample defect
    -> http://app.devzing.com/testopia/bugzilla/show_bug.cgi?id=1
 test
    -> http://app.devzing.com/testopia/bugzilla/show_bug.cgi?id=2
 [Test Case 2] Test Case 1