I want to create a full stack nuxt app app that also has a saperate function that listens to emails with imap, and it uses same functions that the nust server should use, i cannot find where in the nuxt app its the right place for that to go.
the email listener would look something like this
const checkEmails()=>{
//connect to imap and check for new emails
//when done
setTimeout(checkEmails,15*60*1000)
}
checkEmails()