If you need to use mailutil to operate on user accounts from the root
account, then you can do this:
su - $user --shell=/bin/bash -c /usr/bin/mailutil ...
This is also useful for accessing users' mail on the mail server with
"alpine":
su - $user --shell=/bin/bash -c /usr/bin/alpine
(Useful because alpine is the only non-gui client that can operate
locally on "MIX" formated mail folders)
Richard Ketcham
On 2012-06-01 12:58, Oscar del Rio wrote:
On 06/ 1/12 09:13 AM, Jim McKinney wrote:
1) Is there a way to have mailutil look in an alternate location rather
than my home directory? I've looked at the man page and don't see any
way to override this using either a flag or environment variable.
Try using double slash. For example,
% mailutil copy -kw //tmp/test.mbox
"{server:143/imap/novalidate-cert/notls/user=username}testmailbox"
to transfer /tmp/test.mbox file to users IMAP testmailbox.
% mailutil copy -kw //tmp/test.mbox
"{server:143/imap/novalidate-cert/notls/user=username}//spool/username/testmailbox"
might work if mailboxes are not on the user's home dir.
% mailutil copy -kw //tmp/test.mbox
"{server:143/imap/novalidate-cert/notls/user=username}#driver.mix/testmailbox"
to specify a mailbox format...
Finally, is there a reference with examples of the various driver
options, etc beyond the man page?
The mailing list archives, I supposed. Mark provided great support
and gave lots of advice on the list.
_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw