Convenience wrapper for the send headers. More...
Include dependency graph for header.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Enumerations | |
| enum | MuttWriteHeaderMode { MUTT_WRITE_HEADER_NORMAL , MUTT_WRITE_HEADER_FCC , MUTT_WRITE_HEADER_POSTPONE , MUTT_WRITE_HEADER_EDITHDRS , MUTT_WRITE_HEADER_MIME } |
| Modes for mutt_rfc822_write_header() More... | |
Functions | |
| int | mutt_rfc822_write_header (FILE *fp, struct Envelope *env, struct Body *b, enum MuttWriteHeaderMode mode, bool privacy, bool hide_protected_subject, struct ConfigSubset *sub) |
| Write out one RFC822 header line. | |
| int | mutt_write_mime_header (struct Body *b, FILE *fp, struct ConfigSubset *sub) |
| Create a MIME header. | |
| int | mutt_write_one_header (FILE *fp, const char *tag, const char *value, const char *pfx, int wraplen, CopyHeaderFlags chflags, struct ConfigSubset *sub) |
| Write one header line to a file. | |
| void | mutt_write_references (const struct ListHead *r, FILE *fp, size_t trim) |
| Add the message references to a list. | |
Convenience wrapper for the send headers.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file header.h.
| enum MuttWriteHeaderMode |
Modes for mutt_rfc822_write_header()
| Enumerator | |
|---|---|
| MUTT_WRITE_HEADER_NORMAL | A normal Email, write full header + MIME headers. |
| MUTT_WRITE_HEADER_FCC | fcc mode, like normal mode but for Bcc header |
| MUTT_WRITE_HEADER_POSTPONE | A postponed Email, just the envelope info. |
| MUTT_WRITE_HEADER_EDITHDRS | "light" mode (used for edit_hdrs) |
| MUTT_WRITE_HEADER_MIME | Write protected headers. |
Definition at line 38 of file header.h.
| int mutt_rfc822_write_header | ( | FILE * | fp, |
| struct Envelope * | env, | ||
| struct Body * | b, | ||
| enum MuttWriteHeaderMode | mode, | ||
| bool | privacy, | ||
| bool | hide_protected_subject, | ||
| struct ConfigSubset * | sub ) |
Write out one RFC822 header line.
| fp | File to write to |
| env | Envelope of email |
| b | Attachment |
| mode | Mode, see MuttWriteHeaderMode |
| privacy | If true, remove headers that might identify the user |
| hide_protected_subject | If true, replace subject header |
| sub | Config Subset |
| 0 | Success |
| -1 | Failure |
Likewise, all IDN processing should happen outside of this routine.
privacy true => will omit any headers which may identify the user. Output generated is suitable for being sent through anonymous remailer chains.
hide_protected_subject: replaces the Subject header with $crypt_protected_headers_subject in NORMAL or POSTPONE mode.
Definition at line 577 of file header.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_write_mime_header | ( | struct Body * | b, |
| FILE * | fp, | ||
| struct ConfigSubset * | sub ) |
Create a MIME header.
| b | Body part |
| fp | File to write to |
| sub | Config Subset |
| 0 | Success |
| -1 | Failure |
Definition at line 756 of file header.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_write_one_header | ( | FILE * | fp, |
| const char * | tag, | ||
| const char * | value, | ||
| const char * | pfx, | ||
| int | wraplen, | ||
| CopyHeaderFlags | chflags, | ||
| struct ConfigSubset * | sub ) |
Write one header line to a file.
| fp | File to write to |
| tag | Header key, e.g. "From" |
| value | Header value |
| pfx | Prefix for header |
| wraplen | Column to wrap at |
| chflags | Flags, see CopyHeaderFlags |
| sub | Config Subset |
| 0 | Success |
| -1 | Failure |
split several headers into individual ones and call write_one_header for each one
Definition at line 423 of file header.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_write_references | ( | const struct ListHead * | r, |
| FILE * | fp, | ||
| size_t | trim ) |
Add the message references to a list.
| r | String List of references |
| fp | File to write to |
| trim | Trim the list to at most this many items |
Write the list in reverse because they are stored in reverse order when parsed to speed up threading.
Definition at line 519 of file header.c.
Here is the caller graph for this function: