Skip to content

Commit

Permalink
Send CRAN package/mirror maintainer emails to CRAN with maintainers i…
Browse files Browse the repository at this point in the history
…n Bcc.

git-svn-id: https://svn.r-project.org/R/trunk@87068 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Aug 28, 2024
1 parent b5d27a3 commit 1d0f1ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/library/tools/R/CRANtools.R
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ function(mirrors, db = NULL, collapse = TRUE)
addresses <- gsub("[[:space:]]*#[[:space:]]*", "@", addresses)
to <- unique(unlist(strsplit(addresses,
"[[:space:]]*,[[:space:]]*")))
head <- list("To" = to,
"CC" = "CRAN@R-project.org",
head <- list("To" = "CRAN@R-project.org",
"Bcc" = to,
"Subject" = "CRAN mirrors maintained by you",
"Reply-To" = "CRAN@R-project.org")
if(collapse) {
head$To <- paste(head$To, collapse = ",\n ")
head$Bcc <- paste(head$Bcc, collapse = ",\n ")
head <- sprintf("%s: %s", names(head), unlist(head))
}
len <- length(addresses)
Expand Down Expand Up @@ -563,12 +563,12 @@ function(packages, db = NULL, collapse = TRUE)
ind <- match(packages, db[, "Package"])
addresses <- db[ind, "Address"]
to <- sort(unique(addresses))
head <- list("To" = to,
"CC" = "CRAN@R-project.org",
head <- list("To" = "CRAN@R-project.org",
"Bcc" = to,
"Subject" = "CRAN packages maintained by you",
"Reply-To" = "CRAN@R-project.org")
if(collapse) {
head$To <- paste(head$To, collapse = ",\n ")
head$Bcc <- paste(head$Bcc, collapse = ",\n ")
head <- sprintf("%s: %s", names(head), unlist(head))
}
lst <- split(db[ind, "Package"], db[ind, "Maintainer"])
Expand Down

0 comments on commit 1d0f1ae

Please sign in to comment.