Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-24 Thread raf
On Fri, May 20, 2022 at 05:54:55PM +1000, raf wrote: > I'm sending a patch that adds an error check for shell > meta-characters when $sendmail is used. It might have been > better to check right after reading .muttrc, but this seemed > like a more natural place to put the code (i.e., right after

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-20 Thread raf
On Fri, May 20, 2022 at 04:20:55PM +1000, raf wrote: > On Thu, May 19, 2022 at 12:05:59PM -0700, "Kevin J. McCarthy" > wrote: > > > On Thu, May 19, 2022 at 01:12:31PM -0500, Derek Martin wrote: > > > On Thu, May 19, 2022 at 11:06:38AM -0700, Kevin J. McCarthy wrote: > > > > Sorry, this isn't

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-20 Thread raf
On Thu, May 19, 2022 at 12:05:59PM -0700, "Kevin J. McCarthy" wrote: > On Thu, May 19, 2022 at 01:12:31PM -0500, Derek Martin wrote: > > On Thu, May 19, 2022 at 11:06:38AM -0700, Kevin J. McCarthy wrote: > > > Sorry, this isn't currently possible in Mutt. The $sendmail variable is > > >

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-19 Thread Kevin J. McCarthy
On Thu, May 19, 2022 at 05:47:06PM -0500, X Tec wrote: Do you think this could be modified in Mutt's source? As in, kind of a Github-like ticket/issue petition to make it work with arguments with spaces... I try asking because you make it sound as if there were doubts regarding why this is

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-19 Thread X Tec
On 2022-05-19 12:05:59, Kevin J. McCarthy wrote: > On Thu, May 19, 2022 at 01:12:31PM -0500, Derek Martin wrote: > > On Thu, May 19, 2022 at 11:06:38AM -0700, Kevin J. McCarthy wrote: > > > Sorry, this isn't currently possible in Mutt. The $sendmail variable is > > > handled specially: it's

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-19 Thread Kevin J. McCarthy
On Thu, May 19, 2022 at 01:12:31PM -0500, Derek Martin wrote: On Thu, May 19, 2022 at 11:06:38AM -0700, Kevin J. McCarthy wrote: Sorry, this isn't currently possible in Mutt. The $sendmail variable is handled specially: it's tokenized by space and invoked directly via execvp(). So you won't

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-19 Thread Derek Martin
On Thu, May 19, 2022 at 11:06:38AM -0700, Kevin J. McCarthy wrote: > On Thu, May 19, 2022 at 12:36:39PM -0500, X Tec wrote: > > set sendmail="/usr/bin/msmtp [...] --passwordeval=$(gpg --no-tty -q -d > > ~/.user.gpg)" [...] > > Hope someone else could give other advise, or if this is really not >

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-19 Thread Kevin J. McCarthy
On Thu, May 19, 2022 at 12:36:39PM -0500, X Tec wrote: But this specific part I'm having trouble with seems to be *not* from Bash or system's shell, but from Mutt *itself*; as in, Mutt's own "local shell" or configuration syntax (not sure how to call it...). Nevertheless, I tried your advise,

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-19 Thread X Tec
On 2022-05-19 00:25:32, Jon LaBadie wrote: > So I have NO IDEA IF IT WILL WORK, but you might try: > > set sendmail="/usr/bin/msmtp [...] --passwordeval=$(gpg --no-tty -q -d > ~/.user.gpg)" > Thanks very much for your advise. Actually I had already read about all the Bash stuff (and also other

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-18 Thread X Tec
Parting from this: > printf "%b\n" "$msg" | mutt -s "Test message" -e 'set > my_user="u...@domain.tld"; set my_url="smtp.domain.tld"; set record=""; set > from="Send User<$my_user>"; set envelope_from=yes; set > sendmail="/path/to/msmtp --port=587 --tls=on --host=$my_url --auth=on >

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-12 Thread Sam Kuper
On Wed, May 11, 2022 at 09:51:28PM +0100, Sam Kuper wrote: > Once you know your shell's quoting syntax, you will see that you can > probably achieve your goal in any of several different ways. Which to > use is a matter of taste. > > E.g. > > '/home/.user.gpg' > > vs > >

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-11 Thread Sam Kuper
On Wed, May 11, 2022 at 10:54:19AM -0500, X Tec wrote: > Managed to briefly test in a more updated rig with Mutt 2.2.4 and > Msmtp 1.8.11. Good job. I'm in haste, so am skipping over the msmtp password oddness. Maybe another list subscriber will take that up. > The passwordeval with gpg

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-11 Thread X Tec
Managed to briefly test in a more updated rig with Mutt 2.2.4 and Msmtp 1.8.11. On Tue, May 10, 2022 at 07:25:02AM +, Sam Kuper wrote: > Consider adding ` --` (without backticks) to the end of the > sendmail string in your example above. > printf "%b\n" "$msg" | mutt -s "Test message" -e

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-10 Thread Cameron Simpson
On 10May2022 07:25, Sam Kuper wrote: >On Mon, May 09, 2022 at 11:01:20PM -0500, x...@trimaso.com.mx wrote: >> ---To respond a received email in Mutt pager I hit 'r', and all the >> rest. I only change the destination email address, and eventually >> send. But even after successfully sent, the

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-10 Thread Sam Kuper
On Mon, May 09, 2022 at 11:01:20PM -0500, x...@trimaso.com.mx wrote: > [...] In the end, I chose to begin with Msmtp instead of Postfix... > Why? Because after just installation, I realized that Postfix is kind > of "overkill" if just wanting to send: it's designed as a full-blown > server for

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-09 Thread xtec
Sorry for late answering... On Sun, May 08, 2022 at 04:25:05PM +1000, Cameron Simpson wrote: You're failing in this because you have $smtp_url defined. Comment out it and the other $smtp* variables. When you send with $sendmail (the local system's mail system, postfix for you) the smtp

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-08 Thread Cameron Simpson
On 07May2022 11:11, X Tec wrote: >On 2022-05-07 08:45:35, Cameron Simpson wrote: >> Probably not? If you've been debugging the $smtp* variables (in >> particular, having to debug the password) then it sounds like mutt is >> actually sending directly with SMTP and _not_ using the local postfix. >>

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-07 Thread Kevin J. McCarthy
On Sat, May 07, 2022 at 11:11:35AM -0500, X Tec wrote: By the way, in Mutt default pager for reading emails, your words between underscores '_' (_not_, _may_, etc...) are not being displayed... Why? Possibly your color settings, or the color settings shipped with your packaged version of

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-07 Thread Sam Kuper
Hi X Tec, Not sure if you have read this web page? https://gitlab.com/muttmua/mutt/-/wikis/MailConcept You may find life simpler if, following the advice there, you apply the concept of "separation of concerns". https://en.wikipedia.org/wiki/Separation_of_concerns In other words: - use an

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-07 Thread X Tec
On 2022-05-07 08:45:35, Cameron Simpson wrote: > Probably not? If you've been debugging the $smtp* variables (in > particular, having to debug the password) then it sounds like mutt is > actually sending directly with SMTP and _not_ using the local postfix. > > When you send with the local

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-06 Thread Cameron Simpson
On 06May2022 12:28, x...@trimaso.com.mx wrote: >Thanks again. > >As mentioned in first message, system has Postfix by default, with its >corresponding /usr/sbin/sendmail and /etc/postfix/main.cf . >Since I don't have anything for $sendmail variable, it's defaulting >indeed for Postix sendmail.

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-06 Thread xtec
Thanks again. As mentioned in first message, system has Postfix by default, with its corresponding /usr/sbin/sendmail and /etc/postfix/main.cf . Since I don't have anything for $sendmail variable, it's defaulting indeed for Postix sendmail. On Thu, May 05, 2022 at 19:19:45 -0500, Cameron

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-05 Thread Nathan Stratton Treadway
On Thu, May 05, 2022 at 15:11:48 -0500, x...@trimaso.com.mx wrote: > I didn't mean email provider, but ISP internet service I'm connected to. > And did test again: I connected to an internet network, did not specify > port in smtp_url, tried send email, and got: > Could not connect to

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-05 Thread Cameron Simpson
On 05May2022 15:11, x...@trimaso.com.mx wrote: >On Thu, May 05, 2022 at 12:07:44PM -0500, Kevin J. McCarthy wrote: >>1) On the command line, the shell will expand shell variables inside >>double quoted strings, before Mutt even sees it. [...] >First: had to delete/rename ~/.muttrc, because some

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-05 Thread Sam Kuper
On Thu, May 05, 2022 at 03:11:48PM -0500, x...@trimaso.com.mx wrote: > On Thu, May 05, 2022 at 12:07:44PM -0500, Kevin J. McCarthy wrote: >> 1) On the command line, the shell will expand shell variables inside >> double quoted strings, before Mutt even sees it. >> >> So in the part "set

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-05 Thread xtec
On Thu, May 05, 2022 at 12:07:44PM -0500, Kevin J. McCarthy wrote: 1) On the command line, the shell will expand shell variables inside double quoted strings, before Mutt even sees it. So in the part "set smtp_url=smtp://$my_user@$my_url" Mutt is probably only seeing "set smtp_url=smtp://@",

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-05 Thread Kevin J. McCarthy
On Thu, May 05, 2022 at 11:24:36AM -0500, x...@trimaso.com.mx wrote: printf "%b\n" "$msg" | mutt -s "Test message" -e "set my_user=u...@domain.tld; set my_url=smtp.domain.tld; set from='User'; set use_from=yes; set smtp_url=smtp://$my_user@$my_url; set smtp_pass=p4ss; set ssl_starttls=yes; set

Re: New to Mutt, unable to send messages in *any* attempted way

2022-05-05 Thread Sam Kuper
On Thu, May 05, 2022 at 11:24:36AM -0500, x...@trimaso.com.mx wrote: > *Beforehand*, if you'll answer just with questions without advise, or > mock, just ban me better. I do have questions, but these are to help understand what might be going wrong. > printf "%b\n" "$msg" | mutt -s "Test