about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* mblaze-profile: mention Delivered-To HEAD masterLeah Neukirchen2024-01-271-3/+5
| | | | This was forgotten as part of e1e5bfe5f.
* mcolor: Add coloring support for diffsJohannes Thyssen Tishman2023-10-051-1/+5
| | | | Closes: #249 [via git-merge-pr]
* mgpg: use quiet to only print errorsLeah Neukirchen2023-07-311-1/+1
| | | | | Else it can happen that gpg output is prepended to the message we want to decode, and recursive decoding fails.
* mdirs: add Maildir profile keyMeudwy2023-07-274-9/+66
| | | | | | | When `mdirs` is executed without any arguments, look for the `Maildir` key in the profile and use that instead (if set). Closes: #245 [via git-merge-pr]
* minc: read directory names from stdinMeudwy2023-07-254-8/+20
| | | | | | | This matches `mlist` where it can take directories as arguments or via stdin. Closes: #244 [via git-merge-pr]
* mscan: only spawn pager when stdout is a ttyLeah Neukirchen2023-07-181-4/+6
| | | | | | | | | We still get the terminal size for when users manually page, e.g. mscan | less This is consistent with how mshow already works. Fixes #243.
* Quote command expansion to prevent word splittingJohannes Thyssen Tishman2023-06-261-2/+2
| | | | | | This is necessary to support maildir paths that contain spaces. Closes: #242 [via git-merge-pr]
* Add Drafts profile keyJohannes Thyssen Tishman2023-06-222-8/+13
| | | | | Allow the user to set a Drafts key in profile to store draft messages and sent messages separately if Outbox is set.
* Document a reasonable practice for deleting mailsMark Hills2023-03-301-0/+3
| | | | Discussed in #236.
* blaze822_priv.h: use proper lc/ucLeah Neukirchen2023-03-163-4/+31
| | | | | | | Mail headers may contain characters where the simple definition breaks, which results in wrong formatting on output. Fixes #235.
* mrep/mbnc: use mseq -r as leading whitespace is now significant.Leah Neukirchen2022-12-181-3/+3
| | | | Reported by lhynes.
* mcolor: print out form-feedLeah Neukirchen2022-12-091-1/+1
|
* mmime: include strings.h for strncasecmpMichael Forney2022-12-091-0/+1
|
* mlist: use fixed-width integer types for struct linux_dirent64 d_ino and d_offMichael Forney2022-12-091-2/+2
|
* mcom: allow spaces in sequence for mbnc and mrepcodesoap2022-11-111-0/+6
| | | | Closes: #231 [via git-merge-pr]
* mrefile/mdeliver: -M needs the `fattr' pledge promise for utimes(2)Omar Polo2022-08-261-1/+5
| | | | Message-Id: <2Z5ISO2SNIGZU.2E8B1F41F84RV@venera>
* solaris needs termios.h and __EXTENSIONS__ for TIOCGWINSZ and winsizegco2022-06-202-0/+9
|
* if -fstack-protector-strong is used, it needs to be specified for both ↵gco2022-06-181-0/+1
| | | | | | compiling and linking Closes: #229 [via git-merge-pr]
* List commands ~respectivelyjgart2022-06-181-1/+1
| | | | Closes: #228 [via git-merge-pr]
* blaze822: don't try to open /dev/stdinAlyssa Ross2022-05-231-1/+4
| | | | | | Use the same check is blaze822() as in blaze822_file() to ensure that we don't try to open /dev/stdin, which is non-POSIX. Message-Id: <20220523170921.2623516-1-hi@alyssa.is>
* mthread: reduce memory usageJulian Rother2022-03-131-5/+2
| | | | | | | | mthread keeps header data of all messages in memory until it exits without ever using it. With this change it frees the header data of each message right after processing it. Closes: #222 [via git-merge-pr]
* add contrib/mopenallLeah Neukirchen2022-03-101-0/+18
|
* man: misc manpages nitsLeah Neukirchen2022-02-273-3/+3
| | | | Found by Omar Polo.
* mmime: allow to relax body line length limitLucas2022-01-253-2/+20
| | | | Message-Id: <10e22a318b5c70d89432d85ecd8cb8ce1796a51d.1643116719.git.lucas@sexy.is>
* mshow: don't spawn pager with -tLeah Neukirchen2022-01-011-1/+1
|
* mflow: fixed lines were not wrapped, add test suiteLeah Neukirchen2022-01-012-22/+180
| | | | Reported by ninewise.
* NEWS.md: update for 1.2 v1.2Leah Neukirchen2021-12-122-2/+7
|
* mcom: take Delivered-To into account for choosing From addressStacy Harper2021-11-081-1/+1
| | | | | | | | | | | I just received a mail coming from a Google Group mail list and it had the group email as To. So my reply used the default configured mail as from and not the correct one. Googles mails provide the target email as Delivered-To. This patch add this check before the To to prevent this error. Closes: #217 [via git-merge-pr]
* mlesskey.example: clarify installationLeah Neukirchen2021-10-071-1/+3
|
* rfc2047: skip whitespace everywhere during base64 decodingLeah Neukirchen2021-10-042-8/+41
| | | | | | | | | | > The encoded output stream must be represented in lines of no more > than 76 characters each. All line breaks or other characters not > found in Table 1 must be ignored by decoding software. In base64 > data, characters other than those in Table 1, line breaks, and other > white space probably indicate a transmission error, about which a > warning message or even a message rejection might be appropriate > under some circumstances.
* mless: prefer setting LESSKEYIN and .mlesskeyLeah Neukirchen2021-09-283-2/+16
| | | | Fixes #215.
* mrep/mbnc/mfwd: fix sequence after changing flags of (likely) curLeah Neukirchen2021-09-241-0/+3
| | | | | | | Else tools like mless lose track of cur and jump around after these actions. Closes #214.
* blaze822: blaze822/blaze822_mem: detect line ending before scanning end of ↵Leah Neukirchen2021-08-302-12/+60
| | | | | | | | | | | | header A mail using CRLF which contained (for some reason) a LFLF pair would be misparsed as the header was read until the LFLF. Instead, scan for the first LF, check if it's preceded by CR, and then search for the proper header terminator only. Closes #212.
* blaze822: remove blaze822_mmap, never used.Leah Neukirchen2021-08-302-50/+0
|
* mmime: ensure no empty parts are generated after an include.Leah Neukirchen2021-08-072-5/+19
| | | | Reported by lhynes.
* mpick: remove dead codeLéo Villeveygoux2021-07-061-4/+2
| | | | | It would load the seq file even when unused (and complain when it's not found). Message-Id: <20210706174750.246026-1-l@vgx.fr>
* mblaze-profile.5: clarify Reply-From wipLeah Neukirchen2021-06-181-8/+7
|
* t/1000-mmime.t: add tests for recent changesLeah Neukirchen2021-06-181-1/+27
|
* mmime: keep (none) whitespace after quoted stringsLeah Neukirchen2021-06-181-1/+3
|
* mmime: generate valid empty mime multipart/mixed when no body is givenLeah Neukirchen2021-06-181-1/+3
|
* mcom: use mhdr -d -A even when extracting From: headersLeah Neukirchen2021-06-181-2/+2
| | | | | | | | | | | We only want to decode the display part of the addresses only. Mails with a From: like From: "Non-ASCII Lastname, Firstname" <mail@example.org> resulted in To: lines like To: Non-ASCII Lastname, Firstname <mail@example.org> which would send to two addresses. Use -A to ensure proper decoding and quoting, even if its just a single address in From.
* maddr: decode only display part of addressLeah Neukirchen2021-06-181-5/+7
| | | | | | RFC 2047.6.2: NOTE: Decoding and display of encoded-words occurs *after* a structured field body is parsed into tokens.
* mhdr: print_addresses: decode only display part of addressLeah Neukirchen2021-06-181-7/+7
| | | | | | RFC 2047.6.2: NOTE: Decoding and display of encoded-words occurs *after* a structured field body is parsed into tokens.
* mmime: print_header: encode quoted-strings at onceLeah Neukirchen2021-06-181-3/+29
| | | | | | | | | | | | | | This is maybe a foul compromise between correctness and complexity of implementation, but it should do the right thing in most cases, and does not require fully parsing and reconstructing all headers that can contain phrases. An 'encoded-word' MUST NOT appear within a 'quoted-string'. We thus completely encode the quoted-string (if necessary) as a single encoded-word, and strip off the quotes. This should fix encoding of addresses that have both non-ASCII and special chars such as , and ;.
* mmime: be more careful when qp-encoding in headersLeah Neukirchen2021-06-181-0/+9
| | | | | | | | Characters such as , or ; mustn't appear in qp-encoded strings, as they have a meaning in phrases. To be safe, encode all special characters except for the safe ones in RFC 2047 5.(3). _ is dealt with already.
* t/1500-maddr.t: deactivate invalid test caseLeah Neukirchen2021-06-181-2/+2
| | | | An 'encoded-word' MUST NOT appear in any portion of an 'addr-spec'.
* mless: list same number of mails whether we're at the beginning or endDominik Honnef2021-06-071-1/+10
|
* mblaze.7: IRC moved to libera.chat.Leah Neukirchen2021-05-202-2/+2
|
* t/1900-mdeliver.t: fix planLeah Neukirchen2021-05-101-1/+1
|
* msed: match header names case insensitivelyLeah Neukirchen2021-05-101-1/+1
| | | | Found by skarnet.