diff --git a/docs/articles/basics_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/articles/basics_files/accessible-code-block-0.0.1/empty-anchor.js deleted file mode 100644 index ca349fd..0000000 --- a/docs/articles/basics_files/accessible-code-block-0.0.1/empty-anchor.js +++ /dev/null @@ -1,15 +0,0 @@ -// Hide empty tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> -// v0.0.1 -// Written by JooYoung Seo (jooyoung@psu.edu) and Atsushi Yasumoto on June 1st, 2020. - -document.addEventListener('DOMContentLoaded', function() { - const codeList = document.getElementsByClassName("sourceCode"); - for (var i = 0; i < codeList.length; i++) { - var linkList = codeList[i].getElementsByTagName('a'); - for (var j = 0; j < linkList.length; j++) { - if (linkList[j].innerHTML === "") { - linkList[j].setAttribute('aria-hidden', 'true'); - } - } - } -}); diff --git a/docs/articles/code_migration_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/articles/code_migration_files/accessible-code-block-0.0.1/empty-anchor.js deleted file mode 100644 index ca349fd..0000000 --- a/docs/articles/code_migration_files/accessible-code-block-0.0.1/empty-anchor.js +++ /dev/null @@ -1,15 +0,0 @@ -// Hide empty tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> -// v0.0.1 -// Written by JooYoung Seo (jooyoung@psu.edu) and Atsushi Yasumoto on June 1st, 2020. - -document.addEventListener('DOMContentLoaded', function() { - const codeList = document.getElementsByClassName("sourceCode"); - for (var i = 0; i < codeList.length; i++) { - var linkList = codeList[i].getElementsByTagName('a'); - for (var j = 0; j < linkList.length; j++) { - if (linkList[j].innerHTML === "") { - linkList[j].setAttribute('aria-hidden', 'true'); - } - } - } -}); diff --git a/docs/articles/figures/basics/get-fetch_attachments1.png b/docs/articles/figures/basics/get-fetch_attachments1.png deleted file mode 100644 index 3e4c3b7..0000000 Binary files a/docs/articles/figures/basics/get-fetch_attachments1.png and /dev/null differ diff --git a/docs/articles/figures/basics/get-fetch_attachments2.png b/docs/articles/figures/basics/get-fetch_attachments2.png deleted file mode 100644 index 7945338..0000000 Binary files a/docs/articles/figures/basics/get-fetch_attachments2.png and /dev/null differ diff --git a/docs/articles/xoauth2.0_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/articles/xoauth2.0_files/accessible-code-block-0.0.1/empty-anchor.js deleted file mode 100644 index ca349fd..0000000 --- a/docs/articles/xoauth2.0_files/accessible-code-block-0.0.1/empty-anchor.js +++ /dev/null @@ -1,15 +0,0 @@ -// Hide empty tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> -// v0.0.1 -// Written by JooYoung Seo (jooyoung@psu.edu) and Atsushi Yasumoto on June 1st, 2020. - -document.addEventListener('DOMContentLoaded', function() { - const codeList = document.getElementsByClassName("sourceCode"); - for (var i = 0; i < codeList.length; i++) { - var linkList = codeList[i].getElementsByTagName('a'); - for (var j = 0; j < linkList.length; j++) { - if (linkList[j].innerHTML === "") { - linkList[j].setAttribute('aria-hidden', 'true'); - } - } - } -}); diff --git a/docs/docsearch.css b/docs/docsearch.css deleted file mode 100644 index e5f1fe1..0000000 --- a/docs/docsearch.css +++ /dev/null @@ -1,148 +0,0 @@ -/* Docsearch -------------------------------------------------------------- */ -/* - Source: https://github.com/algolia/docsearch/ - License: MIT -*/ - -.algolia-autocomplete { - display: block; - -webkit-box-flex: 1; - -ms-flex: 1; - flex: 1 -} - -.algolia-autocomplete .ds-dropdown-menu { - width: 100%; - min-width: none; - max-width: none; - padding: .75rem 0; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 0, 0, .1); - box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .175); -} - -@media (min-width:768px) { - .algolia-autocomplete .ds-dropdown-menu { - width: 175% - } -} - -.algolia-autocomplete .ds-dropdown-menu::before { - display: none -} - -.algolia-autocomplete .ds-dropdown-menu [class^=ds-dataset-] { - padding: 0; - background-color: rgb(255,255,255); - border: 0; - max-height: 80vh; -} - -.algolia-autocomplete .ds-dropdown-menu .ds-suggestions { - margin-top: 0 -} - -.algolia-autocomplete .algolia-docsearch-suggestion { - padding: 0; - overflow: visible -} - -.algolia-autocomplete .algolia-docsearch-suggestion--category-header { - padding: .125rem 1rem; - margin-top: 0; - font-size: 1.3em; - font-weight: 500; - color: #00008B; - border-bottom: 0 -} - -.algolia-autocomplete .algolia-docsearch-suggestion--wrapper { - float: none; - padding-top: 0 -} - -.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column { - float: none; - width: auto; - padding: 0; - text-align: left -} - -.algolia-autocomplete .algolia-docsearch-suggestion--content { - float: none; - width: auto; - padding: 0 -} - -.algolia-autocomplete .algolia-docsearch-suggestion--content::before { - display: none -} - -.algolia-autocomplete .ds-suggestion:not(:first-child) .algolia-docsearch-suggestion--category-header { - padding-top: .75rem; - margin-top: .75rem; - border-top: 1px solid rgba(0, 0, 0, .1) -} - -.algolia-autocomplete .ds-suggestion .algolia-docsearch-suggestion--subcategory-column { - display: block; - padding: .1rem 1rem; - margin-bottom: 0.1; - font-size: 1.0em; - font-weight: 400 - /* display: none */ -} - -.algolia-autocomplete .algolia-docsearch-suggestion--title { - display: block; - padding: .25rem 1rem; - margin-bottom: 0; - font-size: 0.9em; - font-weight: 400 -} - -.algolia-autocomplete .algolia-docsearch-suggestion--text { - padding: 0 1rem .5rem; - margin-top: -.25rem; - font-size: 0.8em; - font-weight: 400; - line-height: 1.25 -} - -.algolia-autocomplete .algolia-docsearch-footer { - width: 110px; - height: 20px; - z-index: 3; - margin-top: 10.66667px; - float: right; - font-size: 0; - line-height: 0; -} - -.algolia-autocomplete .algolia-docsearch-footer--logo { - background-image: url("data:image/svg+xml;utf8,"); - background-repeat: no-repeat; - background-position: 50%; - background-size: 100%; - overflow: hidden; - text-indent: -9000px; - width: 100%; - height: 100%; - display: block; - transform: translate(-8px); -} - -.algolia-autocomplete .algolia-docsearch-suggestion--highlight { - color: #FF8C00; - background: rgba(232, 189, 54, 0.1) -} - - -.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight { - box-shadow: inset 0 -2px 0 0 rgba(105, 105, 105, .5) -} - -.algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content { - background-color: rgba(192, 192, 192, .15) -} diff --git a/docs/docsearch.js b/docs/docsearch.js deleted file mode 100644 index b35504c..0000000 --- a/docs/docsearch.js +++ /dev/null @@ -1,85 +0,0 @@ -$(function() { - - // register a handler to move the focus to the search bar - // upon pressing shift + "/" (i.e. "?") - $(document).on('keydown', function(e) { - if (e.shiftKey && e.keyCode == 191) { - e.preventDefault(); - $("#search-input").focus(); - } - }); - - $(document).ready(function() { - // do keyword highlighting - /* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */ - var mark = function() { - - var referrer = document.URL ; - var paramKey = "q" ; - - if (referrer.indexOf("?") !== -1) { - var qs = referrer.substr(referrer.indexOf('?') + 1); - var qs_noanchor = qs.split('#')[0]; - var qsa = qs_noanchor.split('&'); - var keyword = ""; - - for (var i = 0; i < qsa.length; i++) { - var currentParam = qsa[i].split('='); - - if (currentParam.length !== 2) { - continue; - } - - if (currentParam[0] == paramKey) { - keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20")); - } - } - - if (keyword !== "") { - $(".contents").unmark({ - done: function() { - $(".contents").mark(keyword); - } - }); - } - } - }; - - mark(); - }); -}); - -/* Search term highlighting ------------------------------*/ - -function matchedWords(hit) { - var words = []; - - var hierarchy = hit._highlightResult.hierarchy; - // loop to fetch from lvl0, lvl1, etc. - for (var idx in hierarchy) { - words = words.concat(hierarchy[idx].matchedWords); - } - - var content = hit._highlightResult.content; - if (content) { - words = words.concat(content.matchedWords); - } - - // return unique words - var words_uniq = [...new Set(words)]; - return words_uniq; -} - -function updateHitURL(hit) { - - var words = matchedWords(hit); - var url = ""; - - if (hit.anchor) { - url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor; - } else { - url = hit.url + '?q=' + escape(words.join(" ")); - } - - return url; -} diff --git a/docs/figures/aol1.png b/docs/figures/aol1.png deleted file mode 100644 index 5c9fbab..0000000 Binary files a/docs/figures/aol1.png and /dev/null differ diff --git a/docs/figures/aol2.png b/docs/figures/aol2.png deleted file mode 100644 index 5334d53..0000000 Binary files a/docs/figures/aol2.png and /dev/null differ diff --git a/docs/figures/aol3.png b/docs/figures/aol3.png deleted file mode 100644 index 6673490..0000000 Binary files a/docs/figures/aol3.png and /dev/null differ diff --git a/docs/figures/gmail1.png b/docs/figures/gmail1.png deleted file mode 100644 index 0061e3b..0000000 Binary files a/docs/figures/gmail1.png and /dev/null differ diff --git a/docs/figures/yahoo1.png b/docs/figures/yahoo1.png deleted file mode 100644 index fa81e70..0000000 Binary files a/docs/figures/yahoo1.png and /dev/null differ diff --git a/docs/figures/yahoo2.png b/docs/figures/yahoo2.png deleted file mode 100644 index 6794a29..0000000 Binary files a/docs/figures/yahoo2.png and /dev/null differ diff --git a/docs/figures/yahoo3.png b/docs/figures/yahoo3.png deleted file mode 100644 index 66c5f87..0000000 Binary files a/docs/figures/yahoo3.png and /dev/null differ diff --git a/docs/index_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/index_files/accessible-code-block-0.0.1/empty-anchor.js deleted file mode 100644 index ca349fd..0000000 --- a/docs/index_files/accessible-code-block-0.0.1/empty-anchor.js +++ /dev/null @@ -1,15 +0,0 @@ -// Hide empty tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> -// v0.0.1 -// Written by JooYoung Seo (jooyoung@psu.edu) and Atsushi Yasumoto on June 1st, 2020. - -document.addEventListener('DOMContentLoaded', function() { - const codeList = document.getElementsByClassName("sourceCode"); - for (var i = 0; i < codeList.length; i++) { - var linkList = codeList[i].getElementsByTagName('a'); - for (var j = 0; j < linkList.length; j++) { - if (linkList[j].innerHTML === "") { - linkList[j].setAttribute('aria-hidden', 'true'); - } - } - } -}); diff --git a/docs/pkgdown.css b/docs/pkgdown.css deleted file mode 100644 index 80ea5b8..0000000 --- a/docs/pkgdown.css +++ /dev/null @@ -1,384 +0,0 @@ -/* Sticky footer */ - -/** - * Basic idea: https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/ - * Details: https://github.com/philipwalton/solved-by-flexbox/blob/master/assets/css/components/site.css - * - * .Site -> body > .container - * .Site-content -> body > .container .row - * .footer -> footer - * - * Key idea seems to be to ensure that .container and __all its parents__ - * have height set to 100% - * - */ - -html, body { - height: 100%; -} - -body { - position: relative; -} - -body > .container { - display: flex; - height: 100%; - flex-direction: column; -} - -body > .container .row { - flex: 1 0 auto; -} - -footer { - margin-top: 45px; - padding: 35px 0 36px; - border-top: 1px solid #e5e5e5; - color: #666; - display: flex; - flex-shrink: 0; -} -footer p { - margin-bottom: 0; -} -footer div { - flex: 1; -} -footer .pkgdown { - text-align: right; -} -footer p { - margin-bottom: 0; -} - -img.icon { - float: right; -} - -/* Ensure in-page images don't run outside their container */ -.contents img { - max-width: 100%; - height: auto; -} - -/* Fix bug in bootstrap (only seen in firefox) */ -summary { - display: list-item; -} - -/* Typographic tweaking ---------------------------------*/ - -.contents .page-header { - margin-top: calc(-60px + 1em); -} - -dd { - margin-left: 3em; -} - -/* Section anchors ---------------------------------*/ - -a.anchor { - display: none; - margin-left: 5px; - width: 20px; - height: 20px; - - background-image: url(./link.svg); - background-repeat: no-repeat; - background-size: 20px 20px; - background-position: center center; -} - -h1:hover .anchor, -h2:hover .anchor, -h3:hover .anchor, -h4:hover .anchor, -h5:hover .anchor, -h6:hover .anchor { - display: inline-block; -} - -/* Fixes for fixed navbar --------------------------*/ - -.contents h1, .contents h2, .contents h3, .contents h4 { - padding-top: 60px; - margin-top: -40px; -} - -/* Navbar submenu --------------------------*/ - -.dropdown-submenu { - position: relative; -} - -.dropdown-submenu>.dropdown-menu { - top: 0; - left: 100%; - margin-top: -6px; - margin-left: -1px; - border-radius: 0 6px 6px 6px; -} - -.dropdown-submenu:hover>.dropdown-menu { - display: block; -} - -.dropdown-submenu>a:after { - display: block; - content: " "; - float: right; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; - border-width: 5px 0 5px 5px; - border-left-color: #cccccc; - margin-top: 5px; - margin-right: -10px; -} - -.dropdown-submenu:hover>a:after { - border-left-color: #ffffff; -} - -.dropdown-submenu.pull-left { - float: none; -} - -.dropdown-submenu.pull-left>.dropdown-menu { - left: -100%; - margin-left: 10px; - border-radius: 6px 0 6px 6px; -} - -/* Sidebar --------------------------*/ - -#pkgdown-sidebar { - margin-top: 30px; - position: -webkit-sticky; - position: sticky; - top: 70px; -} - -#pkgdown-sidebar h2 { - font-size: 1.5em; - margin-top: 1em; -} - -#pkgdown-sidebar h2:first-child { - margin-top: 0; -} - -#pkgdown-sidebar .list-unstyled li { - margin-bottom: 0.5em; -} - -/* bootstrap-toc tweaks ------------------------------------------------------*/ - -/* All levels of nav */ - -nav[data-toggle='toc'] .nav > li > a { - padding: 4px 20px 4px 6px; - font-size: 1.5rem; - font-weight: 400; - color: inherit; -} - -nav[data-toggle='toc'] .nav > li > a:hover, -nav[data-toggle='toc'] .nav > li > a:focus { - padding-left: 5px; - color: inherit; - border-left: 1px solid #878787; -} - -nav[data-toggle='toc'] .nav > .active > a, -nav[data-toggle='toc'] .nav > .active:hover > a, -nav[data-toggle='toc'] .nav > .active:focus > a { - padding-left: 5px; - font-size: 1.5rem; - font-weight: 400; - color: inherit; - border-left: 2px solid #878787; -} - -/* Nav: second level (shown on .active) */ - -nav[data-toggle='toc'] .nav .nav { - display: none; /* Hide by default, but at >768px, show it */ - padding-bottom: 10px; -} - -nav[data-toggle='toc'] .nav .nav > li > a { - padding-left: 16px; - font-size: 1.35rem; -} - -nav[data-toggle='toc'] .nav .nav > li > a:hover, -nav[data-toggle='toc'] .nav .nav > li > a:focus { - padding-left: 15px; -} - -nav[data-toggle='toc'] .nav .nav > .active > a, -nav[data-toggle='toc'] .nav .nav > .active:hover > a, -nav[data-toggle='toc'] .nav .nav > .active:focus > a { - padding-left: 15px; - font-weight: 500; - font-size: 1.35rem; -} - -/* orcid ------------------------------------------------------------------- */ - -.orcid { - font-size: 16px; - color: #A6CE39; - /* margins are required by official ORCID trademark and display guidelines */ - margin-left:4px; - margin-right:4px; - vertical-align: middle; -} - -/* Reference index & topics ----------------------------------------------- */ - -.ref-index th {font-weight: normal;} - -.ref-index td {vertical-align: top; min-width: 100px} -.ref-index .icon {width: 40px;} -.ref-index .alias {width: 40%;} -.ref-index-icons .alias {width: calc(40% - 40px);} -.ref-index .title {width: 60%;} - -.ref-arguments th {text-align: right; padding-right: 10px;} -.ref-arguments th, .ref-arguments td {vertical-align: top; min-width: 100px} -.ref-arguments .name {width: 20%;} -.ref-arguments .desc {width: 80%;} - -/* Nice scrolling for wide elements --------------------------------------- */ - -table { - display: block; - overflow: auto; -} - -/* Syntax highlighting ---------------------------------------------------- */ - -pre, code, pre code { - background-color: #f8f8f8; - color: #333; -} -pre, pre code { - white-space: pre-wrap; - word-break: break-all; - overflow-wrap: break-word; -} - -pre { - border: 1px solid #eee; -} - -pre .img, pre .r-plt { - margin: 5px 0; -} - -pre .img img, pre .r-plt img { - background-color: #fff; -} - -code a, pre a { - color: #375f84; -} - -a.sourceLine:hover { - text-decoration: none; -} - -.fl {color: #1514b5;} -.fu {color: #000000;} /* function */ -.ch,.st {color: #036a07;} /* string */ -.kw {color: #264D66;} /* keyword */ -.co {color: #888888;} /* comment */ - -.error {font-weight: bolder;} -.warning {font-weight: bolder;} - -/* Clipboard --------------------------*/ - -.hasCopyButton { - position: relative; -} - -.btn-copy-ex { - position: absolute; - right: 0; - top: 0; - visibility: hidden; -} - -.hasCopyButton:hover button.btn-copy-ex { - visibility: visible; -} - -/* headroom.js ------------------------ */ - -.headroom { - will-change: transform; - transition: transform 200ms linear; -} -.headroom--pinned { - transform: translateY(0%); -} -.headroom--unpinned { - transform: translateY(-100%); -} - -/* mark.js ----------------------------*/ - -mark { - background-color: rgba(255, 255, 51, 0.5); - border-bottom: 2px solid rgba(255, 153, 51, 0.3); - padding: 1px; -} - -/* vertical spacing after htmlwidgets */ -.html-widget { - margin-bottom: 10px; -} - -/* fontawesome ------------------------ */ - -.fab { - font-family: "Font Awesome 5 Brands" !important; -} - -/* don't display links in code chunks when printing */ -/* source: https://stackoverflow.com/a/10781533 */ -@media print { - code a:link:after, code a:visited:after { - content: ""; - } -} - -/* Section anchors --------------------------------- - Added in pandoc 2.11: https://github.com/jgm/pandoc-templates/commit/9904bf71 -*/ - -div.csl-bib-body { } -div.csl-entry { - clear: both; -} -.hanging-indent div.csl-entry { - margin-left:2em; - text-indent:-2em; -} -div.csl-left-margin { - min-width:2em; - float:left; -} -div.csl-right-inline { - margin-left:2em; - padding-left:1em; -} -div.csl-indent { - margin-left: 2em; -} diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index e74361b..74739e3 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -5,5 +5,5 @@ articles: basics: basics.html code_migration: code_migration.html xoauth2.0: xoauth2.0.html -last_built: 2023-07-27T09:10Z +last_built: 2023-07-27T09:18Z diff --git a/docs/reference/Before.html b/docs/reference/Before.html deleted file mode 100644 index db713f7..0000000 --- a/docs/reference/Before.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — Before • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
Before(date_char, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Flag, OR, - Since, String, - olderThan, sentBefore, - sentOn, sentSince, - smallerThan, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = AND(Before(date_char = "17-Apr-2019"), - smallerThan(size = 512000), - negate = TRUE)) -# searches for messages NOT Before "17-Apr-2019" AND NOT SmallerThan 512KB. - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/Flag.html b/docs/reference/Flag.html deleted file mode 100644 index b0ead59..0000000 --- a/docs/reference/Flag.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — Flag • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
Flag(flag, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the flags available in your IMAP server.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, OR, - Since, String, - olderThan, sentBefore, - sentOn, sentSince, - smallerThan, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = AND(Flag(flag="UNSEEN"), - smallerThan(size = 512000), - negate = TRUE)) -# searches for messages with Flag ""UNSEEN" AND NOT SmallerThan 512KB. - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/On.html b/docs/reference/On.html deleted file mode 100644 index 9288bf0..0000000 --- a/docs/reference/On.html +++ /dev/null @@ -1,214 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — On • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
On(date_char, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other search: largerThan

-

Other custom: largerThan

-

Other criteria helper functions: largerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = OR(On(date_char = "17-Apr-2019"), - On(date_char = "17-Jul-2018"))) -# searches for messages On "17-Apr-2019" OR On "17-Jul-2018". - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/Since.html b/docs/reference/Since.html deleted file mode 100644 index 14a5583..0000000 --- a/docs/reference/Since.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — Since • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
Since(date_char, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, Flag, - OR, String, - olderThan, sentBefore, - sentOn, sentSince, - smallerThan, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = AND(Since(date_char = "17-Apr-2019"), - smallerThan(size = 512000))) -# searches for messages Since "17-Apr-2019" AND SmallerThan 512KB. - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/String.html b/docs/reference/String.html deleted file mode 100644 index e6e9fb1..0000000 --- a/docs/reference/String.html +++ /dev/null @@ -1,229 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — String • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
String(section_or_field, string, negate = FALSE)
- -

Arguments

- - - - - - - - - - - - - - -
section_or_field

A mandatory character string specifying in which -messages's Section or Header Field to search for the provided string. -For some available options, see section_or_field_options.

string

A character string specifying the word or expression to -search for in messages.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, Flag, - OR, Since, - olderThan, sentBefore, - sentOn, sentSince, - smallerThan, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = - OR(String( - section_or_field = "from", string = "allanvcq@gmail.com"), - String( - section_or_field = "from", string = "allanvcq@yahoo.com") - ) - ) -# searches for messages containing the string "allanvcq@gmail.com" OR - "allanvcq@yahoo.com" in the "FROM" field. - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/addFlags.html b/docs/reference/addFlags.html deleted file mode 100644 index dbf187a..0000000 --- a/docs/reference/addFlags.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - - - -Add Flag(s) To Messages — addFlags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Add one or more flags to one or more messages.

- -
- -
addFlags(imapconf, msg_id, by = "MSN", flags_to_set,
-  logical_output = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_set

A character vector containing one ore more flag names to -add to or replace in the specified message ids.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the logical_output parameter, returns a list - of length 2 containing the imapconf object and previously - informed message ids (parameter msg_id), or a logical vector of - length 1 indicating the success (TRUE) of the mentioned - operation.

- -

Note

- -

addFlags, removeFlags and replaceFlags, accepts - not only flags but also keywords (such as $Phishing on Gmail's - IMAP server) to add, remove or replace.

-

IMAP servers do not allow setting the negative version of a flag when a - message already has the positive version of it. If a message with - MSN 1 already has the "SEEN" flag, it is not allowed to add "UNSEEN" - to that. Instead, you have to first remove the "SEEN" flag - removeFlags(imapconf, msg_id = 1, "SEEN") and only then do - addFlags(imapconf, msg_id = 1, "SEEN"). Another option is to - complete override all the flags of a message or a set of messages using - replaceFlags(imapconf, msg_id = 1, "SEEN").

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-library(mRpostman)
-imapconf <- configureIMAP(url="imaps://imap.gmail.com",
-                          username="your_gmail_user",
-                          password=rstudioapi::askForPassword()
-                          )
-
-results <- imapconf %>%
-    selectMailbox(mbox = "TAM") %>%
-    searchBefore(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg
-    addFlags(imapconf = imapconf, msg_id = msg_id, flags_to_set = "RECENT")
-
-# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/add_flags.html b/docs/reference/add_flags.html deleted file mode 100644 index d2ce26f..0000000 --- a/docs/reference/add_flags.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - - -Add Flag(s) To Messages — add_flags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Add one or more flags to one or more messages.

- -
- -
add_flags(imapconf, msg_id, by = "MSN", flags_to_set, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_set

A character vector containing one ore more flag names to -add to or replace in the specified message ids.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

An (invisible) list of length 2 containing the - imapconf object and the previously inputed message ids - (parameter msg_id).

- -

Note

- -

add_flags, remove_flags and replace_flags, accepts - not only flags but also keywords (such as $Phishing on Gmail's - IMAP server) to add, remove or replace.

-

IMAP servers do not allow setting the negative version of a flag when a - message already has the positive version of it. If a message with - MSN 1 already has the "SEEN" flag, it is not allowed to add "UNSEEN" - to that. Instead, you have to first remove the "SEEN" flag - remove_flags(imapconf, msg_id = 1, "SEEN") and only then do - add_flags(imapconf, msg_id = 1, "SEEN"). Another option is to - complete override all the flags of a message or of a set of messages using - replace_flags(imapconf, msg_id = 1, "SEEN").

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-library(mRpostman)
-imapconf <- configure_imap(url="imaps://your.imap.server.com",
-                           username="your_username",
-                           password=rstudioapi::askForPassword()
-                          )
-
-results <- imapconf %>%
-    select_mailbox(mbox = "TAM") %>%
-    search_before(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg
-    add_flags(imapconf = imapconf, msg_id = msg_id, flags_to_set = "RECENT")
-
-# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_addReplaceFlags.html b/docs/reference/check_args_addReplaceFlags.html deleted file mode 100644 index baa482b..0000000 --- a/docs/reference/check_args_addReplaceFlags.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - - -Add/Replace Flags Arguments Check — check_args_addReplaceFlags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in addFlags, and replaceFlags functions.

- -
- -
check_args_addReplaceFlags(imapconf, msg_id, by, flags_to_set,
-  logical_output, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_set

A character vector containing one ore more flag names to -add to or replace in the specified message ids.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_add_replace_flags.html b/docs/reference/check_args_add_replace_flags.html deleted file mode 100644 index 88ad7f0..0000000 --- a/docs/reference/check_args_add_replace_flags.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - - -Add/Replace Flags Arguments Check — check_args_add_replace_flags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in add_flags, and replace_flags functions.

- -
- -
check_args_add_replace_flags(imapconf, msg_id, by, flags_to_set, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_set

A character vector containing one ore more flag names to -add to or replace in the specified message ids.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_copyMsg.html b/docs/reference/check_args_copyMsg.html deleted file mode 100644 index 436b248..0000000 --- a/docs/reference/check_args_copyMsg.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - - - -Copy Message Arguments Check — check_args_copyMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in copyMsg function.

- -
- -
check_args_copyMsg(imapconf, msg_id, by, to_mbox, reselect_mbox,
-  logical_output, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

to_mbox

A character string specifying the mailbox to which messages -will be copied to.

reselect_mbox

If TRUE, calls selectMailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_copy_msg.html b/docs/reference/check_args_copy_msg.html deleted file mode 100644 index a013ca4..0000000 --- a/docs/reference/check_args_copy_msg.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - -Copy Message Arguments Check — check_args_copy_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in copy_msg function.

- -
- -
check_args_copy_msg(imapconf, msg_id, by, to_mbox, reselect_mbox, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

to_mbox

A character string specifying the mailbox to which messages -will be copied to.

reselect_mbox

If TRUE, calls select_mailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_customSearch.html b/docs/reference/check_args_customSearch.html deleted file mode 100644 index 662983e..0000000 --- a/docs/reference/check_args_customSearch.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - -Custom Search Arguments Check — check_args_customSearch • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_customSearch(imapconf, custom_search, negate, by, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

custom_request

A string directly specifying what to search or -constructed by a combination of operators helper functions OR and -AND, and criteria helper functions such as Before, Since, -On, sentBefore, sentSince, sentOn, -Flag, or String.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_custom_search.html b/docs/reference/check_args_custom_search.html deleted file mode 100644 index a213897..0000000 --- a/docs/reference/check_args_custom_search.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - - - - -Custom Search Arguments Check — check_args_custom_search • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_custom_search(imapconf, custom_search, negate, by, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

custom_request

A string directly specifying what to search or -constructed by a combination of operators helper functions OR and -AND, and criteria helper functions such as before, since, -on, sent_before, sent_since, sent_on, -flag, string, smaller_than, larger_than, -younger_than, or younger_than.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_date.html b/docs/reference/check_args_date.html deleted file mode 100644 index c1fcce8..0000000 --- a/docs/reference/check_args_date.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - - - -Custom Search Specific Check — check_args_date • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking specific arguments - used in custom_search.

- -
- -
check_args_date(date_char, negate)
- -

Arguments

- - - - - - - - - - -
date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- -

Other customsearch checkargs functions: check_args_flag, - check_args_size, - check_args_string, - check_args_within

- - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_deleteMsg.html b/docs/reference/check_args_deleteMsg.html deleted file mode 100644 index 01896d5..0000000 --- a/docs/reference/check_args_deleteMsg.html +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - - - -Delete Message Arguments Check — check_args_deleteMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in deleteMsg function.

- -
- -
check_args_deleteMsg(imapconf, msg_id, by, logical_output, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_delete_msg.html b/docs/reference/check_args_delete_msg.html deleted file mode 100644 index 305194e..0000000 --- a/docs/reference/check_args_delete_msg.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - -Delete Message Arguments Check — check_args_delete_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in delete_msg function.

- -
- -
check_args_delete_msg(imapconf, msg_id, by, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_expunge.html b/docs/reference/check_args_expunge.html deleted file mode 100644 index b579638..0000000 --- a/docs/reference/check_args_expunge.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - - -Expunge Message Arguments Check — check_args_expunge • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in expunge function.

- -
- -
check_args_expunge(imapconf, specific_UID, retries)
- -

Arguments

- - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

specific_UID

A numeric vector containing one or more messages UIDs, if -specific messages should be expunged and not the whole mailbox.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_fetchFullMsg.html b/docs/reference/check_args_fetchFullMsg.html deleted file mode 100644 index 3cad59a..0000000 --- a/docs/reference/check_args_fetchFullMsg.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - - - -Full Fetch Arguments Check — check_args_fetchFullMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in - fetch functions.

- -
- -
check_args_fetchFullMsg(imapconf, msg_id, by, peek, partial, write_to_file,
-  keep_in_mem, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_file

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_fetchMsgHeader.html b/docs/reference/check_args_fetchMsgHeader.html deleted file mode 100644 index 2f51d61..0000000 --- a/docs/reference/check_args_fetchMsgHeader.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - - - -Header Fetch Arguments Check — check_args_fetchMsgHeader • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in - fetch functions.

- -
- -
check_args_fetchMsgHeader(imapconf, msg_id, by, fields, negate_fields,
-  peek, partial, write_to_file, keep_in_mem, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

fields

A character vector specifying which field(s) to fetch from -messages. See section_or_field_options

negate_fields

If TRUE, negates the search and seeks for -"NOT in the field". Default is FALSE.

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_file

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_fetchMsgMetadata.html b/docs/reference/check_args_fetchMsgMetadata.html deleted file mode 100644 index ec5e800..0000000 --- a/docs/reference/check_args_fetchMsgMetadata.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - - - -Metadata Fetch Arguments Check — check_args_fetchMsgMetadata • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in - fetch functions.

- -
- -
check_args_fetchMsgMetadata(imapconf, msg_id, by, metadata, write_to_file,
-  keep_in_mem, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

metadata

A character vector or string specifying one or more items of -the metadata of a message to fetch. See metadata_options.

write_to_file

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_fetchMsgText.html b/docs/reference/check_args_fetchMsgText.html deleted file mode 100644 index 16e74fc..0000000 --- a/docs/reference/check_args_fetchMsgText.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - - - -Text Fetch Arguments Check — check_args_fetchMsgText • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in - fetch functions.

- -
- -
check_args_fetchMsgText(imapconf, msg_id, by, peek, partial, write_to_file,
-  keep_in_mem, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_file

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_fetch_full_msg.html b/docs/reference/check_args_fetch_full_msg.html deleted file mode 100644 index 78895ed..0000000 --- a/docs/reference/check_args_fetch_full_msg.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - - - -Full Fetch Arguments Check — check_args_fetch_full_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in - fetch functions.

- -
- -
check_args_fetch_full_msg(imapconf, msg_id, by, peek, partial,
-  write_to_disk, keep_in_mem, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -TRUE. It can only be set FALSE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_fetch_msg_header.html b/docs/reference/check_args_fetch_msg_header.html deleted file mode 100644 index 96dfcba..0000000 --- a/docs/reference/check_args_fetch_msg_header.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - -Header Fetch Arguments Check — check_args_fetch_msg_header • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in - fetch functions.

- -
- -
check_args_fetch_msg_header(imapconf, msg_id, by, fields, negate_fields,
-  peek, partial, write_to_disk, keep_in_mem, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

fields

A character vector specifying which field(s) to fetch from -messages. See section_or_field_options

negate_fields

If TRUE, negates the search and seeks for -"NOT in the field". Default is FALSE.

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_fetch_msg_metadata.html b/docs/reference/check_args_fetch_msg_metadata.html deleted file mode 100644 index 689c1f8..0000000 --- a/docs/reference/check_args_fetch_msg_metadata.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - - - -Metadata Fetch Arguments Check — check_args_fetch_msg_metadata • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in - fetch functions.

- -
- -
check_args_fetch_msg_metadata(imapconf, msg_id, by, metadata,
-  write_to_disk, keep_in_mem, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

metadata

A character vector or string specifying one or more items of -the metadata of a message to fetch. See metadata_options.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_fetch_msg_text.html b/docs/reference/check_args_fetch_msg_text.html deleted file mode 100644 index 68c82ad..0000000 --- a/docs/reference/check_args_fetch_msg_text.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - - - - - -Text Fetch Arguments Check — check_args_fetch_msg_text • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in - fetch functions.

- -
- -
check_args_fetch_msg_text(imapconf, msg_id, by, peek, partial,
-  write_to_disk, keep_in_mem, try_b64decode, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

try_b64decode

If TRUE, tries to guess and decode the fetched -text from base64 format to character. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_flag.html b/docs/reference/check_args_flag.html deleted file mode 100644 index d0054dd..0000000 --- a/docs/reference/check_args_flag.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - -Custom Search Specific Check — check_args_flag • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking specific arguments - used in custom_search.

- -
- -
check_args_flag(flag, negate)
- -

Arguments

- - - - - - - - - - -
flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the flags available in your IMAP server.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- -

Other customsearch checkargs functions: check_args_date, - check_args_size, - check_args_string, - check_args_within

- - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_getMaxMinId.html b/docs/reference/check_args_getMaxMinId.html deleted file mode 100644 index 05cbfcb..0000000 --- a/docs/reference/check_args_getMaxMinId.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - -Max/Min Message Arguments Check — check_args_getMaxMinId • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in getMaxId and getMinId functions.

- -
- -
check_args_getMaxMinId(imapconf, by, flag, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers. Default is NULL.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_get_attachment.html b/docs/reference/check_args_get_attachment.html deleted file mode 100644 index 5f6e458..0000000 --- a/docs/reference/check_args_get_attachment.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - -Get Attachments Arguments Check — check_args_get_attachment • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for getting attachments

- -
- -
check_args_get_attachment(msg_list)
- -

Arguments

- - - - - - -
msg_list

A list containing the full messages fetched from -the server after using fetch_full_msg.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_get_attachments.html b/docs/reference/check_args_get_attachments.html deleted file mode 100644 index d73b583..0000000 --- a/docs/reference/check_args_get_attachments.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - -Get Attachments Arguments Check — check_args_get_attachments • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for getting attachments

- -
- -
check_args_get_attachments(msg_list, content_disposition)
- -

Arguments

- - - - - - - - - - -
msg_list

A list containing the full messages fetched from -the server after using fetch_full_msg.

content_disposition

A string indicating which type of -"Content-Disposition" attachments should be retireved. Default is -"both", which retireves regular attachments -("Content-Disposition: attachment") and inline attachments -("Content-Disposition: inline").

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_get_max_min_id.html b/docs/reference/check_args_get_max_min_id.html deleted file mode 100644 index 623b139..0000000 --- a/docs/reference/check_args_get_max_min_id.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - -Max/Min Message Arguments Check — check_args_get_max_min_id • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in get_max_id and get_min_id functions.

- -
- -
check_args_get_max_min_id(imapconf, by, flag, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers. Default is NULL.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_list_attachments.html b/docs/reference/check_args_list_attachments.html deleted file mode 100644 index 88da024..0000000 --- a/docs/reference/check_args_list_attachments.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - -List Attachments Arguments Check — check_args_list_attachments • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for listing attachments

- -
- -
check_args_list_attachments(msg_list)
- -

Arguments

- - - - - - -
msg_list

A list containing the full messages fetched from -the server after using fetch_full_msg.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_moveMsg.html b/docs/reference/check_args_moveMsg.html deleted file mode 100644 index 623bedc..0000000 --- a/docs/reference/check_args_moveMsg.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - - - -Move Message Arguments Check — check_args_moveMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in moveMsg function.

- -
- -
check_args_moveMsg(imapconf, msg_id, by, to_mbox, logical_output, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

to_mbox

A character string specifying the mailbox to which messages -will be moved to.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

reselect_mbox

If TRUE, calls selectMailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_move_msg.html b/docs/reference/check_args_move_msg.html deleted file mode 100644 index 950a2e0..0000000 --- a/docs/reference/check_args_move_msg.html +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - -Move Message Arguments Check — check_args_move_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in move_msg function.

- -
- -
check_args_move_msg(imapconf, msg_id, by, to_mbox, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

to_mbox

A character string specifying the mailbox to which messages -will be moved to.

retries

Number of attempts to connect and execute the command. Default -is 2.

reselect_mbox

If TRUE, calls select_mailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_removeFlags.html b/docs/reference/check_args_removeFlags.html deleted file mode 100644 index 324447b..0000000 --- a/docs/reference/check_args_removeFlags.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - - - -Remove Flags Arguments Check — check_args_removeFlags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in removeFlags function.

- -
- -
check_args_removeFlags(imapconf, msg_id, by, flags_to_unset,
-  logical_output, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_unset

A character vector containing one ore more flag names to -remove from the specified message ids.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_remove_flags.html b/docs/reference/check_args_remove_flags.html deleted file mode 100644 index 9b0fcac..0000000 --- a/docs/reference/check_args_remove_flags.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - -Remove Flags Arguments Check — check_args_remove_flags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking the arguments - used in remove_flags function.

- -
- -
check_args_remove_flags(imapconf, msg_id, by, flags_to_unset, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_unset

A character vector containing one ore more flag names to -remove from the specified message ids.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_searchDate.html b/docs/reference/check_args_searchDate.html deleted file mode 100644 index d771588..0000000 --- a/docs/reference/check_args_searchDate.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - - - -Date Search Arguments Check — check_args_searchDate • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_searchDate(imapconf, date_char, negate, by, flag, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_searchFlag.html b/docs/reference/check_args_searchFlag.html deleted file mode 100644 index 848a700..0000000 --- a/docs/reference/check_args_searchFlag.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - - - -Flag Search Arguments Check — check_args_searchFlag • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_searchFlag(imapconf, flag, negate, by, esearch, return_imapconf,
-  retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_searchPeriod.html b/docs/reference/check_args_searchPeriod.html deleted file mode 100644 index fa8819b..0000000 --- a/docs/reference/check_args_searchPeriod.html +++ /dev/null @@ -1,274 +0,0 @@ - - - - - - - - -Period Search Arguments Check — check_args_searchPeriod • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_searchPeriod(imapconf, since_date_char, before_date_char,
-  negate, by, flag, esearch, return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

since_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the start date (inclusive). We opted not to -use objects of type "date", since IMAP servers like this not so common date -format.

before_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the stop date (exclusive). We opted not to -use objects of type "date", since IMAP server likes this not so common date -format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_searchSize.html b/docs/reference/check_args_searchSize.html deleted file mode 100644 index 7a6533b..0000000 --- a/docs/reference/check_args_searchSize.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - - - - -Size Search Arguments Check — check_args_searchSize • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_searchSize(imapconf, size, negate, by, flag, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

size

An integer specifying the size (in number of characters) of -message to be used as search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_searchString.html b/docs/reference/check_args_searchString.html deleted file mode 100644 index 0d6825a..0000000 --- a/docs/reference/check_args_searchString.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - - - - -String Search Arguments Check — check_args_searchString • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_searchString(imapconf, section_or_field, string, negate, by,
-  esearch, return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

section_or_field

A mandatory character string specifying in which -message's Section or Header Field to search for the provided string. -For some available options, see section_or_field_options.

string

A character string specifying the word or expression to -search for in messages.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_searchWithin.html b/docs/reference/check_args_searchWithin.html deleted file mode 100644 index 61c4902..0000000 --- a/docs/reference/check_args_searchWithin.html +++ /dev/null @@ -1,265 +0,0 @@ - - - - - - - - -Within Search Arguments Check — check_args_searchWithin • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_searchWithin(imapconf, seconds, negate, by, flag, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_search_date.html b/docs/reference/check_args_search_date.html deleted file mode 100644 index 97c003a..0000000 --- a/docs/reference/check_args_search_date.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - - - -Date Search Arguments Check — check_args_search_date • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_search_date(imapconf, date_char, negate, by, flag, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_search_flag.html b/docs/reference/check_args_search_flag.html deleted file mode 100644 index 11704b2..0000000 --- a/docs/reference/check_args_search_flag.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - -Flag Search Arguments Check — check_args_search_flag • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_search_flag(imapconf, flag, negate, by, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_search_period.html b/docs/reference/check_args_search_period.html deleted file mode 100644 index 8f66623..0000000 --- a/docs/reference/check_args_search_period.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - - - -Period Search Arguments Check — check_args_search_period • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_search_period(imapconf, since_date_char, before_date_char,
-  negate, by, flag, esearch, return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

since_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the start date (inclusive). We opted not to -use objects of type "date", since IMAP servers like this not so common date -format.

before_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the stop date (exclusive). We opted not to -use objects of type "date", since IMAP server likes this not so common date -format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_search_size.html b/docs/reference/check_args_search_size.html deleted file mode 100644 index 977e1f0..0000000 --- a/docs/reference/check_args_search_size.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - - - -Size Search Arguments Check — check_args_search_size • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_search_size(imapconf, size, negate, by, flag, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

size

An integer specifying the size (in number of characters) of -message to be used as search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_search_string.html b/docs/reference/check_args_search_string.html deleted file mode 100644 index b843041..0000000 --- a/docs/reference/check_args_search_string.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - - - -String Search Arguments Check — check_args_search_string • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_search_string(imapconf, section_or_field, string, negate, by,
-  esearch, return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

section_or_field

A mandatory character string specifying in which -message's Section or Header Field to search for the provided string. -For some available options, see section_or_field_options.

string

A character string specifying the word or expression to -search for in messages.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_search_within.html b/docs/reference/check_args_search_within.html deleted file mode 100644 index 3915d42..0000000 --- a/docs/reference/check_args_search_within.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - - - -Within Search Arguments Check — check_args_search_within • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking arguments used in search - functions.

- -
- -
check_args_search_within(imapconf, seconds, negate, by, flag, esearch,
-  return_imapconf, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_size.html b/docs/reference/check_args_size.html deleted file mode 100644 index 6328682..0000000 --- a/docs/reference/check_args_size.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - -Custom Search Specific Check — check_args_size • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking specific arguments - used in custom_search.

- -
- -
check_args_size(size, negate)
- -

Arguments

- - - - - - - - - - -
size

An integer specifying the size (in number of characters) of -message to be used as search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- -

Other customsearch checkargs functions: check_args_date, - check_args_flag, - check_args_string, - check_args_within

- - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_string.html b/docs/reference/check_args_string.html deleted file mode 100644 index 59ed1e0..0000000 --- a/docs/reference/check_args_string.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - - - - -Custom Search Specific Check — check_args_string • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking specific arguments - used in custom_search.

- -
- -
check_args_string(string, section_or_field, negate)
- -

Arguments

- - - - - - - - - - - - - - -
string

A character string specifying the word or expression to -search for in messages.

section_or_field

A mandatory character string specifying in which -messages's Section or Header Field to search for the provided string. -For some available options, see section_or_field_options.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- -

Other customsearch checkargs functions: check_args_date, - check_args_flag, - check_args_size, - check_args_within

- - -
- -
- - -
- - - - - - diff --git a/docs/reference/check_args_within.html b/docs/reference/check_args_within.html deleted file mode 100644 index aca3cc2..0000000 --- a/docs/reference/check_args_within.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - -Custom Search Specific Check — check_args_within • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for checking specific arguments - used in custom_search.

- -
- -
check_args_within(seconds, negate)
- -

Arguments

- - - - - - - - - - -
seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

NULL if arguments are correct.

- -

See also

- -

Other customsearch checkargs functions: check_args_date, - check_args_flag, - check_args_size, - check_args_string

- - -
- -
- - -
- - - - - - diff --git a/docs/reference/clean_fetch_results.html b/docs/reference/clean_fetch_results.html deleted file mode 100644 index 959f92a..0000000 --- a/docs/reference/clean_fetch_results.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - -Messages Results Cleaning — clean_fetch_results • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for cleaning a message content in a - string. It is used with fetch loop functions.

- -
- -
clean_fetch_results(msg)
- -

Arguments

- - - - - - -
msg

A character string with a message content.

- -

Value

- -

A string with a cleaned message.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/config_handle.html b/docs/reference/config_handle.html deleted file mode 100644 index 3836edb..0000000 --- a/docs/reference/config_handle.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - - - -Curl Handle Configuration — config_handle • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for configuring curl handles used in - almost all mRpostman functions.

- -
- -
config_handle(imapconf)
- -

Arguments

- - - - - - -
imapconf

An object of class imapconf generated with -configure_imap.

- -

Value

- -

A curl handle object.

- - -
- -
- - -
- - - - - - diff --git a/docs/reference/configureIMAP.html b/docs/reference/configureIMAP.html deleted file mode 100644 index c7b531d..0000000 --- a/docs/reference/configureIMAP.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - -IMAP Settings — configureIMAP • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Configure IMAP server settings.

- -
- -
configureIMAP(url, username, password, show_pass = FALSE,
-  use_ssl = TRUE, verbose = FALSE, buffersize = 16000,
-  fresh_connect = FALSE, timeout_ms = 5000, ...)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
url

String containing the IMAP server address

username

String containing user's name.

password

String containing user's password.

show_pass

How to store user's password in imapconf object. Default is -FALSE.

use_ssl

A Logical indicating the use or not of Secure Sockets Layer -encryption when connecting to IMAP server. Default is TRUE.

verbose

If FALSE, mutes the output from the server. Default is -FALSE.

buffersize

The size in bytes for curl's receive buffer. Default is -16000 bytes or 16kb, which means it will use the default value of libcurl. -Maximum buffersize in libcurl documentation is 512kb (or 512000 bytes), -but curl package accepts 2147483647 bytes without returning errors.

fresh_connect

If TRUE, opens a new curl connection for each -IMAP command to be executed. Default is NULL. Nonetheless, most of -mRpostman functions will set fresh_connect = TRUE for the retires -in case of an connection error.

timeout_ms

Time in miliseconds (ms) to wait until a connection or a -command to be executed. Default is 5000ms (or 5 seconds). If a first -execution is frustated, an error handler in each function (depending on -retires value), will try to reconnect or re-execute the command.

...

Further IMAP parameters listed in -curl::curl_options. Only for advanced users.

- -

Value

- -

An object of class imapconf containing the settings - needed to connect to the IMAP server.

- -

References

- -

https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html

- -

See also

- -

Other config: config_handle

- - -

Examples

-
# NOT RUN {
-# Gmail config example:
-library(mRpostman)
-imapconf <- configureIMAP(url="imaps://imap.gmail.com",
-                          username="your_gmail_user",
-                          password=rstudioapi::askForPassword()
-                          )
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/copyMsg.html b/docs/reference/copyMsg.html deleted file mode 100644 index dafe77b..0000000 --- a/docs/reference/copyMsg.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - - - -Copy Messages — copyMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Copies messages form a mailbox to another.

- -
- -
copyMsg(imapconf, msg_id, by = "MSN", to_mbox, reselect_mbox = FALSE,
-  logical_output = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

to_mbox

A character string specifying the mailbox to which messages -will be copied to.

reselect_mbox

If TRUE, calls selectMailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the logical_output parameter, returns a list - of length 2 containing the imapconf object and previously - informed message ids (parameter msg_id), or a logical vector of - length 1 indicating the success (TRUE) of the mentioned - operation.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# copy search results from "Sent" to "INBOX" -results <- imapconf %>% - selectMailbox(mbox = "Sent") %>% - searchBefore(date_char = "10-may-2012") %$% #exposition pipe operator - pass two argg - copyMsg(imapconf = imapconf, msg_id = msg_id, to_mbox = "INBOX") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/copy_msg.html b/docs/reference/copy_msg.html deleted file mode 100644 index 05181ea..0000000 --- a/docs/reference/copy_msg.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - -Copy Messages — copy_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Copies messages form a mailbox to another.

- -
- -
copy_msg(imapconf, msg_id, by = "MSN", to_mbox, reselect_mbox = FALSE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

to_mbox

A character string specifying the mailbox to which messages -will be copied to.

reselect_mbox

If TRUE, calls select_mailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

An (invisible) list of length 2 containing the - imapconf object and the previously inputed message ids - (parameter msg_id).

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# copy search results from "Sent" to "INBOX" -results <- imapconf %>% - select_mailbox(mbox = "Sent") %>% - search_before(date_char = "10-may-2012") %$% #exposition pipe operator - pass two argg - copy_msg(imapconf = imapconf, msg_id = msg_id, to_mbox = "INBOX") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/countMsgs.html b/docs/reference/countMsgs.html deleted file mode 100644 index 7357a41..0000000 --- a/docs/reference/countMsgs.html +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - -Count Number of Messages — countMsgs • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Counts the number of messages with a respective flag in a mailbox.

- -
- -
countMsgs(imapconf, by = "MSN", flag, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A numeric vector of length 1 containing the number of - messages that meet the specified criteria.

- -

Note

- -

copyMsg uses ESEARCH extension. Check if your server - supports ESEARCH capability with listServerCapabilities.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - countMsgs(by = "UID", flag = "SEEN") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/count_msgs.html b/docs/reference/count_msgs.html deleted file mode 100644 index 62b8be0..0000000 --- a/docs/reference/count_msgs.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - -Count the Number of Messages — count_msgs • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Counts the number of messages with a respective flag in a mailbox.

- -
- -
count_msgs(imapconf, by = "MSN", flag, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A numeric vector of length 1 containing the number of - messages that meet the specified criteria.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - count_msgs(by = "UID", flag = "SEEN") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/customSearch.html b/docs/reference/customSearch.html deleted file mode 100644 index d6f8f6e..0000000 --- a/docs/reference/customSearch.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - - - -Custom Search — customSearch • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Allows a combination of several arguments using helper functions - that serve as relational operators, such as OR and AND; and - criteria helper functions such as Before, Since, On, - sentBefore, sentSince, sentOn, Flag, or - String, in order to execute a custom search (with multiple - arguments).

- -
- -
customSearch(imapconf, custom_request, negate = FALSE, by = "MSN",
-  esearch = FALSE, return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

custom_request

A string directly specifying what to search or -constructed by a combination of operators helper functions OR and -AND, and criteria helper functions such as Before, Since, -On, sentBefore, sentSince, sentOn, -Flag, or String.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

IMAP queries follows Polish notation, i.e. operators such as OR - come before arguments, e.g. "OR argument1 argument2". Therefore, the - relational operators functions in this package should be used like the - following examples: OR(Before("17-Apr-2015"), String("FROM", "Jim")). - Even though there is no "AND" operator in IMAP, this package adds a helper - funcion AND to indicate multiples arguments that must be searched - together, e.g. AND(Since("01-Jul-2018"), Size(16000)).

- -

See also

- -

Other Date-search operations: searchBefore, - searchOn, searchPeriod, - searchSentBefore, - searchSentOn, - searchSentPeriod, - searchSentSince, searchSince

-

Other Size-search operations: searchLargerThan, - searchSmallerThan

-

Other Flag-search operations: searchFlag

-

Other Within-search operations: searchOlderThan, - searchYoungerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) -# search1 -result1 <- imapconf %>% - selectMailbox(mbox = "TAM") %>% - customSearch(custom_request = AND(String(section_or_field = "TO", - string = "allan"), - Before(date_char = "12-Apr-2009"))) -# searches for messages containing the string "allan" in the "TO" field - and that were received before "12-Apr-2009". - -# search2 -result2 <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = OR(String(section_or_field = "TEXT", - string = "Contract 2872827"), - String(section_or_field = "Subject", - string = "Buying operation"))) -# searches for messages containing the string "Contract 2872827" in the - "TEXT" section or the string "Buying operation" in the "Subject" field - of the HEADER. - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/custom_search.html b/docs/reference/custom_search.html deleted file mode 100644 index c396951..0000000 --- a/docs/reference/custom_search.html +++ /dev/null @@ -1,304 +0,0 @@ - - - - - - - - -Custom Search — custom_search • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Allows a combination of several arguments using helper functions - that serve as relational operators, such as OR and AND; and - criteria helper functions such as before, since, - on, sent_before, sent_since, sent_on, - flag, string, smaller_than, larger_than, - younger_than, or younger_than, in order to execute a - custom search (with multiple arguments).

- -
- -
custom_search(imapconf, custom_request, negate = FALSE, by = "MSN",
-  esearch = FALSE, return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

custom_request

A string directly specifying what to search or -constructed by a combination of operators helper functions OR and -AND, and criteria helper functions such as before, since, -on, sent_before, sent_since, sent_on, -flag, string, smaller_than, larger_than, -younger_than, or younger_than.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

IMAP queries follows Polish notation, i.e. operators such as OR - come before arguments, e.g. "OR argument1 argument2". Therefore, the - relational operators functions in this package should be used like the - following examples: OR(before("17-Apr-2015"), string("FROM", "Jim")). - Even though there is no "AND" operator in IMAP, this package adds a helper - funcion AND to indicate multiples arguments that must be searched - together, e.g. AND(since("01-Jul-2018"), smaller_than(16000)).

- -

See also

- -

Other Date-search operations: search_before, - search_on, search_period, - search_sent_before, - search_sent_on, - search_sent_period, - search_sent_since, - search_since

-

Other Size-search operations: search_larger_than, - search_smaller_than

-

Other Flag-search operations: search_flag

-

Other Within-search operations: search_older_than, - search_younger_than

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) -# search1 -result1 <- imapconf %>% - select_mailbox(mbox = "TAM") %>% - custom_search(custom_request = AND(string(section_or_field = "TO", - string = "allan"), - before(date_char = "12-Apr-2009") - )) -# searches for messages containing the string "allan" in the "TO" field -# and that were received before "12-Apr-2009". - -# search2 -result2 <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - custom_search(custom_request = OR(string(section_or_field = "TEXT", - string = "Contract 2872827"), - string(section_or_field = "Subject", - string = "Buying operation") - )) -# searches for messages containing the string "Contract 2872827" in the -# "TEXT" section or the string "Buying operation" in the "Subject" field -# of the HEADER. - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/decode_base64_text_if_TRUE.html b/docs/reference/decode_base64_text_if_TRUE.html deleted file mode 100644 index 68106ee..0000000 --- a/docs/reference/decode_base64_text_if_TRUE.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - -Messages Results Decoding — decode_base64_text_if_TRUE • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for decoding base64 message results.

- -
- -
decode_base64_text_if_TRUE(msg)
- -

Arguments

- - - - - - -
msg

A character string with a message content.

- -

Value

- -

A string with a decoded message, if it was base64 coded.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/decode_base64_text_if_needed.html b/docs/reference/decode_base64_text_if_needed.html deleted file mode 100644 index cb40288..0000000 --- a/docs/reference/decode_base64_text_if_needed.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - -Messages Results Decoding — decode_base64_text_if_needed • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for decoding base64 message results.

- -
- -
decode_base64_text_if_needed(msg)
- -

Arguments

- - - - - - -
msg

A character string with a message content.

- -

Value

- -

A string with a decoded message, if it was base64 coded.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/define_searchrequest_custom.html b/docs/reference/define_searchrequest_custom.html deleted file mode 100644 index 9b8f9fa..0000000 --- a/docs/reference/define_searchrequest_custom.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - - - -Custom Search Request — define_searchrequest_custom • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for defining curl custom request to be - used with each search function

- -
- -
define_searchrequest_custom(custom_request, negate, by, esearch, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
custom_request

A string directly specifying what to search or -constructed by a combination of operators helper functions OR and -AND, and criteria helper functions such as before, since, -on, sent_before, sent_since, sent_on, -flag, string, smaller_than, larger_than, -younger_than, or younger_than.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

handle

A curl handle object.

- -

Value

- -

A curl handle object containing the custom request.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/define_searchrequest_date.html b/docs/reference/define_searchrequest_date.html deleted file mode 100644 index 2e28af7..0000000 --- a/docs/reference/define_searchrequest_date.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - - - - -Date Search Request — define_searchrequest_date • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for defining curl custom request to be - used with each search function

- -
- -
define_searchrequest_date(operation, date_char, negate, by, flag, esearch,
-  handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
operation

A character indicating which custom operation to execute.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

handle

A curl handle object.

- -

Value

- -

A curl handle object containing the custom request.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/define_searchrequest_flag.html b/docs/reference/define_searchrequest_flag.html deleted file mode 100644 index ba16663..0000000 --- a/docs/reference/define_searchrequest_flag.html +++ /dev/null @@ -1,233 +0,0 @@ - - - - - - - - -Flag Search Request — define_searchrequest_flag • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for defining curl custom request to be - used with each search function

- -
- -
define_searchrequest_flag(flag, negate, by, esearch, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

handle

A curl handle object.

- -

Value

- -

A curl handle object containing the custom request.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/define_searchrequest_period.html b/docs/reference/define_searchrequest_period.html deleted file mode 100644 index 2bee0f5..0000000 --- a/docs/reference/define_searchrequest_period.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - - - -Period Search Request — define_searchrequest_period • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for defining curl custom request to be - used with each search function

- -
- -
define_searchrequest_period(operation1, since_date_char, operation2,
-  before_date_char, negate, by, flag, esearch, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
operation1

A character indicating the first argument -(SINCE and variations) to the custom request.

since_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the start date (inclusive). We opted not to -use objects of type "date", since IMAP servers like this not so common date -format.

operation2

A character indicating the first argument -(BEFORE and variations) to the custom request.

before_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the stop date (exclusive). We opted not to -use objects of type "date", since IMAP server likes this not so common date -format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

handle

A curl handle object.

- -

Value

- -

A curl handle object containing the custom request.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/define_searchrequest_size.html b/docs/reference/define_searchrequest_size.html deleted file mode 100644 index 85597f0..0000000 --- a/docs/reference/define_searchrequest_size.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - - - -Size Search Request — define_searchrequest_size • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for defining curl custom request to be - used with each search function

- -
- -
define_searchrequest_size(operation, size, negate, by, flag, esearch,
-  handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
operation

A character indicating which custom operation to execute.

size

An integer specifying the size (in number of characters) of -message to be used as search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

handle

A curl handle object.

- -

Value

- -

A curl handle object containing the custom request.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/define_searchrequest_string.html b/docs/reference/define_searchrequest_string.html deleted file mode 100644 index dd15bbd..0000000 --- a/docs/reference/define_searchrequest_string.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - - - - -String Search Request — define_searchrequest_string • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for defining curl custom request to be - used with each search function

- -
- -
define_searchrequest_string(section_or_field, string, negate, by, esearch,
-  handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
section_or_field

A mandatory character string specifying in which -message's Section or Header Field to search for the provided string. -For some available options, see section_or_field_options.

string

A character string specifying the word or expression to -search for in messages.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

handle

A curl handle object.

- -

Value

- -

A curl handle object containing the custom request.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/define_searchrequest_within.html b/docs/reference/define_searchrequest_within.html deleted file mode 100644 index bd9ae41..0000000 --- a/docs/reference/define_searchrequest_within.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - - - -Within Search Request — define_searchrequest_within • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for defining curl custom request to be - used with each search function

- -
- -
define_searchrequest_within(operation, seconds, negate, by, flag, esearch,
-  handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
operation

A character indicating which custom operation to execute.

seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

handle

A curl handle object.

- -

Value

- -

A curl handle object containing the custom request.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/deleteMsg.html b/docs/reference/deleteMsg.html deleted file mode 100644 index baf17ff..0000000 --- a/docs/reference/deleteMsg.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - - - -Delete Messages — deleteMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Deletes messages from a mailbox.

- -
- -
deleteMsg(imapconf, msg_id, by = "MSN", logical_output = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the logical_output parameter, returns a list - of length 2 containing the imapconf object and previously - informed message ids (parameter msg_id), or a logical vector of - length 1 indicating the success (TRUE) of the mentioned - operation.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# deleting based on search results -result1 <- imapconf %>% - selectMailbox(mbox = "TAM") %>% - searchBefore(date_char = "10-may-2012", by = "UID") %$% #modified pipe operator - pass two argg - deleteMsg(imapconf = imapconf, msg_id = msg_id) - - -# deleting a specific msg_id without a previous search -result2 <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - deleteMsg(msg_id = 66128) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/delete_msg.html b/docs/reference/delete_msg.html deleted file mode 100644 index c78abbe..0000000 --- a/docs/reference/delete_msg.html +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - -Delete Messages — delete_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Deletes messages from a mailbox.

- -
- -
delete_msg(imapconf, msg_id, by = "MSN", retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

An (invisible) list of length 2 containing the - imapconf object and the previously inputed message ids - (parameter msg_id).

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# deleting based on search results -result1 <- imapconf %>% - select_mailbox(mbox = "TAM") %>% - search_before(date_char = "10-may-2012", by = "UID") %$% #modified pipe operator - pass two argg - delete_msg(imapconf = imapconf, msg_id = msg_id) - - -# deleting a specific msg_id without a previous search -result2 <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - delete_msg(msg_id = 66128) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/examineMailbox.html b/docs/reference/examineMailbox.html deleted file mode 100644 index 8e241b5..0000000 --- a/docs/reference/examineMailbox.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - - - -Examine Mailbox — examineMailbox • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Retrieve the number of recent messages and the total number of - messages in a mailbox.

- -
- -
examineMailbox(imapconf, retries = 2)
- -

Arguments

- - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A vector containing the ("EXISTS") and the - ("RECENT") number of messages in the selected mailbox.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-#' library(mRpostman)
-imapconf <- configureIMAP(url="imaps://imap.gmail.com",
-                          username="your_gmail_user",
-                          password=rstudioapi::askForPassword()
-                          )
-
-# list mailboxes
-results <- imapconf %>%
-  listMailboxes() %>%
-  selectMailbox(mbox = "Sent") %>%
-  examineMailbox()
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/examine_mailbox.html b/docs/reference/examine_mailbox.html deleted file mode 100644 index 2f80a17..0000000 --- a/docs/reference/examine_mailbox.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - - - -Examine Mailbox — examine_mailbox • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Retrieve the number of recent messages and the total number of - messages in a mailbox.

- -
- -
examine_mailbox(imapconf, retries = 2)
- -

Arguments

- - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A vector containing the ("EXISTS") and the - ("RECENT") number of messages in the selected mailbox.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-library(mRpostman)
-imapconf <- configure_imap(url="imaps://your.imap.server.com",
-                           username="your_username",
-                           password=rstudioapi::askForPassword()
-                          )
-
-# list mailboxes
-results <- imapconf %>%
-  list_mailboxes() %>%
-  select_mailbox(mbox = "Sent") %>%
-  examine_mailbox()
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/execute_attachment_fetch.html b/docs/reference/execute_attachment_fetch.html deleted file mode 100644 index 4668030..0000000 --- a/docs/reference/execute_attachment_fetch.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - - -Execution engine loop for all the fetch commands — execute_attachment_fetch • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - -
- -
-
- - -
-

Execution engine loop for all the fetch commands

-
- -
execute_attachment_fetch(
-  self,
-  id,
-  id_folder,
-  df_meta_to_fetch,
-  fetch_request,
-  folder_clean,
-  url_folder,
-  content_disposition,
-  override,
-  retries
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
self

The R6 connection object.

id

A message id obtained inside the main loop in fetch_attachments_int.

id_folder

The name of the folder containing the message id.

df_meta_to_fetch

A data frame returned by -extract_MIME_level_and_filename() containing the filenames, the -MIME level in which each attachment is, and the content-disposition of the -file.

fetch_request

A string containing the fetch request to the server that -will be added to the curl handle.

folder_clean

A character string containing the cleaned folder -name, which will be uses to create a local folder.

url_folder

The name of the folder containing the message url of the IMAP server.

content_disposition

A string indicating which type of -"Content-Disposition" attachments should be retrieved. The options are -both, attachment, and inline. Default is -"both", which retrieves regular attachments ("Content-Disposition: -attachment") and inline attachments ("Content-Disposition: inline").

override

A logical. If TRUE, overrides existent files -containing the same name in the local directory. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default - is 1.

-

@noRd

- - -
- -
- - - -
- - - - - - - - diff --git a/docs/reference/execute_complementary_operations.html b/docs/reference/execute_complementary_operations.html deleted file mode 100644 index 9787828..0000000 --- a/docs/reference/execute_complementary_operations.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - - -Execution engine for all the complementary commands — execute_complementary_operations • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - -
- -
-
- - -
-

Execution engine for all the complementary commands

-
- -
execute_complementary_operations(self, url, handle, customrequest, retries)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
self

The R6 connection object.

url

A string containing the url from the IMAP_conn$imapconf object.

handle

A curl handle object with the custom request already defined.

customrequest

A string containing the custom request to the server that will -be added to the curl handle.

retries

Number of attempts to connect and execute the command. Default - is 1. -@noRd

- - -
- -
- - - -
- - - - - - - - diff --git a/docs/reference/execute_fetch_loop.html b/docs/reference/execute_fetch_loop.html deleted file mode 100644 index 25ec4a5..0000000 --- a/docs/reference/execute_fetch_loop.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - - -Execution engine loop for all the fetch commands — execute_fetch_loop • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - -
- -
-
- - -
-

Execution engine loop for all the fetch commands

-
- -
execute_fetch_loop(
-  self,
-  msg_id,
-  fetch_request,
-  use_uid,
-  write_to_disk,
-  keep_in_mem,
-  retries,
-  fetch_type,
-  base64_decode = FALSE,
-  metadata_attribute = NULL
-)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
self

The R6 connection object.

msg_id

A numeric vector containing one or more message ids.

fetch_request

A string containing the fetch request to the server that -will be added to the curl handle.

use_uid

Default is FALSE. In this case, results will be -presented as message's sequence numbers. A message sequence number is a -message's relative position to the oldest message in the mailbox. It may -change after deleting or moving messages. If a message is deleted, -sequence numbers are reordered to fill the gap. If TRUE, the -command will be performed using the "UID" or unique identifier, -and results are presented as such. UIDs are always the same during the -life cycle of a message.

write_to_disk

If TRUE, writes the fetch content of each message -to a text file in a local folder inside the working directory, also -returning the results with invisible(). Default is FALSE.

keep_in_mem

If TRUE, keeps a copy of each fetch result while -the operation is being performed with write_to_disk = TRUE. Default -is FALSE, and it can only be set TRUE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 1.

fetch_type

A string indicating if it will be executed a body, header, -text, or metadata fetch.

base64_decode

If TRUE, tries to guess and decode the fetched -text from base64 format to character. Default is FALSE. Only -used in the fetch_text() case.

metadata_attribute

String containing the meta attributes if applicable. Default - is NULL.

-

@noRd

- - -
- -
- - - -
- - - - - - - - diff --git a/docs/reference/exposition.html b/docs/reference/exposition.html deleted file mode 100644 index b6f741a..0000000 --- a/docs/reference/exposition.html +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - -Exposition Pipe operator — %$% • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Exposition Pipe operator

- -
- - - -
- -
- - -
- - - - - - diff --git a/docs/reference/expunge.html b/docs/reference/expunge.html deleted file mode 100644 index 608ab40..0000000 --- a/docs/reference/expunge.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - -Expunge Messages — expunge • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Expunge a specific message (using specific UID) or all messages - marked as "DELETED" in a mailbox.

- -
- -
expunge(imapconf, specific_UID = NULL, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

specific_UID

A numeric vector containing one or more messages UIDs, if -specific messages should be expunged and not the whole mailbox.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

The (invisible) imapconf object that was previously inputed.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# deleting a message using specific UID -result1 <- imapconf %>% - select_mailbox(mbox = "TAM") %>% - delete_msg(msg_id = 71171, by = "UID") %$% - expunge(imapconf = imapconf, specific_UID = msg_id) - - -# expunge all message smarked as "DELETED" in INBOX -result2 <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - expunge() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/fetchFullMsg.html b/docs/reference/fetchFullMsg.html deleted file mode 100644 index 4af73f0..0000000 --- a/docs/reference/fetchFullMsg.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - - - -Fetch Full Messages — fetchFullMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fetch all the sections and fields of one or more messages.

- -
- -
fetchFullMsg(imapconf, msg_id, by = "MSN", peek = TRUE,
-  partial = NULL, write_to_file = FALSE, keep_in_mem = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_file

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# fetching -results <- imapconf %>% - selectMailbox(mbox = "TAM") %>% - searchBefore(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - fetchFullMsg(imapconf = imapconf, msg_id = msg_id, - by="UID", write_to_file = TRUE, keep_in_mem = FALSE, - partial = "0.789") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/fetchMsgHeader.html b/docs/reference/fetchMsgHeader.html deleted file mode 100644 index e6c62b0..0000000 --- a/docs/reference/fetchMsgHeader.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - - - -Fetch Message Headers — fetchMsgHeader • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fetch header fields of one or more messages.

- -
- -
fetchMsgHeader(imapconf, msg_id, by = "MSN", fields = NULL,
-  negate_fields = FALSE, peek = TRUE, partial = NULL,
-  write_to_file = FALSE, keep_in_mem = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

fields

A character vector specifying which field(s) to fetch from -messages. See section_or_field_options

negate_fields

If TRUE, negates the search and seeks for -"NOT in the field". Default is FALSE.

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_file

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) -# fetching -results <- imapconf %>% - selectMailbox(mbox = "TAM") %>% - searchBefore(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - fetchMsgHeader(imapconf = imapconf, msg_id = msg_id, fields = c("From", "To")) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/fetchMsgMetadata.html b/docs/reference/fetchMsgMetadata.html deleted file mode 100644 index a59fb5c..0000000 --- a/docs/reference/fetchMsgMetadata.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - - - -Fetch Message Metadata — fetchMsgMetadata • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fetch Metadata of one or more messages.

- -
- -
fetchMsgMetadata(imapconf, msg_id, by = "MSN", metadata,
-  write_to_file = FALSE, keep_in_mem = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

metadata

A character vector or string specifying one or more items of -the metadata of a message to fetch. See metadata_options.

write_to_file

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# fetching -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchSentSince(date_char = "26-Aug-2008") %$% #exposition pipe - two argg - fetchMsgMetadata(imapconf, msg_id = msg_id, by = "UID", - metadata = c("INTERNALDATE", "UID", "ENVELOPE", "FLAGS", - "RFC822.SIZE", "BODYSTRUCTURE")) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/fetchMsgText.html b/docs/reference/fetchMsgText.html deleted file mode 100644 index 3c7082e..0000000 --- a/docs/reference/fetchMsgText.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - - - -Fetch Message Text — fetchMsgText • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fetch Text section of one or more messages.

- -
- -
fetchMsgText(imapconf, msg_id, by = "MSN", peek = TRUE,
-  partial = NULL, write_to_file = FALSE, keep_in_mem = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_file

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# fetching and saving results to disk -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchSentSince(date_char = "26-Aug-2008") %$% #exposition pipe - two argg - fetchMsgText(imapconf = imapconf, msg_id = msg_id, write_to_file = TRUE) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/fetch_full_msg.html b/docs/reference/fetch_full_msg.html deleted file mode 100644 index 002fb42..0000000 --- a/docs/reference/fetch_full_msg.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - - - -Fetch Full Messages — fetch_full_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fetch all the sections and fields of one or more messages.

- -
- -
fetch_full_msg(imapconf, msg_id, by = "MSN", peek = TRUE,
-  partial = NULL, write_to_disk = FALSE, keep_in_mem = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -TRUE. It can only be set FALSE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# fetching -results <- imapconf %>% - select_mailbox(mbox = "TAM") %>% - search_before(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - fetch_full_msg(imapconf = imapconf, - msg_id = msg_id, - by="UID", write_to_disk = TRUE, - keep_in_mem = FALSE, - partial = "0.789") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/fetch_msg_header.html b/docs/reference/fetch_msg_header.html deleted file mode 100644 index 4d60102..0000000 --- a/docs/reference/fetch_msg_header.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - - - -Fetch Message Headers — fetch_msg_header • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fetch header fields of one or more messages.

- -
- -
fetch_msg_header(imapconf, msg_id, by = "MSN", fields = NULL,
-  negate_fields = FALSE, peek = TRUE, partial = NULL,
-  write_to_disk = FALSE, keep_in_mem = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

fields

A character vector specifying which field(s) to fetch from -messages. See section_or_field_options

negate_fields

If TRUE, negates the search and seeks for -"NOT in the field". Default is FALSE.

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) -# fetching -results <- imapconf %>% - select_mailbox(mbox = "TAM") %>% - search_before(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - fetch_msg_header(imapconf = imapconf, msg_id = msg_id, fields = c("From", "To")) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/fetch_msg_metadata.html b/docs/reference/fetch_msg_metadata.html deleted file mode 100644 index b2967f6..0000000 --- a/docs/reference/fetch_msg_metadata.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - - - - -Fetch Message Metadata — fetch_msg_metadata • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fetch Metadata of one or more messages.

- -
- -
fetch_msg_metadata(imapconf, msg_id, by = "MSN", metadata,
-  write_to_disk = FALSE, keep_in_mem = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

metadata

A character vector or string specifying one or more items of -the metadata of a message to fetch. See metadata_options.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# fetching -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_sent_since(date_char = "26-Aug-2008") %$% #exposition pipe - two argg - fetch_msg_metadata(imapconf, msg_id = msg_id, by = "UID", - metadata = c("INTERNALDATE", "UID", "ENVELOPE", "FLAGS", - "RFC822.SIZE", "BODYSTRUCTURE")) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/fetch_msg_text.html b/docs/reference/fetch_msg_text.html deleted file mode 100644 index aebac50..0000000 --- a/docs/reference/fetch_msg_text.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - - -Fetch Message Text — fetch_msg_text • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fetch Text section of one or more messages.

- -
- -
fetch_msg_text(imapconf, msg_id, by = "MSN", peek = TRUE,
-  partial = NULL, write_to_disk = FALSE, keep_in_mem = TRUE,
-  try_b64decode = FALSE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

try_b64decode

If TRUE, tries to guess and decode the fetched -text from base64 format to character. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# fetching and saving results to disk -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_sent_since(date_char = "26-Aug-2008") %$% #exposition pipe - two argg - fetch_msg_text(imapconf = imapconf, msg_id = msg_id, write_to_disk = TRUE) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/figures/aol1.PNG b/docs/reference/figures/aol1.PNG deleted file mode 100644 index 9265eb2..0000000 Binary files a/docs/reference/figures/aol1.PNG and /dev/null differ diff --git a/docs/reference/figures/aol2.PNG b/docs/reference/figures/aol2.PNG deleted file mode 100644 index 5334d53..0000000 Binary files a/docs/reference/figures/aol2.PNG and /dev/null differ diff --git a/docs/reference/figures/aol3.PNG b/docs/reference/figures/aol3.PNG deleted file mode 100644 index 95c2bd4..0000000 Binary files a/docs/reference/figures/aol3.PNG and /dev/null differ diff --git a/docs/reference/figures/gmail1.PNG b/docs/reference/figures/gmail1.PNG deleted file mode 100644 index 0061e3b..0000000 Binary files a/docs/reference/figures/gmail1.PNG and /dev/null differ diff --git a/docs/reference/figures/gmail_LSA.png b/docs/reference/figures/gmail_LSA.png deleted file mode 100644 index 74f5940..0000000 Binary files a/docs/reference/figures/gmail_LSA.png and /dev/null differ diff --git a/docs/reference/figures/logo_old.png b/docs/reference/figures/logo_old.png deleted file mode 100644 index 163af81..0000000 Binary files a/docs/reference/figures/logo_old.png and /dev/null differ diff --git a/docs/reference/figures/logo_old2.png b/docs/reference/figures/logo_old2.png deleted file mode 100644 index c718057..0000000 Binary files a/docs/reference/figures/logo_old2.png and /dev/null differ diff --git a/docs/reference/figures/logo_old3.png b/docs/reference/figures/logo_old3.png deleted file mode 100644 index 23426fc..0000000 Binary files a/docs/reference/figures/logo_old3.png and /dev/null differ diff --git a/docs/reference/figures/logo_old4_not_transp.png b/docs/reference/figures/logo_old4_not_transp.png deleted file mode 100644 index bd20258..0000000 Binary files a/docs/reference/figures/logo_old4_not_transp.png and /dev/null differ diff --git a/docs/reference/figures/yahoo1.PNG b/docs/reference/figures/yahoo1.PNG deleted file mode 100644 index fa81e70..0000000 Binary files a/docs/reference/figures/yahoo1.PNG and /dev/null differ diff --git a/docs/reference/figures/yahoo2.PNG b/docs/reference/figures/yahoo2.PNG deleted file mode 100644 index 6794a29..0000000 Binary files a/docs/reference/figures/yahoo2.PNG and /dev/null differ diff --git a/docs/reference/figures/yahoo3.PNG b/docs/reference/figures/yahoo3.PNG deleted file mode 100644 index d4d704b..0000000 Binary files a/docs/reference/figures/yahoo3.PNG and /dev/null differ diff --git a/docs/reference/fix_searchStripping.html b/docs/reference/fix_searchStripping.html deleted file mode 100644 index 573b549..0000000 --- a/docs/reference/fix_searchStripping.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - - -Fixing Stripped Search Results — fix_searchStripping • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fixes stripped results from search operations when server may - have stripped some lines.

- -
- -
fix_searchStripping(response)
- -

Arguments

- - - - - - -
response

An integer vector containing message ids from search.

- -

Value

- -

An integer vector.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/fix_search_stripping.html b/docs/reference/fix_search_stripping.html deleted file mode 100644 index f7f9c60..0000000 --- a/docs/reference/fix_search_stripping.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - - -Fixing Stripped Search Results — fix_search_stripping • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Fixes stripped results from search operations when server may - have stripped some lines.

- -
- -
fix_search_stripping(response)
- -

Arguments

- - - - - - -
response

An integer vector containing message ids from search.

- -

Value

- -

An integer vector.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/flag_options.html b/docs/reference/flag_options.html deleted file mode 100644 index 256eec3..0000000 --- a/docs/reference/flag_options.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - -Flag Options — flag_options • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Lists flags used by most of IMAP servers.

- -
- -
flag_options()
- -

Value

- -

A data.frame containing flag names, its descriptions, and its - antonym versions.

- -

Note

- -

RFC 2060 lists a set of systems flags, which are presentend and extended - by this function. We also present a list of negative flags. When using - verbose = TRUE in configure_imap function, flags appear - with "\", e.g. "\Seen". It is important to note that some (but not all) - functions that deal with flags also accepts, keywords - words usually - listed (when verbose = TRUE) together with flags by the server but with - no leading "\"). This is the case of add_flags, - remove_flags, and replace_flags.

- -

References

- -

Crispin, M., "Internet Message Access Protocol - Version 4rev1", - RFC 2060, doi: 10.17487/RFC2060 -, December 1996, - https://www.rfc-editor.org/info/rfc2060.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-library(mRpostman)
-flag_options()
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/getMaxId.html b/docs/reference/getMaxId.html deleted file mode 100644 index e32d544..0000000 --- a/docs/reference/getMaxId.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - - -Get Maximum Message ID in a Mailbox — getMaxId • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Get the greater (maximum) message id in a Mailbox, considering - messages with a specific flag

- -
- -
getMaxId(imapconf, by = "MSN", flag, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers. Default is NULL.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A numeric vector of length 1 indicating the minimum id.

- -

Note

- -

getMaxId uses ESEARCH extension. Check if your server - supports ESEARCH capability with listServerCapabilities.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -results <- imapconf %>% - selectMailbox(mbox = "[Gmail]/Trash") %>% - getMaxId(by = "UID", flag = "SEEN") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/getMinId.html b/docs/reference/getMinId.html deleted file mode 100644 index 0721289..0000000 --- a/docs/reference/getMinId.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - - -Get Minimum Message ID in a Mailbox — getMinId • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Get the smaller (minimum) message id in a Mailbox, considering - messages with a specific flag

- -
- -
getMinId(imapconf, by = "MSN", flag, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers. Default is NULL.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A numeric vector of length 1 indicating the minimum id.

- -

Note

- -

getMaxId uses ESEARCH extension. Check if your server - supports ESEARCH capability with listServerCapabilities.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -results <- imapconf %>% - selectMailbox(mbox = "[Gmail]/Trash") %>% - getMinId(flag = "UNSEEN") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/get_attachment.html b/docs/reference/get_attachment.html deleted file mode 100644 index d676d4a..0000000 --- a/docs/reference/get_attachment.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - - - -Get Attachments — get_attachment • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Get attachments after fetching full messages.

- -
- -
get_attachment(msg_list)
- -

Arguments

- - - - - - -
msg_list

A list containing the full messages fetched from -the server after using fetch_full_msg.

- -

Value

- -

A logical TRUE if the attachments extraction was successful.

- -

Note

- -

All attachments will be stored in a folder labelled with the message id - inside the working directory. This function currently handles only attachments - encoded as base64 text. It tries to guess all file extensions while decoding - the text, but it may not be possible in some circumstances. In those cases, - you can try to change the file extension by directly renaming the file.

- -

See also

- -

Other attachments: list_attachments

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# extracting attachments -imapconf %>% - select_mailbox(mbox = "TAM") %>% - search_before(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - fetch_full_msgs(imapconf = imapconf, msg_id = msg_id) %>% - get_attachments() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/get_attachments.html b/docs/reference/get_attachments.html deleted file mode 100644 index a3e8713..0000000 --- a/docs/reference/get_attachments.html +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - -Get Attachments — get_attachments • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Get attachments after fetching full messages.

- -
- -
get_attachments(msg_list, content_disposition = "both")
- -

Arguments

- - - - - - - - - - -
msg_list

A list containing the full messages fetched from -the server after using fetch_full_msg.

content_disposition

A string indicating which type of -"Content-Disposition" attachments should be retireved. Default is -"both", which retireves regular attachments -("Content-Disposition: attachment") and inline attachments -("Content-Disposition: inline").

- -

Value

- -

A logical TRUE if the attachments extraction was successful.

- -

Note

- -

All attachments will be stored in a folder labelled with the message id - inside the working directory. This function currently handles only attachments - encoded as base64 text. It tries to guess all file extensions while - decoding the text, but it may not be possible to do it in some circumstances. - If it happens, you can try to change the file extension directly by renaming - the file.

-

The "Content-Disposition" header specifies if the multipart electronic - messages will be presented as a main document with a list of separate - attachments ("Content-Disposition: attachment") or as a single document - with the various parts displayed inline. The first requires positive action - on the part of recipient, i.e. downloading the file, whereas inline - components are displayed automatically when the message is viewed - (Troost, R., Dorner, S., and K. Moore, Ed. (1997)). You can choose - to download both, or only one of the types of attachments, using the - argument content_disposition.

- -

References

- -

Troost, R., Dorner, S., and K. Moore, Ed., - Communicating Presentation Information in Internet Messages: - The Content-Disposition Header Field, RFC 2183, DOI 10.17487/RFC2183, - August 1997, https://www.rfc-editor.org/info/rfc2183.

- -

See also

- -

Other attachments: list_attachments

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# extracting attachments -imapconf %>% - select_mailbox(mbox = "TAM") %>% - search_before(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - fetch_full_msgs(imapconf = imapconf, msg_id = msg_id) %>% - get_attachments() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/get_max_id.html b/docs/reference/get_max_id.html deleted file mode 100644 index 60d420e..0000000 --- a/docs/reference/get_max_id.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - - -Get Maximum Message ID in a Mailbox — get_max_id • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Get the greater (maximum) message id in a Mailbox, considering - messages with a specific flag.

- -
- -
get_max_id(imapconf, by = "MSN", flag, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers. Default is NULL.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A numeric vector of length 1 indicating the minimum id.

- -

Note

- -

get_max_id uses ESEARCH extension. Check if your server - supports ESEARCH capability with list_server_capabilities.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -results <- imapconf %>% - select_mailbox(mbox = "[Gmail]/Trash") %>% - get_max_id(by = "UID", flag = "SEEN") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/get_min_id.html b/docs/reference/get_min_id.html deleted file mode 100644 index 686d385..0000000 --- a/docs/reference/get_min_id.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - - - - - -Get Minimum Message ID in a Mailbox — get_min_id • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Get the smaller (minimum) message id in a Mailbox, considering - messages with a specific flag.

- -
- -
get_min_id(imapconf, by = "MSN", flag, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers. Default is NULL.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A numeric vector of length 1 indicating the minimum id.

- -

Note

- -

get_max_id uses ESEARCH extension. Check if your server - supports ESEARCH capability with list_server_capabilities.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -results <- imapconf %>% - select_mailbox(mbox = "[Gmail]/Trash") %>% - get_min_id(flag = "UNSEEN") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/has_attachment.html b/docs/reference/has_attachment.html deleted file mode 100644 index 3bfb654..0000000 --- a/docs/reference/has_attachment.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - - - - -Attachments Check — has_attachment • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for attachment checking in messages.

- -
- -
has_attachment(msg)
- -

Arguments

- - - - - - -
msg

An object of class character containing the whole MIME -message.

- -

Value

- -

A logical containing TRUE if there is one or more - attachments and FALSE if there is none.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/largerThan.html b/docs/reference/largerThan.html deleted file mode 100644 index b07ef5a..0000000 --- a/docs/reference/largerThan.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — largerThan • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
largerThan(size, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
size

An integer specifying the size (in number characters) of message to be used as search -criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other search: On

-

Other custom: On

-

Other criteria helper functions: On

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = - OR(String( - section_or_field = "from", string = "allanvcq@gmail.com"), - largerThan( - size = 512000) - ) - ) -# searches for messages containing the string "allanvcq@gmail.com" in the field "FROM" - OR those largerThan 512KB. - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/listMailboxes.html b/docs/reference/listMailboxes.html deleted file mode 100644 index fc9682f..0000000 --- a/docs/reference/listMailboxes.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - - -Listing Mailboxes — listMailboxes • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

List Mailboxes from IMAP server.

- -
- -
listMailboxes(imapconf, retries = 2)
- -

Arguments

- - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list containing the Mailboxes (root and children).

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-#' library(mRpostman)
-imapconf <- configureIMAP(url="imaps://imap.gmail.com",
-                          username="your_gmail_user",
-                          password=rstudioapi::askForPassword()
-                          )
-
-# list mailboxes
-results <- imapconf %>%
-  listMailboxes()
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/listServerCapabilities.html b/docs/reference/listServerCapabilities.html deleted file mode 100644 index bb21120..0000000 --- a/docs/reference/listServerCapabilities.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - - - -IMAP Server Capabilities — listServerCapabilities • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Lists IMAP server's capabilities.

- -
- -
listServerCapabilities(imapconf, retries = 2)
- -

Arguments

- - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A character vector containing server's IMAP capacbilities.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-#' library(mRpostman)
-imapconf <- configureIMAP(url="imaps://imap.gmail.com",
-                          username="your_gmail_user",
-                          password=rstudioapi::askForPassword()
-                          )
-
-# list server's capabilities
-results <- imapconf %>%
-  listServerCapabilities()
-
-# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/list_mailboxes.html b/docs/reference/list_mailboxes.html deleted file mode 100644 index 0020a31..0000000 --- a/docs/reference/list_mailboxes.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - - - -Listing Mailboxes — list_mailboxes • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

List Mailboxes from IMAP server.

- -
- -
list_mailboxes(imapconf, retries = 2)
- -

Arguments

- - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A list containing the Mailboxes (root and children).

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-library(mRpostman)
-imapconf <- configure_imap(url="imaps://your.imap.server.com",
-                           username="your_username",
-                           password=rstudioapi::askForPassword()
-                         )
-
-# list mailboxes
-results <- imapconf %>%
-  list_mailboxes()
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/list_server_capabilities.html b/docs/reference/list_server_capabilities.html deleted file mode 100644 index bcd6176..0000000 --- a/docs/reference/list_server_capabilities.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - - - -IMAP Server Capabilities — list_server_capabilities • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Lists IMAP server's capabilities.

- -
- -
list_server_capabilities(imapconf, retries = 2)
- -

Arguments

- - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

A character vector containing server's IMAP capacbilities.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-#' library(mRpostman)
-imapconf <- configure_imap(url="imaps://your.imap.server.com",
-                           username="your_username",
-                           password=rstudioapi::askForPassword()
-                         )
-
-# list server's capabilities
-results <- imapconf %>%
-  list_server_capabilities()
-
-# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/loop_fetchFullMsg.html b/docs/reference/loop_fetchFullMsg.html deleted file mode 100644 index 61afb18..0000000 --- a/docs/reference/loop_fetchFullMsg.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - - - -Full Fetch Loop — loop_fetchFullMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for loop execution used in fetch - functions.

- -
- -
loop_fetchFullMsg(new_imapconf, msg_id, by, peek, partial, write_to_disk,
-  keep_in_mem, retries, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new_imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

handle

A curl handle object.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/loop_fetchMsgHeader.html b/docs/reference/loop_fetchMsgHeader.html deleted file mode 100644 index 8ad66c5..0000000 --- a/docs/reference/loop_fetchMsgHeader.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - - -Header Fetch Loop — loop_fetchMsgHeader • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for loop execution used in fetch - functions.

- -
- -
loop_fetchMsgHeader(new_imapconf, msg_id, by, fields, negate_fields, peek,
-  partial, write_to_disk, keep_in_mem, retries, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new_imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

fields

A character vector specifying which field(s) to fetch from -messages. See section_or_field_options

negate_fields

If TRUE, negates the search and seeks for -"NOT in the field". Default is FALSE.

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

handle

A curl handle object.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/loop_fetchMsgMetadata.html b/docs/reference/loop_fetchMsgMetadata.html deleted file mode 100644 index 6a5edd3..0000000 --- a/docs/reference/loop_fetchMsgMetadata.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - -Metadata Fetch Loop — loop_fetchMsgMetadata • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for loop execution used in fetch - functions.

- -
- -
loop_fetchMsgMetadata(new_imapconf, msg_id, by, metadata, write_to_disk,
-  keep_in_mem, retries, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new_imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

metadata

A character vector or string specifying one or more items of -the metadata of a message to fetch. See metadata_options.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

handle

A curl handle object.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/loop_fetchMsgText.html b/docs/reference/loop_fetchMsgText.html deleted file mode 100644 index 1282930..0000000 --- a/docs/reference/loop_fetchMsgText.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - - - -Metadata Fetch Loop — loop_fetchMsgText • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for loop execution used in fetch - functions.

- -
- -
loop_fetchMsgText(new_imapconf, msg_id, by, peek, partial, write_to_disk,
-  keep_in_mem, retries, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new_imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_file = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_file = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

handle

A curl handle object.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/loop_fetch_full_msg.html b/docs/reference/loop_fetch_full_msg.html deleted file mode 100644 index 95274c9..0000000 --- a/docs/reference/loop_fetch_full_msg.html +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - -Full Fetch Loop — loop_fetch_full_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for loop execution used in fetch - functions.

- -
- -
loop_fetch_full_msg(new_imapconf, msg_id, by, peek, partial, write_to_disk,
-  keep_in_mem, retries, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -TRUE. It can only be set FALSE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

handle

A curl handle object.

imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/loop_fetch_msg_header.html b/docs/reference/loop_fetch_msg_header.html deleted file mode 100644 index 0aeb148..0000000 --- a/docs/reference/loop_fetch_msg_header.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - - -Header Fetch Loop — loop_fetch_msg_header • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for loop execution used in fetch - functions.

- -
- -
loop_fetch_msg_header(new_imapconf, msg_id, by, fields, negate_fields,
-  peek, partial, write_to_disk, keep_in_mem, retries, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

fields

A character vector specifying which field(s) to fetch from -messages. See section_or_field_options

negate_fields

If TRUE, negates the search and seeks for -"NOT in the field". Default is FALSE.

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

handle

A curl handle object.

imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/loop_fetch_msg_metadata.html b/docs/reference/loop_fetch_msg_metadata.html deleted file mode 100644 index d5ad377..0000000 --- a/docs/reference/loop_fetch_msg_metadata.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - - -Metadata Fetch Loop — loop_fetch_msg_metadata • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for loop execution used in fetch - functions.

- -
- -
loop_fetch_msg_metadata(new_imapconf, msg_id, by, metadata, write_to_disk,
-  keep_in_mem, retries, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

metadata

A character vector or string specifying one or more items of -the metadata of a message to fetch. See metadata_options.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

handle

A curl handle object.

imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/loop_fetch_msg_text.html b/docs/reference/loop_fetch_msg_text.html deleted file mode 100644 index 38abd23..0000000 --- a/docs/reference/loop_fetch_msg_text.html +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - - -Metadata Fetch Loop — loop_fetch_msg_text • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Internal helper function for loop execution used in fetch - functions.

- -
- -
loop_fetch_msg_text(new_imapconf, msg_id, by, peek, partial, write_to_disk,
-  keep_in_mem, try_b64decode, retries, handle)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

peek

If TRUE, it does not mark messages as "read" after -fetching. Default is TRUE.

partial

NULL or a character string with format -"startchar.endchar" indicating the size (in characters) of a message slice -to fetch. Default is NULL, which fetchs the full specified content.

write_to_disk

If TRUE writes fetch content of each message -to the disk as a text file in the working directory. Default is FALSE.

keep_in_mem

If TRUE keeps a copy of fetch results as an -list in the R session when write_to_disk = TRUE. Default is -FALSE. It can only be set TRUE when -write_to_disk = TRUE.

try_b64decode

If TRUE, tries to guess and decode the fetched -text from base64 format to character. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

handle

A curl handle object.

imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

- -

Value

- -

A list or/and text files containing the fetch results.

- -

See also

- - - - -
- -
- - -
- - - - - - diff --git a/docs/reference/moveMsg.html b/docs/reference/moveMsg.html deleted file mode 100644 index 96c106c..0000000 --- a/docs/reference/moveMsg.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - - - -Move Messages — moveMsg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Moves messages between mailboxes.

- -
- -
moveMsg(imapconf, msg_id, by = "MSN", to_mbox, reselect_mbox = FALSE,
-  logical_output = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

to_mbox

A character string specifying the mailbox to which messages -will be moved to.

reselect_mbox

If TRUE, calls selectMailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the logical_output parameter, returns a list - of length 2 containing the imapconf object and previously - informed message ids (parameter msg_id), or a logical vector of - length 1 indicating the success (TRUE) of the mentioned - operation.

- -

Note

- -

moveMsg uses MOVE extension. Check if your server - supports MOVE capability with listServerCapabilities.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# copy search results from "Sent" to "INBOX" -results <- imapconf %>% - selectMailbox(mbox = "Sent") %>% - searchBefore(date_char = "10-may-2012") %$% #exposition pipe operator - pass two argg - moveMsg(imapconf = imapconf, msg_id = msg_id, to_mbox = "Other Mailbox") - -# the same result can be achieved with a combination of: -results <- imapconf %>% - selectMailbox(mbox = "Sent") %>% - searchBefore(date_char = "10-may-2012") %$% #exposition pipe operator - pass two argg - copyMsg(imapconf = imapconf, msg_id = msg_id, to_mbox = "Other Mailbox") %$% - addFlags(imapconf = imapconf, msg_id = msg_id, flags_to_set = "Deleted") %$% - expunge() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/move_msg.html b/docs/reference/move_msg.html deleted file mode 100644 index 2686def..0000000 --- a/docs/reference/move_msg.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - - - -Move Messages — move_msg • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Moves messages between mailboxes.

- -
- -
move_msg(imapconf, msg_id, by = "MSN", to_mbox, reselect_mbox = FALSE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

to_mbox

A character string specifying the mailbox to which messages -will be moved to.

reselect_mbox

If TRUE, calls select_mailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

An (invisible) list of length 2 containing the - imapconf object and the previously inputed message ids - (parameter msg_id).

- -

Note

- -

move_msg uses MOVE extension. Check if your server - supports MOVE capability with list_server_capabilities.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# copy search results from "Sent" to "INBOX" -results <- imapconf %>% - select_mailbox(mbox = "Sent") %>% - search_before(date_char = "10-may-2012") %$% #exposition pipe operator - pass two argg - move_msg(imapconf = imapconf, msg_id = msg_id, to_mbox = "Other Mailbox") - -# the same result can be achieved with a combination of: -results <- imapconf %>% - select_mailbox(mbox = "Sent") %>% - search_before(date_char = "10-may-2012") %$% #exposition pipe operator - pass two argg - copy_msg(imapconf = imapconf, msg_id = msg_id, to_mbox = "Other Mailbox") %$% - add_flags(imapconf = imapconf, msg_id = msg_id, flags_to_set = "Deleted") %$% - expunge() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/olderThan.html b/docs/reference/olderThan.html deleted file mode 100644 index b93124b..0000000 --- a/docs/reference/olderThan.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — olderThan • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
olderThan(seconds, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, Flag, - OR, Since, - String, sentBefore, - sentOn, sentSince, - smallerThan, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = - OR(String( - section_or_field = "from", string = "allanvcq@gmail.com"), - olderThan( - seconds = 3600) - ) - ) -# searches for messages containing the string "allanvcq@gmail.com" in the field "FROM" - OR messgaes that are "older" than one hour (messages arrived 3more than - 600 seconds ago). - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/removeFlags.html b/docs/reference/removeFlags.html deleted file mode 100644 index 248c1f2..0000000 --- a/docs/reference/removeFlags.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - - - -Remove Flag(s) From Messages — removeFlags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Remove one or more flags from one or more messages.

- -
- -
removeFlags(imapconf, msg_id, by = "MSN", flags_to_unset,
-  logical_output = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_unset

A character vector containing one ore more flag names to -remove from the specified message ids.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the logical_output parameter, returns a list - of length 2 containing the imapconf object and previously - informed message ids (parameter msg_id), or a logical vector of - length 1 indicating the success (TRUE) of the mentioned - operation.

- -

Note

- -

addFlags, removeFlags and replaceFlags, accepts - not only flags but also keywords (such as $Phishing on Gmail's - IMAP server) to add, remove or replace.

-

IMAP servers do not allow setting the negative version of a flag when a - message already has the positive version of it. If a message with - MSN 1 already has the "SEEN" flag, it is not allowed to add "UNSEEN" - to that. Instead, you have to first remove the "SEEN" flag - removeFlags(imapconf, msg_id = 1, "SEEN") and only then do - addFlags(imapconf, msg_id = 1, "SEEN"). Another option is to - complete override all the flags of a message or a set of messages using - replaceFlags(imapconf, msg_id = 1, "SEEN").

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -result1 <- imapconf %>% - selectMailbox(mbox = "TAM") %>% - searchBefore(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - removeFlags(imapconf = imapconf, msg_id = msg_id, flags_to_unset = c("RECENT", "$NotPhishing")) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/remove_flags.html b/docs/reference/remove_flags.html deleted file mode 100644 index 5915a35..0000000 --- a/docs/reference/remove_flags.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - - - - - -Remove Flag(s) From Messages — remove_flags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Remove one or more flags from one or more messages.

- -
- -
remove_flags(imapconf, msg_id, by = "MSN", flags_to_unset, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_unset

A character vector containing one ore more flag names to -remove from the specified message ids.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

An (invisible) list of length 2 containing the - imapconf object and the previously inputed message ids - (parameter msg_id).

- -

Note

- -

add_flags, remove_flags and replace_flags, accepts - not only flags but also keywords (such as $Phishing on Gmail's - IMAP server) to add, remove or replace.

-

IMAP servers do not allow setting the negative version of a flag when a - message already has the positive version of it. If a message with - MSN 1 already has the "SEEN" flag, it is not allowed to add "UNSEEN" - to that. Instead, you have to first remove the "SEEN" flag - remove_flags(imapconf, msg_id = 1, "SEEN") and only then do - add_flags(imapconf, msg_id = 1, "SEEN"). Another option is to - complete override all the flags of a message or a set of messages using - replace_flags(imapconf, msg_id = 1, "SEEN").

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -result1 <- imapconf %>% - select_mailbox(mbox = "TAM") %>% - search_before(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - remove_flags(imapconf = imapconf, msg_id = msg_id, flags_to_unset = c("RECENT", "$NotPhishing")) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/renameMailbox.html b/docs/reference/renameMailbox.html deleted file mode 100644 index 5b048d9..0000000 --- a/docs/reference/renameMailbox.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - - - -Rename Mailbox — renameMailbox • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Rename a mailbox.

- -
- -
renameMailbox(imapconf, new_name, reselect_mbox = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

new_name

A string containing the new name to be set.

reselect_mbox

If TRUE, calls selectMailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

An imaconf object with the newer selected mailbox added - to it. If reselect_mbox is FALSE, it returns the - imaconf object with the former mailbox name.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-imapconf <- configureIMAP(url="imaps://imap.gmail.com",
-                          username="your_gmail_user",
-                          password=rstudioapi::askForPassword()
-                          )
-
-# rename mailbox "Sent"
-imapconf %>%
-  selectMailbox(mbox = "Sent") %>%
-  renameMailbox(new_name = "Sent Mail")
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/rename_mailbox.html b/docs/reference/rename_mailbox.html deleted file mode 100644 index 506c3d2..0000000 --- a/docs/reference/rename_mailbox.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - - - -Rename Mailbox — rename_mailbox • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Rename a mailbox.

- -
- -
rename_mailbox(imapconf, new_name, reselect_mbox = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

new_name

A string containing the new name to be set.

reselect_mbox

If TRUE, calls select_mailbox(mbox = to_mbox) -before returning the output. Default is FALSE for moving and -copying operations, whereas it is TRUE for renaming mailboxes.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

An (invisible) imaconf object with the newer selected mailbox added - to it. If reselect_mbox is FALSE, it returns the - imaconf object with the former mailbox name.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-imapconf <- configure_imap(url="imaps://your.imap.server.com",
-                           username="your_username",
-                           password=rstudioapi::askForPassword()
-                          )
-
-# rename mailbox "Sent"
-imapconf %>%
-  select_mailbox(mbox = "Sent") %>%
-  rename_mailbox(new_name = "Sent Mail")
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/replaceFlags.html b/docs/reference/replaceFlags.html deleted file mode 100644 index fde8c61..0000000 --- a/docs/reference/replaceFlags.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - - - -Replace Flag(s) in Messages — replaceFlags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Replaces all flags in messages by one or more flags.

- -
- -
replaceFlags(imapconf, msg_id, by = "MSN", flags_to_set,
-  logical_output = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_set

A character vector containing one ore more flag names to -add to or replace in the specified message ids.

logical_output

A logical. If TRUE, simplifies the output -returning TRUE to indicate the success of the mentioned operation. -If FALSE, returns a list of length 2 containing the -imapconf object (IMAP settings) and the previously informed -message ids (parameter msg_id), so they can be passed as -arguments to another function. Default is FALSE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the logical_output parameter, returns a list - of length 2 containing the imapconf object and previously - informed message ids (parameter msg_id), or a logical vector of - length 1 indicating the success (TRUE) of the mentioned - operation.

- -

Note

- -

addFlags, removeFlags and replaceFlags, accepts - not only flags but also keywords (such as $Phishing on Gmail's - IMAP server) to add, remove or replace.

-

IMAP servers do not allow setting the negative version of a flag when a - message already has the positive version of it. If a message with - MSN 1 already has the "SEEN" flag, it is not allowed to add "UNSEEN" - to that. Instead, you have to first remove the "SEEN" flag - removeFlags(imapconf, msg_id = 1, "SEEN") and only then do - addFlags(imapconf, msg_id = 1, "SEEN"). Another option is to - complete override all the flags of a message or a set of messages using - replaceFlags(imapconf, msg_id = 1, "SEEN").

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -result1 <- imapconf %>% - selectMailbox(mbox = "TAM") %>% - searchBefore(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - removeFlags(imapconf = imapconf, msg_id = msg_id, flags_to_set = c("SEEN", "DRAFT")) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/replace_flags.html b/docs/reference/replace_flags.html deleted file mode 100644 index ed1ef40..0000000 --- a/docs/reference/replace_flags.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - - - - - -Replace Flag(s) in Messages — replace_flags • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Replaces all flags in messages by one or more flags.

- -
- -
replace_flags(imapconf, msg_id, by = "MSN", flags_to_set, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

msg_id

A numeric vetor containing one or more messages ids.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flags_to_set

A character vector containing one ore more flag names to -add to or replace in the specified message ids.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

An (invisible) list of length 2 containing the - imapconf object and the previously inputed message ids - (parameter msg_id).

- -

Note

- -

add_flags, remove_flags and replace_flags, accepts - not only flags but also keywords (such as $Phishing on Gmail's - IMAP server) to add, remove or replace.

-

IMAP servers do not allow setting the negative version of a flag when a - message already has the positive version of it. If a message with - MSN 1 already has the "SEEN" flag, it is not allowed to add "UNSEEN" - to that. Instead, you have to first remove the "SEEN" flag - remove_flags(imapconf, msg_id = 1, "SEEN") and only then do - add_flags(imapconf, msg_id = 1, "SEEN"). Another option is to - complete override all the flags of a message or a set of messages using - replace_flags(imapconf, msg_id = 1, "SEEN").

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -result1 <- imapconf %>% - select_mailbox(mbox = "TAM") %>% - search_before(date_char = "10-may-2012", by = "UID") %$% #exposition pipe - two argg - replace_flags(imapconf = imapconf, msg_id = msg_id, flags_to_set = c("SEEN", "DRAFT")) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/rfc2047_header_decode.html b/docs/reference/rfc2047_header_decode.html deleted file mode 100644 index 640eb71..0000000 --- a/docs/reference/rfc2047_header_decode.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - -Decode RFC 2047 quoted-printable and base64 headers or strings — rfc2047_header_decode • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Decode RFC 2047 quoted-printable and base64 headers or strings

- -
- -
rfc2047_header_decode(header)
- -

Arguments

- - - - - - -
header

A character vector containing a string to be decoded.

- -

Value

- -

A decoded character vector if applicable.

- - -

Examples

-
# Simple quoted-printable string - Portuguese example -qp_encoded <- "Minist=E9rio_da_Educa=E7=E3o" -decoded_string <- rfc2047_header_decode(header = qp_encoded) - -# Simple quoted-printable string - French example -qp_encoded <- "Minist=E9rio_da_Educa=E7=E3o" -decoded_string <- rfc2047_header_decode(header = qp_encoded) - -# RFC 2047 quoted-printable header - Portuguese example -qp_encoded <- "=?iso-8859-1?Q?DIDEC_Capacita=E7=E3o?=" -decoded_string <- rfc2047_header_decode(header = qp_encoded) - -# RFC 2047 quoted-printable - German example -qp_encoded <- "=?UTF-8?Q?stern=2Ede_-_t=C3=A4glich?=" -decoded_string <- rfc2047_header_decode(header = qp_encoded) - -# RFC 2047 base64 - Portuguese example -b64_encoded <- "=?utf-8?B?Sk9BTkEgRlVTQ08gTE9CTyBubyBUZWFtcw==?=" -decoded_string <- rfc2047_header_decode(header = b64_encoded)
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchBefore.html b/docs/reference/searchBefore.html deleted file mode 100644 index 3da12d8..0000000 --- a/docs/reference/searchBefore.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - - - -Search By Internal Date — searchBefore • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the (internal) - date criteria, such as before, since, on, and period.

- -
- -
searchBefore(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

searchBefore, searchSince, searchOn, and - searchPeriod use internal date, - which reflects the moment when the message was received. - searchSentBefore, searchSentSince, searchSentOn, and - searchSentPeriod use RFC-2822 date header (origination date), which - "specifies the date and time at which the creator of the message - indicated that the message was complete and ready to enter the mail - delivery system" (Resnick, 2008). Dates in both methods must be the same - most of time. Nonetheless, using internal date for search is faster - (Babcock, 2016).

- -

References

- -

Resnick, P., Ed., "Internet Message Format", RFC 5322, - doi: 10.17487/RFC5322 -, October 2008, https://www.rfc-editor.org/info/rfc5322.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016, - https://nbsoftsolutions.com/blog/introduction-to-imap.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search 1 -result1 <- imapconf %>% - selectMailbox(mbox = "[Gmail]/Sent") %>% - searchBefore(date_char = "17-Apr-2012") - -# search 2 (brazilian portuguese example -- mailboxes with compound names) -result2 <- imapconf %>% - selectMailbox(mbox = "[Gmail]/Com estrela") %>% - searchBefore(date_char = "17-Dec-2018", flag = "ANSWERED") -# depending on results, it might be necessary increase buffersize in configureIMAP() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchFlag.html b/docs/reference/searchFlag.html deleted file mode 100644 index fde9ca7..0000000 --- a/docs/reference/searchFlag.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - -Search By Flag — searchFlag • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages marked with a specific flag.

- -
- -
searchFlag(imapconf, flag, negate = FALSE, by = "MSN",
-  esearch = FALSE, return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

See also

- -

Other Flag-search operations: customSearch

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchFlag(flag = "RECENT", by = "UID") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchLargerThan.html b/docs/reference/searchLargerThan.html deleted file mode 100644 index 5e8f5d8..0000000 --- a/docs/reference/searchLargerThan.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - - -Search By Syze — searchLargerThan • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages by bytes size.

- -
- -
searchLargerThan(imapconf, size, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

size

An integer specifying the size (in number of characters) of -message to be used as search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

See also

- -

Other Size-search operations: customSearch, - searchSmallerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchLargerThan(size = 512000, flag = "UNSEEN") # larger than 512KB - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchOlderThan.html b/docs/reference/searchOlderThan.html deleted file mode 100644 index 1ef3bf0..0000000 --- a/docs/reference/searchOlderThan.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - - - -Search Within seconds — searchOlderThan • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages within a number of seconds from the - server’s current time to fetch messages.

- -
- -
searchOlderThan(imapconf, seconds, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

See also

- -

Other Within-search operations: customSearch, - searchYoungerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url=""imaps://export.imap.aol.com"", - username="your_AOL_user", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - selectMailbox(mbox = "Smiles GOL") %>% - searchOlderThan(seconds = 3600) - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchOn.html b/docs/reference/searchOn.html deleted file mode 100644 index 82619e5..0000000 --- a/docs/reference/searchOn.html +++ /dev/null @@ -1,284 +0,0 @@ - - - - - - - - -Search By Internal Date — searchOn • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the (internal) - date criteria, such as before, since, on, and period.

- -
- -
searchOn(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

References

- -

Resnick, P., Ed., "Internet Message Format", RFC 5322, - doi: 10.17487/RFC5322 -, October 2008, https://www.rfc-editor.org/info/rfc5322.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016, - https://nbsoftsolutions.com/blog/introduction-to-imap.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# list mailboxes -results <- imapconf %>% - listMailboxes() - -# search 1 -result1 <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchOn(date_char = "17-Dec-2003") - -# search 2 (mailboxes with compound names) -result2 <- imapconf %>% - selectMailbox(mbox = "Special Mailbox") %>% - searchOn(date_char = "17-Sep-2018", flag = "UNDELETED") -# depending on results, it might be necessary increase buffersize in configureIMAP() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchPeriod.html b/docs/reference/searchPeriod.html deleted file mode 100644 index 3f95cc6..0000000 --- a/docs/reference/searchPeriod.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - -Search By Internal Date — searchPeriod • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the (internal) - date criteria, such as before, since, on, and period.

- -
- -
searchPeriod(imapconf, since_date_char, before_date_char, negate = FALSE,
-  by = "MSN", flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

since_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the start date (inclusive). We opted not to -use objects of type "date", since IMAP servers like this not so common date -format.

before_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the stop date (exclusive). We opted not to -use objects of type "date", since IMAP server likes this not so common date -format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

searchBefore, searchSince, linksearchOn, and - searchPeriod use internal date, - which reflects the moment when the message was received. - searchSentBefore, searchSentSince, linksearchSentOn, and - searchSentPeriod use RFC-2822 date header (origination date), which - "specifies the date and time at which the creator of the message - indicated that the message was complete and ready to enter the mail - delivery system" (Resnick, 2008). Dates in both methods must be the same - most of time. Nonetheless, using internal date for search is faster - (Babcock, 2016).

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - - -# search -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchPeriod(since_date_char = "17-Apr-2012", - before_date_char = "30-Jun-2015", - flag = "DRAFT") - - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchSentBefore.html b/docs/reference/searchSentBefore.html deleted file mode 100644 index e41e495..0000000 --- a/docs/reference/searchSentBefore.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - - - -Search By Origination (RC-2822 Header) Date — searchSentBefore • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the - (RC-2822 Header) date criteria, such as before, since, on, and period.

- -
- -
searchSentBefore(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

searchBefore, searchSince, linksearchOn, and - searchPeriod use internal date, - which reflects the moment when the message was received. - searchSentBefore, searchSentSince, linksearchSentOn, and - searchSentPeriod use RFC-2822 date header (origination date), which - "specifies the date and time at which the creator of the message - indicated that the message was complete and ready to enter the mail - delivery system" (Resnick, 2008). Dates in both methods must be the same - most of time. Nonetheless, using internal date for search is faster - (Babcock, 2016).

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchSentBefore(date_char = "17-Apr-2012", - negate = TRUE, - flag = "UNANSWERED") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchSentOn.html b/docs/reference/searchSentOn.html deleted file mode 100644 index 1282b3c..0000000 --- a/docs/reference/searchSentOn.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - - - -Search By Origination (RC-2822 Header) Date — searchSentOn • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the - (RC-2822 Header) date criteria, such as before, since, on, and period.

- -
- -
searchSentOn(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search 1 -result1 <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchSentOn(date_char = "17-Dec-2003") - -# search 2 (mailboxes with compound names) -result2 <- imapconf %>% - selectMailbox(mbox = "Special Mailbox") %>% - searchSentOn(date_char = "17-Sep-2018", flag = "UNDELETED") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchSentPeriod.html b/docs/reference/searchSentPeriod.html deleted file mode 100644 index 560a618..0000000 --- a/docs/reference/searchSentPeriod.html +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - - - -Search By Origination (RC-2822 Header) Date — searchSentPeriod • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the - (RC-2822 Header) date criteria, such as before, since, on, and period.

- -
- -
searchSentPeriod(imapconf, since_date_char, before_date_char,
-  negate = FALSE, by = "MSN", flag = NULL, esearch = FALSE,
-  return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

since_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the start date (inclusive). We opted not to -use objects of type "date", since IMAP servers like this not so common date -format.

before_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the stop date (exclusive). We opted not to -use objects of type "date", since IMAP server likes this not so common date -format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

searchBefore, searchSince, linksearchOn, and - searchPeriod use internal date, - which reflects the moment when the message was received. - searchSentBefore, searchSentSince, linksearchSentOn, and - searchSentPeriod use RFC-2822 date header (origination date), which - "specifies the date and time at which the creator of the message - indicated that the message was complete and ready to enter the mail - delivery system" (Resnick, 2008). Dates in both methods must be the same - most of time. Nonetheless, using internal date for search is faster - (Babcock, 2016).

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchPeriod(since_date_char = "17-Apr-2012", - before_date_char = "30-Jun-2015", - flag = "UNFLAGGED") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchSentSince.html b/docs/reference/searchSentSince.html deleted file mode 100644 index 34b7ec2..0000000 --- a/docs/reference/searchSentSince.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - - - -Search By Origination (RC-2822 Header) Date — searchSentSince • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the - (RC-2822 Header) date criteria, such as before, since, on, and period.

- -
- -
searchSentSince(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="url="imaps://export.imap.aol.com"", - username="your_AOL_user", - password=rstudioapi::askForPassword() - ) - -# search 1 -result1 <- imapconf %>% - selectMailbox(mbox = "Sent") %>% - searchSentSince(date_char = "17-Apr-2012") - -# search 2 -result2 <- imapconf %>% - selectMailbox(mbox = "Inbox") %>% - searchSentSince(date_char = "17-Jun-2019", flag = "FLAGGED") - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchSince.html b/docs/reference/searchSince.html deleted file mode 100644 index 68764c1..0000000 --- a/docs/reference/searchSince.html +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - - - -Search By Internal Date — searchSince • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the (internal) - date criteria, such as before, since, on, and period.

- -
- -
searchSince(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

References

- -

Resnick, P., Ed., "Internet Message Format", RFC 5322, - doi: 10.17487/RFC5322 -, October 2008, https://www.rfc-editor.org/info/rfc5322.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016, - https://nbsoftsolutions.com/blog/introduction-to-imap.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="url="imaps://export.imap.aol.com"", - username="your_AOL_user", - password=rstudioapi::askForPassword() - ) - -# search 1 -result1 <- imapconf %>% - selectMailbox(mbox = "Sent") %>% - searchSince(date_char = "17-Apr-2012") - -# search 2 -result2 <- imapconf %>% - selectMailbox(mbox = "Inbox") %>% - searchSince(date_char = "17-Jun-2019", flag = "FLAGGED") -# depending on results, it might be necessary increase buffersize in configureIMAP() - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchSmallerThan.html b/docs/reference/searchSmallerThan.html deleted file mode 100644 index 053de77..0000000 --- a/docs/reference/searchSmallerThan.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - - -Search By Syze — searchSmallerThan • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages by bytes size.

- -
- -
searchSmallerThan(imapconf, size, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

size

An integer specifying the size (in number of characters) of -message to be used as search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

See also

- -

Other Size-search operations: customSearch, - searchLargerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - searchSmallerThan(size = 512000) # smaller than 512KB - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchString.html b/docs/reference/searchString.html deleted file mode 100644 index 1b2f483..0000000 --- a/docs/reference/searchString.html +++ /dev/null @@ -1,252 +0,0 @@ - - - - - - - - -Search By String — searchString • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages containing a string in an specific - section or field.

- -
- -
searchString(imapconf, section_or_field, string, negate = FALSE,
-  by = "MSN", esearch = FALSE, return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

section_or_field

A mandatory character string specifying in which -message's Section or Header Field to search for the provided string. -For some available options, see section_or_field_options.

string

A character string specifying the word or expression to -search for in messages.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - selectMailbox(mbox = "TAM") %>% - searchString(section_or_field = "FROM", string = "michelle@hotmail.com", - negate = TRUE) # not FROM "michele" - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/searchYoungerThan.html b/docs/reference/searchYoungerThan.html deleted file mode 100644 index d32a3d3..0000000 --- a/docs/reference/searchYoungerThan.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - - - -Search Within seconds — searchYoungerThan • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages within a number of seconds from the - server’s current time to fetch messages.

- -
- -
searchYoungerThan(imapconf, seconds, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configureIMAP and with a mbox item added after a -mailbox selection with selectMailbox.

seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -code1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -listServerCapabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

Some SMTP servers, such as Gmail and AOL, may not support WITHIN SEARCH - EXTENSION.

- -

See also

- -

Other Within-search operations: customSearch, - searchOlderThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url=""imaps://export.imap.aol.com"", - username="your_AOL_user", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - selectMailbox(mbox = "Smiles GOL") %>% - searchYoungerThan(seconds = 3600) - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_before.html b/docs/reference/search_before.html deleted file mode 100644 index 510bc11..0000000 --- a/docs/reference/search_before.html +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - -Search By Internal Date — search_before • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the (internal) - date criteria, such as before, since, on, and period.

- -
- -
search_before(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

search_before, search_since, search_on, and - search_period use internal date, - which reflects the moment when the message was received. - search_sent_before, search_sent_since, search_sent_on, and - search_sent_period use RFC-2822 date header (origination date), which - "specifies the date and time at which the creator of the message - indicated that the message was complete and ready to enter the mail - delivery system" (Resnick, 2008). Dates in both methods must be the same - most of time. Nonetheless, using internal date for search is faster - (Babcock, 2016).

- -

References

- -

Resnick, P., Ed., "Internet Message Format", RFC 5322, - doi: 10.17487/RFC5322 -, October 2008, https://www.rfc-editor.org/info/rfc5322.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016, - https://nbsoftsolutions.com/blog/introduction-to-imap.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search 1 -result1 <- imapconf %>% - select_mailbox(mbox = "[Gmail]/Sent") %>% - search_before(date_char = "17-Apr-2012") - -# search 2 (brazilian portuguese example -- mailboxes with compound names) -result2 <- imapconf %>% - select_mailbox(mbox = "[Gmail]/Com estrela") %>% - search_before(date_char = "17-Dec-2018", flag = "ANSWERED") -# depending on results, it might be necessary to increase buffersize in -# configure_imap() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_flag.html b/docs/reference/search_flag.html deleted file mode 100644 index 7c039a0..0000000 --- a/docs/reference/search_flag.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - -Search By Flag — search_flag • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages marked with a specific flag.

- -
- -
search_flag(imapconf, flag, negate = FALSE, by = "MSN",
-  esearch = FALSE, return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

flag

A string specifying the flag to be used for filtering messages. -Use flag_options to list the common flags used by IMAP -servers.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

See also

- -

Other Flag-search operations: custom_search

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_flag(flag = "RECENT", by = "UID") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_larger_than.html b/docs/reference/search_larger_than.html deleted file mode 100644 index 23e401e..0000000 --- a/docs/reference/search_larger_than.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - - -Search By Syze — search_larger_than • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages by bytes size.

- -
- -
search_larger_than(imapconf, size, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

size

An integer specifying the size (in number of characters) of -message to be used as search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

See also

- -

Other Size-search operations: custom_search, - search_smaller_than

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_larger_than(size = 512000, flag = "UNSEEN") # larger than 512KB - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_older_than.html b/docs/reference/search_older_than.html deleted file mode 100644 index 69fb5a6..0000000 --- a/docs/reference/search_older_than.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - - - -Search Within seconds — search_older_than • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages within a number of seconds from the - server’s current time to fetch messages.

- -
- -
search_older_than(imapconf, seconds, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

See also

- -

Other Within-search operations: custom_search, - search_younger_than

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - select_mailbox(mbox = "Smiles GOL") %>% - search_older_than(seconds = 3600) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_on.html b/docs/reference/search_on.html deleted file mode 100644 index 2d1f4b3..0000000 --- a/docs/reference/search_on.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - - - -Search By Internal Date — search_on • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the (internal) - date criteria, such as before, since, on, and period.

- -
- -
search_on(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

References

- -

Resnick, P., Ed., "Internet Message Format", RFC 5322, - doi: 10.17487/RFC5322 -, October 2008, https://www.rfc-editor.org/info/rfc5322.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016, - https://nbsoftsolutions.com/blog/introduction-to-imap.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# list mailboxes -results <- imapconf %>% - list_mailboxes() - -# search 1 -result1 <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_on(date_char = "17-Dec-2003") - -# search 2 (mailboxes with compound names) -result2 <- imapconf %>% - select_mailbox(mbox = "Special Mailbox") %>% - search_on(date_char = "17-Sep-2018", flag = "UNDELETED") -# depending on results, it might be necessary to increase buffersize in -# configure_imap() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_period.html b/docs/reference/search_period.html deleted file mode 100644 index 36202e6..0000000 --- a/docs/reference/search_period.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - - - -Search By Internal Date — search_period • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the (internal) - date criteria, such as before, since, on, and period.

- -
- -
search_period(imapconf, since_date_char, before_date_char,
-  negate = FALSE, by = "MSN", flag = NULL, esearch = FALSE,
-  return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

since_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the start date (inclusive). We opted not to -use objects of type "date", since IMAP servers like this not so common date -format.

before_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the stop date (exclusive). We opted not to -use objects of type "date", since IMAP server likes this not so common date -format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

search_before, search_since, search_on, and - search_period use internal date, - which reflects the moment when the message was received. - search_sent_before, search_sent_since, search_sent_on, and - search_sent_period use RFC-2822 date header (origination date), which - "specifies the date and time at which the creator of the message - indicated that the message was complete and ready to enter the mail - delivery system" (Resnick, 2008). Dates in both methods must be the same - most of time. Nonetheless, using internal date for search is faster - (Babcock, 2016).

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - - -# search -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_period(since_date_char = "17-Apr-2012", - before_date_char = "30-Jun-2015", - flag = "DRAFT") - - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_sent_before.html b/docs/reference/search_sent_before.html deleted file mode 100644 index d85c4cc..0000000 --- a/docs/reference/search_sent_before.html +++ /dev/null @@ -1,289 +0,0 @@ - - - - - - - - -Search By Origination (RC-2822 Header) Date — search_sent_before • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the - (RC-2822 Header) date criteria, such as before, since, on, and period.

- -
- -
search_sent_before(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

search_before, search_since, search_on, and - search_period use internal date, - which reflects the moment when the message was received. - search_sent_before, search_sent_since, search_sent_on, and - search_sent_period use RFC-2822 date header (origination date), which - "specifies the date and time at which the creator of the message - indicated that the message was complete and ready to enter the mail - delivery system" (Resnick, 2008). Dates in both methods must be the same - most of time. Nonetheless, using internal date for search is faster - (Babcock, 2016).

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_sent_before(date_char = "17-Apr-2012", - negate = TRUE, - flag = "UNANSWERED") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_sent_on.html b/docs/reference/search_sent_on.html deleted file mode 100644 index 944edbc..0000000 --- a/docs/reference/search_sent_on.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - - - -Search By Origination (RC-2822 Header) Date — search_sent_on • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the - (RC-2822 Header) date criteria, such as before, since, on, and period.

- -
- -
search_sent_on(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search 1 -result1 <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_sent_on(date_char = "17-Dec-2003") - -# search 2 (mailboxes with compound names) -result2 <- imapconf %>% - select_mailbox(mbox = "Special Mailbox") %>% - search_sent_on(date_char = "17-Sep-2018", flag = "UNDELETED") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_sent_period.html b/docs/reference/search_sent_period.html deleted file mode 100644 index df4598f..0000000 --- a/docs/reference/search_sent_period.html +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - -Search By Origination (RC-2822 Header) Date — search_sent_period • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the - (RC-2822 Header) date criteria, such as before, since, on, and period.

- -
- -
search_sent_period(imapconf, since_date_char, before_date_char,
-  negate = FALSE, by = "MSN", flag = NULL, esearch = FALSE,
-  return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

since_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the start date (inclusive). We opted not to -use objects of type "date", since IMAP servers like this not so common date -format.

before_date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019" indicating the stop date (exclusive). We opted not to -use objects of type "date", since IMAP server likes this not so common date -format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

search_before, search_since, search_on, and - search_period use internal date, - which reflects the moment when the message was received. - search_sent_before, search_sent_since, search_sent_on, and - search_sent_period use RFC-2822 date header (origination date), which - "specifies the date and time at which the creator of the message - indicated that the message was complete and ready to enter the mail - delivery system" (Resnick, 2008). Dates in both methods must be the same - most of time. Nonetheless, using internal date for search is faster - (Babcock, 2016).

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_sent_period(since_date_char = "17-Apr-2012", - before_date_char = "30-Jun-2015", - flag = "UNFLAGGED") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_sent_since.html b/docs/reference/search_sent_since.html deleted file mode 100644 index b5c2991..0000000 --- a/docs/reference/search_sent_since.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - - - -Search By Origination (RC-2822 Header) Date — search_sent_since • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the - (RC-2822 Header) date criteria, such as before, since, on, and period.

- -
- -
search_sent_since(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

References

- -

Resnick, P., "Internet Message Format", RFC 5322, October 2008.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search 1 -result1 <- imapconf %>% - select_mailbox(mbox = "Sent") %>% - search_sent_since(date_char = "17-Apr-2012") - -# search 2 -result2 <- imapconf %>% - select_mailbox(mbox = "Inbox") %>% - search_sent_since(date_char = "17-Jun-2019", flag = "FLAGGED") - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_since.html b/docs/reference/search_since.html deleted file mode 100644 index 1933790..0000000 --- a/docs/reference/search_since.html +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - - - -Search By Internal Date — search_since • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Functions that allows searching for messages using the (internal) - date criteria, such as before, since, on, and period.

- -
- -
search_since(imapconf, date_char, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

References

- -

Resnick, P., Ed., "Internet Message Format", RFC 5322, - doi: 10.17487/RFC5322 -, October 2008, https://www.rfc-editor.org/info/rfc5322.

-

Babcock, N., "Introduction to IMAP", Blog, May 2016, - https://nbsoftsolutions.com/blog/introduction-to-imap.

- -

See also

- - - - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search 1 -result1 <- imapconf %>% - select_mailbox(mbox = "Sent") %>% - search_since(date_char = "17-Apr-2012") - -# search 2 -result2 <- imapconf %>% - select_mailbox(mbox = "Inbox") %>% - search_since(date_char = "17-Jun-2019", flag = "FLAGGED") -# depending on results, it might be necessary to increase buffersize in -# configure_imap() - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_smaller_than.html b/docs/reference/search_smaller_than.html deleted file mode 100644 index 1d58074..0000000 --- a/docs/reference/search_smaller_than.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - - -Search By Syze — search_smaller_than • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages by bytes size.

- -
- -
search_smaller_than(imapconf, size, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

size

An integer specifying the size (in number of characters) of -message to be used as search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

See also

- -

Other Size-search operations: custom_search, - search_larger_than

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - select_mailbox(mbox = "INBOX") %>% - search_smaller_than(size = 512000) # smaller than 512KB - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_string.html b/docs/reference/search_string.html deleted file mode 100644 index 04aeb8e..0000000 --- a/docs/reference/search_string.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - - -Search By String — search_string • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages containing a string in an specific - section or field.

- -
- -
search_string(imapconf, section_or_field, string, negate = FALSE,
-  by = "MSN", esearch = FALSE, return_imapconf = TRUE, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

section_or_field

A mandatory character string specifying in which -message's Section or Header Field to search for the provided string. -For some available options, see section_or_field_options.

string

A character string specifying the word or expression to -search for in messages.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - select_mailbox(mbox = "TAM") %>% - search_string(section_or_field = "FROM", - string = "michelle@hotmail.com", - negate = TRUE - ) # not FROM "michele" - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/search_younger_than.html b/docs/reference/search_younger_than.html deleted file mode 100644 index 4a583c1..0000000 --- a/docs/reference/search_younger_than.html +++ /dev/null @@ -1,266 +0,0 @@ - - - - - - - - -Search Within seconds — search_younger_than • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Searches for messages within a number of seconds from the - server’s current time to fetch messages.

- -
- -
search_younger_than(imapconf, seconds, negate = FALSE, by = "MSN",
-  flag = NULL, esearch = FALSE, return_imapconf = TRUE,
-  retries = 2)
- -

Arguments

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
imapconf

An object of class imapconf generated with -configure_imap and with a mbox item added after a -mailbox selection with select_mailbox.

seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

by

Which id (MSN or UID) to use when searching for -messages. "MSN" or message squence number is a message's relative -position to the older message in the mailbox. It may change after deleting -or moving messages. For instance, if a message is deleted, message sequence -numbers are reordered to fill the gap. "UID" or unique identifier -is always the same during the life cycle of a message. Default is -"MSN".

flag

Optional parameter that adds a flag filter to the search. Use -flag_options to list the common flags used by IMAP servers. -Default is NULL.

esearch

A logical. Default is FALSE. If the IMAP server has -ESEARCH capability, it can be used to optimize search results. It -allows to condense results to message sets to cut down on transmission -costs, e.g. 1:5 instead of writing ids individually such as -1,2,3,4,5. It can be used along with buffersize to avoid results -stripping. Check if your IMAP server supports SEARCH with -list_server_capabilities.

return_imapconf

A logical. If TRUE, the function returns a -list of length 2, containing the imapconf object -(IMAP settings) and the search results as message ids ("MSN" or -"UID"). If FALSE, returns only the message ids as a numeric -vector. Default is TRUE.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

Depending on the return_imapconf parameter, it can be a - list of length 2 containing the imapconf object - and message ids resulted from search, or a numeric vector containing - only message ids.

- -

Note

- -

Some SMTP servers, such as Gmail and AOL, may not support WITHIN SEARCH - EXTENSION.

- -

See also

- -

Other Within-search operations: custom_search, - search_older_than

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configure_imap(url="imaps://your.imap.server.com", - username="your_username", - password=rstudioapi::askForPassword() - ) - -# search -results <- imapconf %>% - select_mailbox(mbox = "Smiles GOL") %>% - search_younger_than(seconds = 3600) - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/section_or_field_options.html b/docs/reference/section_or_field_options.html deleted file mode 100644 index edcbc8c..0000000 --- a/docs/reference/section_or_field_options.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - -Section or Header Fields Options — section_or_field_options • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

This function presents message sections and header fields - that can be used for searching and fetching message contents. The header - fields, particularly, are only a suggestion and indicate the most common - terms. Some messages may not contain one or more of the listed fields. - It is also possible that one or more fields not listed here may be used - in some messages.

- -
- -
section_or_field_options()
- -

Value

- -

A list containing common header fields.

- -

Note

- -

A message body is the (full) content of a message. It is simply lines - of US-ASCII characters (Freed & Borenstein, 1996; Resnick, 2001). Therefore, - if you want to do a search of a string in the whole message, including - HEADER and TEXT, you can specify - section_or_field = "BODY".

-

While header is a part of the message body, indicating sender, date and - other information, header fields are specific - parts of the header of a message. "Header fields are lines - composed of a field name, followed by a colon (":"), which is followed by - a field body, and terminated by CRLF" (Resnick, 2001).

-

A message TEXT is the message itself, indicating the content - written or produced by the sender.

- -

References

- -

Freed, N. and N. Borenstein, "Multipurpose Internet Mail - Extensions (MIME) Part Two: Media Types", RFC 2046, - doi: 10.17487/RFC2046 -, November 1996, - https://www.rfc-editor.org/info/rfc2046.

-

Resnick, P., Ed., "Internet Message Format", RFC 2822, - doi: 10.17487/RFC2822 -, April 2001, - https://www.rfc-editor.org/info/rfc2822.

-

Crocker, D., "STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT - MESSAGES", STD 11, RFC 822, doi: 10.17487/RFC0822 -, - August 1982, https://www.rfc-editor.org/info/rfc822.

- -

See also

- -

Other options: -metadata_options()

- - -

Examples

-
# NOT RUN {
-library(mRpostman)
-section_or_field_options()
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/selectMailbox.html b/docs/reference/selectMailbox.html deleted file mode 100644 index b18a276..0000000 --- a/docs/reference/selectMailbox.html +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - -Mailbox Selection — selectMailbox • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Select a mailbox on the server for issuing further commands.

- -
- -
selectMailbox(imapconf, mbox, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - -
imapconf

A object of class imapconf generated with -configureIMAP.

mbox

A string containing the name of an existing mailbox on the server.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

The imaconf, list object with the selected mailbox added to it.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-imapconf <- configureIMAP(url="imaps://imap.gmail.com",
-                          username="your_gmail_user",
-                          password=rstudioapi::askForPassword()
-                          )
-
-# Select INBOX
-imapconf %>%
-  selectMailbox(mbox = "INBOX")
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/select_mailbox.html b/docs/reference/select_mailbox.html deleted file mode 100644 index 2fe2230..0000000 --- a/docs/reference/select_mailbox.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - -Mailbox Selection — select_mailbox • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Select a mailbox on the server for issuing further commands.

- -
- -
select_mailbox(imapconf, mbox, retries = 2)
- -

Arguments

- - - - - - - - - - - - - - -
imapconf

A object of class imapconf generated with -configure_imap.

mbox

A string containing the name of an existing mailbox on the server.

retries

Number of attempts to connect and execute the command. Default -is 2.

- -

Value

- -

The (invisible) imaconf object with the selected mailbox added to it.

- -

See also

- - - - -

Examples

-
# NOT RUN {
-# configure IMAP
-library(mRpostman)
-imapconf <- configureIMAP(url="imaps://imap.gmail.com",
-                          username="your_gmail_user",
-                          password=rstudioapi::askForPassword()
-                         )
-
-# Select INBOX
-imapconf %>%
-  select_mailbox(mbox = "INBOX")
-
-# }
-
- -
- - -
- - - - - - diff --git a/docs/reference/sentBefore.html b/docs/reference/sentBefore.html deleted file mode 100644 index 4fc907e..0000000 --- a/docs/reference/sentBefore.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — sentBefore • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
sentBefore(date_char, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, Flag, - OR, Since, - String, olderThan, - sentOn, sentSince, - smallerThan, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = OR(sentBefore(date_char = "17-Apr-2019"), - smallerThan(size = 512000))) -# searches for messages sentBefore "17-Apr-2019" OR smallerThan 512KB. - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/sentOn.html b/docs/reference/sentOn.html deleted file mode 100644 index 88154de..0000000 --- a/docs/reference/sentOn.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — sentOn • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
sentOn(date_char, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, Flag, - OR, Since, - String, olderThan, - sentBefore, sentSince, - smallerThan, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = OR(sentOn(date_char = "17-Apr-2019"), - sentOn(date_char = "17-Jul-2018"))) -# searches for messages sentOn "17-Apr-2019" OR sentOn "17-Jul-2018". - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/sentSince.html b/docs/reference/sentSince.html deleted file mode 100644 index 47b9bc2..0000000 --- a/docs/reference/sentSince.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — sentSince • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
sentSince(date_char, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
date_char

A character vector with format "DD-Mon-YYYY", -e.g. "01-Apr-2019". We opted not to use objects of type "date", since IMAP -servers like this not so common date format.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, Flag, - OR, Since, - String, olderThan, - sentBefore, sentOn, - smallerThan, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = OR(sentSince(date_char = "17-Apr-2019"), - smallerThan(size = 512000))) -# searches for messages sentSince "17-Apr-2019" OR smallerThan 512KB. - -# }
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/smallerThan.html b/docs/reference/smallerThan.html deleted file mode 100644 index 27b0b54..0000000 --- a/docs/reference/smallerThan.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — smallerThan • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
smallerThan(size, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
size

An integer specifying the size (in number characters) of message to be used as search -criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, Flag, - OR, Since, - String, olderThan, - sentBefore, sentOn, - sentSince, youngerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = - OR(String( - section_or_field = "from", string = "allanvcq@gmail.com"), - smallerThan( - size = 512000) - ) - ) -# searches for messages containing the string "allanvcq@gmail.com" in the field "FROM" - OR those smallerThan 512KB. - -# } -
-
-
- -
- - -
- - - - - - diff --git a/docs/reference/youngerThan.html b/docs/reference/youngerThan.html deleted file mode 100644 index 88a63e4..0000000 --- a/docs/reference/youngerThan.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - -Criteria Helper Functions for Custom Search — youngerThan • mRpostman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

Criteria helper functions to be combined inside a operator helper - function as a custom request in customSearch.

- -
- -
youngerThan(seconds, negate = FALSE)
- -

Arguments

- - - - - - - - - - -
seconds

An integer specifying the number of seconds to be used as -search criterion.

negate

If TRUE, negates the search and seeks for -"NOT search_criterion". Default is FALSE.

- -

Value

- -

A search string to be used as a custom_request parameter in - customSearch function.

- -

See also

- -

Other customsearch helper functions: AND, - Before, Flag, - OR, Since, - String, olderThan, - sentBefore, sentOn, - sentSince, smallerThan

- - -

Examples

-
-
# NOT RUN { -# configure IMAP -library(mRpostman) -imapconf <- configureIMAP(url="imaps://imap.gmail.com", - username="your_gmail_user", - password=rstudioapi::askForPassword() - ) - -# search -result <- imapconf %>% - selectMailbox(mbox = "INBOX") %>% - customSearch(custom_request = - OR(smallerThan( - size = 512000), - youngerThan( - seconds = 3600) - ) - ) -# searches for messages that are youngerThan 3600 seconds (or one hour) OR - that contains the string "allanvcq@gmail.com" in the field "FROM" - -# } -
-
-
- -
- - -
- - - - - -