I have a mailspool on a UNIX system ... so, /var/mail/username ... and it is in mbox format.
Once the email is stored in mbox format, the URLs that come in emails are chopped into 40 character lines with '=' or '=3D' separators, etc., and are just impossible to copy/paste or work with in any way.
So ... I would like to just log all URLs to a file before they hit the mailspool and if I want to use a URL I can just check that plain text file.
I think the way to do this is to extract all URLs from all incoming mail, with procmail - but is that correct ? Not only do I need to extract the URL before it gets mbox'ed, but I want to keep adding them to the end of a single file.
I am aware that there is a "golden regex" ... "one regex to rule them all" for extracting URLs from text and I assume I will use that, but I don't know how to invoke a regex in procmail that will just append to an existing text file ...
Thank you.