Browse Source

add const sv Pseudo_Header_Forwarded = ":pEp:MIME:attachment1:forwarded";

MIME-12
Roker 2 years ago
parent
commit
fa3ed99d19
2 changed files with 8 additions and 2 deletions
  1. +2
    -0
      src/pEpMIME_internal.cc
  2. +6
    -2
      src/pEpMIME_internal.hh

+ 2
- 0
src/pEpMIME_internal.cc View File

@ -68,6 +68,8 @@ namespace pEpMIME
const sv Pseudo_Header_Format = ":pEp:MIME:longmsg:format";
const sv Pseudo_Header_Delsp = ":pEp:MIME:longmsg:delsp";
const sv Pseudo_Header_Forwarded = ":pEp:MIME:attachment1:forwarded";
} // end of namespace pEpMIME


+ 6
- 2
src/pEpMIME_internal.hh View File

@ -15,7 +15,7 @@
# include <string_view>
typedef std::string_view sv;
#else
#else // in C++11 / C++14 use boost::string_view instead.
# include <boost/utility/string_view.hpp>
typedef boost::string_view sv;
@ -35,7 +35,7 @@
namespace pEpMIME { using ::operator+=; }
#endif
#endif // C++17 switch
#ifdef LOG_TO_STDERR
@ -97,8 +97,12 @@ namespace pEpMIME
return (str!=nullptr) && (str[0] != '\0');
}
// extracted from Content-Type of 1st "text/plain" MIME leaf:
extern const sv Pseudo_Header_Format;
extern const sv Pseudo_Header_Delsp;
// extracted from Content-Type of 1st "message/rfc822" leaf:
extern const sv Pseudo_Header_Forwared;
} // end of namespace pEpMIME


Loading…
Cancel
Save