Re: need some help about organize message in mutt
On Thu, Aug 04, 2016 at 10:38:49AM +1000, c...@zip.com.au wrote: > On 04Aug2016 07:52, Yubin Ruanwrote: > >Fortunately, after a few googling and combining all those info I > >have gathered, > >I find something like this: > > > >push > >'~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy' > > I would be inclined to replace the ";" with "" and the > "s" with "". Just to make it all clear, and to avoid > damage by any macro definition you might make. I tend to either > spell it all out with or (for very short macros) to be > entirely keystrokes (I have a couple of macros for the "message" > view that are just bound to "q" and the same thing in the index view > i.e. "quit the message view and do what would happen in the index > view". > > >I put this in my .muttrc, and every time I open mutt, it would automatically > >move all the messages which are `To: mutt-users@mutt.org` or `Cc: > >mutt-users@mutt.org` to the mutt-users folder. Although it does it remotely, > >which would slow thing down when the network connection is not so good, > > You might be surprised. If all the work is being done by the imap > server and the messages are not being pulled down to mutt and pushed > back up things should be pretty fast even on a poor connection. That trick did work, but there still exists some problems when I put more than one `push` command in my .muttrc: push '~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy' push '~cmutt-...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-devy' push '~f' ... (just as an example) It seem like that the `push` command would not block when the preceding one is not finished, which result in that those tagged message would NOT be saved to the appropriate folder. That means, for example, those mails that belong to `mutt-users` folder would now be saved to the `mutt-dev` folder, which is probably because the second `push` take effect before the first one can finish and the first never get a chance to take effect. any idea? regards, Ruan On Thu, Aug 4, 2016 at 8:38 AM, wrote: > On 04Aug2016 07:52, Yubin Ruan wrote: >> >> Fortunately, after a few googling and combining all those info I have >> gathered, >> I find something like this: >> >> push >> '~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy' > > > I would be inclined to replace the ";" with "" and the "s" with > "". Just to make it all clear, and to avoid damage by any > macro definition you might make. I tend to either spell it all out with > or (for very short macros) to be entirely keystrokes (I have a couple > of macros for the "message" view that are just bound to "q" and the same > thing in the index view i.e. "quit the message view and do what would happen > in the index view". > >> I put this in my .muttrc, and every time I open mutt, it would >> automatically >> move all the messages which are `To: mutt-users@mutt.org` or `Cc: >> mutt-users@mutt.org` to the mutt-users folder. Although it does it >> remotely, >> which would slow thing down when the network connection is not so good, > > > You might be surprised. If all the work is being done by the imap server and > the messages are not being pulled down to mutt and pushed back up things > should be pretty fast even on a poor connection. > >> I pretty >> satisfied with this. Although something like procmail of offline-mail >> would make >> thing faster, that would make it much complicated for now, so I would >> rather >> settle down. > > > Indeed. Get comfortable before making your life even more complex. > > Cheers, > Cameron Simpson
Re: need some help about organize message in mutt
On 04Aug2016 07:52, Yubin Ruanwrote: Fortunately, after a few googling and combining all those info I have gathered, I find something like this: push '~cmutt-us...@mutt.org;simaps://ablacktsh...@imap.gmail.com/mutt-usersy' I would be inclined to replace the ";" with "" and the "s" with "". Just to make it all clear, and to avoid damage by any macro definition you might make. I tend to either spell it all out with or (for very short macros) to be entirely keystrokes (I have a couple of macros for the "message" view that are just bound to "q" and the same thing in the index view i.e. "quit the message view and do what would happen in the index view". I put this in my .muttrc, and every time I open mutt, it would automatically move all the messages which are `To: mutt-users@mutt.org` or `Cc: mutt-users@mutt.org` to the mutt-users folder. Although it does it remotely, which would slow thing down when the network connection is not so good, You might be surprised. If all the work is being done by the imap server and the messages are not being pulled down to mutt and pushed back up things should be pretty fast even on a poor connection. I pretty satisfied with this. Although something like procmail of offline-mail would make thing faster, that would make it much complicated for now, so I would rather settle down. Indeed. Get comfortable before making your life even more complex. Cheers, Cameron Simpson
Re: need some help about organize message in mutt
On Wed, Aug 03, 2016 at 03:03:17PM +1000, c...@zip.com.au wrote: > On 02Aug2016 08:05, Yubin Ruanwrote: > >>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 ` ) > > Ah. The string above is a pattern expression. It is only meaningful > at the prompt for or or searching. So what I > should have asked you to type was: > > T~C mutt-users@mutt.org > > so that the "T" () opens the prompt requesting a > pattern, and only _then_ do you type the pattern "~C > mutt-users@mutt.org". > > You might also want to experiment with "l" (), which > restricts your view of the mailbox to just the messages matching a > pattern. This will give you an easy way to experiment with patterns, > and is also a handy way to locate particular messages in a large > mailbox. Use the pattern "." to undo a "limit": that is a regexp for > "any character", and effectively matches every message. I have to say that `T~C mutt-users@mutt.org` have make my life a lot easier. Thanks! > > >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 ? > > There's nothing wrong there, but I would feel unhappy about the "d" > macro above. Normally "d" is bound to , so if you > every open someone else's mutt, or open your own but bypassing the > configuration above (which sometimes one wants to do), then "d" can > easily lead to accidental deletion of messages. > > Normally will display a message, and i would advocate > removing your "d" macro and just using . Safer all around. yes, I think you are right. I'm kind of mixing all those stuff now... > >>> 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) > > The simplest way to do that would be as you imagined: > > - tag the messages you want to move, for example by typing: > > T~C mutt-users@mutt.org > > - move ("save" in mutt parlance) these messages to another folder. > > The key "s" is bound to . Normally that operates on > the current message. What you want is to operate on all the tagged > messages. This is done by prefixing the command with ";" which is > bound to . You can do this with many operations (copy, > delete, etc). So type: > > ;s > > meaning . This will prompt you for a folder name > for the messages. > > > > >If there's some common practice I would really appreciate to hear some. > >Figuring > >it out myself is kind of hard. > > The practice varies very widely. > > Many people use mutt to connect directly to IMAP servers such as GMail. > > Alternatively, you arrange to collect your email from such servers > (or your ISP's POP service, etc) and store it locally. Then use mutt > to browse the local folders. Note here that mutt tends not to do the > collecting, though it has pop and imap services and you _can_ > collect with mutt. > > Of course, you can use mutt to connect to an IMAP service and copy > messages to local folders or vice versa. > > Finally, there is some middle group. Using tools like offline-imap > you can mirror your IMAP service (GMail) to local folders and use > mutt locally. This has some advantages: > > - you have local email, which you can browse and read and reply to > if you areoffline, such as I am on a train with only my laptop > > - you still have your IMAP service which you can access with a > normal GUImail client (TBird, Apple Mail, etc) or via the web > (mail.google.com) orfrom your phone > > Essentially mutt is a mail reader which will talk to local folders > and/or
folder-hook and mutt -f flag
Hello, When I open a mailbox with `mutt -f mailbox` none of folder-hook's is executing. Is there a way to make them run? And a second question: when I exit mutt, usually by pressing CTRL-C, the mailbox is not saved, i.e. if I don't save it explicitly I loose flags that were set, for example that a message was read. Is there a way to save a mailbox by default on exit. Thanks for help, Marcin signature.asc Description: Digital signature
Keeping mutt updated with isync
Hi, I would like to use isync to keep my local changes updated on the server as soon as a change is made, but only for the folders that are modified. This way, my co-workers can immediately be notified when I send mail or move mail for shared email addresses. Doing a full mbsync takes too long with hundreds of folders. Since all new mail arrives in INBOX (or spam), I have a systemd timer that runs mbsync for only those channels. This effectively keeps my client updated. To update my sent mail on the server, it would be easy if I had a Sent folder, as I would only have to update that one folder in a send-hook. However, I save replies in the same folder as the source to keep threads intact. I also move mail frequently after it arrives in my INBOX. Is there a way to mbsync only the changed folder using send hooks and folder hooks? -Allan