removeSignature: Remove E-Mail Signatures

Description Usage Arguments Author(s) See Also Examples

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
6
require("tm")
newsgroup <- system.file("mails", package = "tm.plugin.mail")
news <- VCorpus(DirSource(newsgroup),
                readerControl = list(reader = readMail))
news[[7]]
removeSignature(news[[7]], marks = "^[+]-*[+]$")

Example output

Loading required package: tm
Loading required package: NLP
<<MailDocument>>
Metadata:  8
Content:  chars: 847
<<MailDocument>>
Metadata:  8
Content:  chars: 603

tm.plugin.mail documentation built on May 1, 2019, 10:12 p.m.