Imap Infection . I delete these files and they just come back again

Apple mail
imap
I have manually deleted these they come back again. I also tried letting avast delete them and then scan again and they are gone but later they come back again. Am I right in thinking as this is imap and gmail tht it is somehow downlaoding them again from gmail or something?
How can I permanently delete these old files with the redirect infect from mail
I have exited mail before doing these deletions.
heres the read out of files

JS:Redirector-RU [Trj]
Path
/Users/MBAir/Library/Mail/V2/IMAP-shaneblyth@imap.gmail.com/[Gmail].mbox/All Mail.mbox/EA638E87-0B07-4266-BAE1-49848200DE71/Data/6/3/Attachments/36417/2/qmlmev.html
Result
Infection


Depth
1
Info
JS:Redirector-RU [Trj]
Path
/Users/MBAir/Library/Mail/V2/IMAP-shaneblyth@imap.gmail.com/[Gmail].mbox/All Mail.mbox/EA638E87-0B07-4266-BAE1-49848200DE71/Data/6/3/Messages/36417.emlx|>qmlmev.html#351714014
Result
Infection


Path
/Users/MBAir/Library/Mail/V2/IMAP-shaneblyth@imap.gmail.com/[Gmail].mbox/All Mail.mbox/EA638E87-0B07-4266-BAE1-49848200DE71/Data/6/3/Messages/36417.emlx
Result
Clean


Info
JS:Redirector-RU [Trj]
Path
/Users/MBAir/Library/Mail/V2/IMAP-shaneblyth@imap.gmail.com/[Gmail].mbox/Important.mbox/EA638E87-0B07-4266-BAE1-49848200DE71/Data/6/3/Attachments/36389/2/qmlmev.html
Result
Infection


Depth
1
Info
JS:Redirector-RU [Trj]
Path
/Users/MBAir/Library/Mail/V2/IMAP-shaneblyth@imap.gmail.com/[Gmail].mbox/Important.mbox/EA638E87-0B07-4266-BAE1-49848200DE71/Data/6/3/Messages/36389.emlx|>qmlmev.html#351714014
Result
Infection


Path
/Users/MBAir/Library/Mail/V2/IMAP-shaneblyth@imap.gmail.com/[Gmail].mbox/Important.mbox/EA638E87-0B07-4266-BAE1-49848200DE71/Data/6/3/Messages/36389.emlx