about summary refs log tree commit diff stats
BranchCommit messageAuthorAge
bongkeys: st-xterm compatAcid Bong21 months
masterbump version to 6.4Hiltjo Posthuma2 years
musldmenumon fixAcid Bong21 months
 
TagDownloadAuthorAge
6.4dwm-6.4.tar.gz  Hiltjo Posthuma2 years
6.3dwm-6.3.tar.gz  Hiltjo Posthuma3 years
6.2dwm-6.2.tar.gz  Anselm R Garbe6 years
6.1dwm-6.1.tar.gz  Hiltjo Posthuma9 years
6.0dwm-6.0.tar.gz  anselm@garbe.us13 years
5.9dwm-5.9.tar.gz  garbeam@gmail.com13 years
5.8.2dwm-5.8.2.tar.gz  Anselm R Garbe14 years
5.8.1dwm-5.8.1.tar.gz  Anselm R Garbe14 years
5.8dwm-5.8.tar.gz  anselm@garbe.us14 years
5.7.2dwm-5.7.2.tar.gz  Anselm R Garbe15 years
5.7.1dwm-5.7.1.tar.gz  Anselm R Garbe15 years
5.7dwm-5.7.tar.gz  Anselm R Garbe15 years
5.6.1dwm-5.6.1.tar.gz  Anselm R Garbe15 years
5.6dwm-5.6.tar.gz  Anselm R Garbe15 years
5.5dwm-5.5.tar.gz  Anselm R Garbe16 years
5.4.1dwm-5.4.1.tar.gz  a@null16 years
5.43.1dwm-3.1.tar.gz  Anselm R. Garbe18 years
3.0dwm-3.0.tar.gz  Anselm R. Garbe18 years
2.9dwm-2.9.tar.gz  Anselm R. Garbe18 years
2.8dwm-2.8.tar.gz  arg@mig2918 years
2.7dwm-2.7.tar.gz  arg@mig2918 years
2.6dwm-2.6.tar.gz  arg@mig2918 years
2.5.1dwm-2.5.1.tar.gz  arg@mig2918 years
2.5dwm-2.5.tar.gz  arg@mig2918 years
2.4dwm-2.4.tar.gz  arg@mig2918 years
2.3dwm-2.3.tar.gz  arg@mig2918 years
2.2dwm-2.2.tar.gz  arg@mig2918 years
2.1dwm-2.1.tar.gz  arg@mig2918 years
2.0dwm-2.0.tar.gz  arg@mig2918 years
1.9dwm-1.9.tar.gz  Anselm R. Garbe18 years
1.8dwm-1.8.tar.gz  Anselm R. Garbe18 years
1.7.1dwm-1.7.1.tar.gz  Anselm R. Garbe18 years
1.7dwm-1.7.tar.gz  arg@mmvi18 years
1.6dwm-1.6.tar.gz  arg@mmvi18 years
1.5dwm-1.5.tar.gz  Anselm R. Garbe18 years
1.4dwm-1.4.tar.gz  Anselm R. Garbe18 years
1.3dwm-1.3.tar.gz  Anselm R. Garbe18 years
1.2dwm-1.2.tar.gz  Anselm R. Garbe18 years
1.1dwm-1.1.tar.gz  Anselm R. Garbe18 years
1.0dwm-1.0.tar.gz  Anselm R. Garbe18 years
0.9dwm-0.9.tar.gz  Anselm R.Garbe18 years
0.8dwm-0.8.tar.gz  Anselm R.Garbe18 years
0.7dwm-0.7.tar.gz  arg@10ksloc.org18 years
0.6dwm-0.6.tar.gz  arg@10ksloc.org18 years
0.5dwm-0.5.tar.gz  arg@10ksloc.org18 years
0.4dwm-0.4.tar.gz  arg@10ksloc.org18 years
0.3dwm-0.3.tar.gz  arg@10ksloc.org18 years
0.2dwm-0.2.tar.gz  Anselm R. Garbe18 years
0.1dwm-0.1.tar.gz  Anselm R. Garbe18 years
="p">{ if template != "" { original.From = models.FormatAddresses(msg.Envelope.From) original.Date = msg.Envelope.Date.Format("Mon Jan 2, 2006 at 3:04 PM") } composer, err := widgets.NewComposer(aerc, acct, aerc.Config(), acct.AccountConfig(), acct.Worker(), template, defaults, original) if err != nil { aerc.PushError("Error: " + err.Error()) return nil, err } tab := aerc.NewTab(composer, subject) if to == "" { composer.FocusRecipient() } else { composer.FocusTerminal() } composer.OnHeaderChange("Subject", func(subject string) { if subject == "" { tab.Name = "New email" } else { tab.Name = subject } tab.Content.Invalidate() }) return composer, nil } if attach { tmpDir, err := ioutil.TempDir("", "aerc-tmp-attachment") if err != nil { return err } tmpFileName := path.Join(tmpDir, strings.ReplaceAll(fmt.Sprintf("%s.eml", msg.Envelope.Subject), "/", "-")) store.FetchFull([]uint32{msg.Uid}, func(fm *types.FullMessage) { tmpFile, err := os.Create(tmpFileName) if err != nil { println(err) // TODO: Do something with the error addTab() return } defer tmpFile.Close() io.Copy(tmpFile, fm.Content.Reader) composer, err := addTab() if err != nil { return } composer.AddAttachment(tmpFileName) composer.OnClose(func(composer *widgets.Composer) { os.RemoveAll(tmpDir) }) }) } else { if template == "" { template = aerc.Config().Templates.Forwards } // TODO: add attachments! part := findPlaintext(msg.BodyStructure, nil) if part == nil { part = findFirstNonMultipart(msg.BodyStructure, nil) if part == nil { part = []int{1} } } store.FetchBodyPart(msg.Uid, part, func(reader io.Reader) { buf := new(bytes.Buffer) buf.ReadFrom(reader) original.Text = buf.String() addTab() }) } return nil }