help on complicated per-folder or per-sender sending email hooks

2021-11-24 Thread Ranjan Maitra
Dear friends,

I finally and successfully moved my work email to mutt a few months ago and it 
has been working all right so far, but for two of my unresolved issues which I 
would like to finally address, with some help and advice.

My second issue is on improving search abilities, but I want to first resolve 
the first issue which is that I would like to be able to use mutt for all my 
work e-mail, and this will handle the sending mail aspect through postfix. This 
is what my current setup does and this works, but it only works for my work 
email and sending from there.

For my personal email addresses (two in number), I want to have the following 
setup:

1. Use mutt's in-built sendmail to send emails from here. From here: 
https://gitlab.com/muttmua/mutt/-/wikis/MuttFaq/Sendmail
I think I know what to do for these personal emails. Specifically, I can do the 
following:

set smtp_url="smtp://yourusern...@smtp.example.com:587/"
set smtp_pass="Your1!Really2@AweSome3#Password"

(copied from there). But what do I do about the work email that uses postfix?

2. I want e-mails in a few folders (basically the ones attached to mailing 
lists) to use a specific account. For example, I have a folder called mutt, and 
I would like to be able to use this email address that I am using to be my 
account whenever I send emails from this folder. Otherwise, I would like emails 
sent to a specific account also be responded to from that account.

Now, I know that the way to go about doing all this is using hooks (which I 
have only some basic familiarity with now), but I am a bit lost as to how to go 
about doing the above, and looking around

Can someone please point me to some resources, or advice on how to go about 
doing this?

I use fetchmail and procmail to get email into folders and so imap, etc is not 
important to me: I guess i am old-school.

Thanks for any advice you are able to give, and my best wishes,
Ranjan


Re: mutt 2.2.0 released

2022-02-12 Thread Ranjan Maitra

Kevin,

As a somewhat new user of mutt (for about a year), please accept my gratitude for your hard work in keeping these releases with such a high frequency,
and so much so that I only realized today that you were the sole maintainer.

We wish you well in your further endeavors. You have left us a solid base for us to build on.

 

Best wishes,
Ranjan


trouble with sending emails from alternate email account

2022-02-12 Thread Ranjan Maitra
Hi,

I am using the browser (sorry) to send this e-mail because I am no longer able to send email from mutt from anything other than my office account (which uses smtp and is delivered via postfix). 

So, here is what I have in my .muttrc at the very end.


folder-hook .      'unset smtp_url'
folder-hook '(mutt|R|fedora|postfix|fetchmail|openbox|sylpheed)' 'set from = t...@email.com; set smtp_url="smtps://t...@email.com@smtp.mail.com:465/"; set smtp_pass="xxx"; set envelope_from_address="t...@email.com"; set use_envelope_from=yes; set from = "t...@email.com"; set forward_format = "[FW frm %a:%s]"; set realname = ""; my_hdr Bcc: ""; set ssl_force_tls = yes; set ssl_starttls = yes'

 

The password is correctly entered (and this configuration worked fine, in the sense that it delivered email from this account a few weeks ago. This has not worked for a few weeks and I finally decided to try and see if anyone had suggestions. 

 

I am on Mutt 2.1.5 and on a full up to date Fedora 35.

 

I tried debugging and get.

 

2022-02-12 23:18:26] External SSF: 256
[2022-02-12 23:18:26] External authentication name: t...@email.com
[2022-02-12 23:18:26] mutt_sasl_cb_authname: getting authname for smtp.mail.com:465
[2022-02-12 23:18:26] mutt_sasl_cb_authname: getting user for smtp.mail.com:465
[2022-02-12 23:18:26] mutt_sasl_cb_pass: getting password for mai...@email.com@smtp.mail.com:465
[2022-02-12 23:18:26] Authenticating (PLAIN)...
[2022-02-12 23:18:26] 5> AUTH PLAIN (removed)
[2022-02-12 23:18:27] 5< 535 Authentication credentials invalid
[2022-02-12 23:18:27] 5< 535 Authentication credentials invalid
 

 

Many thanks for reading and any help!
Ranjan


Re: trouble with sending emails from alternate email account

2022-02-13 Thread Ranjan Maitra
On Sun Feb13'22 09:25:12AM, Charles Cazabon wrote:
> From: Charles Cazabon 
> Date: Sun, 13 Feb 2022 09:25:12 -0600
> To: mutt-users@mutt.org
> Subject: Re: trouble with sending emails from alternate email account
>
> Ranjan Maitra  wrote:
> > I am no longer able to send email from mutt from anything other than my
> > office account
> [...]
> >[2022-02-12 23:18:26] 5> AUTH PLAIN (removed)
> >[2022-02-12 23:18:27] 5< 535 Authentication credentials invalid
> >[2022-02-12 23:18:27] 5< 535 Authentication credentials invalid
>
> Looks like your SMTP AUTH credentials are not valid :)  You should probably
> contact your mailhost for assistance.
>

Thank you for this, it turns out that funky .muttrc settings are not called 
for, but rather, the issue may be quiet withdrawal of SMTP access on the base 
account, followed by my (now) somewhat noisier withdrawal from that account.

Best wishes,
Ranjan


Re: Unexplained mutt error

2022-02-22 Thread Ranjan Maitra
On Tue Feb22'22 02:06:57PM, Ion wrote:
> From: Ion 
> Date: Tue, 22 Feb 2022 14:06:57 -0600
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> On 21/02/2022 21:53, Kevin J. McCarthy wrote:
>
> > On Mon, Feb 21, 2022 at 06:10:51PM -0600, Ion wrote:
> > > I tried both set smtp_url ="smtp://smtp.fastmail.com:465" and set
> > > smtp_url ="smtp://smtp.fastmail.com:587" and got "SMTP session failed:
> > > 530 5.7.1 Authentication required".
> >
> > You'll need to add your username to the $smtp_url, so something like
> >   set smtp_url = "smtp://ionm...@eml.cc@smtp.fastmail.com:587"
> >
> As instructed I changed it to...
>
> set smtp_url ="smtp://ionm...@eml.cc@smtp.fastmail.com:587"
>
> and also tried
>
> set smtp_url ="smtp://ionm...@eml.cc@smtp.fastmail.com:465"
>

set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465"



> both produced "Invalid SMTP URL: smtp.fastmail.com:465"
>
>


Re: Unexplained mutt error

2022-02-22 Thread Ranjan Maitra
Sorry for not recalling this from your earlier e-mail, but what exactly were 
the claws-mail settings?

Did you make sure about smtps? In my limited experience, though mail providers 
talk about smtp and 587 port, many of them only work with smtps and 465.

I moved from sylpheed to mutt, and the helpful people here and looking around 
got me going eventually.

For me, the magic was the equivalent of what for you would be:

set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465" set ssl_force_tls 
= yes set ssl_starttls = yes'

Of course, getting the password, etc right.

As an aside, for others: is there, in .muttrc a way to set things such that 
hitting "r" would automatically switch to reply list ("L") for specific folders?

I have seen that for some list mail, "r" responds to list, and for others, to 
the sender.

Many thanks and best wishes,
Ranjan




On Tue Feb22'22 04:40:06PM, Ion wrote:
> From: Ion 
> Date: Tue, 22 Feb 2022 16:40:06 -0600
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> Thanks to all of you for trying to solve my problem. But I have been
> trying to setup mutt for nine days now. I have followed all your advice
> and instructions to the best of my ability, to no avail. My E-mail
> providers don't seem to know that CLI clients exist. They keep asking me
> to take a snapshot of the preferences menu. Much as I want to use a CLI
> client, Thunderbird, Claws, and Evolution were able to connect me within
> 15 minutes so I will go back to Thunderbird. And truthfully it's
> Fastmail that's the problem as other accounts work as expected.
>
> Thanks again.
>
> On 22/02/2022 16:15, Kevin J. McCarthy wrote:
> > On Tue, Feb 22, 2022 at 02:34:05PM -0600, Ranjan Maitra wrote:
> > > On Tue Feb22'22 02:06:57PM, Ion wrote:
> > > > As instructed I changed it to...
> > > >
> > > > set smtp_url ="smtp://ionm...@eml.cc@smtp.fastmail.com:587"
> > > >
> > > > and also tried
> > > >
> > > > set smtp_url ="smtp://ionm...@eml.cc@smtp.fastmail.com:465"
> > > >
> > >
> > > set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465"
> >
> > Thanks Ranjan - that's right.  Remember port 465 uses smtps://
> >
> > > > both produced "Invalid SMTP URL: smtp.fastmail.com:465"
> >
> > Check your muttrc to make sure you don't have the value specified
> > twice or something.  That error message prints out the full value of
> > $smtp_url, so somehow Mutt has the value minus the
> > 'smtps://ionm...@eml.cc@' prefix stored in $smtp_url.
> >
> > You can also check the value at runtime by typing ':set ?smtp_url' and
> > hitting return.
> >


Re: Unexplained mutt error

2022-02-22 Thread Ranjan Maitra
My apologies:


> For me, the magic was the equivalent of what for you would be:
>
> set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465" set 
> ssl_force_tls = yes set ssl_starttls = yes'

This got mangled.

set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465"; set ssl_force_tls 
= yes; set ssl_starttls = yes'

or

 set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465"
 set ssl_force_tls = yes
 set ssl_starttls = yes'

btw, if your password has special characters, you may need to have the escape 
character sequence in place. Example: "\$" for "$".


Ranjan



>

> Of course, getting the password, etc right.
>
> As an aside, for others: is there, in .muttrc a way to set things such that 
> hitting "r" would automatically switch to reply list ("L") for specific 
> folders?
>
> I have seen that for some list mail, "r" responds to list, and for others, to 
> the sender.
>
> Many thanks and best wishes,
> Ranjan
>
>
>
>
> On Tue Feb22'22 04:40:06PM, Ion wrote:
> > From: Ion 
> > Date: Tue, 22 Feb 2022 16:40:06 -0600
> > To: mutt-users@mutt.org
> > Subject: Re: Unexplained mutt error
> >
> > Thanks to all of you for trying to solve my problem. But I have been
> > trying to setup mutt for nine days now. I have followed all your advice
> > and instructions to the best of my ability, to no avail. My E-mail
> > providers don't seem to know that CLI clients exist. They keep asking me
> > to take a snapshot of the preferences menu. Much as I want to use a CLI
> > client, Thunderbird, Claws, and Evolution were able to connect me within
> > 15 minutes so I will go back to Thunderbird. And truthfully it's
> > Fastmail that's the problem as other accounts work as expected.
> >
> > Thanks again.
> >
> > On 22/02/2022 16:15, Kevin J. McCarthy wrote:
> > > On Tue, Feb 22, 2022 at 02:34:05PM -0600, Ranjan Maitra wrote:
> > > > On Tue Feb22'22 02:06:57PM, Ion wrote:
> > > > > As instructed I changed it to...
> > > > >
> > > > > set smtp_url ="smtp://ionm...@eml.cc@smtp.fastmail.com:587"
> > > > >
> > > > > and also tried
> > > > >
> > > > > set smtp_url ="smtp://ionm...@eml.cc@smtp.fastmail.com:465"
> > > > >
> > > >
> > > > set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465"
> > >
> > > Thanks Ranjan - that's right.  Remember port 465 uses smtps://
> > >
> > > > > both produced "Invalid SMTP URL: smtp.fastmail.com:465"
> > >
> > > Check your muttrc to make sure you don't have the value specified
> > > twice or something.  That error message prints out the full value of
> > > $smtp_url, so somehow Mutt has the value minus the
> > > 'smtps://ionm...@eml.cc@' prefix stored in $smtp_url.
> > >
> > > You can also check the value at runtime by typing ':set ?smtp_url' and
> > > hitting return.
> > >


Re: Unexplained mutt error

2022-02-22 Thread Ranjan Maitra


Can't type, sorry. No apostrophe at the end.

> This got mangled.

set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465"; set ssl_force_tls 
= yes; set ssl_starttls = yes

or

 set smtp_url ="smtps://ionm...@eml.cc@smtp.fastmail.com:465"
 set ssl_force_tls = yes
 set ssl_starttls = yes

Hope this works for you,
Ranjan


Re: Unexplained mutt error

2022-02-22 Thread Ranjan Maitra
I think the OPs problem is with sending, not accessing email.

Ranjan

On Wed Feb23'22 02:29:12AM, Sam Kuper wrote:
> From: Sam Kuper 
> Date: Wed, 23 Feb 2022 02:29:12 +
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> On Tue, Feb 22, 2022 at 04:40:06PM -0600, Ion wrote:
> > Thanks to all of you for trying to solve my problem. But I have been
> > trying to setup mutt for nine days now.  I have followed all your
> > advice and instructions to the best of my ability, to no avail.  [...]
> > Much as I want to use a CLI client, Thunderbird, Claws, and Evolution
> > were able to connect me within 15 minutes ...
>
> Have you tried using Getmail (or Fetchmail, or mbsync, or OfflineIMAP,
> etc - i.e. an MRA (mail retrieval agent)) to get a copy of your mail
> from your Fastmail server to a local Mbox or Maildir?
>
> If you can get that working, then you can just point Mutt at the
> resulting Mbox or Maildir on your local drive, and read your mail that
> way:
>
> mutt -R -f /path/to/local/mbox/or/maildir
>
> I.e. rely only on Mutt's MUA functionality, not its MRA functionality.
>
> You might even be able to point Mutt at wherever Thunderbird keeps your
> local mailstore, depending on how you have Thunderbird configured.  I.e.
> let Thunderbird act as your MRA and use Mutt as your MUA:
>
> mutt -R -f /path/to/local/Thunderbird/mail/store
>
> Don't give up!
>
> --
> A: When it messes up the order in which people normally read text.
> Q: When is top-posting a bad thing?
>
> ()  ASCII ribbon campaign. Please avoid HTML emails & proprietary
> /\  file formats. (Why? See e.g. https://v.gd/jrmGbS ). Thank you.


Re: Unexplained mutt error

2022-02-25 Thread Ranjan Maitra
On Fri Feb25'22 07:00:05AM, Charles Cazabon wrote:
> From: Charles Cazabon 
> Date: Fri, 25 Feb 2022 07:00:05 -0600
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> Kurt Hackenberg  wrote:
> > On 2022/02/22 18:10, Ranjan Maitra wrote:
> >
> > > As an aside, for others: is there, in .muttrc a way to set things such
> > > that hitting "r" would automatically switch to reply list ("L") for
> > > specific folders?
> [...]
> > It's possible to change key bindings, so maybe you could do that on the fly,
> > conditionally, for certain folders...or maybe you could write some tricky
> > macro...but I think probably those are both bad ideas. I think you'd do
> > better to just always use 'L' to reply to a list.
>
> That's the right solution, but I've also seen people configure their MDA to
> add a Reply-To: header to incoming list messages that don't have them.  Just a
> thought.
>

I see: I use fetchmail and then procmail for fetching email. So, would this be 
done through fetchmail or procmail?

Regardless, actually I think that all I would be happy with would be a query or 
something that alerts me to the fact that I am potentially writing to an 
individual address (or a list) (for when I am  on a list, but not in general, 
because then I start to blindly accept because most email is not to a list).

Any thoughts on if this is possible?

Many thanks and best wishes,
Ranjan




Re: Unexplained mutt error

2022-02-25 Thread Ranjan Maitra
On Fri Feb25'22 01:29:14PM, Kurt Hackenberg wrote:
> From: Kurt Hackenberg 
> Date: Fri, 25 Feb 2022 13:29:14 -0500
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> On 2022/02/25 10:53, Ranjan Maitra wrote:
>
> > Regardless, actually I think that all I would be happy with would be a 
> > query or something that alerts me to the fact that I am potentially writing 
> > to an individual address (or a list) (for when I am  on a list, but not in 
> > general, because then I start to blindly accept because most email is not 
> > to a list).
>
> It's possible to configure Mutt so that its index tells you that a message
> came from a list. The default index format includes %L, so all you'd have to
> do is use "subscribe" to tell Mutt what lists you're subscribed to. Or
> there's $auto_subscribe, to do that automatically for lists that announce
> themselves.
>
> With the index telling you the message came from a list, then you would know
> to reply with 'L'.
>
> You could try this to see if you like it by just adding this to your
> .muttrc:
> set auto_subscribe=yes
>
> This section of the manual describes what Mutt can do with mailing lists:
> <http://mutt.org/doc/manual/#using-lists>


My apologies, I guess I was not at all clear in my question. I want a hook 
which if I press "r" would give me a query about if I want to answer to the 
list or reply to the sender.

Thanks,
Ranjan


Re: Unexplained mutt error

2022-02-25 Thread Ranjan Maitra
On Fri Feb25'22 04:31:32PM, Jon LaBadie wrote:
> From: Jon LaBadie 
> Date: Fri, 25 Feb 2022 16:31:32 -0500
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> On Fri, Feb 25, 2022 at 01:33:52PM -0600, Ranjan Maitra wrote:
> >
> > My apologies, I guess I was not at all clear in my question. I want a
> > hook which if I press "r" would give me a query about if I want to
> > answer to the list or reply to the sender.
> >
>
> Doesn't the "reply_to" setting allow you to do that already.
>

It does? I have:

set reply_to=yes

I had no idea about this and I looked it up. So I guess I should put this as a 
hook inside my list folders. I will try that, thanks!

Ranjan


searching across folders using mutt

2022-05-29 Thread Ranjan Maitra
Dear friends,

I have now been using mutt for about 20 months or so, having graduated from 
sylpheed, and life is generally well, but for one issue, and that is searching 
across folders.

So, suppose I know that I have an email in some folder with "stuff" in the 
subject line. Now, I know how to search this (quite readily) in a folder. But 
when I do not know the folder it is stored in, so far, it has been simply about 
guessing the right folders. Sometimes I get lucky, and sometimes I put it away, 
and occasionally, I do get lucky on a timed-release format, but I was wondering 
if I can get rid of this reliance on luck, as both my years and size of folders 
go up.

Is there an easy way to do this in mutt? I would like to stick to simple tools 
(and stay in mutt) if possible.

My email is pulled in by fetchmail from a POP3 server (gmx) and processed by 
procmail into folders. I do not use IMAP. I thought I would put this in in case 
it was relevant.

Many thanks again for your suggestions, and best wishes,
Ranjan




Re: searching across folders using mutt

2022-05-29 Thread Ranjan Maitra
On Sun May29'22 08:14:20PM, steve wrote:
> From: steve 
> Date: Sun, 29 May 2022 20:14:20 +0200
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> Hi Ranjan,
>
> notmuch will do exactly that.
>
> see https://notmuchmail.org/mutttips/
>
> best,
>
> steve

Steve,

Indeed, thanks very much! I have now found notmuch and also found recoll (that 
I had previously never heard of).

Here is a page with some help on how to  use recoll:

https://www.lesbonscomptes.com/recoll/faqsandhowtos/MuttAndRecoll.html

The python script is missing, but I was able to find it online by searching for 
it on DuckDuckGo.

For notmuch, there is some advice here: http://log.or.cz/?p=228 I found this 
from this other website on mutt tricks from a Rice University history 
professor: https://www.owlnet.rice.edu/~wcm1/mutt-tips.html

Anyway, I was wondering, what are the pros and cons of recoll vis-a-vis 
notmuch? Both appear to do similar things.

Many thanks again, and best wishes,
Ranjan







> Le 29-05-2022, à 10:40:27 -0500, Ranjan Maitra a écrit :
>
> > Dear friends,
> >
> > I have now been using mutt for about 20 months or so, having graduated from 
> > sylpheed, and life is generally well, but for one issue, and that is 
> > searching across folders.
> >
> > So, suppose I know that I have an email in some folder with "stuff" in the 
> > subject line. Now, I know how to search this (quite readily) in a folder. 
> > But when I do not know the folder it is stored in, so far, it has been 
> > simply about guessing the right folders. Sometimes I get lucky, and 
> > sometimes I put it away, and occasionally, I do get lucky on a 
> > timed-release format, but I was wondering if I can get rid of this reliance 
> > on luck, as both my years and size of folders go up.
> >
> > Is there an easy way to do this in mutt? I would like to stick to simple 
> > tools (and stay in mutt) if possible.
> >
> > My email is pulled in by fetchmail from a POP3 server (gmx) and processed 
> > by procmail into folders. I do not use IMAP. I thought I would put this in 
> > in case it was relevant.
> >
> > Many thanks again for your suggestions, and best wishes,
> > Ranjan
> >
> >


Re: searching across folders using mutt

2022-05-29 Thread Ranjan Maitra
On Sun May29'22 11:31:51PM, Greg Marks wrote:
> From: Greg Marks 
> Date: Sun, 29 May 2022 23:31:51 -0500
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> > Now, I know how to search this (quite readily) in a folder. But when I do 
> > not know the folder it is stored in, so far, it has been simply about 
> > guessing the right folders.
> >
> > > notmuch will do exactly that.
> > >
> > > see https://notmuchmail.org/mutttips/
>
> According to the man page for notmuch:
>
>Mail storage that uses mbox format, (where one mbox file
>contains many messages), will not work with notmuch.  If
>that's how your mail is currently stored, it is recommended
>you first convert it to maildir format with a utility such
>as mb2md before running notmuch setup .

Thanks, I use maildir for a while now, so I am good with notmuch. Still 
wondering about notmuch vs. recoll, though.

> Is there a solution for searching across folders for those of us whose
> e-mail is stored in mbox rather than maildir format?

I seem to have read somewhere today that recoll works with mbox, but I am not 
sure if I read this correctly.

Many thanks again!
Ranjan





Re: searching across folders using mutt

2022-05-30 Thread Ranjan Maitra
On Mon May30'22 07:25:28AM, steve wrote:
> From: steve 
> Date: Mon, 30 May 2022 07:25:28 +0200
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> Hi Greg,
>
> Le dimanche 29 mai 2022 à 23:31, Greg Marks a écrit :
>
> >
> > Is there a solution for searching across folders for those of us whose
> > e-mail is stored in mbox rather than maildir format?
>
> I guess mairix can do that.
>
> See https://gitlab.com/muttmua/mutt/-/wikis/UseCases/SearchingMail

Hi,

Can mairix and notmuch also search within attachments?

Many thanks and best wishes,
Ranjan


Re: mutt 2.2.6 released

2022-06-05 Thread Ranjan Maitra
Kevin,

My (our) deepest appreciation for these bug-fix releases, even at a time when 
you can no longer give as much time to mutt as you did previously.

Best wishes,
Ranjan

On Sun Jun05'22 12:45:27PM, Kevin J. McCarthy wrote:
> From: "Kevin J. McCarthy" 
> Date: Sun, 5 Jun 2022 12:45:27 -0700
> To: mutt-announce 
> Subject: mutt 2.2.6 released
>
> Hello Mutt Users,
>
> I've just released version 2.2.6.  Instructions for downloading are
> available at , or the tarball can be
> directly downloaded from .  Please take the
> time to verify the signature file against my public key[1].
>
> This is a bug-fix release, fixing a variety of small issues.
>
> Thanks to everyone who reported issues and helped test.
>
> -Kevin
>
> [1]
> My public key is available at:
>   - my personal website: https://www.8t8.us/configs/80316BDA.asc.pubkey
>   - the mutt website: http://www.mutt.org/keys/kevin.key
>   - The keys.openpgp.org network
> 
> https://keys.openpgp.org/vks/v1/by-fingerprint/8975A9B33AA37910385C5308ADEF768480316BDA
>




searching for emails by date using mutt

2022-08-18 Thread Ranjan Maitra
Hi,

Is there a way, in mutt, to search for emails sent on a specific date? Say 
emails sent on September 22 2010?

Many thanks,
Ranjan



Ask for which account to send email from?

2022-10-05 Thread Ranjan Maitra
Hi,

I have been using mutt for all my emailing for a couple of years now. I have 
multiple accounts, and the way I get this resolved is that I have different 
folders where different accounts are used (all configured in my .muttrc). This 
works at least sort of reasonably, except when I have to forward or send an 
email (using an account) to something else that is on a different account. I am 
not sure how to handle this, and would like to have ideas, but at the very 
least, I wonder if I can get a prompt asking which account I should send my 
email from. Ideally, if I choose an account (email address), then that account 
should get picked.

Any suggestions, as to how I should handle this?

Many thanks for your time, and help!

Best wishes.
Ranjan


attach file from another email to current email

2022-11-14 Thread Ranjan Maitra
Hi,

I am sure that this is possible, but I can not figure out how to attach files 
from another email to my current email that I would like those emails attached 
to. Typically, I simply save each attachment locally, and then include it, 
which seems unnecessary and so I suspect that it is possible to directly add an 
attachment from an email in one of my mail-folders.

How do I do this?

Many thanks again and best wishes,
Ranjan



Re: attach file from another email to current email

2022-11-14 Thread Ranjan Maitra
On Mon Nov14'22 11:36:52AM, Patrick Shanahan wrote:
> From: Patrick Shanahan 
> Date: Mon, 14 Nov 2022 11:36:52 -0500
> To: Mutt Users' Mailing List 
> Subject: Re: attach file from another email to current email
> 
> * Ranjan Maitra  [11-14-22 11:30]:
> > Hi,
> > 
> > I am sure that this is possible, but I can not figure out how to attach 
> > files from another email to my current email that I would like those emails 
> > attached to. Typically, I simply save each attachment locally, and then 
> > include it, which seems unnecessary and so I suspect that it is possible to 
> > directly add an attachment from an email in one of my mail-folders.
> > 
> > How do I do this?
> > 
> 
> I would open the "another email" and export the attachment, then go back
> to "current email" and attach the exported file.
> 
> I do not do it that often to be concerned enough to research other
> methods.
>

Thanks, so this is sort of similar to what I do, unless exporting the 
attachment is different from saving the file.

I do wonder if there is not an easier more direct approach to doing this.

Many thanks again and best wishes,
Ranjan


Re: attach file from another email to current email

2022-11-14 Thread Ranjan Maitra
On Mon Nov14'22 11:36:52AM, Patrick Shanahan wrote:
> From: Patrick Shanahan 
> Date: Mon, 14 Nov 2022 11:36:52 -0500
> To: Mutt Users' Mailing List 
> Subject: Re: attach file from another email to current email
> 
> * Ranjan Maitra  [11-14-22 11:30]:
> > Hi,
> > 
> > I am sure that this is possible, but I can not figure out how to attach 
> > files from another email to my current email that I would like those emails 
> > attached to. Typically, I simply save each attachment locally, and then 
> > include it, which seems unnecessary and so I suspect that it is possible to 
> > directly add an attachment from an email in one of my mail-folders.
> > 
> > How do I do this?
> > 
> 
> I would open the "another email" and export the attachment, then go back
> to "current email" and attach the exported file.
> 
> I do not do it that often to be concerned enough to research other
> methods.

This suggestion looks more like my two-step approach. Any other, more direct, 
approaches possible?

Thanks again!
Ranjan


Re: [Mutt] attach file from another email to current email

2022-11-15 Thread Ranjan Maitra
On Tue Nov15'22 12:33:32AM, Mihai Lazarescu wrote:
> From: Mihai Lazarescu 
> Date: Tue, 15 Nov 2022 00:33:32 +0100
> To: mutt-users@mutt.org
> Subject: Re: [Mutt] attach file from another email to current email
> 
> On Monday, November 14, 2022 at 10:30:01 -0600, Ranjan Maitra wrote:
> 
> > I am sure that this is possible, but I can not figure out how to attach 
> > files from another email to my current email that I would like those emails 
> > attached to. Typically, I simply save each attachment locally, and then 
> > include it, which seems unnecessary and so I suspect that it is possible to 
> > directly add an attachment from an email in one of my mail-folders.
> 
> You can select the attachments you want from one source message, then reply
> (r) or forward (f) and mutt will ask whether to attach them to the new
> message.

Thanks very much. Sorry I am green at this: if I write an email, and then after 
I am done writing an email, and I want to include an attachment from another 
email (perhaps in another folder), what do I do?

> Or you can automate the process you describe above using a macro. :-) Then
> you can use it multiple times on all the attachments you need from arbitrary
> messages to attach them to the new message (which can stay postponed waiting
> for attachments).

Sorry, I do not quite understand how to go about writing this macro?

Many thanks, and best wishes,
Ranjan



silly search question

2022-12-21 Thread Ranjan Maitra
Hi,

My apologies for a perhaps unrelated mutt question: I would like to search for 
a word "word" across the body of the emails of all my mutt folders. How do I do 
this? I have notmuch-mutt installed.

Many thanks and best wishes,
Ranjan



Re: Incompatible IMAP authentication methods

2023-03-18 Thread Ranjan Maitra
On Sat Mar18'23 08:25:48AM, Kira Oakley wrote:
> From: Kira Oakley 
> Date: Sat, 18 Mar 2023 08:25:48 -0700
> To: mutt-users@mutt.org
> Subject: Re: Incompatible IMAP authentication methods
> 
> On 03/18  08:41, Sébastien Hinderer wrote:
> > I did try fetchmail but it segfaulted. I don't know how I should proceed
> > from here. Any suggestion welcome.
> 
> I saw this article on XOAUTH2 with mutt. I haven't tried it, but it
> might be of help:
> 
> https://www.dcs.gla.ac.uk/~jacobd/posts/2022/03/configure-mutt-to-work-with-oauth-20/
> 
> ~ Kira
> 

And I have not tried this yet, but I came across the following if you want to 
run oauth2 with fetchmail for O365:

https://movementarian.org/blog/posts/a-headless-office-365-proxy/

As I said, i have thought about trying this, but not yet.

Hope this helps!

My thanks and best wishes,
Ranjan


Re: How to remove the gap between the status bar and the INBOX

2023-04-01 Thread Ranjan Maitra
On Sat Apr01'23 05:48:41PM, Sadeep Madurange wrote:
> From: Sadeep Madurange 
> Date: Sat, 1 Apr 2023 17:48:41 +0800
> To: mutt-users@mutt.org
> Subject: How to remove the gap between the status bar and the INBOX
> 
> I just switched to mutt from neomutt. There is a gap of one row between
> the status row and the first folder (i.e., INBOX) in the sidebar. Can I
> remove that?
> 
> -- 
> Regards,
> Sadeep
> PGP: 103BF9E3E750BF7E

Can you send a screenshot?

Ranjan


restrict folder hook to specific folder(s)

2023-05-03 Thread Ranjan Maitra
Hello,

I have a folder called "R". There are other folders that have "R" in their 
name. However, when I set up a

folder-hook '(R)'

it seems to apply to all folders with R in it, with embarrassing consequences. 
How do I make sure that the hook applies to the R folder and nothing else?

Many thanks and best wishes,
Ranjan


Re: restrict folder hook to specific folder(s)

2023-05-03 Thread Ranjan Maitra
On Wed May03'23 09:59:17AM, Will Yardley wrote:
> From: Will Yardley 
> Date: Wed, 3 May 2023 09:59:17 -0700
> To: mutt-users@mutt.org
> Subject: Re: restrict folder hook to specific folder(s)
>
> On Wed, May 03, 2023 at 11:27:05AM -0500, Ranjan Maitra wrote:
>
> > I have a folder called "R". There are other folders that have "R" in
> > their name. However, when I set up a
> >
> > folder-hook '(R)'
> >
> > it seems to apply to all folders with R in it, with embarrassing
> > consequences. How do I make sure that the hook applies to the R folder
> > and nothing else?
>
> I've not used folder-hooks myself, but it looks like you may have to
> anchor one or both sides of the regex to get the behavior you want.
>
> http://www.mutt.org/doc/manual/#mailbox-hook
>
> has some examples.
>
> and
> http://www.mutt.org/doc/manual/#regexp
> has some info on the regex syntax
>

Thanks for this! I am a little lost on how to use these syntax for my specific 
use case. I was looking for a way to have mailhooks only apply to specific 
named folders.

I tried giving the complete pathname:

/home/user/Mail/R

but this is cumbersome to put for all the folders, one by one, and also this 
does not specifically exclude out folders such as /home/user/Mail/Rsomething

Is there a way to have a specific hook for only a specific folder?

Many thanks and best wishes,
Ranjan





[FW frm mlmai...@gmx.com:Re: restrict folder hook to specific folder(s)]

2023-05-03 Thread Ranjan Maitra
Sorry, meant to send this to the mailing list.


- Forwarded message from Ranjan Maitra  -

From: Ranjan Maitra 
Date: Wed, 3 May 2023 12:54:45 -0500
To: Will Yardley 
Subject: Re: restrict folder hook to specific folder(s)

On Wed May03'23 09:59:17AM, Will Yardley wrote:
> From: Will Yardley 
> Date: Wed, 3 May 2023 09:59:17 -0700
> To: mutt-users@mutt.org
> Subject: Re: restrict folder hook to specific folder(s)
>
> On Wed, May 03, 2023 at 11:27:05AM -0500, Ranjan Maitra wrote:
>
> > I have a folder called "R". There are other folders that have "R" in
> > their name. However, when I set up a
> >
> > folder-hook '(R)'
> >
> > it seems to apply to all folders with R in it, with embarrassing
> > consequences. How do I make sure that the hook applies to the R folder
> > and nothing else?
>
> I've not used folder-hooks myself, but it looks like you may have to
> anchor one or both sides of the regex to get the behavior you want.
>
> http://www.mutt.org/doc/manual/#mailbox-hook
>
> has some examples.
>
> and
> http://www.mutt.org/doc/manual/#regexp
> has some info on the regex syntax
>

Thanks for this! I am a little lost on how to use these syntax for my specific 
use case. I was looking for a way to have mailhooks only apply to specific 
named folders.

I tried giving the complete pathname:

/home/user/Mail/R

but this is cumbersome to put for all the folders, one by one, and also this 
does not specifically exclude out folders such as /home/user/Mail/Rsomething

Is there a way to have a specific hook for only a specific folder?

Many thanks and best wishes,
Ranjan




- End forwarded message -


unset folder-hook

2023-07-13 Thread Ranjan Maitra
I have a folder-hook set up which basically uses a particular email account 
when in a folder. I have it set up as:

 set envelope_from_address="addr...@email.com"
 set use_envelope_from=yes
 set from = "addr...@email.com"
 set realname = "Name, Real"
 set forward_format = "[FW frm %a:%s]"


 folder-hook .  'unset smtp_url'
 folder-hook '(mutt|fedora|postfix|fetchmail|openbox)' 'set from =
em...@address.com; set smtp_url="something"; set smtp_pass="somethingelse"; set 
envelope_from_address="em...@address.com"; set use_envelope_from=yes; set from 
= "em...@address.com"; my_hdr Bcc:; set forward_format = "[FW frm %a:%s]";set 
realname = "Real Name"; set ssl_force_tls = yes; set ssl_starttls = yes'

But I have noticed that when I go to another (default) folder (not in the list 
above), after one of the folders above (mutt, say), I still have the modified 
folder-hook settings go to the new folder.

How do I automagically revert back to the default setting when I am done 
visiting these special folders with folder hooks (such as mutt in the example 
above)?

Many thanks for your suggestions and best wishes,
Ranjan






Re: unset folder-hook

2023-07-13 Thread Ranjan Maitra
Dear Francesco,

Thanks!

On Thu Jul13'23 02:10:02PM, Francesco Ariis wrote:
> From: Francesco Ariis 
> Date: Thu, 13 Jul 2023 14:10:02 +0200
> To: mutt-users@mutt.org
> Subject: Re: unset folder-hook
>
> Hello Ranjan,
>
> Il 13 luglio 2023 alle 07:03 Ranjan Maitra ha scritto:
> > But I have noticed that when I go to another (default) folder (not in the 
> > list above), after one of the folders above (mutt, say), I still have the 
> > modified folder-hook settings go to the new folder.
> >
> > How do I automagically revert back to the default setting when I am done 
> > visiting these special folders with folder hooks (such as mutt in the 
> > example above)?
>
> In my .muttrc I have:
>
> folder-hook sent "set something foobar"
> folder-hook !sent "set something something_else"
>
> maybe you can use it too in your setup?
> —F


What if I have three sets of folder hooks in addition to the default? Also, can 
I not just revert the !sent (in your case) to the default, without setting 
everything else? I wonder if there is be a way to do the hooks only for a 
specific set of folders and nothing else.

Many thanks again, and best wishes,
Ranjan



Re: unset folder-hook

2023-07-16 Thread Ranjan Maitra
Hi,

Any more suggestions on this?

Many thanks and best wishes,
Ranjan

On Thu Jul13'23 09:44:30AM, Ranjan Maitra wrote:
> From: Ranjan Maitra 
> Date: Thu, 13 Jul 2023 09:44:30 -0500
> To: mutt-users@mutt.org
> Subject: Re: unset folder-hook
>
> Dear Francesco,
>
> Thanks!
>
> On Thu Jul13'23 02:10:02PM, Francesco Ariis wrote:
> > From: Francesco Ariis 
> > Date: Thu, 13 Jul 2023 14:10:02 +0200
> > To: mutt-users@mutt.org
> > Subject: Re: unset folder-hook
> >
> > Hello Ranjan,
> >
> > Il 13 luglio 2023 alle 07:03 Ranjan Maitra ha scritto:
> > > But I have noticed that when I go to another (default) folder (not in the 
> > > list above), after one of the folders above (mutt, say), I still have the 
> > > modified folder-hook settings go to the new folder.
> > >
> > > How do I automagically revert back to the default setting when I am done 
> > > visiting these special folders with folder hooks (such as mutt in the 
> > > example above)?
> >
> > In my .muttrc I have:
> >
> > folder-hook sent "set something foobar"
> > folder-hook !sent "set something something_else"
> >
> > maybe you can use it too in your setup?
> > —F
>
>
> What if I have three sets of folder hooks in addition to the default? Also, 
> can I not just revert the !sent (in your case) to the default, without 
> setting everything else? I wonder if there is be a way to do the hooks only 
> for a specific set of folders and nothing else.
>
> Many thanks again, and best wishes,
> Ranjan
>


Re: unset folder-hook

2023-07-17 Thread Ranjan Maitra
On Sun Jul16'23 10:03:01PM, Ed Blackman wrote:
> From: Ed Blackman 
> Date: Sun, 16 Jul 2023 22:03:01 -0400
> To: mutt-users@mutt.org
> Subject: Re: unset folder-hook
>
> On Thu, Jul 13, 2023 at 09:44:30AM -0500, Ranjan Maitra wrote:
> > On Thu Jul13'23 02:10:02PM, Francesco Ariis wrote:
> > > In my .muttrc I have:
> > >
> > > folder-hook sent "set something foobar"
> > > folder-hook !sent "set something something_else"
> > >
> > > maybe you can use it too in your setup?
> >
> > What if I have three sets of folder hooks in addition to the default? Also, 
> > can I not just revert the !sent (in your case) to the default, without 
> > setting everything else? I wonder if there is be a way to do the hooks only 
> > for a specific set of folders and nothing else.
>
> In my .muttrc I have:
>
> # Set $strict_threads in large mailboxes (which are likely to have duplicated 
> subjects)
> folder-hook .   set strict_threads=no
> folder-hook =sent   set strict_threads=yes
> folder-hook =.archive*  set strict_threads=yes
>
> The "." applies to every folder, and sets a default.  The last two change the 
> setting for a specific folder, and a set of folders matching a regex.
>
> --
> Ed Blackman

Thanks very much for this, however, I get an error, when I do the following:

 folder-hook .  'unset smtp_url'; 'set strict_threads=no'
 folder-hook '(mutt|fedora|postfix|fetchmail|openbox)' 'set from =
em...@address.com; set smtp_url="something"; set smtp_pass="somethingelse"; set
 envelope_from_address="em...@address.com"; set use_envelope_from=yes; set from 
= "em...@address.com"; my_hdr Bcc:; set forward_format = "[FW frm %a:%s]";set 
realname = "Real Name"; set ssl_force_tls = yes; set ssl_starttls = yes'; 'set 
strict_threads=yes'

When I go to the mutt folder, I get:

 Error in /home/email/.muttrc, line 286: set strict_threads=no: unknown command
 Error in /home/email/.muttrc, line 288: set strict_threads=yes: unknown command
 source: errors in /home/email/.muttrc

Is my syntax incorrect here? Am I missing some other package/mutt helper?

Many thanks,
Ranjan



display local time inside email

2024-09-22 Thread Ranjan Maitra via Mutt-users
Hi,

On the main screen, I have my email time set to local time, and that is what 
shows. However, when I respond to it, the times are in UTC. Which is kind of 
inconvenient. For example, I am writing to an email:

On Fri Sep20'24 08:42:12PM, (suppressed) wrote:
> From: (suppressed)
> Date: Fri, 20 Sep 2024 20:42:12 +
>

As you can see, both these times are in UTC, but the first time does not even 
mention that.

Anyway, what controls the display of this time? Where do I set it to local time 
(and specify the time zone)?

Many thanks and best wishes,
Ranjan