Do it all on your Mac. If you get an email you want to keep on your phone and are not near your Mac, leave it in the inbox on your phone until you get home, then move it over to one of the local folders....I don't use Apple Mail as I gave up on it years ago in favour of Thunderbird, but the principles are the same.