Useful command for mailhandler

The "commands" referred to below get put into the Admin->mailhandler->list->Default commands field. A sample of commands that can be used to post incoming emails to a forum would be (including the square brackets):

type: forum
taxonomy: [My Forum]
promote: 0
status: 1

Where [My Forum] is the "term" in the "forums" vocabulary that was automatically created when a forum named "My Forum" was created (see Admin->Categories).

These can be put either on the configuration page for the mailbox, if you want them to be defaults, or at the beginning of the email:

pass: password
(If you required one on the configuration page.)

type: blog
(or story, or page. use type=comment to force a comment. can be used with nid= command)

taxonomy: [cat1,cat2]
(or whatever your categories are. The square brackets are needed.]

promote: 1
(0 if you don't want it promoted)

status: 1
(0 if you don't want it published)

comment: 2
(0 if no comments, 1 if read-only comments)

Also, in the headers of the email, if you put

In-Reply-To: nid=5

then the email becomes the new version of node 5. I'm told that there's a way to take it down to the level of comments, presumably by using In-Reply-To and the comment id#, but I haven't checked that.

format: #
This is set the format for your submission to be the input format # for you site.

Mais infos: Drupal-Mailhandler-Tutorial

Enviar novo comentário

O conteúdo deste campo é mantido privado e não será publicado.
  • Linhas e parágrafos são quebrados automaticamente.
  • Você pode publicar código PHP. Você deve incluir as tags <?php ?>.

Mais informações sobre opções de formatação

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Escreva os caracteres da imagem (respeitando caixa alta/baixa)