Automatically pipe mails Thread by thread

2012-02-13 Thread Alexandre
Dear Mutt users,

Everything is in the title. 

Do you have any idea how I could do such trick ?

Is it possible ?

Many thanks.

-- 
Alexandre Delanoë


Re: Automatically pipe mails Thread by thread

2012-02-14 Thread Alexandre
Hi,
It should be a macro like this:

macro index,pager  
"~/.mutt/script.sh~T\n"

But how I could write a loop for each thread such as it would avoid
pressing  key ? 

Many thanks for help,

-- 
Alexandre Delanoë


[Mutt && Postfix] how to defer transport ?

2012-06-28 Thread Alexandre
Dear mutt users,
I think the answer depends on postfix but a mutt configuration may be
usefull.

I have some trouble with "defer_transports = smtp" configuration
in /etc/postfix/main.cf (Debian stable). If I 
1) defer transport
2) send some mails with mutt
3) back to relayhost = smtp.whatever.com, 
4) sudo postqueue -f

=> Some mails are not sent without any error messages (I have to
test in /var/log/mails.log). 

How do you defer transport with mutt ?

One precision: "defer transport" != "postponed mail"

Cheers,

-- 
Alexandre Delanoë


Attachment signal

2013-11-19 Thread Alexandre
Hello,
using mutt every day with many mails, I sometimes do not see that some
mails have attachment(s).

In practice, do you have any tips to signal there is any attachment to
emails ?

Some "ergonomic" options:
- adding tag in Index
- adding tag in headers (to show in mutt)
- others ?

Many thanks for sharing your ideas.

-- 
Alexandre Delanoë


Re: Attachment signal

2013-11-19 Thread Alexandre
Hello all,
many thanks for your replies/comments.


Année 2013, mardi 19 novembre, vers 10:23, Suvayu Ali écrivait:
> I use the following as my index_format:
>   "%4C %Z %?X?@& ? %{%b %d} %-15.15n (%?M?»%3M&%4c?) %s"

This solution is fine for me.

> Hope this helps,

Sure!

Have a nice day.

-- 
Alexandre Delanoë


Re: Finding messages from one person replied to by another?

2009-01-19 Thread Alexandre
Hello,

i am using mairix and would like to improve a mutt macro:

# Mairix
macro generic f "mairix " "search via mairix"
# Load the results mailbox
macro generic ,f "=xmairix" "load the search 
results mailbox"

In fact, i would like to have only one macro which search via mairix and
which load the search results after.

Do you have any idea how i could do that?

thank you.

Alexandre

-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


Re: Archiving

2009-02-17 Thread Alexandre
Le jeudi 12 février de l'année 2009, vers 18 heures et 07 minutes, Michael 
Pobega écrivait:
> I use archive-mail in a Cronjob. It checks by date, so for high traffic
> mailing lists I have it archiving mail 15 days old, and for low traffic
> mailing lists 30 days, etc.

Hi, i use archive-mail too. But how do you search in you archives?
Sincerely, i have some problems with mairix... even if i can open
folder.gz and search with mutt after.

Then archive-mail i a good solution for me too but i am still looking
for a better solution to search mails.

-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


Re: Archiving

2009-02-17 Thread Alexandre
Le mercredi 18 février de l'année 2009, vers 10 heures et 46 minutes, Cameron 
Simpson écrivait:
> Maybe you should detail your problems. I use mairix to search archived
> email via a wrapper script that invoked mutt on the mairix result folder
> after the search. Add a cron job to re-index the archives nightly or
> whenever and it's fairly good.

In fact, after mairix research if x messages match, links in my mairix
box seem not to be updated (no message in the box). Then, i think, it
could be a re-index problem indeed; as you mention it. And cron job must
be a solution to avoid such mistake. Thank you for reply. If problem
persists i'll come back with more precisions. If not, archive-mail and
mairix could be a good solution for archieving.

-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


Re: Scoring

2009-02-17 Thread Alexandre
Le vendredi 13 février de l'année 2009, vers 22 heures et 10 minutes, Chris 
Willard écrivait:
> Hello All,
> 
> Can someone please explain how scoring works for a beginner? I belong
> to a few mailing lists and some of them have quite a lot of messages.
> 
> As I understand it I can use scoring to filter the messages but I am
> not sure of how to do this and how scoring works!
> 
> Any help would be appreciated.
> 
> Regards,
> 

Hi,

i have that in ~/.muttrc, maybe you could try it:

# to sort mails according score
folder-hook . set sort_aux=score

# best score for my family...
score "~f fam...@family.org" 10

#more examples:
# Add a point to GPG signed messages
score "~g" 1

## Add a point to GPG encrypted messages
score "~G" 1

## Add a point to Flagged messages
score "~F" 1

## Add a point to messages from a known mailing list-
## * Use the, `subscribe' and `lists' command to tell mutt about lists
score "~l" 1

## Add a point to old (unread) messages
score "~O" 1

## Add a point to messages addressed to you-
score "~p" 1

## Add a point to messages from you
score "~P" 1

## Add a point to messages you replied to (using mutt)
score "~Q" 1

## Add a point to read messages
score "~R" 1

## Add a point to messages less than 80,000 bytes-
score "~z 0-8" 1

#If you want to see scoring in messages:
set index_format="%4C %2N %Z %{%b %d} %-15.15F %s"


Alexandre
-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


Re: Archiving

2009-02-19 Thread Alexandre
Le jeudi 19 février de l'année 2009, vers 11 heures et 35 minutes, Michael 
Pobega écrivait:
> I don't understand your problem exactly -- Mutt opens the archive.gz
> files just fine, and I use Mutt to sort and search through the e-mails.

I do the same in general but I have a mailbox with almost 200 000 mails
(250 mo). Then I create one archive.gz with archive-mail. After that, I
can search with mairix throw _different_ mails box (not only one).

That's how I proceed.

PS: my problem was due to a mairix update. This soft is efficient even
if I would like more regular expressions in such search engine.

--
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


Re: open a browser

2009-03-03 Thread Alexandre
Le dimanche 01 mars de l'année 2009, vers 18 heures et 38 minutes, Andreas 
Kalex écrivait:
> * Rado S  wrote on 27.02.2009 at 16:15:
> > Use a dispatcher script in mailcap which prompts you for your choice.

Could you share your script please?
Thank you.
-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


How to delete...

2009-03-05 Thread Alexandre
Hi all!
How to delete all mails that have same subject with mutt? In fact I have
some rss feeds that are duplicated. Then, i could do such thing in bash
but, I would like to know if there is any _existing_solution with mutt.
Thank for advice.
-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


Re: How to delete...

2009-03-05 Thread Alexandre
Thank you for your answers. In fact, i knew that with T or D, i could
select or delete messages depending on the regex. But i have a lot of
duplicate mails (because of feeds); regex change every time. Then, i
would need a regex of regex. Precisely a bash script seems to be needed.

Thank you for help again.
-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


Re: How to delete...

2009-03-06 Thread Alexandre
Le vendredi 06 mars de l'année 2009, vers 12 heures et 59 minutes, Christian 
Ebert écrivait:
> Have you actually tried the ~= pattern?
> 
> It deletes not based on subject but messages with same id, iirc.
> Might well be enought for your purpose.

Id changes every time, i have already configured my procmailrc as this:

:0 Whc: msgid.lock
| formail -D 8192 msgid.cache
:0 a:
$HOME/mail/-duplicatas

The Subject is the only one "id" that still is the same.

-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


Re: How to delete...

2009-03-10 Thread Alexandre
Le lundi 09 mars de l'année 2009, vers 07 heures et 45 minutes, Mario
Martínez écrivait:
> I know there is another way using formail and procmail, but right now
> I don't remember exactly how it works. Sorry :(

Thank you for help. It will be useful.

-- 
---()()()()()()()()()--)()()()()()()()()(---
-()()--()-()-()()--)()(-)(-)(--)()(-
()()()()()()()())()()()()()()()(


mutt-users@mutt.org

2009-06-17 Thread Alexandre
Hello,

I tag a mail with "t" and attach it to a thread with "&". After that
i quit mutt saving changes. I open my mail box with mutt again but my
thread is not saved. How to save this ?
Thx
-- 
Alexandre Delanoë


mutt-users@mutt.org

2009-06-18 Thread Alexandre
Le jeudi 18 juin de l'année 2009, vers 08 heures et 15 minutes, Alexandre 
Delanoë écrivait:
> Hello,
> 
> I tag a mail with "t" and attach it to a thread with "&". After that
> i quit mutt saving changes. I open my mail box with mutt again but my
> thread is not saved. How to save this ?

I noticed that it only happen when I attach mails that are not supposed
to be in the thread. In fact I make groupe of discussions.

Is there any means with mutt for such issue ?

Cheers.
-- 
Alexandre Delanoë


mutt-users@mutt.org

2009-06-18 Thread Alexandre
Le jeudi 18 juin de l'année 2009, vers 14 heures et 53 minutes, Rocco Rutte 
écrivait:
> Hi,
> 
> * Alexandre wrote:
> 
> > I tag a mail with "t" and attach it to a thread with "&". After that
> > i quit mutt saving changes. I open my mail box with mutt again but my
> > thread is not saved. How to save this ?
> 
> With what type of folder? Header caching enabled?

It is maildir folder.
I have this mutt version 1.5.18-6+b1 on Debian (testing) system.

I do not know if Header caching is enabled on this version.

-- 
Alexandre Delanoë


mutt-users@mutt.org

2009-06-20 Thread Alexandre
Le vendredi 19 juin de l'année 2009, vers 14 heures et 45 minutes, Rocco Rutte 
écrivait:
> * Alexandre wrote:
> > I do not know if Header caching is enabled on this version.
> 
> You can check that by issueing ':set ?header_cache' within mutt. The
> problem is (for the latest version: was) that mutt only cached the
> headers one time when it first sees a message. If you change headers
> afterwards, mutt won't notice as it'll always pull the unedited cached
> version. So you need to remove the header cache for that folder after
> you edited threads.

Yes! It does work.

-- 
Alexandre Delanoë


Charset PB

2009-06-30 Thread Alexandre
Hi,
"é" appear like : "\303^Hé^H\251"

I notice this only happen with mails from apple mailer (I do not know if
it depends on my own configuration).

More information dealing the mail:
Content-Type: text/enriched;
charset=ISO-8859-1

My mutt version :1.5.18-6+b1

I have set utf8 charset in my muttrc. If I comment it, it is the same.

I would like to know if I have to configure my muttrc or mailcap. And
how?

Thank you for help.
-- 
Alexandre Delanoë


Re: Charset PB

2009-07-01 Thread Alexandre
Le mercredi 01 juillet de l'année 2009, vers 11 heures et 13 minutes, Rocco 
Rutte écrivait:
> Hi,
> 
> * Alexandre wrote:
> 
> > "é" appear like : "\303^Hé^H\251"
> > 
> > I notice this only happen with mails from apple mailer (I do not know if
> > it depends on my own configuration).
> > 
> > More information dealing the mail:
> > Content-Type: text/enriched;
> > charset=ISO-8859-1
> 
> Likely this is mutt's fault. It should be fixed in the latest version,
> 1.5.20. Can you give that a try?
> 
> text/enriched allows for some text attributes such as bold and
> underline, the é in your example should be printed bold.

Thank you Rocco for your answer.

As I use debian testing system, this mutt version is not available yet.

I will wait because this failure is not urgent. 

Cheers.
-- 
Alexandre Delanoë


Re: Colors in quoted *replies*

2009-08-20 Thread Alexandre
Le jeudi 20 août de l'année 2009, vers 10 heures et 17 minutes, steve écrivait:
> Well that's done since ages but doesn't help here, all quoted lines are
> in the same color. 

Salut Steve,
and with colorsheme option  in vimrc ?

-- 
Alexandre Delanoë


gdbm fatal: read error

2010-02-10 Thread Alexandre
Hello,

I have installed mutt 1.5.18-6 on a 2.6.18-xenU kernel (Debian stableà
with my ~/.mutt* configuration files that works on others boxes. But if
I open ~/mail/inbox (maildir) which was created by procmail, I have a
gdbm fatal: read error. Any idea(s) to solve this issue ?

May be should I upgrade mutt ?
Thank you for help.

-- 
Alexandre Delanoë


Re: gdbm fatal: read error

2010-02-10 Thread Alexandre
Le jeudi 11 février de l'année 2010, vers 06 heures et 40 minutes, Michael 
Tatge écrivait:
> * On Wed, Feb 10, 2010 12:24PM +0100 Alexandre (neonoe123...@gmail.com) 
> muttered:
> > I have installed mutt 1.5.18-6 on a 2.6.18-xenU kernel (Debian stableà
> > with my ~/.mutt* configuration files that works on others boxes. But if
> > I open ~/mail/inbox (maildir) which was created by procmail, I have a
> > gdbm fatal: read error. Any idea(s) to solve this issue ?
> 
> Maybe deleting the header cache helps?
> 
> HTH,

Exactly!
Thank you Michael, I did not think about it.
YIH (Yes It Helped)

-- 
Alexandre Delanoë


send-hook and forward_format

2010-03-02 Thread Alexandre
Hi,
I want to set forward_format when I send mail to XXX.

Then, my muttrc should be something like this:
send-hook ^.*XXX.*$ 'set forward_format="[TAG] %s"'

But my forward_format is still like this:
set forward_format="[%a: %s]"
(actually in results of my tests.)

How do you customize this ?

Thank you for advices.
-- 
Alexandre Delanoë


Re: send-hook and forward_format

2010-03-11 Thread Alexandre
Le jeudi 11 mars de l'année 2010, vers 01 heures et 17 minutes, E. Prom 
écrivait:
> 
> Have you found the solution?

Not really, I found another way:

macro index,pager z ":set mime_forward=no\n:set forward_format='[TAG]'\n:set 
mime_forward_decode=no\n"

> Is it the regexp or the set that fails?

I think that the set fails.

-- 
Alexandre Delanoë


Re: send-hook and forward_format

2010-03-11 Thread Alexandre
Le jeudi 11 mars de l'année 2010, vers 11 heures et 08 minutes, Alexandre 
Delanoë écrivait:
> Le jeudi 11 mars de l'année 2010, vers 01 heures et 17 minutes, E. Prom 
> écrivait:
> > 
> > Have you found the solution?
> 
> Not really, I found another way:
> 
> macro index,pager z ":set mime_forward=no\n:set forward_format='[TAG]'\n:set 
> mime_forward_decode=no\n"


New set seems to work:
send-hook ^.*adresses.*$ "set forward_format='[TAG]'"

> > Is it the regexp or the set that fails?
> 
> I think that the set fails.

Not really indeed.

send-hook does not match aliases but only e-mail adress ?
For example, be aliases:
alias test TEST 
send-hook ^.*TEST.*$ "set forward_format='[TAG]'"
does not match the alias...

How to configure it ?

Thank you for help.

-- 
Alexandre Delanoë


Re: send-hook and forward_format

2010-03-24 Thread Alexandre
Le dimanche 14 mars de l'année 2010, vers 21 heures et 04 minutes, Michael 
Elkins écrivait:
> send-hook's will not match the alias name, but it will match what the
> alias expands to.  Alias expansion occurs prior to send-hook's being
> executed.

ok

> The problem here is that $forward_format is expanded *prior* to the
> send-hook's executing, so it is not currently possible to change the
> forward subject based on the recipients.

Thank you for this explanation.

Then I am coding a macro.

-- 
Alexandre Delanoë


Macro: pipe message and forward it

2010-03-24 Thread Alexandre
Dear mutt-users,
how could I pipe message, grep some patterns, and forward the results ?

I have already written this macro:

macro index,pager z ":set mime_forward=no\n:ignore *\n:unignore
subject\ngrep -v SomePatterns\n"

With ignore and unignore I can select headers I want to forward.
But the message need to be cleaned with some bash scripts (like grep -v
^patterns).

Do you have any idea how I could write this macro ?

Thank you.

-- 
Alexandre Delanoë


Scoring threads

2011-04-12 Thread Alexandre
Hi
Scoring on Subjects and From headers is nice enough (man muttrc), but
how to score this:

- if you're really interested in what a person has to say only when
she's talking about a particular subject

- if you really don't want to read what person A has to say when she's
following up to person B, but want to read what she says when she's
following up to person C

Indeed, there are solutions with emacs: 
http://www.gnu.org/software/emacs/manual/html_node/gnus/Advanced-Scoring.html#Advanced-Scoring

But how to do this with mutt ?

Many thanks for sharing your ideas on this issue.

-- 
Alexandre Delanoë


Re: Scoring threads

2011-04-14 Thread Alexandre
Many thanks for your answer. One more question though:

Le mercredi 13 avril de l'année 2011, vers 09 heures et 39 minutes, Michael 
Elkins écrivait:
> >- if you really don't want to read what person A has to say when she's
> >following up to person B, but want to read what she says when she's
> >following up to person C
> 
> This is tricky, at least with mailing lists.  Mutt can't match on a
> message that the current message *refers* to, but if the Alice is
> following up to Eve, and Eve's email address appears in the recipient
> list, you can do something like this:
> 
> ~f alice ~C eve
> 
> Or if you want all Alice's replies, except when responding to Bob:
> 
> ~f alice !~f bob

Suppose you want to score all threads with this form:
A>B>A>B
without any specifications about the name of authors.

Is it possible ?

-- 
Alexandre Delanoë


Howto save sent-replied-message in current mail-folder

2011-06-14 Thread Alexandre
Hello all,
suppose these cases:

1) I am in my personal-inbox/
2) I reply to a message from my personal network
3) then the message I wrote is saved in personal-inbox
4) I have my thread including my message

Other case:
1) I am in my work-box/
2) I reply to my colleagues
3) then the message I have written is saved in work-box/
4) I have my thread including my message

Finally the question is : howto to hack "set record=+sent" ?

Many thanks for sharing your tricks/ideas.

-- 
Alexandre Delanoë


Re: Howto save sent-replied-message in current mail-folder

2011-06-14 Thread Alexandre
Le mardi 14 juin de l'année 2011, vers 17 heures et 25 minutes, Stefan Wimmer 
écrivait:
> set record="^"

^^


> should do the trick 

but..

It does not work with my configuration.

Does it with yours ?



-- 
Alexandre Delanoë


Re: Howto save sent-replied-message in current mail-folder

2011-06-14 Thread Alexandre
Le mardi 14 juin de l'année 2011, vers 17 heures et 54 minutes, Stefan Wimmer 
écrivait:
> Certainly it does otherwise I'd not propose it ;-)

Sure,

> Though I use
> 
> folder-hook  . 'set record="^"'
> 
> since my config is based on folders 

That is the complete trick which works with my configuration as well.

Many thanks.

-- 
Alexandre Delanoë


Re: automatically delete duplicate email ... is it possible ? [SEC=UNCLASSIFIED]

2011-07-07 Thread Alexandre
Le vendredi 08 juillet de l'année 2011, vers 11 heures et 14 minutes, 
Wilkinson, Alex écrivait:
> Hi all,
> 
> I often find my self using "D ~= $" (manually) to delete duplicate email from 
> my
> mailing lists mailboxes. Can anyone recommend a way to have this automagically
> done for me ?

If you use procmail, just add this in your ~/.procmailrc


:0 Whc: msgid.lock
| formail -D 8192 msgid.cache
:0 a:
$HOME/mail/-duplicatas

Hope that helps

-- 
Alexandre Delanoë


Subfolder with mutt ?

2013-06-27 Thread Alexandre Delanoë
Dear Mutt Users,
do you have any solutions for such issue :
http://dev.mutt.org/trac/wiki/ExtendedMaildirFormat

Indeed, I wonder how to display folder and subfolder view in my sidebar.

Many thanks for your tricks,
Alexandre




Highlit messages with specific type of attachments

2016-08-01 Thread Alexandre Delanoë

Hello,

one can color message in index according to its number of attachments:

color index black red "~X1"

How to color with specific (not HTML or not GPG signature) file only ?

Thanks for help.
Cheers,
Alexandre




Re: Highlit messages with specific type of attachments

2016-08-01 Thread Alexandre Delanoë
Le 01 août 16, vers 16:25, Andreas Doll ecrivait:
> On 2016-08-01 at 15:20, Alexandre Delanoë wrote:
> > one can color message in index according to its number of attachments:
> > color index black red "~X1"
> By the way, you can also use "~X 1-" to color mails with one or more
> attachments.

Indeed.

> > How to color with specific (not HTML or not GPG signature) file only ?
> 
> If your goal is not to color mails with specific attachment types, but rather
> to exclude HTML and GPG attachments from coloring, have a look at [1] to
> exclude those from attachment counting and use it in combination with the
> above.
> 
> 
> Best regards,
> Andreas
> 
> [1] http://www.mutt.org/doc/devel/manual/#attachments

Yes, it works as expected. Thanks!




next-unread-mailbox but taking into account Old messages as well?

2009-08-25 Thread Pierre-Alexandre Meyer
Good evening,

  Is there an equivalent to next-unread-mailbox but that goes to the
next Mailbox with Old messages as well?

My use case is the following: when listing my Maildirs via IMAP, E-Mail Clients
like Evolution, Mail.app (OS X), ... mark by default messages as "Seen" and 
append
the Maildir S flag. My guess is that the application actually reads the 
messages in
order to generate a preview (first few words of the email on the iPhone
for instance).

The right fix would be to disable this behavior in these applications, so
that when I read the Maildir locally, mutt doesn't interpret these
messages as Old. That is not always possible unfortunately. As a workaround,
I'd like to have a next-unread-or-old-mailbox function that allows me to
go through all my (actually) unread emails.

If it doesn't exist, would a patch implementing this function be
acceptable?

Thanks,

-- 
Pierre-Alexandre Meyer