summary refs log tree commit diff stats
path: root/widgets/msgviewer.go
Commit message (Collapse)AuthorAgeFilesLines
* Select user's preferred mimetype in MessageViewerClayton Craft2019-06-091-2/+13
| | | | | | | | | | | This implements selecting the most preferred mimetype under the 'View->Alternatives' configuration setting when viewing a message. Mimetypes in the alternatives array are weighted by their position, where the lower the index in the array the higher the priority, so this is taken into account during selection. If no message part matches a mimetype in the alternatives array, then it selects the first mimetype in the message.
* Message list: implement index-format optionYash Srivastav2019-06-071-23/+5
|
* Move ANSI stripping from filters to GoDrew DeVault2019-06-071-4/+20
|
* Remove unnecessary branchDrew DeVault2019-06-071-3/+0
|
* implements ability to view headers in message viewYash Srivastav2019-06-071-53/+91
|
* Add date to message viewerDrew DeVault2019-06-021-3/+9
|
* widget: Add ProvidesMessage interfaceKevin Kuehler2019-06-021-1/+15
| | | | | | | | | | | Consists of 3 functions * Store: Access to MessageStore type * SelectedAccount: Access to Account widget that the target widget belongs to * SelectedMessage: Current message (selected in msglist or the one we are viewing) Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
* Simplify layout of message viewer gridDrew DeVault2019-06-021-17/+3
| | | | This sub-grid was an artifact of an older design
* Add :save and :pipe commands to viewerGalen Abell2019-05-271-0/+19
| | | | | | | | | * :save takes a path and saves the current message part to that location * :pipe is the same as pipe on the account page, but uses the current message part rather than the whole email (ie :pipe gzip -d) * Refactored account:pipe and extracted common pipe code to commands.util.QuickTerm * Added helper command aerc.PushError
* msgviewer: copy stderr into pagerDrew DeVault2019-05-261-1/+17
| | | | This prevents a broken filter config from being a silent error
* Show unsupported mimetype message in redDrew DeVault2019-05-201-1/+1
|
* Show attachment names in multipart viewDrew DeVault2019-05-201-1/+5
|
* Implement :next-part, :prev-partDrew DeVault2019-05-201-2/+31
|
* Flesh out multipart switcherDrew DeVault2019-05-201-65/+141
|
* Refactor message part into dedicated widgetDrew DeVault2019-05-201-86/+148
|
* s/aerc2/aerc/gDrew DeVault2019-05-171-4/+4
|
* Add :send-message, prepares & writes email to /tmpDrew DeVault2019-05-141-4/+7
|
* lib/ui: introduce InvalidatableSimon Ser2019-04-271-17/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many Drawable implementations have their own Invalidate and OnInvalidate functions, with an unexported onInvalidate field. However OnInvalidate and Invalidate are usually not called in the same goroutine. This results in a race on this field, e.g.: Read at 0x00c000094748 by goroutine 7: git.sr.ht/~sircmpwn/aerc2/widgets.NewDirectoryList.func1() /home/simon/src/aerc2/widgets/dirlist.go:85 +0x56 git.sr.ht/~sircmpwn/aerc2/widgets.(*Spinner).Start.func1() /home/simon/src/aerc2/widgets/spinner.go:93 +0x1bb Previous write at 0x00c000094748 by main goroutine: [failed to restore the stack] Goroutine 7 (running) created at: git.sr.ht/~sircmpwn/aerc2/widgets.(*Spinner).Start() /home/simon/src/aerc2/widgets/spinner.go:46 +0x8f git.sr.ht/~sircmpwn/aerc2/widgets.NewDirectoryList() /home/simon/src/aerc2/widgets/dirlist.go:37 +0x286 git.sr.ht/~sircmpwn/aerc2/widgets.NewAccountView() /home/simon/src/aerc2/widgets/account.go:50 +0x5ca git.sr.ht/~sircmpwn/aerc2/widgets.NewAerc() /home/simon/src/aerc2/widgets/aerc.go:60 +0x800 main.main() /home/simon/src/aerc2/aerc.go:65 +0x33e To fix this, introduce a new type, Invalidatable, which protects the field. Unfortunately the Drawable must be passed to the callback function in Invalidate, so we still need to re-implement this in each Invalidatable user.
* Lowercase MIME types while matching filtersGokberk Yaltirakli2019-04-071-1/+2
|
* Remove extra debug statementDrew DeVault2019-03-311-1/+0
|
* Use shell to execute filters, fix non-determinismDrew DeVault2019-03-311-6/+3
|
* Implement header-regex-match filtersDrew DeVault2019-03-311-1/+18
|
* Improve error handling in message viewerDrew DeVault2019-03-311-10/+36
| | | | Still not great but at least it tells you when something went wrong
* Add basic filter implementationDrew DeVault2019-03-311-16/+65
|
* Decode messages before rendering themDrew DeVault2019-03-311-2/+22
|
* Make message viewer real, part twoDrew DeVault2019-03-311-10/+22
|
* Make the message viewer real, part oneDrew DeVault2019-03-311-118/+54
|
* Minor refactoring to header viewDrew DeVault2019-03-301-7/+12
|
* Use bold instead of inverted for header namesDrew DeVault2019-03-301-2/+3
|
* Add multipart selector mockup to msgviewerDrew DeVault2019-03-301-7/+50
|
* Add basic message viewer mockupDrew DeVault2019-03-301-0/+207
&id=322416056beae917b0877f984ccc2b4b930a14ce'>32241605 ^
9e5e87ca ^
bd2affaa ^
30b2fcf8 ^
6e1eeeeb ^

32241605 ^
6e1eeeeb ^
9e5e87ca ^
6e1eeeeb ^


32241605 ^
f821c0e2 ^
32241605 ^
6e1eeeeb ^
9e5e87ca ^
6e1eeeeb ^

32241605 ^
300aa167 ^
6e1eeeeb ^
32241605 ^
f821c0e2 ^
6e1eeeeb ^
c7db6a16 ^
30b2fcf8 ^

32241605 ^
6e1eeeeb ^
9e5e87ca ^

6e1eeeeb ^
32241605 ^
6e1eeeeb ^



9e5e87ca ^





6e1eeeeb ^


113bae73 ^
6e1eeeeb ^





113bae73 ^
6e1eeeeb ^



32241605 ^
23fd294d ^
32241605 ^
197085a2 ^
e968735e ^
9e5e87ca ^
6e1eeeeb ^


32241605 ^
3a2d36a9 ^


46bb1d31 ^

3a2d36a9 ^
65409d23 ^
3a2d36a9 ^

65409d23 ^
3a2d36a9 ^
46bb1d31 ^




f4bef91b ^
46bb1d31 ^
30b2fcf8 ^

d47c670e ^
f4bef91b ^

30b2fcf8 ^

01013f2a ^
ef401599 ^
a7088a2f ^
8f9ec2fb ^
6e1eeeeb ^
a21fb73d ^

6e1eeeeb ^
28fd2290 ^
8f9ec2fb ^
6e1eeeeb ^





01013f2a ^





300aa167 ^
01013f2a ^






6e1eeeeb ^
6e1eeeeb ^

6f1581e7 ^
6e1eeeeb ^
01013f2a ^



ef401599 ^
01013f2a ^


ef401599 ^
01013f2a ^


ef401599 ^
01013f2a ^




8f9ec2fb ^
01013f2a ^

f8a4a457 ^
01013f2a ^

6e1eeeeb ^
01013f2a ^


6e1eeeeb ^
01013f2a ^

6e1eeeeb ^
01013f2a ^


f8a4a457 ^
6e1eeeeb ^
f8a4a457 ^
6e1eeeeb ^





6d617e8b ^
6e1eeeeb ^
6d617e8b ^
6e1eeeeb ^
6d617e8b ^

6e1eeeeb ^

6d617e8b ^
6e1eeeeb ^

6d617e8b ^
6e1eeeeb ^



f8a4a457 ^
6e1eeeeb ^


f8a4a457 ^
6e1eeeeb ^


















2aa903df ^
6e1eeeeb ^





01013f2a ^




6e1eeeeb ^
113bae73 ^
8bbafb13 ^






6e1eeeeb ^
6e1eeeeb ^

300aa167 ^
6e1eeeeb ^
300aa167 ^
6e1eeeeb ^
300aa167 ^
6e1eeeeb ^
300aa167 ^
6e1eeeeb ^

300aa167 ^

6e1eeeeb ^

























300aa167 ^
6e1eeeeb ^



300aa167 ^
28fd2290 ^
9e5e87ca ^

6e1eeeeb ^

300aa167 ^
6e1eeeeb ^
d4b4d018 ^
6e1eeeeb ^

28fd2290 ^
9e5e87ca ^
300aa167 ^
28fd2290 ^
300aa167 ^


6e1eeeeb ^
14b33e59 ^
6e1eeeeb ^
2c9aa92f ^
6e1eeeeb ^
797a46d5 ^
6e1eeeeb ^






797a46d5 ^
6e1eeeeb ^








797a46d5 ^
6e1eeeeb ^


12816015 ^
6e1eeeeb ^
797a46d5 ^
6e1eeeeb ^




002cbf13 ^
6e1eeeeb ^
4e6778d7 ^
6e1eeeeb ^

002cbf13 ^
6e1eeeeb ^
300aa167 ^
6e1eeeeb ^


f192d655 ^
6e1eeeeb ^




f192d655 ^
6e1eeeeb ^



f192d655 ^
f821c0e2 ^
6e1eeeeb ^
f192d655 ^
6e1eeeeb ^





383d5bea ^
6e1eeeeb ^
383d5bea ^
6e1eeeeb ^
383d5bea ^
730e6894 ^
6e1eeeeb ^
383d5bea ^
730e6894 ^


383d5bea ^
6e1eeeeb ^

e9e06638 ^
6e1eeeeb ^
e9e06638 ^
6e1eeeeb ^

e9e06638 ^
6e1eeeeb ^



e9e06638 ^
6e1eeeeb ^
4693839e ^
6e1eeeeb ^

4693839e ^
6e1eeeeb ^

e9e06638 ^
6e1eeeeb ^


c7db6a16 ^
6e1eeeeb ^
c7db6a16 ^
6e1eeeeb ^





c7db6a16 ^
6e1eeeeb ^
c7db6a16 ^
6e1eeeeb ^
c7db6a16 ^
6e1eeeeb ^
ddf378d4 ^
6e1eeeeb ^
c442a5ad ^
6e1eeeeb ^






c442a5ad ^
6e1eeeeb ^




a56d969e ^
6e1eeeeb ^








a56d969e ^
6e1eeeeb ^










a21fb73d ^
6e1eeeeb ^































































































a21fb73d ^

6e1eeeeb ^
a21fb73d ^




6e1eeeeb ^












a21fb73d ^

6e1eeeeb ^
784e17d4 ^


a56d969e ^
784e17d4 ^





6e1eeeeb ^

























75f0d196 ^
4f33ff22 ^
4f33ff22 ^


75f0d196 ^
4f33ff22 ^
75f0d196 ^
4f33ff22 ^
d0a1e1b6 ^

bb1a1ac2 ^



300aa167 ^
bb1a1ac2 ^
924ed08a ^

bb1a1ac2 ^
924ed08a ^



b7b6ee50 ^



924ed08a ^
bb1a1ac2 ^

924ed08a ^
a7088a2f ^
784e17d4 ^































52564867 ^




46bb1d31 ^
784e17d4 ^

6e1eeeeb ^
6e1eeeeb ^
784e17d4 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776