-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
read_msg does not work for me on windows when there are special characters in the path. The same code works like expected on linux.
Have a look at the example below. In the path of the second mail there are special characters.
On Windows:
library(magrittr)
library(msgxtractr)
system.file("extdata/unicode.msg", package="msgxtractr") %>%
file.copy(to = c("Copenhagen.msg", "København.msg"), overwrite = TRUE)
#> [1] TRUE TRUE
(mails <- list.files(pattern = "msg"))
#> [1] "Copenhagen.msg" "København.msg"
lapply(mails, read_msg)
#> [[1]]
#> Mon, 18 Nov 2013 10:26:24 +0200
#> From: Brian Zhou <brizhou@gmail.com>
#> To: brianzhou@me.com
#> Subject: Test for TIF files
#> Attachments: 2
#>
#> [[2]]
#> From: [Unspecified]
#> To: [Unspecified]
#> Subject: [Unspecified]
On Linux:
library(magrittr)
library(msgxtractr)
system.file("extdata/unicode.msg", package="msgxtractr") %>%
file.copy(to = c("Copenhagen.msg", "København.msg"), overwrite = TRUE)
#> [1] TRUE TRUE
(mails <- list.files(pattern = "msg"))
#> [1] "Copenhagen.msg" "København.msg"
lapply(mails, read_msg)
#> [[1]]
#> Mon, 18 Nov 2013 10:26:24 +0200
#> From: Brian Zhou <brizhou@gmail.com>
#> To: brianzhou@me.com
#> Subject: Test for TIF files
#> Attachments: 2
#>
#> [[2]]
#> Mon, 18 Nov 2013 10:26:24 +0200
#> From: Brian Zhou <brizhou@gmail.com>
#> To: brianzhou@me.com
#> Subject: Test for TIF files
#> Attachments: 2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels