03-23-2017
Hi,
I don't myself have any direct experience with HP-UX, but I know that the mailx implementation on Solaris allows you to save ranges of messages, albeit not by date. Does the HP-UX implementation allow you to do the same ? If it does, then the man page for mailx should show that the save or copy commands let you do that, and give you the syntax.
If you absolutely have to do the saving by date however, and not simply be able to save ranges of messages, then a better option here (well, perhaps better isn't the right word, but an option anyway) would be to directly monitor the user's local mailbox in your monitoring script, rather than going via an MUA like mailx. Or if there's another server you could do the processing on, you could SCP or otherwise copy the mailbox file off, parse it, then do whatever you had to do based on what you found.
10 More Discussions You Might Find Interesting
1. BSD
I have been toying with this all night now and cannot seem to get it to work, so I came to you for some aid. I recently discovered the wonders of the AWK programming language and how it can be useful of UNIX system administratioin, especially directly from and interacitive interpreter (ala sh).
... (0 Replies)
Discussion started by: erebus47
0 Replies
2. UNIX for Dummies Questions & Answers
If I use the "Mail" link instead of the "mail" link to ../mailx I get this error.
Mail so-n-so @whatever.com
mailx: NUL changed to @
Unknown command: "postmaster"
The email still goes through but i get the error.
If I use "mail" it goes thru without the error.
Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
3. Shell Programming and Scripting
Hello chiefs,
So i wanna outcomment several lines, but i dont want to start each line with #-sign. Once i saw it in use, but dont remember the syntax. It should work with sh or ksh.
regards
congo (3 Replies)
Discussion started by: congo
3 Replies
4. Shell Programming and Scripting
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies
5. AIX
Under smit, one has to manually select each fix with F7. there 9000 fixes left to be marked. How Can I manually install/Mark all of these without SMIT.
---------- Post updated at 02:29 PM ---------- Previous update was at 01:15 PM ----------
From the command line
instfix -T -d... (4 Replies)
Discussion started by: mrmurdock
4 Replies
6. Shell Programming and Scripting
hi,
my directory has the following files
I want to rename or mv them as
file 1 corresponds to new_1.bed, file2 to new_2.bed and so on.
How do I do it using awk or bash? TIA (4 Replies)
Discussion started by: jacobs.smith
4 Replies
7. Shell Programming and Scripting
Hi Friends,
I have a directory with a ton of .html files, like this
ls -m1 dir
1.html
2.html
3.html
4.html
Somewhere in the files, there is a pattern like this
1.html
http://unix.com/cgi-bin/task?taskid=12010&task.out
2.html
http://unix.com/cgi-bin/task?taskid=11110&task.out... (1 Reply)
Discussion started by: jacobs.smith
1 Replies
8. Shell Programming and Scripting
Hi,
I have a bunch of files which are named something like:
Company Name~1234~X1234~X1-123.pdf
I need to get them renamed something like:
Company Name~1234(X1234)X1-123.pdf
Once I have the X1234 inside () I have a piece of software which can use the X1234 bit. I will be receiving... (7 Replies)
Discussion started by: jcborland
7 Replies
9. Shell Programming and Scripting
Hi All, :D
Actullay I am looking for a smart way :b: to parse files in a directory whose count is around 2000000 :eek: in a single day.
Find is working with me but taking a lot of times :confused:, sometimes even a day which is not helping me.:wall:
So anyone can help me know a smart... (5 Replies)
Discussion started by: jojo123
5 Replies
10. Shell Programming and Scripting
Hallo Team,
I would like to change everything on field 24 that starts with
10.0.108.* to be 10.0.108.11
-bash-3.2$ cat pax1.csv|cut -f24 -d","|sort -u
10.0.108.11
10.0.108.11100
10.0.108.11102
10.0.108.11104
10.0.108.11105
10.0.108.11106
10.0.108.11108
10.0.108.11110... (6 Replies)
Discussion started by: kekanap
6 Replies
LEARN ABOUT DEBIAN
ciderwebmail::model::imapclient
CiderWebmail::Model::IMAPClient(3pm) User Contributed Perl Documentation CiderWebmail::Model::IMAPClient(3pm)
NAME
CiderWebmail::Model::IMAPClient - Catalyst Model
DESCRIPTION
Interface to the IMAP Server
You should *really* read rfc3501 if you want to use this.
METHODS
new()
creates a new CiderWebmail::Model::IMAPClient
_die_on_error($c)
die if the last IMAP command sent to the server caused an error this sould be called after every command sent to the imap server.
disconnect
disconnect from IMAP Server, if connected
separator($c)
Returnes the folder separator
folder_tree($c)
Return all folders as hash-tree.
folder_sort
custom sort for folders always put INBOX on top
select($c, { mailbox => $mailbox })
selects a folder
message_count($c, { mailbox => $mailbox })
returnes the number of messages in a mailbox
unseen_count($c, { mailbox => $mailbox })
returnes the number of unseen messages in a mailbox
check_sort($sort)
Checks if the given sort criteria is valid.
get_folder_uids($c, { mailbox => $mailbox, sort => $sort, range => $range })
Returns a MessageSet object representing all UIDs in a mailbox The range option accepts a range of UIDs (for example 1:100 or 1:*), if you
specify a range containing '*' the last (highest UID) message will always be returned.
get_headers_hash($c, { uids => [qw/ 1 .. 10 /], sort => [qw/ date /], headers => [qw/ date subject /], mailbox => 'INBOX' })
returnes a array of hashes for messages in a mailbox
o uids (arrayref): a list of uids (as described in RFC2060) to fetch
o sort (arrayref): sort criteria (as described in RFC2060). for example: [ qw/ date / ] will sort by date, [ qw/ reverse date / ] will
sort by reverse date
o headers (arrayref, required): a list of mail-headers to fetch.
o mailbox (required)
search()
searches a mailbox returns a arrayref containing a list of UIDs
get_headers_string($c, { mailbox => $mailbox, uid => $uid })
returnes the fullheader of a message as a string
all_headers($c, { mailbox => $mailbox, uid => $uid })
fetch all headers for a message and updates the local headercache
get_headers($c, { mailbox => $mailbox })
fetch headers for a single message from the server or (if available) the local headercache
mark_read($c, { mailbox => $mailbox, uid => $uid })
mark a messages as read
mark_answered($c, { mailbox => $mailbox, uid => $uid })
mark a message as answered
bodypart_as_string($c, { mailbox => $mailbox, uid => $uid, parts => [ $part ] })
fetches body part(s) of a message - part IDs according to the bodystructure of the message
get_bodystructure($c, { mailbox => $mailbox, uid => $uid })
fetches bodystructure of a message. returns a Mail::IMAPClient::BodyStructure object - this might change when we parse this into something
more usefull
message_as_string($c, { mailbox => $mailbox, uid => $uid })
return a full message body as string
delete_messages($c, { mailbox => $mailbox, uid => $uid })
delete message(s) form the server and expunge the mailbox
append_message($c, { mailbox => $mailbox, message_text => $message_text })
low level method to append an RFC822-formatted message to a mailbox
move_message($c, { mailbox => $mailbox, target_mailbox => $target_mailbox, uid => $uid })
Move a message to another mailbox
create_mailbox($c, { mailbox => $mailbox, name => $name })
Create a subfolder
delete_mailbox($c, { mailbox => $mailbox })
Delete a complete folder
AUTHOR
Stefan Seifert and Mathias Reitinger <mathias.reitinger@loop0.org>
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-06-16 CiderWebmail::Model::IMAPClient(3pm)