Remove E-Mail Signatures

Share:

Description

Remove signature lines from an e-mail message.

Usage

1
2
## S3 method for class 'MailDocument'
removeSignature(x, ...)

Arguments

x

A mail document.

...

the argument marks giving a character of signature identifications marks (in form of regular expression patterns). Note that the official signature start mark -- (dash dash blank) is always considered.

Author(s)

Ingo Feinerer

See Also

removeCitation to remove e-mail citations, and removeMultipart to remove non-text parts from multipart e-mail messages.

Examples

1
2
3
4
5
require("tm")
newsgroup <- system.file("mails", package = "tm.plugin.mail")
news <- VCorpus(DirSource(newsgroup), readerControl = list(reader = readMail))
news[[7]]
removeSignature(news[[7]], marks = "^[+]-*[+]$")