Commit Graph

72 Commits

Author SHA1 Message Date
Johannes Thyssen Tishman
23a9e7022e Quote command expansion to prevent word splitting
This is necessary to support maildir paths that contain spaces.

Closes: #242 [via git-merge-pr]
2023-06-26 19:18:03 +02:00
Johannes Thyssen Tishman
ce435c8f6f Add Drafts profile key
Allow the user to set a Drafts key in profile to store draft messages
and sent messages separately if Outbox is set.
2023-06-22 22:15:45 +02:00
Leah Neukirchen
cccf01cb9a mrep/mbnc: use mseq -r as leading whitespace is now significant.
Reported by lhynes.
2022-12-18 21:08:28 +01:00
codesoap
8d543fdb21 mcom: allow spaces in sequence for mbnc and mrep
Closes: #231 [via git-merge-pr]
2022-11-11 22:26:48 +01:00
Stacy Harper
e1e5bfe5ff mcom: take Delivered-To into account for choosing From address
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]
2021-11-08 17:11:25 +01:00
Leah Neukirchen
fcd8428b72 mrep/mbnc/mfwd: fix sequence after changing flags of (likely) cur
Else tools like mless lose track of cur and jump around after these
actions.

Closes #214.
2021-09-24 17:43:53 +02:00
Leah Neukirchen
5c7432aa7b mcom: use mhdr -d -A even when extracting From: headers
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.
2021-06-18 01:13:03 +02:00
Leah Neukirchen
93e8a4a892 mcom: also read $VISUAL to find the editor
Closes #206.
2021-04-21 15:10:28 +02:00
codesoap
8ad63494bf mcom: do not match shebang in needs_multipart()
Avoids matching lines like '#!/usr/bin/env sh'.

Closes: #196 [via git-merge-pr]
2021-01-04 19:27:16 +01:00
Leah Neukirchen
5e6151e3bf mcom: detect and report mmime errors
Closes #191.
2020-11-08 15:10:04 +01:00
James Rowe
0180f649d2 mcom: allow tilde prefixed path for profile's outbox setting
Closes: #187 [via git-merge-pr]
2020-10-08 14:27:20 +02:00
Leah Neukirchen
b063294daf mcom: use - instead of /dev/stdin 2020-07-03 17:48:39 +02:00
Leah Neukirchen
282de65079 mrep: use Reply-From configuration to find From header
This allows replying from different addresses than Local-Mailbox
if they appear in To, Cc or Bcc.

Idea and initial patch by @nmeum.
2020-05-23 16:00:06 +02:00
Leah Neukirchen
3ea0c9c355 mrep: don't add another From: when -from is used already
Fixes #176.
2020-05-23 15:41:59 +02:00
Leah Neukirchen
7e6b1c97e6 mrep/mbnc: allow only one message as argument 2020-03-21 17:47:33 +01:00
Duncan Overbruck
dc15a75b63 mcom: add preview alias for show command 2020-02-05 14:11:53 +01:00
Sören Tempel
55035ad8b2 mcom: check if a draft was found when invoking mcom -r
Without this patch `mcom -r` would invoke $EDITOR on a directory if the
maildir did not contain any drafts. To prevent this from happening,
check if a draft was found before performing any further processing. If
not, terminate mcom with an error message.

Closes: #169 [via git-merge-pr]
2020-01-12 16:55:07 +01:00
Leah Neukirchen
6705b3ee29 mfwd: prefix Subject with "Fwd:"
Idea by Larry Hynes.  Although no classical mail clients use Fwd:
prefix, it has been around for some time.
2020-01-08 11:09:55 +01:00
Leah Neukirchen
68272afcba mcom: use file --mime instead of file -i
This also works on macOS.

Closes #162.
2019-05-21 11:37:21 +02:00
codesoap
33a6c48fb6 mcom: Quote one more variable 2019-02-06 21:11:29 +01:00
codesoap
d164496e09 mcom: Quote two more variables
Before quoting these two variables I experienced problems when
trying to use the "encrypt" option while using mcom.
2019-02-06 21:11:29 +01:00
Leah Neukirchen
1aa4977f71 mcom: decode address for Reply-To: and To: header
mmime will recode again if required.
2019-02-06 17:32:13 +01:00
Leah Neukirchen
9d280aa8a3 mcom: do_mime: fix for loop quoting 2019-02-05 09:49:59 +01:00
codesoap
d68287aae5 mcom: Quote variables and subshells whenever possible 2019-02-03 19:57:14 +01:00
Leah Neukirchen
5a2c6747b6 mcom: check if mail is formatted sensibly 2019-02-01 15:08:20 +01:00
Leah Neukirchen
a6f48fe371 mcom: add -send 2019-01-29 13:10:25 +01:00
Leah Neukirchen
3c6f5c3cee mcom: enter the loop again when we should run mime, another place 2019-01-12 16:14:12 +01:00
Leah Neukirchen
577b4497e4 mcom: enter the loop again when we should run mime 2019-01-12 16:12:12 +01:00
Leah Neukirchen
30fba2bcfd mcom: automime can be empty 2019-01-12 16:11:57 +01:00
Leah Neukirchen
d6c2470ad1 mcom: check drafts exist, and ensure they contain a / 2019-01-12 16:11:46 +01:00
Leah Neukirchen
ae720c51e0 mrep: add -noquote
Closes #139.
2019-01-02 18:29:27 +01:00
Leah Neukirchen
4235c384ab mcom: aborting the editor is more like delete than cancel 2018-11-14 17:07:03 +01:00
Leah Neukirchen
5294c374df mcom: whitespace fixes 2018-08-15 17:01:06 +02:00
Leah Neukirchen
eca1ff8087 mrep: don't put To: into Cc:, don't duplicate addresses in Cc: 2018-08-13 13:18:22 +02:00
Leah Neukirchen
ebaf9e2df2 mcom: detect Attach: headers for automiming 2018-07-16 13:09:20 +02:00
Leah Neukirchen
5f250330cb mcom: update flags after mrep/mbnc/mfwd 2018-04-17 15:13:32 +02:00
Leah Neukirchen
14a2c978db mcom: mark drafts as seen after sending 2018-04-17 15:06:36 +02:00
Leah Neukirchen
64da4ff0fa mcom: add -body to prepopulate drafts 2018-03-10 22:28:41 +01:00
Leah Neukirchen
f83a6fea9a mcom: ensure no empty header lines are generated in mrep 2018-03-02 20:43:57 +01:00
Leah Neukirchen
372450cd70 mcom: cleanup 2018-03-02 20:42:27 +01:00
Leah Neukirchen
c49c0b4a56 mcom: revamp argument parsing, allow setting arbitrary headers from command line 2018-02-27 15:14:29 +01:00
Leah Neukirchen
4b9e7f5952 mcom: put newline in a variable 2018-02-26 16:57:23 +01:00
Leah Neukirchen
c12fd15d3f mcom: fix $draftmime for when not using outbox 2018-02-26 15:51:22 +01:00
Leah Neukirchen
dd6915d47e mcom: strip empty headers after editing 2018-01-07 21:32:48 +01:00
Leah Neukirchen
6f3fa0d78b mcom: avoid xargs 2018-01-06 22:53:23 +01:00
Leah Neukirchen
88a87a361a add mbnc to bounce messages 2018-01-06 19:17:49 +01:00
Leah Neukirchen
75ba2ab9a5 mcom: automatically run mmime when deemed necessary 2017-09-22 14:53:30 +02:00
Larry Hynes
7fd982d172 mcom: dreaft -> draft
Closes: #69 [via git-merge-pr]
2017-07-27 14:10:40 +02:00
Leah Neukirchen
73d80d80f9 mrep: avoid initial space for References:
This triggered qp-encoding, which is not allowed for this header.
2017-07-12 21:11:53 +02:00
Wolfgang Jenkner
b0d61b8275 mcom: fix non-POSIX sed usage 2017-07-08 20:48:20 +02:00