Forwarding a false positive classified message

2024-01-04 Thread Kai Weber
>From time to time I have to report a falsly classified message to my mail 
>provider so that they can adjust their filters. I am looking for a way to 
>automate that:

1. Forward selected mail as attachement to x...@foo.com
2. Set Subject to "reporting false positive -- [original subject]"
3. open editor with a prefilled message "Hello there, ..."
4. save message to my inbox

I am unsure how to achieve 1-3 with a macro. Is a macro the correct way to do 
that?


Re: Abort macro if limit pattern does not match anything

2022-11-29 Thread Kai Weber
* Max Görner :

> Is there a way to abort the macro if the pattern does not match anything? It
> is quite annoying to tidy up after the macro every now and then.

Have a look at 


Marking as unread when moving mail to another folder

2020-07-16 Thread Kai Weber
I have a save-hook defined to move all mail into a certain folder.

save-hook "~A"  +personal/Archive

Very often I want to move the mail into the archive without opening the
mail at all but then the mail ends up as unread in the archive.

I want to mark the mail as "read" when moving. How could I achieve this?
I guess a macro could do it? Should I get rid of the save-hook?


Re: mutt 1.12.0 released

2019-05-27 Thread Kai Weber
* Kevin J. McCarthy :

> This release has new features and bug fixes.  Please see the UPDATING file,
> or the more detailed release notes at .

Congratulations and thank you for this release.

In the screenshots of the release notes the header is colored in a way I
can not reproduce: the subject keyword is in green, the rest of the line
is white. How can I achieve that? If I try 

color header bold underline green default '^subject:'

the whole line in the header gets colored in underlined bold green.

Kai


muttrc for different mutt versions

2018-09-06 Thread Kai Weber
At home I use Debian unstable with mutt 1.10.x, at work I am bound to
Debian 9 and mutt 1.7.2. I know, I could compile and install mutt by
myself but let's say I can not:

How can I have the same muttrc on both machines without running into
errors during mutt start?

Error in /home/kai/.config/mutt/muttrc, line 16: mime_type_query_command: 
unknown variable
Error in /home/kai/.config/mutt/muttrc, line 76: abort_noattach_regexp: unknown 
variable
source: errors in /home/kai/.config/mutt/muttrc

Any suggestions?

Kai


Re: header_cache

2017-09-02 Thread Kai Weber

On 09-01-17, Ian Zimmerman wrote:

On 2017-09-01 07:51, Kai Weber wrote:


BTW, with either NeoMutt or Mutt 1.8.3 I get

Error in /home/kai/.config/mutt/muttrc, line 13: header_cache:
unknown variable
source: errors in  /home/kai/.config/mutt/muttrc


Is this also the case if you build neomutt from source?


Yes, Neomutt also has this problem.


This looks like a consequence of the choices made at build time.


A plain "./configure --prefix $HOME/.local" results in the header_cache 
error.  Your suggestion to configure --with-kyotocabinet helped.


Thanks


Re: After change-folder listing the attachments folder does not work

2017-08-31 Thread Kai Weber

On 08-31-17, Kevin J. McCarthy wrote:

Mutt 1.8.3 tarball works.
NeoMutt Github master works
Debian NeoMutt/Mutt package NeoMutt 20170609 (1.8.3) does not work

So, I have to file a bug against the Debian package?


It sounds like a good idea.

However, there is currently a freeze in the Debian mutt package, until
Debian bug #870635 is resolved.  You may want to wait until their next
upload and see what happens.


I see. I wait until the the bug is resolved and use Mutt from the 
tarball.


BTW, with either NeoMutt or Mutt 1.8.3 I get

   Error in /home/kai/.config/mutt/muttrc, line 13: header_cache: 
   unknown variable

   source: errors in  /home/kai/.config/mutt/muttrc

Seems I have to report another bug...

Thanks for the help


Re: After change-folder listing the attachments folder does not work

2017-08-31 Thread Kai Weber

On 08-31-17, Kevin J. McCarthy wrote:


In an off-list reply, Kai mentioned he's running the Debian neomutt
package.


Which was a mistake...


Kai, would you be willing to try compiling the mutt-1.8.3 tarball or
mercurial tip and see if the bug is present there?


Mutt 1.8.3 tarball works.
NeoMutt Github master works
Debian NeoMutt/Mutt package NeoMutt 20170609 (1.8.3) does not work

So, I have to file a bug against the Debian package?


Re: After change-folder listing the attachments folder does not work

2017-08-31 Thread Kai Weber

On 08-31-17, Kevin J. McCarthy wrote:


Browsing folders using '?' does change some state: it records the most
recent directory so the next browsing starts in the same place.  Just
entering the folder name and hitting enter doesn't do that.

I'll have to dig in a bit to see the problem, but some repeatable
instructions would help.  Does this happen if you start mutt, hit ",i",
and then compose a message.


It has the same effect.

  =personal: No such file or directory (errno = 2)

I grepped a little bit through the manual. Maybe I have to use  or
a combination of  and ?

And, as I just found out, Debian ships NeoMutt. I hope this is not a problem.

  Kai




Re: After change-folder listing the attachments folder does not work

2017-08-31 Thread Kai Weber

On 08-31-17, Ian Zimmerman wrote:


I strongly suspect this is related to the following discussion:

https://github.com/neomutt/neomutt/issues/609

You could try neomutt, where my proposed patch has been integrated.


I just build the Github master and it works.


After change-folder listing the attachments folder does not work

2017-08-31 Thread Kai Weber

Hello,

I have a quite common multi account setup with multiple folders for my 
account. I use folder-hooks to switch various settings based on the 
folder I change into.


I have some macros to go directly to one folder:

   macro index ,i "=personal/INBOX"

If I use this macro to go to a folder, when composing a mail adding 
attachments does not work as expected:


1. Use the macro to go into a folder
2. Start composing a mail
3. try to add attachments by pressing "a"
4. If it says Attach file ('?' for list): press "?"
5. Error message is: No such file or directory =personal

It seems,  does also change to the directory =personal 
while switching folders by browsing through the mailbox list does not 
change the directory and stays in my $HOME directory.


Do you experience the same problem?

You can have a look at my config on github 
https://github.com/kwbr/config-mail/tree/master/.mutt





Re: [OT] Vim

2002-08-26 Thread Kai Weber

+ Ken Weingold [EMAIL PROTECTED]:

 Yeah, but with procmail I can send them to /dev/null.  With
 Spamassassin they go to my spam folder for review.

You can use procmail to filter the spamassasin'ated mails to /dev/null,
too.

| :0
| * ^X-Spam-Status: Yes
| /dev/null

Kai



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-12 Thread Kai Weber

+ David T-G [EMAIL PROTECTED]:

 No, but your entire muttrc could be
 
   source /some/cool/script|
 
 and you could have that cool script look thru your procmail file(s) and
 define your hooks, including a default hook, as well as do everything
 else...

Yes, I see the point. This is a good idea. That is a good idea. When its
finished I will show it to the list.

Kai.



Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Kai Weber

Hi all,

I am just reorganzing my mail sorting and filtering. I now use a
structure like that:

Mail/list/mutt-users
Mail/list/debian-users
Mail/mail/inbox
Mail/mail/private
...

(another idea I had was Mail/list/mutt-users/2002-04 but now I archive
my mails monthly by a cron job)

But Mutt seems to have problems recognizing new mails in these folders
if I specify mailboxes like that:

mailboxes `find Mail -type f`

What's wrong with that and how should i tune my settings?

Thanks for your help and brainstorming
Kai.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Kai Weber

+ Thorsten Haude [EMAIL PROTECTED]:

 What's wrong with that and how should i tune my settings?
 I use
 mailboxes `find ~/Mail -type f -print | grep -Ev '(admin|postponed|archiv)' | 
xargs`

Thank you all for your tips. Seems I forgot to set the mailboxes
relativly to $HOME. Now it seems to work. And Thorsten's idea to leave
out some mailboxes with an inverted grep is very good.

Now I can go on configuring the beast. I have to find an easy way to
cleanup/archiving the mailboxes...

Kai.



Re: Organizing mailfolders (strategies and using with mutt)

2002-04-11 Thread Kai Weber

+ Dan Sully [EMAIL PROTECTED]:

  mailboxes `find Mail -type f`
 
 If you are using procmail - this script might be useful.
 
 #!/usr/bin/perl -w
 [...]

Nice idea and sure helps a lot. But in my .procmailrc nearly no folder
name is used. Most of the stuff is done by $MATCH.

But a script for doing subscribe and list informations for .muttrc
would be nice.

(For my own .muttrc which I just reorganize/start again I think of
folder-hooks which load files with settings appending to the current
folder. Let's say I go to the mutt-users folder. The folder-hook sources
a script mutt-users.rc with all the settings. The question is: how to
make a default-setting for folders where no folderxy.rc exist?

folder-hook regexp source settings_file_according_to_match

The line above should be the only folder-hook line that does it all. It
is impossible, as far as I see. The $match cannot be used in a script I
guess?!)

Kai.



Getting current folder name

2001-07-26 Thread Kai Weber

Hi,

I am searching for a way to get the current selected folder for
scripting. I want something like this:

folder-hook .  source $MATCHED_FOLDER.rc

Depending on what folder I entered, I want to know what folder that
was. Maybe storing the wohle path in a shell variable, something like
that.

Kai.
-- 
k a i  w e b e r  | mailto:[EMAIL PROTECTED]
   w w w  | http://www.glorybox.de/



Setting XTerminal Title

2001-06-06 Thread Kai Weber

Hi,

I am searching for a way to set the Xterminals window title when running
mutt in such a window. I have no idea where to start.

I would like to see the for example Mutt - list.mutt-users 31/301 or
something similar.

Kai.
-- 
k a i  w e b e r  | mailto:[EMAIL PROTECTED]
   w w w  | http://www.glorybox.de/



Folder specific TO-Address

2001-05-11 Thread Kai Weber

Hi,

I am searching for a way defining a default TO: address depending on the
actual folder. Let's say I am in the mutt's Mailinglist folder. If I
press m I want a default address [EMAIL PROTECTED] there.

I think it is an folder-hook thing, but I have no idea how to implement
this. Any suggestions  tips?

Kai.
-- 
k a i  w e b e r  | mailto:[EMAIL PROTECTED]
   w w w  | http://www.glorybox.de/



Re: binding F1 to manual, Eterm vs. Xterm

2001-03-01 Thread Kai Weber

+ Jason Helfman [EMAIL PROTECTED]:

 This works fine in Xterm, however in Eterm this brings up a mod menu for
 the Eterm I am working in. Does anyone know how to change this behavior?

Had this problem, too. Someone on this list helped me (sorry, forget
who exactly). Add this lines to your theme.cfg:

 cut here ---

# F1 - F4 since xterm sends different codes for these mutt is looking for them
# instead of what Eterm sends by default.
keysym 0xFFBE "^[OP"
keysym 0xFFBF "^[OQ"
keysym 0xFFC0 "^[OR"
keysym 0xFFC1 "^[OS"

 cut here ---

Kai.
-- 
mail | [EMAIL PROTECTED]  pgp: [EMAIL PROTECTED]  icq: 102024972
 | http://www.glorybox.de/



Day-By-Day work with GnuPG

2001-01-16 Thread Kai Weber

Hi,

maybe it is not a question for Mutt but because I mostly use gpg with
Mutt it fits the on-topic-rules.

How can I automatically clean up my pubring? Let's say, a key has
expired. Mutt/Gpg uses still the key in the pubring. I have to go and
remove the key to fetch a new one.

This is just an example. My question therefor is whether a solution for
keeping the keyring up-to-date already exist?

Kai.
-- 
mail | [EMAIL PROTECTED]  pgp: [EMAIL PROTECTED]  icq: 102024972
 | http://www.glorybox.de/



Re: Filtering through a lot of levels

2000-12-20 Thread Kai Weber

+ Dirk Pirschel [EMAIL PROTECTED]:

  [Mail filtering]
  Any idea how to solve it cleverly?
 
 maildrop: http://www.flounder.net/~mrsam/maildrop/
 procmail: http://www.procmail.org/

Aerm, yes. The sentence should be "Any idea how to solve it cleverly
with procmail?"

Kai.
-- 
::: mailto:[EMAIL PROTECTED] . http://www.tu-ilmenau.de/~bond/
::: for my pgp-key mailto:[EMAIL PROTECTED] (automated reply)



Filtering through a lot of levels

2000-12-19 Thread Kai Weber

Hi,

how can I check, I a message was sent to a certain address? I want to
realise that mails to address [EMAIL PROTECTED] is first filtered into
the maillists and if no matching mailbox is found it should go to
mailbox "junk". Mails to address [EMAIL PROTECTED] should also be sorted
in its matching filters and unmatched messages should also go to the
junk mailbox. And so on. I have more than 10 email accounts and want to
bring some hierarchical sorting into it...

Any idea how to solve it cleverly?

Kai.
-- 
::: mailto:[EMAIL PROTECTED] . http://www.tu-ilmenau.de/~bond/
::: for my pgp-key mailto:[EMAIL PROTECTED] (automated reply)



GnuPG problem with locking

2000-12-19 Thread Kai Weber

Hi,

I have a problem decoding gnupg stuff. I can not find any lock file from
gnupg. What does the following output mean and how can I solve it?

Output follows:

[-- PGP output follows (current time: Tue Dec 19 11:14:35 2000) --]
gpg: Signature made Die 19 Dez 2000 01:38:55 CET using RSA key ID ED9547ED
gpg: requesting key ED9547ED from wwwkeys.eu.pgp.net ...
gpg: waiting for lock (hold by 5471 - probably dead) ...
gpg: waiting for lock (hold by 5471 - probably dead) ...
gpg: waiting for lock (hold by 5471 - probably dead) ...
gpg: waiting for lock (hold by 5471 - probably dead) ...

gpg: Interrupt caught ... exiting
^@
[-- End of PGP output --]

-- 
::: mailto:[EMAIL PROTECTED] . http://www.tu-ilmenau.de/~bond/
::: for my pgp-key mailto:[EMAIL PROTECTED] (automated reply)



Re: Mutt in an Eterm

2000-11-24 Thread Kai Weber

+ Ben Reser [EMAIL PROTECTED]:

 Add this to the keyboard section of the MAIN file for the theme you use for
 mutt:
 [keysyms]

Thank you. This works for me. I had the idea, but not the knowledge to
do it for myself.

Kai.
-- 
::: mailto:[EMAIL PROTECTED] . http://www.tu-ilmenau.de/~bond/
::: for my pgp-key mailto:[EMAIL PROTECTED] (automated reply)



Mutt in an Eterm

2000-11-23 Thread Kai Weber

Hi,

I am using Mutt in an Eterm. There is some bad behaviour, I guess it's
coming from Eterm, with the function keys F1-F5. Pressing F1 in Eterm
does not show the Manual: the key is not defined.

Xterm F1: ^[OQ
Eterm F1: ^[[11~

$ echo $TERM
xterm

Keys F6-F12 are working normal. Anything I can do (besides changing to
rxvt or something else)?

Kai.
-- 
::: mailto:[EMAIL PROTECTED] . http://www.tu-ilmenau.de/~bond/
::: for my pgp-key mailto:[EMAIL PROTECTED] (automated reply)



Strategies for archiving mails

2000-08-20 Thread Kai Weber

Hi,

I am searching for some tips how to archive and collect my mails. I do
not want to delete mails I get. After 3 months using Linux my mailboxes
grow and grow.

How do you sort and archive your mails? I want to collect some possible
solutions for first information and to see what is possible.

If it is a integrated mutt-procmail-solution it would be nice.

Kai.
-- 
+ mailto:[EMAIL PROTECTED] + http://www.tu-ilmenau.de/~bond/



Loading mail setup at editor (vim) start

2000-07-31 Thread Kai Weber

Hi,

how can I let read some special mail configs (e.g. set tw=72) when edit
a email/news messages?

Kai.
-- 
+ mailto:[EMAIL PROTECTED] + http://www.tu-ilmenau.de/~bond/



Re: Cancel message writing

2000-07-18 Thread Kai Weber

+ Suresh Ramasubramanian [EMAIL PROTECTED]:

 mutt's cancel key is Ctrl-G; Ctrl-C will tell mutt to go away entirely.
 
 He wanted to cancel the message - with the q (abort) key.  Not to exit
 mutt.

CTRL-G was what I wanted.

Kai.
-- 
+ mailto:[EMAIL PROTECTED] + http://www.tu-ilmenau.de/~bond/



Catchup new messages

2000-07-17 Thread Kai Weber

Hi,

how can I change the status of a mail from New to Read? I want to have a
keybinding for automatic "catchup" all new messages if I see that they are
not interessting or if I have no time to read.

I know how to select new messages but do not find a switch for the
"read-status". Point me to the passage in the manual if it's in there. I
couldn't find it.

TIA Kai.
-- 
+ mailto:[EMAIL PROTECTED] + http://www.tu-ilmenau.de/~bond/



Cancel message writing

2000-07-17 Thread Kai Weber

Hi,

maybe I am to stupid to find it, but how can I cancel the writing of a
mail? Let's say I pressed "m" for writing a new mail or "r" for a reply
and now I find out I dont want to write the mail. Is there a shortcut to
cancel the process?

TIA Kai.
-- 
+ mailto:[EMAIL PROTECTED] + http://www.tu-ilmenau.de/~bond/