group-reply Bcc

2018-01-03 Thread Steve Schmerler
Hi

I have asked this some time ago [1] but I may have not been specific
enough. I'll give it another shot.

I have write_bcc=yes set and therefore a copy of a sent mail will have
the Bcc header set and filled with recipients. I'd like to 
to that mail and wonder how to make the reply mail get the Bcc header
filled.  doesn't do that. Is there any setting that I may
have overlooked in the manual?

If not, I should be able to write a macro which extracts the Bcc from
the mail when replying. I'm thinking along the lines of 
and "formail -x Bcc" for extracting the header and my_hdr for setting
it, but I have kind of a hard time coming up with a working macro, so if
someone has some clever hints, that'll be great. Thanks!

best,
Steve

[1] https://marc.info/?l=mutt-users=144239490327363=2


Re: sidebar_whitelist not working

2017-05-08 Thread Steve Schmerler
On Mar 21 12:08 -0500, Arturo wrote:
> 
> Hello, I have a ton of Gmail labels/folders i've setup over the years that I 
> don't want
> to see all the time in the sidebar.  But there are a few I'd like to be
> there whether or not they contain new mail.

If you use Gmail and IMAP, you could also  (u) from the
ones you don't want to see. You may also need to

set imap_check_subscribed=yes

for this to be useful.

best,
Steve


Re: can't read sent encrypted mail

2016-10-12 Thread Steve Schmerler
On Oct 07 21:02 -0700, Kevin J. McCarthy wrote:
> On Sat, Oct 08, 2016 at 02:46:42AM +0200, Peter P. wrote:
[...]
> > How would I add my own key to the encryption in gpgme?
> 
> You could try adding an 'encrypt-to' setting in your ~/.gnupg/gpg.conf file.

Sorry for being late. I hit the same problem as Peter -- Debian's config
sets crypt_use_gpgme=yes in /etc/Muttrc.d/gpg.rc as of 1.7.x

I had the encrypt-to set in ~/.gnupg/gpg.conf before, which has the
downside that it will *always* encrypt with my key also outside of mutt,
where I might not want that. That's why I like the option of setting
--encrypt-to in gpg.rc using the classic interface -- restrict the
encrypt-to to mutt. Since gpgme is a gpg API, there seems to be no
gpgme.conf or such where one could set this option. Therefore, I'll use
the classic interface as long as it exists :)

best,
Steve


Re: crypt-hook: truncated list of gpg recipients passed to pgpewrap

2016-07-28 Thread Steve Schmerler
On Jul 27 19:19 -0700, Kevin J. McCarthy wrote:
> I think I see the problem.  Mutt is using a fixed buffer of size 1024
> when expanding the %r parameter.  I think when the system was designed,
> no one anticipated expanding 50+ keys in a single gpg invocation.  :-)

Yes, I was suspecting something like that. 

> Right now, the best I can suggest is trying gpgme instead.  I'll work on
> a solution for a future release.

Thanks! I'll give gpgme a spin. I didn't find that much documentation,
though. I only need to set 

crypt_use_gpgme
crypt_use_pka

instead of defining the various pgp_* variables (usually shipped in
gpg.rc)? Do they have any effect, then? Thanks, again.

best,
Steve


crypt-hook: truncated list of gpg recipients passed to pgpewrap

2016-07-26 Thread Steve Schmerler
Hi all

The following is related to [1], i.e. use multiple crypt-hook commands.
I'm using something like this[*]

crypt-hook mailing.l...@company.com EX9B197029581FAC
crypt-hook mailing.l...@company.com 4C95T7E7F627637D
crypt-hook mailing.l...@company.com 74464897317CDA88
crypt-hook mailing.l...@company.com FECEC90758BB1D95
crypt-hook mailing.l...@company.com 866BAB720X7E9L98

Running this with mutt -d2, I see in the debug log that the list of
recipients is passed to pgpewrap, but truncated as follows (lines
broken):

[2016-07-26 14:49:12] mutt_pgp_command: /usr/lib/mutt/pgpewrap gpg2 
--batch --quiet --no-verbose --textmode --output - --encrypt
--encrypt-to  --sign -u Y --armor --always-trust 
-- -r 0xEX9B197029581FAC 0x4C95T7E7F627637D 0x74464897317CDA
-- /tmp/mutt-foo-1000-aaa-bb

i.e. mutt 

* stops at the third[**] key 74464897317CDA88 (length 16) and
* passes a truncated version 74464897317CDA (length 14) to pgpewrap

which then gives me a "gpg: skipped: Invalid user ID". The related pgp
setting is

set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg2 
%?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output
%- --encrypt --encrypt-to  --sign %?a?-u %a? --armor
%--always-trust -- -r %r -- %f"

Does anybody know what's going on here (Debian, Mutt 1.6.0
(2016-04-01))? Any hint is appreciated. Thank you very much!

best,
Steve



[1]  http://marc.info/?l=mutt-users=146850542227714=2

[*]  The key ids are fetched from
   gpg2 --list-keys --with-colons company.com | grep ^pub:f: | cut -d: -f5

[**] In my tests, I have 64 keys in total and the truncated one is number
 54.



Re: gpg groups or encrypt to multiple recipients (mailing list)

2016-07-15 Thread Steve Schmerler
On Jul 14 07:07 -0700, Kevin J. McCarthy wrote:
> crypt-hook mailing.l...@company.com key1
> crypt-hook mailing.l...@company.com key2
> crypt-hook mailing.l...@company.com keyN
> unset crypt_confirmhook

That's much better, indeed. I'm now using something like this in a
script which I souce:

gpg2 --list-key | sed -nre 's/.*<(.*@company\.com)>.*/crypt-hook 
mailing.l...@company.com \1/p'

Thank's a lot!

best,
Steve


gpg groups or encrypt to multiple recipients (mailing list)

2016-07-14 Thread Steve Schmerler
Hi

I'd like to ask what approach people have to send encrypted mail to
multiple mailing list recipients in mailing list via a mailing list
address (say mailing.l...@company.com).

Sadly, my company's policy is to not have a mailing list key and let the
mail server re-encrypt the mail. I know it sucks, but I need to send
encrypted mail to the list anyway. I'm aware of [1,2] and used the
approach in [2]:

# .gnupg/gpg.conf
group 0x12345678 = key1 key2 .. keyN

# muttrc 
crypt-hook mailing.l...@company.com 0x12345678

This is OK for me, apart from making up a hex key -- this is really
awkward (I literally used 0x12345678).

Are there other workarounds in use? The solution above can't be the only
one.

Apart from the gpg group thing, I would have been fine with the option
of interactively selecting the keys to encrypt to in the PGP menu,
independently from the actual recipient's address. Is this possible?
Thanks!

best,
Steve

[1] https://dev.mutt.org/trac/ticket/2873
[2] https://dev.mutt.org/trac/ticket/973


keep Fcc/Bcc when replying

2015-09-16 Thread Steve Schmerler
Hello all

This is probably trivial, however I could not find the appropriate
section in the manual.

I have a message that I sent and which may include Cc, Bcc and Fcc
headers.

Ho do I reply, including all Cc + Fcc + Bcc recipients?
 seems to work only 

* for Cc
* when the message is not from myself

while the Bcc and Fcc headers are never taken over to the reply. Right
now I'm saving the to-be-replied-to mail, compose the reply and then
copy the Bcc header from the saved one.

best,
Steve


Re: collapse threads automatically after imap mailbox update

2015-09-12 Thread Steve Schmerler
On Sep 12 09:16 -0500, Jeff Melton wrote:
> Your mail made it to the list, yes.

OK thanks for the info.

best,
Steve


collapse threads automatically after imap mailbox update

2015-09-06 Thread Steve Schmerler
Hello all

I'm using 

folder-hook . "push "

to collapse threads. 

Recently, I started using imapfilter since one of the imap servers to
which I'm connecting has no sieve support.

The problem is now that when imapfilter alters the mailbox that I am
currently viewing (move mail, ...), then mutt will uncollapse all
threads. Is there a way to collapse them automatically after a mailbox
update? Thanks for any hints!

best,
Steve


limit to threads with certain number of messages

2011-07-21 Thread Steve Schmerler
Hello

Is there a way to limit to threads that have only a certain number of
messages in it, something like ~(~M 10). I found no pattern modifier to
do that. The only related thread I could dig out is

http://thread.gmane.org/gmane.mail.mutt.user/18902/focus=19085

Thanks for any hints.

best,
Steve


Re: limit to threads with certain number of messages

2011-07-21 Thread Steve Schmerler
On Jul 21 11:35 +0200, Jostein Berntsen wrote:
 You might have to patch mutt with this patch to get the ~Z modifier:
 
 http://does-not-exist.org/mail-archives/mutt-users/msg19738.html

Ah thanks. I think I remember that message. I had to search web archives
because I deleted messages from last year. Strangely, the thread did
not show up at gmane.org, but I just checked and it does show up at
markmail.org.

best,
Steve


Re: Abbreviate full imap folder names

2010-09-27 Thread Steve Schmerler
On Sep 25 01:22 +0300, Cristopher Thomas wrote:
 On Mon, Sep 13, 2010 at 17:30, Steve Schmerler elcort...@googlemail.com 
 wrote:
  Hi
 
  In the folder browser, can I abbreviate things like
     11     0  imaps://imap.gmail.com/INBOX
     12     0  imaps://imap.gmail.com/mutt-users
  to, say
     11     0  gmail/INBOX
     12     0  gmail/mutt-users
 
 I don't know if you've found a solution yet, but offlineimap makes
 this possible.  Setting up 'nametrans' allows offlineimap to read from
 a folder on the imap server, eg '[Gmail]All Mail', and write to a
 local folder such as 'archive', and vice-versa.

Ah ok good to know. I'll keep that in mind should I switch to
offlineimap one day. Thank you.

best,
Steve


default directory for change-dir

2010-09-21 Thread Steve Schmerler
Hi

I really like mutt, but fiddling with IMAP is driving me nuts sometimes
:) I think I do not understand some fundamental behavior. Say I have two
IMAP accounts. In the browser:

 1 0  imaps://imap.gmail.com/
 2 0  imaps://imap.gmail.com/INBOX
 3 0  imaps://imap.gmail.com/foo
 4 0  imaps://mail.messagingengine.com:992/
 5 0  imaps://mail.messagingengine.com:992/INBOX
 6 0  imaps://mail.messagingengine.com:992/bar

I'm using 
set imap_passive=no
set imap_check_subscribed=yes
set imap_list_subscribed=yes
and have all subscribed folders in the browser. Very nice.

But say I want to enter imaps://imap.gmail.com/ anyway to see
unsubscribed sub-folders. Highlighting it and pressing Enter puts me in
imaps://imap.gmail.com/INBOX. So I figure that I have to 
change-dir imaps://imap.gmail.com/

It seems that change-dir has a default dir, which seems to be the
current dir where Mutt is running. So, pressing c in the browser gives
me my HOME as default dir If I started Mutt there.
Chdir to: /home/elcorto

This is problematic when I construct macros:
macro browser ,gm change-dirimaps://imap.gmail.com
macro browser ,fm change-dirimaps://mail.messagingengine.com:992
Then, I get (,gm):
Chdir to: /home/elcorto/imaps://imap.gmail.com

I tried unsetting $folder and $spoolfile but the default dir is still
there. Is there a way to unset this default dir? Or am I totally off the
track here? Thanks for your help.

best,
Steve


Re: default directory for change-dir

2010-09-21 Thread Steve Schmerler
On Sep 22 00:46 +0200, Rado S wrote:

 See wiki - guide - /Folders + /Actions

I assume that you are referring to the section TAB completion in
editor mode. That kind of explains where the default dir comes from
(the internal browsing directory for the next directory scan). Who
knew.

 See editor bindings and use kill-line.

That did it. This is very useful. Another command learned.
macro browser ,gm change-dirkill-lineimaps://imap.gmail.comenter

Thank you!

best,
Steve


Abbreviate full imap folder names

2010-09-13 Thread Steve Schmerler
Hi

In the folder browser, can I abbreviate things like
11 0  imaps://imap.gmail.com/INBOX
12 0  imaps://imap.gmail.com/mutt-users
to, say
11 0  gmail/INBOX
12 0  gmail/mutt-users

This is with
set folder_format=%2C %5N  %f

I found this thread [1]. Has the situation changed in the meantime?
Thanks.

[1] http://thread.gmane.org/gmane.mail.mutt.user/20058

best,
Steve


Re: abook: query notes field

2010-09-03 Thread Steve Schmerler
On Sep 02 17:38 -0700, Chip Camden wrote:
 
 Sorry to respond to myself -- but this version has minor improvements.

That's neat! Thanks for the nice script.

So it is either parse-it-yourself or use a full-fledged LDAP. If I
script the parser myself, I might as well set up a small sqlite db to
hold my contacts. There is no real need to use abook, then. Thanks.

best,
Steve


abook: query notes field

2010-09-02 Thread Steve Schmerler
Hi

Say I have abook entries like

[0]
name=Bob B.
email=...@gmail.com
nick=bob
notes=friend,coworker

[1]
name=Alice A.
email=al...@gmail.com
nick=alice
notes=friend

Is it possible to query the notes field?
abook --mutt-query friend
abook --mutt-query coworker

abook returns Not found in that case and seems to search only in the
name and email fields.

The background is that I want to high-jack the notes field to tag
entries with an arbitrary (comma separated) list of tags (friend,
coworker) and, for instance, send a mail to all people with the
friend tag.

If that is not possible, what other address book systems do people use
which can handle tags which can be queried?

Thanks.

best,
Steve