Re: Option to disable S/MIME signature check?

2023-07-25 Thread Kevin J. McCarthy

On Wed, Jul 26, 2023 at 09:37:34AM +0800, Kevin J. McCarthy wrote:

 spam  content-type:.*pkcs7  smime


Sorry, it's a good idea to root the regexp above:
   spam  ^content-type:.*pkcs7  smime

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Option to disable S/MIME signature check?

2023-07-25 Thread Kevin J. McCarthy

On Tue, Jul 25, 2023 at 12:32:40PM +0200, ilf wrote:
I do use OpenPGP. So disabling "crypt_use_gpgme" is not an option for 
me, same for changing "crypt_verify_sig".


In the old thread from 2018, Kevin J. McCarthy proposed this:


However, you could try set smime_verify_command="" (along with
smime_verify_opaque_command and smime_decrypt_command).


But this does not work. According to muttrc(5) the default value for 
these three options is already "", and I am not setting them anywhere.


That option only works when $crypt_use_gpgme is unset.

So: How can I disable the S/MIME signature check while still using 
GPGME for OpenPGP?


The option $crypt_verify_sig is shared between PGP and S/MIME, so you'll
have to be creative if you are using GPGME.

Maybe something like:

  spam  content-type:.*pkcs7  smime
  message-hook  ~A  'set crypt_verify_sig=yes'
  message-hook  '~H smime'  'set crypt_verify_sig=no'  # or '=ask-no'

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: INBOX message count in sidebar

2023-07-25 Thread Mikhail Nidze via Mutt-users
On 24-07-2023 21:41, Will Yardley wrote:
> On Mon, Jul 24, 2023 at 10:18:37PM +0200, Mikhail Nidze via Mutt-users wrote:
> > The problem was in *folder* and *spoolfile* variables incorrectly set.
> > The correct ones are:
> > 
> >   set folder = "imaps://imap.mail.me.com:993"
> >   set spoolfile = "imaps://my_acco...@imap.mail.me.com/INBOX"
> 
> BTW, Kevin's response may have hinted at this a bit, but you can use +
> or = before so that you don't have to repeat the imaps:// part, e.g.,
> 
> set folder="imaps://imap.example.com/"
> set spoolfile=+INBOX
> set postponed=+Drafts

Thanks, I tried that too. In this case $spoolfile will be expanded
to "imaps://imap.mail.me.com:993/INBOX", i.e. without *my_account*
part and that doesn't work. In fact, fetching mail will still work
as it used to, but sidebar will show "INDEX  0". The only solution
I've found so far is to set $folder without *my_account* part and
$spoolfile with one.

-- 
Best regards,
Mikhail.



Re: INBOX message count in sidebar

2023-07-25 Thread Mikhail Nidze via Mutt-users
On 25-07-2023 10:53, Kevin J. McCarthy wrote:
> I see you solved your problem, but also note the mailboxes command doesn't
> use an assignment syntax.  The '=' will be interpreted as a mailbox shortcut
> for $folder.  Just use:
> 
>   mailboxes -label "INBOX" "imaps://my_acco...@imap.mail.me.com/INBOX"

Oh, my mistake! Thank you, Kevin!
Fixed that.

Haven't noticed it since the mail still worked.  Can it be because
$folder is set *after* the mailboxes command in my config (my guess)?

-- 
Best regards,
Mikhail.


Re: Option to disable S/MIME signature check?

2023-07-25 Thread ilf

Hi

I would also like to disable the S/MIME signature check. I have no use 
for it. And "Invoking S/MIME..." takes 25 seconds before failing with 
"S/MIME signature could NOT be verified."


I do use OpenPGP. So disabling "crypt_use_gpgme" is not an option for 
me, same for changing "crypt_verify_sig".


In the old thread from 2018, Kevin J. McCarthy proposed this:


However, you could try set smime_verify_command="" (along with
smime_verify_opaque_command and smime_decrypt_command).


But this does not work. According to muttrc(5) the default value for 
these three options is already "", and I am not setting them anywhere.


So: How can I disable the S/MIME signature check while still using GPGME 
for OpenPGP?


Thanks


W. Martin Borgert wrote 2018-05-15:
once in a while I get emails with S/MIME signatures. This is on 
public mailing lists, where I seldomly care about signatures, 
and I open the email only to read one or two lines to be sure I 
can actually press 'd' :~)
Mutt says "Invoking S/MIME..." which takes too long for my taste 
(some seconds just to open one email which I will delete anyway) 
and then usually: "S/MIME signature could NOT be verified."
I would like to disable this signature check altogether, because 
all my real contacts use either PGP or no signature at all.
Is there an option in mutt to do this? Hopefully a run time 
option, not a compile time option...


--
ilf

If you upload your address book to "the cloud", I don't want to be in it.