Highlit messages with specific type of attachments
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
need some help about organize message in mutt
I think I must be a newbie in mutt-user community. So, hi all. I need some help here. I want to know how to organize all the message in gmail inbox. I used to the Thunderbird email client. Frankly it's a pretty nice email client, with a cool feature call `message-filter`. It can move some messages to some mailbox according to the pattern you give it. For example, it can move all the messages whose `To` field in header contains `mutt-users@mutt.org` to a mailbox/folder call `mutt-user`. This can even automatically happed when I start Thunderbird. This help me keep my inbox clean when I have subscribed to a lot of mailing lists. But when my emails get overflow and my network connection get bad, Thunderbird would crash. Yes, it suck. That's the reason why I switch to using Mutt. I know mutt can do pretty much the same things. But I don't know how to exactly configure it. I try the instruction on the manual but thing just doesn't work. For example, in the index mode, I press `T`, and then `some-header-string`, trying to tagged all the message that are sent to `mutt-users@mutt.org`. But that doesn't work. So bad. I try some others, can't make it yet. Can anyone tell me, ** How can I have that Thunderbird message filtering in mutt?(i.e., moving some messages from inbox to other mailbox according to the `To` field or `Cc` field) ** Is those ~ in mutt's manual(~e, ~T, ~B, etc.) stand for the key?(I guess so because I have tried both `~T` and `T`, and only `T` have some effect.) If that is, seriously, why can't the author just place something like or in the manual? and what does the =, % prefix mean? Thanks, Ruan
Re: Highlit messages with specific type of attachments
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. > 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
Re: need some help about organize message in mutt
Yubin: > How can I have that Thunderbird message filtering in mutt? I have been using procmail to filter mail into different mail boxes. Then I look at those boxes with mutt under a script that opens each one. This allows me to categorize my junk mail and then move them to my main mail box if I want to keep one. https://www.google.com/?gws_rd=ssl#q=procmail Tom
Re: Highlit messages with specific type of attachments
On Mon, Aug 01, 2016 at 03:20:27PM +0200, Alexandre Delanoë wrote: > How to color with specific (not HTML or not GPG signature) file only ? I am checking the manual right now and it does not seem possible to colour the message (index view) as you would like, as there is no pattern that deals with message attachments (apart from their number/pgp).
Re: Highlit messages with specific type of attachments
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!
Re: need some help about organize message in mutt
On 01Aug2016 21:18, Yubin Ruan wrote: I think I must be a newbie in mutt-user community. So, hi all. Hi, and welcome! I need some help here. I want to know how to organize all the message in gmail inbox. I used to the Thunderbird email client. Frankly it's a pretty nice email client, with a cool feature call `message-filter`. It can move some messages to some mailbox according to the pattern you give it. For example, it can move all the messages whose `To` field in header contains `mutt-users@mutt.org` to a mailbox/folder call `mutt-user`. This can even automatically happed when I start Thunderbird. This help me keep my inbox clean when I have subscribed to a lot of mailing lists. Yes, most of us do something similar. I know mutt can do pretty much the same things. But I don't know how to exactly configure it. I try the instruction on the manual but thing just doesn't work. For example, in the index mode, I press `T`, and then `some-header-string`, trying to tagged all the message that are sent to `mutt-users@mutt.org`. But that doesn't work. So bad. I try some others, can't make it yet. "T" (upper case "t" == T) is bound to the command. Tagging is briefly described in the "Using Tags" section: http://www.mutt.org/doc/manual/#tags With , the string you type at its prompt is a pattern, documented here: http://www.mutt.org/doc/manual/#patterns If you just type a simple string such as mutt-users@mutt.org then that is considered a "simple search". These are described in the section above, under the table of modifiers. If you want to be more precise, you can use a modifier such as: ~C mutt-users@mutt.org to match messages with that in the To or CC headers. All this does is _tag_ the matching messages. You can then move them by issuing a command, bound to "s". That normally works on the current message, but you can have it work on all the tagged messages by issuing the command first, bound to ";". So typing this: ;s says to mutt that it should save all of the tagged messages to a folder. You will be proompted for that folder name. Can anyone tell me, ** How can I have that Thunderbird message filtering in mutt?(i.e., moving some messages from inbox to other mailbox according to the `To` field or `Cc` field) ** Is those ~ in mutt's manual(~e, ~T, ~B, etc.) stand for the key?(I guess so because I have tried both `~T` and `T`, and only `T` have some effect.) If that is, seriously, why can't the author just place something like or in the manual? and what does the =, % prefix mean? No, the "~" is a literal tilde character. It does _not_ mean . The ~T, ~B etc operators are "pattern modifiers" for use in expressions which match messages. So: ~f c...@zip.com.au would match any message from me ("c...@zip.com.au" in the From: header). They are case insensitive: "~t" and "~T" do different things; see the table of pattern modifiers here: http://www.mutt.org/doc/manual/#tab-patterns You can write arbitrary Boolean expressions with this stuff. Broadly: ~ introduces a pattern modifier expression, often it will accept a regular expression as its argument = a few modifers come with "=", for expressions which search on the server (== the IMAP server); they accept a fixed string, not a regular expression. % modifers which match against groups. You can define groups of mail % addresses in mutt, and ask for messages which involve those addresses. While all this lets you search for and optionally move or copy or delete etc messages, authomatic message filing is usually _not_ done by mutt itself. (Al though you could by running a few commands automatically when mutt commences, but managing that gets tedious very quickly). Normal practice for mutt users is to file messages with a separate program as they are collected. This works best with local storage: we collect our email from the server with POP or IMAP and store in local folders on our computers. We can walk you through setting up such an arrangement if you decide you want to go this way. If you're using GMail and wanting to keep your messages there I would recommend setting up filter rules in GMail itself: it is capable of autofiling new messages for you. The rules are a little crude, but they cover the common cases. Cheers, Cameron Simpson (who is actually wearing a black t-shirt today)
Re: need some help about organize message in mutt
really appreciate your help. > If you want to be more precise, you can use a modifier such as: > > ~C mutt-users@mutt.org > > to match messages with that in the To or CC headers. I have tried that, but when I press that ~ key, mutt give me some "key is not bound. Press ? for help" message.(when I say I press the ~ key, I mean I press ~ , which would give you a ~ when you do normal typing, otherwise it's just a ` ) That's weird. I have no idea why, but I guess maybe that's because of my configuration setting, part of which I copy directly from other's blog: set index_format='%-20.20L %4C [%Z] %{%b %d} %-15.15F (%?l?%4l&%4c?) %s' color index green default ~N # new color index red default ~D# deleted color index brightmagenta default ~T # tagged color index brightyellow default ~F # flagged set pager_index_lines=10 bind index,pager \Ck sidebar-prev #previous folder in sidebar bind index,pager \Cj sidebar-next #next folder in sidebar bind index,pager \CO sidebar-open #open selected folder in sidebar macro index b'toggle sidebar_visible' macro index \cb 'toggle sidebar_visible' bind index ddisplay-message bind index gg first-entry bind index Glast-entry bind index hnoop bind index lnoop that's all of my conf that are related to index view. Anything wrong ? > > Can anyone tell me, > > ** How can I have that Thunderbird message filtering in mutt?(i.e., moving > > some messages from inbox to other mailbox according to the `To` field or > > `Cc` > > field) > > ** Is those ~ in mutt's manual(~e, ~T, ~B, etc.) stand for the > > key?(I guess so because I have tried both `~T` and `T`, and only > > `T` > > have some effect.) If that is, seriously, why can't the author just place > > something like or in the manual? and what does the =, % > > prefix mean? > > No, the "~" is a literal tilde character. It does _not_ mean > . The ~T, ~B etc operators are "pattern modifiers" for use in > expressions which match messages. So: > > ~f c...@zip.com.au > > would match any message from me ("c...@zip.com.au" in the From: > header). They are case insensitive: "~t" and "~T" do different > things;> ~f doesn't work either, because the ~ is not bound(as described above) > Normal practice for mutt users is to file messages with a separate > program as they are collected. This works best with local storage: > we collect our email from the server with POP or IMAP and store in > local folders on our computers. We can walk you through setting up > such an arrangement if you decide you want to go this way. If there's some common practice I would really appreciate to hear some. Figuring it out myself is kind of hard. > If you're using GMail and wanting to keep your messages there I > would recommend setting up filter rules in GMail itself: it is > capable of autofiling new messages for you. The rules are a little > crude, but they cover the common cases. Does gmail really have that filter-move functionality? I have searched through nearly all of gmail's setting, but all I can find is something that only let you filter the inbox and get a clean view. It can't move the messages that have been filtered out to other mailbox. Or do I miss something? > who is actually wearing a black t-shirt today black t-shirt is cool, I like it and wear it every day :-) regards, Ruan