Bug 4084

Summary: ability to apply patch attachments on arbitrary paths
Product: Claws Mail (GTK 2) Reporter: Ricardo Mones <mones>
Component: UI/Message ViewAssignee: users
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: 3.17.2   
Hardware: PC   
OS: Linux   

Description Ricardo Mones 2018-08-31 20:58:45 UTC
How this would work?

- New option on mimeview contextual menu for text/x-patch attachments, for example: "Apply patch to..."
- On clicking a small dialog opens:
  +--------------------------------+
  | Apply patch <attachment name>  | # dialog title
  | To [________________] [Browse] | # path selector
  | Apply with (ยท) Git ( ) Patch   | # select how to apply
  | Level [v][  1]                 | # conditional dropdown with patch level (0, 1, 2, ...)
  |               [Cancel] [Apply] | # enabled when patch radio option is selected
  +--------------------------------+ 
- It chdirs to the selected path and invokes either 'git am' or 'patch' with those arguments :)
- If git or patch are not in $PATH the corresponding radio button is disabled
- If none of them are in $PATH the menu option appears disabled
- Last selected patch should be remembered

Sounds it good?

Thanks in advance! ;-)
Comment 1 Andrej Kacian 2018-08-31 21:24:31 UTC
Sounds like a plugin idea to me.