Hi didi, Christian Dietrich wrote: > I added today a :message command which opens a new compose window. It > takes a few arguments, which will be filled in the new compose window.
Great! Commited. > The command takes the following arguments, where all recipients are > filled into the to header, all attachments are added, of course only if > they exist, and the body text can also be preset. > > :m[essage] [-subject="hello world"] [-bcc=...] [-cc=] [-attachment > file,file] [-text="hello\n\nbye"] [EMAIL PROTECTED] [EMAIL PROTECTED] I am not fully sure, if spaces are the best way to separate recipients or if commas would be better (similar to vimperator's :open). For now I think spaces are much easier, becasue that's handled by the args parser. > I also mapped `m', so that it opens a command line ":message ", the > really new mapping `M', which opened a new composing window, with the > sender of the marked message as receiver, was also mapped, that it opens > only a command line (e.g. `:message [EMAIL PROTECTED]') Works mostly, apart that for some message, i get: :message ""Binder Philipp" <[EMAIL PROTECTED]>" which does not work correctly, I think just stripping existing " is the best solution, so it becomes: :message "Binder Philipp <[EMAIL PROTECTED]>" This will also be important for completion of the addressbook. Not a big deal however, if i find time, i could fix it myself, but that will only be on Monday at earliest. > It would IMHO also be really cool, to open the compose window as a tab, > but i searched the thunderbird source and I don't found out, how this > works ( I've really little experience in writing thunderbird/firefox code ). I agree it would be cool, but that could also be postponed a little. > I think i will work on an addressbook completion for :message the next > days, if i find the time for it. Cool! Please try to make it a little generic, because I plan to add a :contacts <filter> command to list addresses, similar to :bmarks in vimperator. But great patch, finally muttator is really shaping up to what it should be. And you have to agree, hacking on it is certainly easier than with mutt :) -- Martin _______________________________________________ Muttator mailing list [email protected] https://www.mozdev.org/mailman/listinfo/muttator
