Commit Graph

72 Commits (master)

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]
11 months ago
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.
11 months ago
Leah Neukirchen cccf01cb9a mrep/mbnc: use mseq -r as leading whitespace is now significant.
Reported by lhynes.
1 year ago
codesoap 8d543fdb21 mcom: allow spaces in sequence for mbnc and mrep
Closes: #231 [via git-merge-pr]
2 years ago
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]
3 years ago
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.
3 years ago
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.
3 years ago
Leah Neukirchen 93e8a4a892 mcom: also read $VISUAL to find the editor
Closes #206.
3 years ago
codesoap 8ad63494bf mcom: do not match shebang in needs_multipart()
Avoids matching lines like '#!/usr/bin/env sh'.

Closes: #196 [via git-merge-pr]
3 years ago
Leah Neukirchen 5e6151e3bf mcom: detect and report mmime errors
Closes #191.
4 years ago
James Rowe 0180f649d2 mcom: allow tilde prefixed path for profile's outbox setting
Closes: #187 [via git-merge-pr]
4 years ago
Leah Neukirchen b063294daf mcom: use - instead of /dev/stdin 4 years ago
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.
4 years ago
Leah Neukirchen 3ea0c9c355 mrep: don't add another From: when -from is used already
Fixes #176.
4 years ago
Leah Neukirchen 7e6b1c97e6 mrep/mbnc: allow only one message as argument 4 years ago
Duncan Overbruck dc15a75b63 mcom: add preview alias for show command 4 years ago
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]
4 years ago
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.
4 years ago
Leah Neukirchen 68272afcba mcom: use file --mime instead of file -i
This also works on macOS.

Closes #162.
5 years ago
codesoap 33a6c48fb6 mcom: Quote one more variable 5 years ago
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.
5 years ago
Leah Neukirchen 1aa4977f71 mcom: decode address for Reply-To: and To: header
mmime will recode again if required.
5 years ago
Leah Neukirchen 9d280aa8a3 mcom: do_mime: fix for loop quoting 5 years ago
codesoap d68287aae5 mcom: Quote variables and subshells whenever possible 5 years ago
Leah Neukirchen 5a2c6747b6 mcom: check if mail is formatted sensibly 5 years ago
Leah Neukirchen a6f48fe371 mcom: add -send 5 years ago
Leah Neukirchen 3c6f5c3cee mcom: enter the loop again when we should run mime, another place 5 years ago
Leah Neukirchen 577b4497e4 mcom: enter the loop again when we should run mime 5 years ago
Leah Neukirchen 30fba2bcfd mcom: automime can be empty 5 years ago
Leah Neukirchen d6c2470ad1 mcom: check drafts exist, and ensure they contain a / 5 years ago
Leah Neukirchen ae720c51e0 mrep: add -noquote
Closes #139.
5 years ago
Leah Neukirchen 4235c384ab mcom: aborting the editor is more like delete than cancel 6 years ago
Leah Neukirchen 5294c374df mcom: whitespace fixes 6 years ago
Leah Neukirchen eca1ff8087 mrep: don't put To: into Cc:, don't duplicate addresses in Cc: 6 years ago
Leah Neukirchen ebaf9e2df2 mcom: detect Attach: headers for automiming 6 years ago
Leah Neukirchen 5f250330cb mcom: update flags after mrep/mbnc/mfwd 6 years ago
Leah Neukirchen 14a2c978db mcom: mark drafts as seen after sending 6 years ago
Leah Neukirchen 64da4ff0fa mcom: add -body to prepopulate drafts 6 years ago
Leah Neukirchen f83a6fea9a mcom: ensure no empty header lines are generated in mrep 6 years ago
Leah Neukirchen 372450cd70 mcom: cleanup 6 years ago
Leah Neukirchen c49c0b4a56 mcom: revamp argument parsing, allow setting arbitrary headers from command line 6 years ago
Leah Neukirchen 4b9e7f5952 mcom: put newline in a variable 6 years ago
Leah Neukirchen c12fd15d3f mcom: fix $draftmime for when not using outbox 6 years ago
Leah Neukirchen dd6915d47e mcom: strip empty headers after editing 6 years ago
Leah Neukirchen 6f3fa0d78b mcom: avoid xargs 6 years ago
Leah Neukirchen 88a87a361a add mbnc to bounce messages 6 years ago
Leah Neukirchen 75ba2ab9a5 mcom: automatically run mmime when deemed necessary 7 years ago
Larry Hynes 7fd982d172 mcom: dreaft -> draft
Closes: #69 [via git-merge-pr]
7 years ago
Leah Neukirchen 73d80d80f9 mrep: avoid initial space for References:
This triggered qp-encoding, which is not allowed for this header.
7 years ago
Wolfgang Jenkner b0d61b8275 mcom: fix non-POSIX sed usage 7 years ago